Improves karma config
This commit is contained in:
19
gulpfile.js
19
gulpfile.js
@@ -1,23 +1,14 @@
|
||||
var gulp = require('gulp');
|
||||
var plugins = require('gulp-load-plugins')({});
|
||||
var karma = require('karma');
|
||||
|
||||
gulp.task('test', function() {
|
||||
console.log(plugins);
|
||||
return gulp.src('test/karma.conf.js')
|
||||
.pipe(plugins.karma({
|
||||
configFile: 'test/karma.conf.js',
|
||||
action: 'run'
|
||||
}))
|
||||
.on('error', function(err) {
|
||||
console.log(err);
|
||||
this.emit('end');
|
||||
});
|
||||
gulp.task('test', function(done) {
|
||||
new karma.Server({
|
||||
configFile: __dirname + '/test/karma.conf.js'
|
||||
},done).start();
|
||||
});
|
||||
|
||||
|
||||
gulp.task('autotest', function() {
|
||||
return gulp.watch(['webapp/js/**/*.js','test/specs/*.js'], ['test']);
|
||||
});
|
||||
|
||||
|
||||
gulp.task('build', function() {
|
||||
|
||||
Reference in New Issue
Block a user