Releases: ijlee2/ember-codemod-pod-to-octane
Handled updating import paths (engines)
When I had run ember-codemod-pod-to-octane
on a production app, I had found that updating import paths (references to the moved files) is time-consuming and can lead to mistakes.
In v1.1.0
, the codemod takes care of updating the import paths (within the project). Future minor versions will include this feature for Ember addons and apps.
Added tests and refactored code
I updated the project structure to better match that of ember-codemod-v1-to-v2
. In particular, the developer experience in writing tests for ember-codemod-pod-to-octane
has been improved.
Stable release
Since the initial release, ember-codemod-pod-to-octane
has worked well and, in a short period of time, helped a large production app move away from pod. I am updating the tag to v1.0.0
to provide future users extra confidence.
Updated README and dependencies
No new features. I updated the README to clarify:
- How to make manual fixes after running the codemod
- How to use the codemod to un-pod an addon's demo app
Updated README and dependencies
No new features. I updated the README to describe more clearly how one can use the arguments --type
and --pod-path
.
Added support for podModulePrefix and Sass (ember-app)
The codemod will take podModulePrefix
and ember-css-modules-sass
into account when moving files around.
Please pass the argument --pod-path
to specify your podModulePrefix
. The argument's value refers to the "difference" between podModulePrefix
and modulePrefix
. For example, if you have the following config/environment.js
:
/* config/environment.js */
'use strict';
module.exports = function (environment) {
let ENV = {
modulePrefix: 'my-app',
podModulePrefix: 'my-app/pods',
...
};
return ENV;
};
then you would enter the following command:
npx ember-codemod-pod-to-octane --pod-path=pods --type=app
Added migration strategy for services (ember-app)
When you run npx ember-codemod-pod-to-octane --type=app
, the codemod will move services that are placed in a pod directory to app/services
.
Initial release
0.1.0 Marked v0.1.0 release for npm