The following is a quick and dirty ruby script that was written to show some areas that I think are worth
exploring. There is a decent time cost endured when typing ember new my-rad-app
. This can be optimized a
great deal. Furthermore the internet is typically required when generating a new ember app. This little hack attempts
to reduce and remove those two problems.
The problems are solved by generating an ember app once by typing ember new template-app
and then using that template-app
as a template for all newly generated apps by
- copying the original to the new app directory
- replacing all original app name references with the new app name
Note This is not meant to be me complaining about, nor badgering what is available today in ember-cli
.
There has been a tremendous amount of effort put into ember-cli
and I am forever grateful of that fact. This
little snippet is more to collect thoughts and start down the path of fixing the problem.
ember new my-thing
@ 60+ seconds
https://dr.tt/view?d=5ono6hw226vqcas%2F2016-03-06%20at%209.32%20PM.png%2F
fast-ember template my-thing
@ 3 seconds
http://bit.ly/24KGtF5
I've seen a similar approach taken with the
laravel
scaffolding command. But the thing is that the dependencies can get quite stagnant and may require further work when upgrading from version to version.Let's say we created a project in
~/.ember-cli-template
in anafter-install
hook for NPM install, well when would that get cleaned up?There's arguments to be made about improving NPM caching or possibly even wrapping some of the deps as a
provides
usingpackage.json
?