From 62954bffb9e760629b02752b713511497663807e Mon Sep 17 00:00:00 2001 From: Matthew Amato Date: Tue, 6 Nov 2018 12:38:49 -0500 Subject: [PATCH] Proper gulp4 usage --- gulpfile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 78a0389..6d3a06a 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -42,7 +42,7 @@ function test(done) { } function testWatch() { - gulp.watch(specFiles).on('change', function () { + return gulp.watch(specFiles).on('change', function () { // We can't simply depend on the test task because Jasmine // does not like being run multiple times in the same process. try { @@ -55,7 +55,7 @@ function testWatch() { }); } -function coverage() { +async function coverage() { fsExtra.removeSync('coverage/server'); child_process.execSync('nyc' + ' --all' + @@ -66,7 +66,7 @@ function coverage() { ' JASMINE_CONFIG_PATH=specs/jasmine.json', { stdio: [process.stdin, process.stdout, process.stderr] }); - return open('coverage/lcov-report/index.html'); + open('coverage/lcov-report/index.html'); } function cloc() {