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

Add --out-dir flag to grow stage and grow deploy #1085

Open
jeremydw opened this issue May 18, 2020 · 0 comments
Open

Add --out-dir flag to grow stage and grow deploy #1085

jeremydw opened this issue May 18, 2020 · 0 comments
Assignees

Comments

@jeremydw
Copy link
Member

jeremydw commented May 18, 2020

We have a use case where we want to run JavaScript tests against the grow build or grow deploy fileset (after the commands are run).

In order to generate a local fileset for the JavaScript tests, we need to run a separate grow build and then use a grow deploy with the --work-dir flag.

It would be nice to avoid having to add that extra step by adding a --out-dir flag to grow build and grow deploy that will write the fileset to a specific path (and leave the files there, rather than deleting them) after the deployment is finished.

Then further work can be done against that fileset external to the stage and deploy commands.

Example:

# Stages files, and also writes them to `foo`
grow stage --out-dir=foo

# Do other stuff, e.g. run a JS unit test against the `foo` files.
npm run test
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