A collection of codemods that can be run to quickly refactor Ember code.
Replace TRANSFORM with one of the transforms listed below.
TRANSFORM="revert-computed-macro"; \
npx @ciena-org/ember-codemods $TRANSFORM path/of/files/ or/some**/*glob.js
| Transform | Description | Possible issues |
|---|---|---|
| revert-computed-macro | Replace computed from ember-macro-helpers with @ember/object instead. |
|
| ember-code-snippets-helper | Replace CodeSnippet component with get-code-snippet helper when updating ember-code-snippet to v3. |
|
| replace-proxy-hack-with-decorator | Replace internal proxyAttr, proxyBelongsTo, and proxyHasMany macros with a expectationProxy class decorator. |
This only works with models that aren't native classes, but I think it should be okay since the only models using these macros are following the classic syntax. |
If you are interested in helping contribute to this project, please take a look at our Contributing Guide.