summaryrefslogtreecommitdiffstats
path: root/gulpfile.js
blob: 5035647d3ebf9599e243917b623546c6d7ef68ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
var gulp = require('gulp'),
    concat = require('gulp-concat'),
    notify = require('gulp-notify'),
	jshint = require('gulp-jshint');

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']);