Why I Left Gulp and Grunt for npm Scripts
Cory House
1.6K86

I do this too. One thing I see a lot of package.json files doing unnecessarily is putting the full path of binaries in the script, ie:

”test”: “./node_modules/mocha/bin/mocha test”

But npm actually puts binaries in the PATH for you when you use npm run, so you can just use:

”test”: “mocha test”

even if they’re not installed globally.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.