Skip to content
This repository has been archived by the owner on Jan 20, 2019. It is now read-only.

Generate app from template #11

Closed
wants to merge 1 commit into from

Conversation

bcardarella
Copy link
Contributor

No description provided.

@bcardarella bcardarella force-pushed the bc-generate-app-from-template branch from b38bb40 to c498d1f Compare April 26, 2015 06:56
@rwjblue
Copy link
Member

rwjblue commented Apr 26, 2015

I believe this is already implemented:

ember new --blueprint=my_blueprint

There is still a but of work if you want this to work from an internet hosted .tar.gz file though (I don't believe that is implemented yet), but it could also be relatively easily wrapped in a two line shell script or something...

@bcardarella
Copy link
Contributor Author

@rwjblue my understanding is that the current functionality requires you to maintain the entire blueprint set somewhere. I don't think this is a good approach. Instead there should be a simple set of rules for changes that should be made after the app is generated normally.

@rwjblue
Copy link
Member

rwjblue commented Apr 26, 2015

You would invoke the main app blueprint, then make the smallish modifications you need in your custom blueprint. The pattern of invoking other blueprints from within a blueprint is one that is done often in the codebase already (ember g resource generates routes, controllers, templates, etc).

@bcardarella
Copy link
Contributor Author

This works!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants