Skip to content

Commit d0986d8

Browse files
Reid BarberreidbarberdevongovettsnowystingerYihui Liao
authored andcommitted
Upgrade assistant CLI (#144)
* upgrade assistant initial commit * lint * support specifying a subset of components to upgrade * use file name for filtering * cleanup * include default codemods * update components args * add ts-node * fix binary loading * fix __dirname and exit * fix jscodeshift paths to default to all * fix ts build * cleanup rules * cleanup * add readme * configure tests to run * update jscodeshift usage * add UPGRADE.md * update UPGRADE.md from release diff * update formatting in UPGRADE.md * add style props to upgrade guide * update div references * fix jscodeshift call * add package install step * more button rules * add button isPending rule * codemods for checkboxgroup, form, inlinealert, link * port codemods to babel and implement import renaming (#159) * port codemods to babel and implement import renaming * run end to end transform test * fix unrenamed components * add missing deps * Codemod tests A-L (#161) * Codemod tests S-Z (#160) * setup to use jscodeshift transforms only * fix file paths * remove prefixes from tests * fix __dirname * early return if not in changes list * use path.traverse * improve adding new imports * typescript improvements * formatting * improve updatePropNameAndValue to traverse prop value expression for string literal * supporting adding to existing import statement if exists * improve existing import check * Codemod tests M-R (#165) * add tests m-r * update imports with section --------- Co-authored-by: Yihui Liao <[email protected]> * update tests * fix more snapshots * more changes * fix adding additional prop when not matched * update prop name only if value is updated * more snapshot fixes * more snapshot updages * update changes * Fix RadioGroup codemods (#167) * update updateComponentWithinCollection * Fix imports and item replacement (#169) * add Button -> LinkButton test * add back nearest collection parent check * Convert DimensionValue to pixel value (#170) * convert dimension value to pixel value * add todo comment, update snapshot tests * spacing --------- Co-authored-by: Yihui Liao <[email protected]> Co-authored-by: Reid Barber <[email protected]> * simplify tooltip placement change * remove Divider from Dialog * fix style props imports * fix test for import aliases * fix tooltip codemods * fix import tests * update dialog functino transform * Add additional css units to pixel value conversion (#173) * add additional css units * update picker test --------- Co-authored-by: Yihui Liao <[email protected]> * fix style calls without conditions * update UPGRADE.md * don't update Provider * add placeholder for tabs update * update TODO comments * Update convertDimensions (#178) * add case for sizing to convet dimension * remove 100% --------- Co-authored-by: Yihui Liao <[email protected]> Co-authored-by: Reid Barber <[email protected]> * fix deps * update TODOs in snapshots * fix resolutions for recast * update UPGRADE.md after release * remove contextualHelp changes * add contextualhelp test * add codemods for new components in latest release * fix ColorField test * fix Item and Section getting imported from S2 * comment for Breadcrumbs nav and leave Item/Section imports * fix key updating to id on v3 Items * leave comment for invalid style prop usage * fix build * improve CLI UX * install unplugin-parcel-macros automatically * add DialogTrigger render function codemod * standardize comment leading space * update remaining tests * add built CLI for testing * Revert "add built CLI for testing" This reverts commit 0efbac5a9e4ce664b71ecbe2963e3006a0ea0539. * use unique alias if newly imported name already exists in scope * improve macro setup and next steps UX * fix info to informative changes in statuslight and inlinealert * preserve comment if the first line gets removed (i.e. license header) * leave a comment if we couldn't detect parent collection component for Item/Section * update left/right style props to use start/end in macro --------- Co-authored-by: Reid Barber <[email protected]> Co-authored-by: Devon Govett <[email protected]> Co-authored-by: Rob Snow <[email protected]> Co-authored-by: Yihui Liao <[email protected]> Co-authored-by: Yihui Liao <[email protected]> Co-authored-by: Devon Govett <[email protected]>
1 parent c34631a commit d0986d8

File tree

141 files changed

+12114
-559
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+12114
-559
lines changed

codemods/__tests__/__snapshots__/button.test.ts.snap

Lines changed: 0 additions & 10 deletions
This file was deleted.

codemods/button.ts

Lines changed: 0 additions & 42 deletions
This file was deleted.

codemods/codemod.ts

Lines changed: 0 additions & 155 deletions
This file was deleted.

codemods/dialog.ts

Lines changed: 0 additions & 48 deletions
This file was deleted.

codemods/utils.ts

Lines changed: 0 additions & 131 deletions
This file was deleted.

0 commit comments

Comments
 (0)