summaryrefslogtreecommitdiffstats
path: root/gulpfile.js
blob: 852a627bf0e67f86fcccfae34fcb28063b3be18f (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', ['js'], function() {
	gulp.watch('js/**/*.js', ['js']);
});

gulp.task('default', ['js']);