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

Add 'helper' blueprint #240

Merged
merged 2 commits into from
Oct 26, 2015
Merged

Conversation

knownasilya
Copy link
Contributor

This PR also adds a way to replace arbitrary properties in the blueprint
content when calling buildProperties in the emberCLI service.

Closes #191

Thanks @SaladFork for your Services PR, which I used to bounce off of.

This PR also adds a way to replace arbitrary properties in the blueprint
content when calling `buildProperties` in the emberCLI service.

return {
filePath: blueprint.filePath,
content: blueprints[blueprint.blueprint].replace(/<\%\=(.*)\%\>/gi,'')
content: content.replace(/<\%\=(.*)\%\>/gi,'')
};
}
},
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this method should get a unit test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch

@knownasilya
Copy link
Contributor Author

@Gaurav0 I added the unit test. Let me know if you need anything else.


fileProperties = this.get('emberCli').buildProperties(type, {
camelizedModuleName: name
});
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I could see the addFile method being more like this in the future.

@Gaurav0
Copy link
Contributor

Gaurav0 commented Oct 26, 2015

See Travis CI Build. It thinks you are missing a semicolon.

@Gaurav0
Copy link
Contributor

Gaurav0 commented Oct 26, 2015

👍

Gaurav0 added a commit that referenced this pull request Oct 26, 2015
@Gaurav0 Gaurav0 merged commit 72fec2d into ember-cli:master Oct 26, 2015
@knownasilya knownasilya deleted the helper-blueprint branch October 26, 2015 19:40
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