Skip to content

Commit 03d1c95

Browse files
committed
fix(gulp): process.exit on karma errors, remove wiredep import
1 parent 881d170 commit 03d1c95

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

templates/app/gulpfile.babel(gulp).js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import gulpLoadPlugins from 'gulp-load-plugins';
1111
import http from 'http';
1212
import open from 'open';
1313
import lazypipe from 'lazypipe';
14-
import {stream as wiredep} from 'wiredep';
1514
import nodemon from 'nodemon';
1615
import {Server as KarmaServer} from 'karma';
1716
import runSequence from 'run-sequence';
@@ -507,7 +506,10 @@ gulp.task('test:client', ['constant'], done => {
507506
new KarmaServer({
508507
configFile: `${__dirname}/${paths.karma}`,
509508
singleRun: true
510-
}, done).start();
509+
}, err => {
510+
done(err);
511+
process.exit(err);
512+
}).start();
511513
});
512514

513515
/********************

0 commit comments

Comments
 (0)