Skip to content
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

Setting current working directory when executing command #32

Closed
mmc41 opened this issue Jan 19, 2017 · 1 comment
Closed

Setting current working directory when executing command #32

mmc41 opened this issue Jan 19, 2017 · 1 comment

Comments

@mmc41
Copy link

mmc41 commented Jan 19, 2017

I need to be able to execute "npm install" on a number of subfolders, for which I need to change current working dir to a specific folder when execution my command. Unfortunately, I can find no way to do this in gulp-exec ?

@robrich
Copy link
Owner

robrich commented Jan 19, 2017

The second argument passed to gulp-exec is the options passed directly to child-process.exec. (see https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback) You're looking for the cwd property there.

@robrich robrich closed this as completed Jan 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants