News for hackers. Stuff that matters.
Re:The Final ES2015 (ES6) Draft by ajacksified on Wednesday June 17, 2015 @11:01AM (#9732192)
So, one more step than normal if you want to use npm dependencies in the browser, which is what you described.

If you're just playing with code, here's a simpler workflow:

* npm install babel

* write file.js

* run `babel-node file.js`

Similar to your example, the only extra step here is installing babel. If it's excruciating, install it globally and save yourself forever.

Re:The Final ES2015 (ES6) Draft by untog on Wednesday June 17, 2015 @01:10PM (#9733492)
Even better, just npm install -g babel once on any machine you use. Then it's ready for any and every .js file.
Re:The Final ES2015 (ES6) Draft by cholantesh on Wednesday June 17, 2015 @03:19PM (#9734566)
Ours is a .NET shop and we don't have plans to update to VS2015 in the near future. Does this workflow suggest that, in order to take advantage of Babel, we will have to install npm on all our dev machines and servers?
Re:The Final ES2015 (ES6) Draft by Touche on Wednesday June 17, 2015 @04:56PM (#9735247)
dev machines yes.
Re:The Final ES2015 (ES6) Draft by Touche on Wednesday June 17, 2015 @04:50PM (#9735200)
Well I have to run it every time I edit a file, maybe you missed the second half of my steps, so I still need a watch mode thingy which means probably a build script like virtually everyone using Babel is doing.

Regardless, vi index.html is much simpler.