contacts/gulpfile.js

23 lines
521 B
JavaScript
Raw Normal View History

2015-10-27 17:52:09 +00:00
var gulp = require('gulp'),
concat = require('gulp-concat'),
notify = require('gulp-notify'),
jshint = require('gulp-jshint');
2015-10-27 17:52:09 +00:00
gulp.task('js', function() {
2015-10-27 17:52:09 +00:00
return gulp.src([
'js/main.js',
'js/components/**/*.js'
])
.pipe(jshint('.jshintrc'))
.pipe(jshint.reporter('default'))
2015-10-27 17:52:09 +00:00
.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']);