Skip to content

try cp-property-map codemod from ember-3x-codemods#727

Merged
kellyselden merged 3 commits intoember-cli:masterfrom
rajasegar:cp-property-map
Oct 23, 2019
Merged

try cp-property-map codemod from ember-3x-codemods#727
kellyselden merged 3 commits intoember-cli:masterfrom
rajasegar:cp-property-map

Conversation

@rajasegar
Copy link
Copy Markdown
Contributor

return `${this.firstName} ${this.lastName}`;
},

friendNames: map('friends', ['nameKey'], function(friend) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you import map? Just in case the codemod starts following the source in the future, and not codemodding things that don't come from ember.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, similarly for the computed properties also we need to import the computed right?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably, but I wouldn't worry about it for this pull request

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok then, I will make changes for importing map

@kellyselden kellyselden merged commit 6d79ffd into ember-cli:master Oct 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants