News for hackers. Stuff that matters.
Re:Modern JavaScript for Ancient Web Developers by adamsea on Thursday March 23, 2017 @01:22PM (#13941841)
For projects with not-overly-complicated builds, I have had success writing each desired script as a shell script, but then calling said shell script with an npm script.

The shell scripts are nice for longevity, self-documenting, and if you have to call them with non-javascripty things.

Calling them with npm scripts is nice for consistency, readability for many devs, and some of the path-setting/node.js process.env-var stuff that you are able to do in an npm script.

There are no comments on this comment yet.