Sha256: 2d1e59ec3b52c76c9907766e9c31e170e644234bd0f550dea9b1a1927b41d77a
Contents?: true
Size: 748 Bytes
Versions: 3
Compression:
Stored size: 748 Bytes
Contents
var gulp = require('gulp'), rename = require('gulp-rename'), uglify = require('gulp-uglify'), clone = require('gulp-clone'), wrap = require('gulp-wrap'), concat = require('gulp-concat'); module.exports = function () { var stream = gulp.src([ 'src/js/datepicker.js', 'src/js/body.js', 'src/js/navigation.js', 'src/js/timepicker.js' ]) .pipe(concat('datepicker.js')) .pipe(wrap(';(function (window, $, undefined) { <%=contents%> })(window, jQuery);')); stream.pipe(clone()) .pipe(gulp.dest('dist/js')); stream.pipe(clone()) .pipe(uglify()) .pipe(rename('datepicker.min.js')) .pipe(gulp.dest('dist/js')) };
Version data entries
3 entries across 3 versions & 1 rubygems