Gulp
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
- Run
npm init
first to create yourpackage.json
file - Add to your project as a dev dependency
npm install --save-dev gulp
- 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>