Sha256: 34b188e2e1272b652f9194259fc600bdf962288e309b70254eed84a4a27e6a9a
Contents?: true
Size: 710 Bytes
Versions: 8
Compression:
Stored size: 710 Bytes
Contents
var fs = require('fs'), concat = require('gulp-concat'), rename = require('gulp-rename'), umd = require('gulp-umd'), uglify = require('gulp-uglify'), gulp = require('gulp'); gulp.task('default', [ 'minify' ]); gulp.task('watch', function() { gulp.watch('./src/**/*', ['default']); }); gulp.task('minify', function() { gulp.src([ './src/*.js' ]) .pipe(concat('jquery.xdr.js')) .pipe(umd({ dependencies: function() { return [ { name: 'jquery' } ] }, exports: function() { return 'jQuery.xdr'; }, namespace: function() { return 'jQuery.xdr'; } })) .pipe(gulp.dest('./dist/')) .pipe(uglify()) .pipe(rename('jquery.xdr.min.js')) .pipe(gulp.dest('./dist/')); });
Version data entries
8 entries across 8 versions & 1 rubygems