ember-tracked-properties-codemod
v0.2.6
Published
A codemod for transforming your ember app code to start using `@tracked` properties.
Downloads
9
Maintainers
Readme
ember-tracked-properties-codemod
A codemod for transforming your ember app code to start using @tracked
properties.
Pre-requisites
- Since
@tracked
properties is supported from the3.13
version of Ember, this codemod should only be used for apps with version3.13+
. - This codemod only supports native classes. To get the most out of this codemod, you would need to run the Ember Native class codemod first.
Usage
npx ember-tracked-properties-codemod path/of/files/ or/some**/*glob.js
The codemod accepts the following options:
| Option | Value | Default | Details |
| --------------------- | ------- | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| --always-prefix
| boolean | true
| Always prefix @tracked
inline |
Transforms
Contributing
Installation
- clone the repo
- change into the repo directory
yarn
Running tests
yarn test