WARNING: jscodeshift
, and thus this codemod, edits your files in place. It does not make a copy. Make sure your code is checked into a source control repository like Git and that you have no outstanding changes to commit before running this tool.
Navigate to your Ember project's directory and run the following:
If you do not have jscodeshift
installed globally, then run:
npm i jscodeshift -g
To perform the transformation run the following command:
jscodeshift -t https://raw.githubusercontent.com/dexturr/ember-current-url-codemod/master/index.js ./tests
Use jscodeshift project strucutre Add tests Move QP's into object literals in codemod