Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/379 update blueprint #380

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Gorzas
Copy link
Contributor

@Gorzas Gorzas commented Oct 5, 2020

No description provided.

@Gorzas Gorzas force-pushed the feature/379-update-blueprint branch 2 times, most recently from 5f14c3c to 49dd10d Compare November 6, 2020 09:05
package.json Outdated
@@ -68,5 +68,8 @@
},
"ember-addon": {
"configPath": "tests/dummy/config"
},
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we should add the edition in the package.json until we update the version of ember-cli (we're currently on ember-cli 3.3)

Copy link
Contributor

Choose a reason for hiding this comment

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

FYI I've started trying to upgrade ember-cli in #385

Copy link
Contributor

Choose a reason for hiding this comment

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

@Gorzas if you pull the latest changes from master you should be able to remove these changes now

Copy link
Contributor

@patocallaghan patocallaghan left a comment

Choose a reason for hiding this comment

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

Just some final touch ups and we should be good to go 💪


export default MF.Fragment.extend({
export default class <%= classifiedModuleName %> extends Fragment {
<%= attrs %>
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we remove the space here because having it indented results in the first attr being indented too far?

Suggested change
<%= attrs %>
<%= attrs %>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@patocallaghan doing some tests with the generator, I've found that the result with attributes isn't valid. Look what happens when I type ember g fragment foo bar:string:

import { attr } from '@ember-data/model';
import Fragment from 'ember-data-model-fragments/fragment';

export default class Foo extends Fragment {
  bar: attr('string')
}

So I'm going to fix that too.

package.json Outdated
@@ -68,5 +68,8 @@
},
"ember-addon": {
"configPath": "tests/dummy/config"
},
Copy link
Contributor

Choose a reason for hiding this comment

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

@Gorzas if you pull the latest changes from master you should be able to remove these changes now

@Gorzas Gorzas force-pushed the feature/379-update-blueprint branch from 49dd10d to 23326ff Compare November 11, 2020 10:36
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