Skip to content

Comment on Why I Left Gulp and Grunt for Npm Scripts

Comments

I am using npm scripts for everything too. Check out my article "tiny npm package": http://g14n.info/2015/12/tiny-npm-package/

Checkout my postversion hook!

By the way, even if JSON does not support comments, sometimes I add a "#TODO:fooscript" prop in the scripts, and add comments as well.

Another interesting trick is that a script can call other npm scripts.

Also another nice feature is that command in node_modules/.bin folder are added to PATH.

Yes, npm scripts rock!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.