ember-v2-codemods
A collection of codemods to primarily to get an outdated codebase up to an acceptable version 2 state, in preparation for further upgrades.
Complementary codemods
Usage
To run a specific codemod from this project, you would run the following:
npx ember-v2-codemods <TRANSFORM NAME> path/of/files/ or/some**/*glob.js
# or
yarn global add ember-v2-codemods
ember-v2-codemods <TRANSFORM NAME> path/of/files/ or/some**/*glob.js
Local Usage
node ./bin/cli.js <TRANSFORM NAME> path/of/files/ or/some**/*glob.js
Transforms
- legacy-computed-codemod
- legacy-get-codemod
- legacy-getProperties-codemod
- legacy-observer-codemod
- legacy-set-codemod
- legacy-setProperties-codemod
Contributing
Installation
- clone the repo
- change into the repo directory
yarn
Running tests
yarn test
Update Documentation
yarn update-docs