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 totally agree there, I guess I should clarify. I am not suggesting that this be on by default. What if say there was a public interface like this:
ember new my-rad-app --cache
Where the first time it was ran and from then on out you get the speed benefit. I guess another thing to think about there is a way of refreshing the "cache"