blob: 436371e31994abe4bc1ff93c0e00f809b5a9d2d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
var gulp = require('gulp'),
concat = require('gulp-concat'),
jshint = require('gulp-jshint');
gulp.task('js', function() {
return gulp.src([
'js/main.js',
'js/components/**/*.js',
'js/models/**/*.js',
'js/services/**/*.js',
'js/filters/**/*.js'
])
.pipe(jshint('.jshintrc'))
.pipe(jshint.reporter('default'))
.pipe(concat('script.js'))
.pipe(gulp.dest('js/public'));
});
gulp.task('watch', function() {
gulp.watch('js/**/*.js', ['js']);
});
gulp.task('default', ['js']);
|