A collection of codemods for ember-data. For now, it only contains a codemod to upgrade to the new "@ember-data" packages!
To run a specific codemod from this project, you would run the following:
npx ember-data-codemod <TRANSFORM NAME> path/of/files/ or/some**/*glob.js
# or
yarn global add ember-data-codemod
ember-data-codemod <TRANSFORM NAME> path/of/files/ or/some**/*glob.js
To run every codemod from this project, you would run the following:
npx ember-data-codemod . path/of/files/ or/some**/*glob.js
# or
yarn global add ember-data-codemod
ember-data-codemod . path/of/files/ or/some**/*glob.js
- clone the repo
- change into the repo directory
yarn
yarn test
yarn update-docs
This repository is intially a fork of ember-modules-codemod adapted for the needs of ember-data. This PR illustrates the work needed to adapt ember-modules-codemod to fit ember-data needs.
This codemod uses jscodeshift