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

feat(config-cli): new command tool to bundle config json from a config path #2252

Merged
merged 7 commits into from
Jun 15, 2022

Conversation

Wentao-Kuang
Copy link
Contributor

No description provided.

@Wentao-Kuang Wentao-Kuang requested a review from a team as a code owner June 15, 2022 01:57
Bundle config files into config bundle json from a given config path.

```bash
./bin/bmc.js screenshot --config config/ --bundle config/config.json
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bundle ?

bundling into the output directory could be interesting, maybe make the recommendation just --output config.json ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

blacha
blacha previously approved these changes Jun 15, 2022
@blacha blacha changed the title feat(config-cli): new command tool to bundle config json from a give config path feat(config-cli): new command tool to bundle config json from a config path Jun 15, 2022
host = `http://localhost:${port}`;
BasemapsServer = await startServer(host, port, config, logger);
// Force a default url base so WMTS requests know their relative url
process.env[Env.PublicUrlBase] = host;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this is set we need to respect it we should not be overwriting env vars.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can set this back after the script running in finally.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Proab safer to just use it if it exists the same as basemaps-server cli

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, updated.

@kodiakhq kodiakhq bot merged commit 868636c into master Jun 15, 2022
@kodiakhq kodiakhq bot deleted the feat/bundle-json branch June 15, 2022 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants