Skip to content

Commit

Permalink
Merge pull request #36 from adambullmer/exit-karma-server
Browse files Browse the repository at this point in the history
Added SIGINT handling on karma server.
  • Loading branch information
adambullmer authored Jul 10, 2017
2 parents 9446cd2 + a55ce15 commit 94b7fc1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/angular-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,11 @@ AngularApp.prototype.runTests = function (appScriptsTree, addonsScriptsTree, ven

if (this.isServing) {
karmaConfig.browsers = [];

process.on('SIGINT', function () {
console.warn('User initiated exit...');
process.exit();
});
}

unitTestingResults = unitTest(mergeTrees([vendorScriptsTree, addonsScriptsTree, appScriptsTree, tests, lintingResults], {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-bro-app",
"version": "0.11.1",
"version": "0.11.2",
"description": "Angular broccoli plugin and compilation routine",
"main": "lib/angular-app.js",
"scripts": {
Expand Down

0 comments on commit 94b7fc1

Please sign in to comment.