-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Unable to split gulpfile #2255
Unable to split gulpfile #2255
Comments
Don't run gulp with npx. That's not a tested or supported pattern. |
Changed to a global installation ( |
Why are you installing |
@ZebraFlesh besides those issues, I did actually find a typo in the documentation. It's supposed to say that the directory is named |
Global installation: I had missed that part of the upgrade instructions, thank you for pointing it out. And thanks for the doc change, works great now! |
No problem! Thanks for bringing it to our attention. (Btw, the reason we don't recommend npx is because the "correct" CLI bin is shipped with |
What were you expecting to happen?
Following the directions for splitting a gulpfile, I created a folder in the root of my repo called "gulpfile". I then moved my currently working ./gulpfile.js to ./gulpfile/index.js. Running gulp (via
npx gulp
), I would expect gulp to find the index.js file and execute the default task.What actually happened?
Gulp reports
No gulpfile found
What version of gulp are you using?
4.0.0
What versions of npm and node are you using?
npm: 6.4.1
node: 10.12.0
I'm not sure if this is a bug in the documentation or a bug with gulp-cli, so I figured I would start here.
The text was updated successfully, but these errors were encountered: