Files
satbd-explorer/gulpfile.js
2016-02-12 12:24:31 +01:00

28 lines
617 B
JavaScript

var gulp = require('gulp');
var plugins = require('gulp-load-plugins')({});
var karma = require('karma');
gulp.task('test', function(done) {
new karma.Server({
configFile: __dirname + '/test/karma.conf.js'
},done).start();
});
gulp.task('build', function() {
return gulp.src('./webapp/html/index.html')
.pipe(plugins.inject(
gulp.src(['./webapp/js/**/*.js']).pipe(plugins.angularFilesort()),
{
ignorePath: '/webapp'
}
))
.pipe(gulp.dest('./webapp'));
});
gulp.task('autobuild', function() {
return gulp.watch(['webapp/js/**/*.js','webapp/html/index.html'], ['build']);
});