diff --git a/gulpfile.js b/gulpfile.js index e5590bf069..99493db008 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -91,9 +91,12 @@ dockerAndBackTest.description = `Restarts database and runs the backend tests`; function backTest(done) { const nodemon = require('gulp-nodemon'); + let gulpBin = isWindows + ? 'node_modules/.bin/gulp.cmd' + : 'node_modules/.bin/gulp'; nodemon({ - script: 'node_modules/.bin/gulp', + exec: gulpBin, args: ['dockerAndBackTest'], watch: ['loopback', 'modules/*/back/**', 'back'], done: done