ember-codemod-ember-render-helpers-to-v1

1.0.2 • Public • Published

This project uses GitHub Actions for continuous integration.

ember-codemod-ember-render-helpers-to-v1

The codemod helps you rename helpers after updating ember-render-helpers to v1.0.0.

  • Rename {{did-insert}} to {{did-insert-helper}}
  • Rename {{did-update}} to {{did-update-helper}}
  • Rename {{will-destroy}} to {{will-destroy-helper}}

Usage

Arguments

You must pass --type to indicate what type of project you have.

npx ember-codemod-ember-render-helpers-to-v1 --type app
npx ember-codemod-ember-render-helpers-to-v1 --type v1-addon
Optional: Specify the project root

Pass --root to run the codemod somewhere else (i.e. not in the current directory).

npx ember-codemod-ember-render-helpers-to-v1 --root <path/to/your/project>

Limitations

The codemod is designed to cover typical cases. It is not designed to cover one-off cases.

To better meet your needs, consider cloning the repo and running the codemod locally.

cd <path/to/cloned/repo>

# Compile TypeScript
pnpm build

# Run codemod
./dist/bin/ember-codemod-ember-render-helpers-to-v1.js --root <path/to/your/project>

Compatibility

  • Node.js v18 or above

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

Package Sidebar

Install

npm i ember-codemod-ember-render-helpers-to-v1

Weekly Downloads

13

Version

1.0.2

License

MIT

Unpacked Size

7.7 kB

Total Files

10

Last publish

Collaborators

  • ijlee2