Fastest way of starting an ember project?

I am just getting started with ember and it is a bit refreshing. It is great to get started by typing ember init, ember s, ember g route and see the effects of your changes instantly.

The problem is that every time I have a new idea, or want to test a new ember concept, throwaway project, it takes forever to start a new project. It kills my momentum when I have to wait nearly 5 minutes from ember init to working with a new proof of concept.

My current workaround is to create a symlink to bower and NPM and run ember init without bower and NPM. This seems to work for the most part, but when I install an add-on such as ember-cli-nwjs, It still takes a fair bit of time. I’m not sure what is happening in the background or why NPM is running again even when I match the modules.

Does anyone else have this problem or have their own workarounds?

The state of javascript package management is awful.

Make sure you’re using npm 3, it should be faster. Or install a local npm cache like https://github.com/nolanlawson/local-npm

1 Like

I went through exactly the same thing and created a github project to clone from.

I wrote about it here: http://emberigniter.com/speeding-up-ember-cli-slow-project-creation/ , although it’s true that I should update that to the latest Embers.

Disable npm progress bar, it speeds up npm installs significantly. Run

npm set progress=false

According to this https://github.com/npm/npm/issues/11283 it speeds it by 41% (almost half the time).

1 Like