From 086b773423e9e746b5aeeca52e37f68183fc4129 Mon Sep 17 00:00:00 2001 From: jgallego Date: Mon, 28 Jan 2019 12:06:52 +0100 Subject: [PATCH] gulpfile para windows --- gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 44c0a8613..802eef283 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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