Gulp - Individual Question Format


What is gulp?

gulp is a toolkit that will help you automate painful or time-consuming tasks in your development workflow. For web development (if that's your thing) it can help you by doing CSS preprocessing, JS transpiling, minification, live reloading, and much more. Integrations are built into all major IDEs and people are loving gulp across PHP, .NET, Node.js, Java, and more. With over 1700 plugins (and plenty you can do without plugins), gulp lets you quit messing with build systems and get back to work.

How can we use Gulp?

npm install --global gulp
npm install --save-dev gulp
npm install jshint gulp-jshint gulp-sass gulp-concat gulp-uglify gulp-rename --save-dev 

// Create a gulpfile.js at the root of your project:
var gulp = require('gulp');

gulp.task('default', function() {
  // place code for your default task here

How can we run the default task?


How can we run individual tasks?

gulp <task> <othertask>
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License