-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
.gulp.json not working well with gulpfile.ts #181
Comments
There is a different behavior between Maybe you can work that by the following way:
|
So it is not possible currently to have configs in |
@bjg2 Sorry, I've mistaken. This problem is not about cwd but about autoloading a gulpfile in The cause is the lacking of preparing loader for a gulpfile in I'll try to fix this issue this weekend. |
OK. I'll address that after this issue. |
A fix for this has been published in gulp-cli 2.1.0! |
It works! Thanks! |
gulp version 4.0.0
gulp CLI version 2.0.1
Please take a look at gulp-typescript-fail repo, there is a small repro.
gulp test
is not working andgulp test --gulpfile other_folder/gulpfile.ts
is working, even though the same gulpfile is defined in.gulp.json
. Also, if I executegulp test --gulpfile other_folder/gulpfile.ts
silent flag in.gulp.json
is completely ignored, while it is working as expected if provided via CLI.Even if I move
gulpfile.ts
is in the root and I change.gulp.json
to point atgulpfile.ts
, silent flag in the.gulp.json
is working for default messages but is ignored for ts one and[22:39:59] Requiring external module ts-node/register
is written. The same is not written if it is provided via CLI asgulp test --silent
.So the
.gulp.json
is not working for me, am I doing something wrong? How can we fix this?The text was updated successfully, but these errors were encountered: