gulpfile para windows

This commit is contained in:
Javi Gallego 2019-01-28 12:06:52 +01:00
parent d94090f2b0
commit 086b773423
1 changed files with 2 additions and 2 deletions

View File

@ -40,10 +40,10 @@ backOnly.description = `Starts backend service`;
function backWatch(done) {
const nodemon = require('gulp-nodemon');
let sleepBin = isWindows ? 'timeout' : 'sleep';
let sleepBin = isWindows ? '' : 'sleep 1 &&';
nodemon({
exec: `${sleepBin} 1 && node --inspect ./node_modules/gulp/bin/gulp.js`,
exec: `${sleepBin} node --inspect ./node_modules/gulp/bin/gulp.js`,
args: ['backOnly'],
watch: backSources,
done: done