question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expose `flags.cwd` as config option

See original GitHub issue

The chdir logic already comes later in the program so this one should be easy.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
sttkcommented, Jun 10, 2017

@phated I have a question about this flag.

Cli options --cwd and --gulpfile have relation to each other as follows:

$ 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 flag.gulpfile is:

$ cat .gulp.json
{
  "flags": {
    "gulpfile": "aaa/bbb/gulpfile.js"
  }
}
$ gulp
[23:13:33] Using gulpfile /path/to/aaa/bbb/gulpfile.js
...

Should these configs flag.gulpfile and flag.cwd have relations like cli options?

0reactions
phatedcommented, Apr 20, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changes to --dir, --cwd, --script-mode, add `configSearchPath ...
Can accomplish via a new configSearchPath API option. ... Should configSearchPath be exposed as a CLI flag / env var? I say no....
Read more >
Advanced configuration - GitLab Documentation
To do this, you modify a file called config.toml , which uses the TOML format. GitLab Runner does not require a restart when...
Read more >
Configuration - Streamlit Docs
Streamlit provides four different ways to set configuration options. This list is in reverse order of precedence, i.e. command line flags take precedence ......
Read more >
Configuring Vite
vite.config.js export default { // config options } ... explicitly specify a config file to use with the --config CLI option (resolved relative...
Read more >
Options - Babel.js
Primary options; Config Loading options; Plugin and Preset configuration ... and pass capability-related flags for use by configs, presets and plugins.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found