-
-
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
Expose flags.cwd
as config option
#109
Comments
@phated I have a question about this flag. Cli options $ gulp --cwd aaa/bbb
[23:10:19] Working directory changed to /path/to/aaa/bbb
[23:10:19] Using gulpfile /path/to/aaa/bbb/gulpfile.js
... $ gulp --gulpfile aaa/bbb/gulpfile.js
[23:11:32] Working directory changed to /path/to/aaa/bbb
[23:11:32] Using gulpfile /path/to/aaa/bbb/gulpfile.js
... $ gulp --cwd aaa/bbb --gulpfile ccc/ddd/gulpfile.js
[23:35:57] Working directory changed to /path/to/aaa/bbb
[23:35:57] Using gulpfile /path/to/ccc/ddd/gulpfile.js
... And the current behavior with the config $ cat .gulp.json
{
"flags": {
"gulpfile": "aaa/bbb/gulpfile.js"
}
}
$ gulp
[23:13:33] Using gulpfile /path/to/aaa/bbb/gulpfile.js
... Should these configs |
@sttk I think you may have missed some more examples because the current behavior seems to match? Maybe I'm just missing it. |
@phated This behavior about cli options comes from |
I noticed that a few options I wanted to expose as config options needed to be resolved before liftoff (e.g. |
In the project we use
When comparing to the logs in the output, we see using CLI option I am wondering if this could be fixed soon? Thanks! |
@phated As @ericchenshine said above, current Should we give consistency to |
Parity would be great! This can now be solved with the Liftoff changes, correct? |
|
@sttk I'm fine with those changes. The current behavior seems like a bug so we could probably release it in the same version as the other upcoming changes. |
Due to how complex this issue has become, I'm going to move it to the 3.0 milestone because it might be breaking to some people's workflows. |
This has moved to post-v5, but will actually fall into v6 because I plan to change the way Liftoff works and that should make this significantly easier/less error prone. |
The
chdir
logic already comes later in the program so this one should be easy.The text was updated successfully, but these errors were encountered: