ember icon indicating copy to clipboard operation
ember copied to clipboard

As a part of installation install `transform-class-properties` on the host app.

Open sivakumar-kailasam opened this issue 5 years ago • 1 comments

This would be required in case the host app wants to define models in js files with class properties.

In addition to this, if they're using eslint, we'll have to add babel-eslint as a devDep & add the line `parser: 'babel-eslint' to their eslint config file.

Or we could add these to be a part of setup instructions & show how they can define props w/o class properties if they wish to do so.

sivakumar-kailasam avatar Nov 28 '18 12:11 sivakumar-kailasam

This would be required in case the host app wants to define models in js files with class properties.

This is not strictly required, but it's more verbose without it for sure. They can always do

class Person {
  constructor() {
    this.firstName = String;
    this.lastName = String;
  }
}

But I agree, transform would be better. Should it be installed via a blueprint?

taras avatar Nov 28 '18 19:11 taras