My two cents about the Webpack vs Gulp vs Grunt vs npm scripts discussion. premyscript, myscript, postmyscript). 5 66. I’ve been using Gulp for its conciseness and easy task writing, but have later found out I need neither Gulp nor Grunt at all. npm install --save-dev gulp. touch Gulpfile.js npm install -g gulp npm install --save-dev gulp. While the scripts are downloading, no content can be changed on the page. Npm scripts are defined in your package.json and allow you to run CLI commands using the npm run