Tutorial by Examples

1. Install Node.js and NPM: Gulp requires Node.js and NPM, Node's package manager. Most installers include NPM with Node.js. Refer to the installation documentation or confirm it is already installed by running the following command in your terminal, npm -v // will return NPM version or error say...
You can run tasks in series, by passing a second parameter to gulp.task(). This parameters is an array of tasks to be executed and completed before your task will run: var gulp = require('gulp'); gulp.task('one', function() { // compile sass css }); gulp.task('two', function() { // ...
var gulp = require('gulp'); // include plug-ins var uglify = require('gulp-uglify'), concat = require('gulp-concat'); // Minified file gulp.task('packjsMin', function() { return gulp.src('node_modules/angular/*.js') .pipe(concat('script.js')) .pipe(uglify()) .p...
Flags gulp has very few flags to know about. All other flags are for tasks to use if needed. -v or --version will display the global and local gulp versions --require <module path> will require a module before running the gulpfile. This is useful for transpilers but also has other applica...

Page 1 of 1