Using npm run to launch local scripts
npm run allows you to configure scripts inside of your
package.json file which can access locally installed node packages. If you're comfortable with this technique, you can also grunt, gulp, or other build tools by customizing your scripts and saving them inside of your
package.json file. With this approach, when a developer starts a new project with your
package.json, they can simply run
npm install then
npm run yourscript without having to install any node packages globally.