Skip to content

Commit 45a0eb9

Browse files
committed
Switch to gulp build (just for fun).
1 parent 3802885 commit 45a0eb9

File tree

3 files changed

+23
-49
lines changed

3 files changed

+23
-49
lines changed

Gruntfile.js

Lines changed: 0 additions & 46 deletions
This file was deleted.

gulpfile.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* buildfile for jquery.form plugin */
2+
var gulp = require('gulp'),
3+
concat = require('gulp-concat'),
4+
jshint = require('gulp-jshint'),
5+
uglify = require('gulp-uglify');
6+
7+
gulp.task('default', function() {
8+
gulp.src(['jquery.form.js'])
9+
.pipe(jshint())
10+
.pipe(jshint.reporter('default'))
11+
.pipe(uglify({ preserveComments: 'some' }))
12+
.pipe(concat('jquery.form.min.js'))
13+
.pipe(gulp.dest('.'));
14+
});
15+
16+
gulp.task('watch', function () {
17+
gulp.watch('jquery.form.js', ['default']);
18+
});

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@
3636
}
3737
},
3838
"devDependencies": {
39-
"grunt-contrib-jshint": "~0.8.0",
40-
"grunt-contrib-uglify": "~0.2.7",
41-
"grunt-contrib-watch": "~0.5.3"
39+
"gulp-util": "~2.2.14",
40+
"gulp": "~3.5.2",
41+
"gulp-uglify": "~0.2.1",
42+
"gulp-concat": "~2.1.7",
43+
"gulp-jshint": "~1.4.2"
4244
}
4345
}

0 commit comments

Comments
 (0)