Installing Gulp

Gulp can be installed based on npm using the following command:

npm install --global gulp-cli

Once the Gulp installation is complete, a gulpfile.js configuration file should be generated in the project's Important Files folder in NetBeans IDE with its syntax looking like the following:

var gulp = require('gulp');gulp.task('default', function() {  // place code for your default task here});

Gulp can be executed as part of the command line using the gulp command, or made part of the NetBeans IDE commands as follows:

  1. The Gulp executable can be configured in NetBeans IDE by selecting Tools | Options and choosing the HTML/JS and Gulp options:
  1. The following is the project structure once gulpfile.js is added:
  1. Gulp tasks (clean, ...

Get Oracle JET for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.