segmentio / evergreen

🌲 Evergreen React UI Framework by Segment
https://evergreen.segment.com
MIT License
12.39k stars 832 forks source link

Port codemods to TypeScript, add codemods for replacing Nudge and SidebarTab components #1558

Closed brandongregoryscott closed 1 year ago

brandongregoryscott commented 1 year ago

Overview

This PR overhauls our codemods directory and adds two new codemods, one for removing SidebarTab components (replacing with Tab direction="horizontal") and one for removing Nudge components (replacing with Pulsar where possible).

There are a decent amount of tests, but not all of the new utility functions are tested. We can continue to back-fill these as new codemods are added, in addition to the regular input/output transformation tests.

Also... I noticed we were bundling up *.test.js files the main package. Looks like the glob for the build-commonjs and build-esm scripts is not picking up all of the test files, so excluding them explicitly from the files array in the package.json should tidy our distribution up a little!

Screenshots (if applicable)

Documentation

netlify[bot] commented 1 year ago

Deploy Preview for evergreen-storybook ready!

Name Link
Latest commit b0366bb835ed43607cc54efa0dbb905fd1b1269d
Latest deploy log https://app.netlify.com/sites/evergreen-storybook/deploys/638568744309110009581f6e
Deploy Preview https://deploy-preview-1558--evergreen-storybook.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.