0.3.8 • Published 7 months ago
@ciena-org/ember-codemods v0.3.8
@ciena-org/ember-codemods
A collection of codemods that can be run to quickly refactor Ember code.
Usage
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
Transforms
Deprecations
Miscellaneous
Transform | Description | Possible issues |
---|---|---|
revert-computed-macro | Replace computed from ember-macro-helpers with @ember/object instead. | Will add variable even if not used from function before. Can just remove as need be (or PR fix), was not a common occurence in my code to have unused dependency |
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. |
Contributing
If you are interested in helping contribute to this project, please take a look at our Contributing Guide.