Skip to content

Commit

Permalink
feat(cli-bundler): add shutdownAppServer method to CLI-Bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
shahabganji authored and 3cp committed Sep 3, 2019
1 parent 97672d9 commit b832ed1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions skeleton/cli-bundler/aurelia_project/tasks/run.ext
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,17 @@ function reload() {
browserSync.reload();
}

let run = gulp.series(
const run = gulp.series(
serve,
done => { watch(reload); done(); }
);

export default run;
const shutdownAppServer = (code) =>{
return new Promise(resolve => {
bs.exit();
process.exit(code || 0);
resolve();
});
};

export { run as default , shutdownAppServer };

0 comments on commit b832ed1

Please sign in to comment.