summaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/gulpfile.js b/gulpfile.js
index cc9e994a..5035647d 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -1,13 +1,22 @@
var gulp = require('gulp'),
concat = require('gulp-concat'),
- notify = require('gulp-notify');
+ notify = require('gulp-notify'),
+ jshint = require('gulp-jshint');
-gulp.task('scripts', function() {
+gulp.task('js', function() {
return gulp.src([
'js/main.js',
'js/components/**/*.js'
])
+ .pipe(jshint('.jshintrc'))
+ .pipe(jshint.reporter('default'))
.pipe(concat('script.js'))
.pipe(gulp.dest('js/public'))
.pipe(notify({message: 'Scripts task complete'}));
});
+
+gulp.task('watch', function() {
+ gulp.watch('js/**/*.js', ['js']);
+});
+
+gulp.task('default', ['js']);