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