Sha256: d87a312f6735443307eaa34776d9e203d4d8155fec5cf48892c09dc697524427
Contents?: true
Size: 726 Bytes
Versions: 8
Compression:
Stored size: 726 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.request.js')) .pipe(umd({ dependencies: function() { return [ { name: 'jquery' } ] }, exports: function() { return 'jQuery.Request'; }, namespace: function() { return 'jQuery.Request'; } })) .pipe(gulp.dest('./dist/')) .pipe(uglify()) .pipe(rename('jquery.request.min.js')) .pipe(gulp.dest('./dist/')); });
Version data entries
8 entries across 8 versions & 1 rubygems