First, install Gulp globally if you don’t already have it on your machine
npm install -g gulp
Use npm install
to add Gulp and other plugins that you need to the dev dependencies of your project in package.json
npm install --save-dev gulp gulp-concat gulp-plumber gulp-babel
Add gulpfile.js
at the root level of your project and add references to the node modules you installed
var gulp = require('gulp');
var concat = require('concat');
var plumber = require('plumber');
var babel = require('babel');
And now you’re ready to start writing Gulp tasks!
gulp-concat
- Concatenates filesgulp-sourcemaps
- Maps concatenated / minified files back to original sourcesgulp-plumber
- Prevent pipe breaking caused by errors from Gulp pluginsgulp-babel
- Transpile ES6 to ES5gulp-connect
- Run a webserver with live reloadinggulp-order
- Order a stream of filesMeganote-server: Source