gulpfile para windows
This commit is contained in:
parent
d94090f2b0
commit
086b773423
|
@ -40,10 +40,10 @@ backOnly.description = `Starts backend service`;
|
||||||
|
|
||||||
function backWatch(done) {
|
function backWatch(done) {
|
||||||
const nodemon = require('gulp-nodemon');
|
const nodemon = require('gulp-nodemon');
|
||||||
let sleepBin = isWindows ? 'timeout' : 'sleep';
|
let sleepBin = isWindows ? '' : 'sleep 1 &&';
|
||||||
|
|
||||||
nodemon({
|
nodemon({
|
||||||
exec: `${sleepBin} 1 && node --inspect ./node_modules/gulp/bin/gulp.js`,
|
exec: `${sleepBin} node --inspect ./node_modules/gulp/bin/gulp.js`,
|
||||||
args: ['backOnly'],
|
args: ['backOnly'],
|
||||||
watch: backSources,
|
watch: backSources,
|
||||||
done: done
|
done: done
|
||||||
|
|
Loading…
Reference in New Issue