Releases: ijlee2/ember-codemod-v1-to-v2
Modernized blueprints. Dropped Node v18 support.
Since [email protected] (i.e. 2023, when the migration guide had been written), the blueprints from ember-cli and @embroider/addon-blueprint have changed, and several dependencies for an Ember project (e.g. eslint, ember-try) have introduced breaking changes through major releases.
As a result, if I simply let the codemod move files (i.e. use existing configurations and old versions of dependencies), the resulting project will become hard to fix for maintainers who are new to v2 addons. It's now a good time for the codemod to reset the project in a few ways:
- Configure linters (
ember-template-lint,eslint,stylelint, andtypescript). - Configure
.gitignorefiles. - Install
ember-try@v4.
[email protected] also introduces a couple of new features:
- Add
addon.publicAssets()torollup.config.mjs. - Set up
@embroider/broccoli-side-watchintest-app.
It follows @embroider/[email protected] closely.
Simplified lint configurations
1.7.1 Tagged 1.7.1
Updated dependencies and blueprints
Follows @embroider/[email protected] closely.
Updated dependencies and blueprints
Follows @embroider/[email protected] closely.
Corrected the addon file locations for TypeScript projects
Follows @embroider/[email protected] closely.
Note
If you had addon-test-support/index.{js,ts} in your v1 addon, you will need to add test-support.js (or test-support.ts) to addon.publicEntrypoints() in the Rollup configuration.
Downstreamed changes from @codemod-utils/[email protected]
1.4.1 Tagged 1.4.1
Updated dependencies. Used pnpm@9 to manage dependencies.
Follows @embroider/[email protected] closely.
Updated dependencies and latestVersions
Still follows @embroider/[email protected] closely.
Allowed codemod to set linters for the v2 addon
The codemod now accepts the responsibility of setting linters for the v2 addon. The configurations match those from @embroider/[email protected] closely.
Note, the end-developer is, for the time being, still responsible for installing and configuring ember-template-imports in their v2 addon (if they want to write *.{gjs,gts} files).
Updated dependencies and latestVersions
The codemod may match what one can expect from @embroider/[email protected].