JSPM

  • Created
  • Published
  • Downloads 1546221
  • Score
    100M100P100Q178944F

The streaming build system

Package Exports

  • gulp
  • gulp/bin/gulp
  • gulp/bin/gulp.js
  • gulp/lib/completion
  • gulp/lib/taskTree
  • gulp/package.json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

gulp NPM version Build Status Coveralls Status Dependency Status

The streaming build system

Like what we do?

Support us via gittip

Documentation

For a Getting started guide, API docs, recipes, making a plugin, etc. see the documentation page!

Sample gulpfile

This file is just a quick sample to give you a taste of what gulp does.

var gulp = require('gulp');

var coffee = require('gulp-coffee');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var imagemin = require('gulp-imagemin');

var paths = {
  scripts: ['client/js/**/*.coffee', '!client/external/**/*.coffee'],
  images: 'client/img/**/*'
};

gulp.task('scripts', function() {
  // Minify and copy all JavaScript (except vendor scripts)
  return gulp.src(paths.scripts)
    .pipe(coffee())
    .pipe(uglify())
    .pipe(concat('all.min.js'))
    .pipe(gulp.dest('build/js'));
});

// Copy all static images
gulp.task('images', function() {
 return gulp.src(paths.images)
    // Pass in options to the task
    .pipe(imagemin({optimizationLevel: 5}))
    .pipe(gulp.dest('build/img'));
});

// Rerun the task when a file changes
gulp.task('watch', function() {
  gulp.watch(paths.scripts, ['scripts']);
  gulp.watch(paths.images, ['images']);
});

// The default task (called when you run `gulp` from cli)
gulp.task('default', ['scripts', 'images', 'watch']);

Incremental Builds

We recommend these plugins:

Want to contribute?

Anyone can help make this project better - check out the Contributing guide!

Bitdeli Badge