ember-native-class-codemod
ember-native-class-codemod copied to clipboard
A codemod-cli project for converting Ember objects to es6 native classes

Codemode changed this._super(...arguments) to undefined 
If the class is ```js export default class Table extends Component {} ``` The error says: ``` You defined the class @ember/component that extends from @ember/component using native class syntax...
I wasn't expecting the codemod to delete many comments in our code. One small example: before ``` export default Component.extend({ //To show or hide sibling checkboxes when one is hovered...
This codemod looks awesome, but we are not using ember-decorators, only the native decorators. Is there a reason the addon is only supported with ember-decorators? We've gotten away with just...
In the documentation it says you can disable various features by setting a flag to `false`. For example, `--classic-decorator=false` will disable the insertion of the `@classic` decorator. This doesn't work...
The following file did not transform, and all of the properties seemed to trigger errors: ```js import { computed } from '@ember/object'; import { gt } from '@ember/object/computed'; import Model...
``` import { computed } from '@ember/object'; const Foo = EmberObject.extend({ authors: computed('post.comments.authorName', async function () { let comments = await this.post.comments; return comments.mapBy('authorName'); }), }); ``` is transformed into:...
In cases where the object you are migrating has the object name at the end of its filename, this gets duplicated into the classname which looks weird. For example, a...
I have several/many files that were not modified and are not mentioned in codemod.log, one example file: ``` // app/models/purchase.js import DS from 'ember-data'; import attr from 'ember-data/attr'; export default...