-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No gulpfile found error #146
Comments
I wrote a command that fixes this issue. Currently the problem is the child process spawning doesn't support additional Gulp arguments. Adding these with a flag such as Example temporary shim. const n = nodemon({
ext: 'ts',
script: 'dist/src/index.js',
watch: ['src/**/*.ts'],
});
n.on('restart', () => {
cp.spawnSync('gulp', [MY_TASK_NAME, '--gulpfile', PATH_TO_GULP_FILE, '--cwd', '.'], {
stdio: [0, 1, 2],
});
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Whenever I use tasks as so I get the error
No gulpfile found
with gulp-nodemon when the server activates live reload. Looks like nodemon is looking for my gulpfile in the wrong place perhaps? I have my gulpfile in a nested directory and running viagulp --gulpfile dist/gulp/index.js --cwd .
.The text was updated successfully, but these errors were encountered: