gulp 3.8.11

The streaming build system

Homepage: http://gulpjs.com

Platform: npm

Language: JavaScript

License: MIT

Repository: https://github.com/gulpjs/gulp

View on registry: https://www.npmjs.com/package/gulp/

Install: npm install gulp


gulp

The streaming build system

NPM version Downloads Support us Build Status Coveralls Status Gitter chat

Like what we do?

Support us via Gratipay

Documentation

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

Sample gulpfile.js

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 sourcemaps = require('gulp-sourcemaps');
var del = require('del');
var paths = {
 scripts: ['client/js/**/*.coffee', '!client/external/**/*.coffee'],
 images: 'client/img/**/*'
};
// Not all tasks need to use streams
// A gulpfile is just another node program and you can use all packages available on npm
gulp.task('clean', function(cb) {
 // You can use multiple globbing patterns as you would with `gulp.src`
 del(['build'], cb);
});
gulp.task('scripts', ['clean'], function() {
 // Minify and copy all JavaScript (except vendor scripts)
 // with sourcemaps all the way down
 return gulp.src(paths.scripts)
 .pipe(sourcemaps.init())
 .pipe(coffee())
 .pipe(uglify())
 .pipe(concat('all.min.js'))
 .pipe(sourcemaps.write())
 .pipe(gulp.dest('build/js'));
});
// Copy all static images
gulp.task('images', ['clean'], 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', ['watch', 'scripts', 'images']);

Incremental Builds

We recommend these plugins:

  • gulp-changed - only pass through changed files
  • gulp-cached - in-memory file cache, not for operation on sets of files
  • gulp-remember - pairs nicely with gulp-cached
  • gulp-newer - pass through newer source files only, supports many:1 source:dest

Want to contribute?

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

Bitdeli Badge

веселые картинки развлекательные гифки интресные факты смешные видео смешные истории из соцсетей

Dependencies

Development Dependencies


GitHub Repository

gulpjs/gulp gulpjs/gulp

The streaming build system

http://gulpjs.com

Language: JavaScript

Created: July 04, 2013 05:26

Last updated: March 24, 2015 02:12

Last pushed: March 23, 2015 05:54

Size: 3.7 MB

Stars: 12,485

Forks: 1,019

Watchers: 610

Open issues: 38

Top Contributors

contra Sindre Sorhus Rob Richardson Blaine Bublitz tomasz stryjewski William Lubelski Vsevolod Strukchinsky Tyler Kellen James Crowley Arvind Ravulavaru Jason Jarrett Steve Lacy Larry Davis Antonis Karamitros Jed Mao Michael Russell Hugh Kennedy Dmitry Mazuro Asaf Katz Pawel Kozlowski

Releases

  • 3.8.11 - February 09, 2015 20:42
  • 3.8.10 - November 04, 2014 00:12
  • 3.8.9 - October 22, 2014 06:56
  • 3.8.8 - September 07, 2014 20:18
  • 3.8.7 - August 02, 2014 04:57
  • 3.8.6 - July 09, 2014 22:06
  • 3.8.5 - June 27, 2014 06:53
  • 3.8.4 - June 27, 2014 06:38
  • 3.8.3 - June 26, 2014 21:17
  • 3.8.2 - June 24, 2014 20:52
See all 62 releases

Related Projects

gulp
The streaming build system
Bower - JavaScript - MIT - Published about 2 months ago - 12,485 stars
gulp-audit 1.0.0
Generates an audit trail for minified builds with build sha1s and git revision numbers
npm - JavaScript - BSD-3-Clause - Published 5 months ago
gulp-crystal 0.0.1
gulp tools for crystal build
npm - JavaScript - ISC - Published 11 months ago
gulp-nekyll 0.0.2
Jekyll-like gulp build system
npm - JavaScript - GPL-2.0+ - Updated 8 months ago
barnacle-mode 0.0.2
Build up an object with streams
npm - JavaScript - Apache-2.0 - Updated about 1 year ago
веселые картинки развлекательные гифки интресные факты смешные видео смешные истории из соцсетей