Search code examples
gulp

What's the easiest way to automate the setup of Gulp and associated plugins?


I find myself manually installing Gulp and a series of plugins for each new project of mine. Is there a strightforward way to automate that, without having to learn a whole bunch of stuff?


Solution

  • You need to run npm init before you do the npm install gulp --save-dev statements. The npm init creates a file called package.json that will allow you to simply do a npm install when you need to start again somewhere else.