Re:Huge no. of files for Angular 2
by Klathmon on Tuesday August 02, 2016 @09:03AM
(#12209601)
I agree. Also there are multiple ways that you can install these things.
The "recommended" way is to install babel for each project independently. Space is cheap, internet speeds are fast for many, and avoiding version issues outweighs the savings.
But you can install globally, so you'd install babel once and can use it in all projects that way.
Then throw in the possibility of different package managers and you get a crazy amount of freedom and choice. People get overwhelmed with "javascript fatigue" and I just don't get it. You don't need to do everything, but having the option to is amazing.
Re:Huge no. of files for Angular 2
by pfooti on Wednesday August 03, 2016 @01:04AM
(#12215720)
I believe NPM also caches your file locally. So the second install of babel would 304 from GitHub and get pulled from your local cache, saving time and bandwidth.
The "recommended" way is to install babel for each project independently. Space is cheap, internet speeds are fast for many, and avoiding version issues outweighs the savings.
But you can install globally, so you'd install babel once and can use it in all projects that way.
Then throw in the possibility of different package managers and you get a crazy amount of freedom and choice. People get overwhelmed with "javascript fatigue" and I just don't get it. You don't need to do everything, but having the option to is amazing.