Skip to content
Permalink
Browse files

feat(cli-bundler): add `shutdownAppServer` method to CLI-Bundler

  • Loading branch information...
shahabganji authored and 3cp committed Aug 16, 2019
1 parent 97672d9 commit b832ed1d9991060d60e49b1d4977c44ba67f3fec
Showing with 10 additions and 2 deletions.
  1. +10 −2 skeleton/cli-bundler/aurelia_project/tasks/run.ext
@@ -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.
You can’t perform that action at this time.