Visit the main site

Category:

  • Task Runner

Progression

ID Status Learning Item Type Related Project Date Completed
1 Not Started Gulp.js Quick Start Official Docs
2 Not Started Automate Your Tasks Easily with Gulp.js Tutorial

Installations

First Time Setup

  • Install globally with npm install --global gulp-cli

New Project Setup

  1. Run npm init first to create your package.json file
  2. Add to your project as a dev dependency
    1. npm install --save-dev gulp
  3. Verify gulp versions with gulp --version

Initialize gulpfile

Create a file in the project root named gulpfile.js containing the following:

function defaultTask(cb) {
  // place code for your default task here
  cb();
}

exports.default = defaultTask

You can run the default task with gulp or a specific task(s) with the syntax gulp <task> <othertask>

Resources