-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathgulpfile.js
32 lines (25 loc) · 830 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
var gulp = require('gulp'),
$ = require('gulp-load-plugins')();
var paths = {
scripts: ['src/lib/d3/d3.js', 'src/lib/c3/c3.js', 'src/c3-chart.js']
};
gulp.task('jshint', function() {
return gulp.src(paths.scripts)
.pipe($.jshint())
.pipe($.jshint({reporter: 'jshint-stylish'}))
.pipe($.notify({message: 'Linting Completed'}));
});
gulp.task('concat', function() {
return gulp.src(paths.scripts)
.pipe($.concat('c3-chart.js'))
.pipe(gulp.dest('dist/'))
.pipe($.notify({message: 'Done Concating'}));
});
//task to tell travis to run karma start and run in phantom.js
gulp.task('test', $.shell.task([
'karma start karma.conf.js --browsers Firefox --single-run'
]));
gulp.task('watch', function(){
$.watch(paths.source, ['default']);
});
gulp.task('default', ['jshint', 'concat']);