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): allow out file to be configurable #36

Merged
merged 1 commit into from
May 13, 2024

Conversation

rwaskiewicz
Copy link
Collaborator

allow end users to decide where the generated json file is output. to do so, we introduce a new optional config object to the project, which is accepted at compile time (via a stencil config file). the config file has a single optional property, which allows users to specify the location the generated file should end up.

the output location is slightly opinionated:

  • if not set, default the name to web-types.json
  • if there is no json extension, add web-types.json to the provided path
  • paths should be reconcilable against the stencil root dir

allow end users to decide where the generated json file is output. to do
so, we introduce a new optional config object to the project, which is
accepted at compile time (via a stencil config file). the config file
has a single optional property, which allows users to specify the
location the generated file should end up.

the output location is slightly opinionated:
- if not set, default the name to `web-types.json`
- if there is no json extension, add `web-types.json` to the provided
  path
- paths should be reconcilable against the stencil root dir
@rwaskiewicz rwaskiewicz added this pull request to the merge queue May 13, 2024
Merged via the queue into main with commit b555dc2 May 13, 2024
2 checks passed
@rwaskiewicz rwaskiewicz deleted the rw/config-out-dir branch May 14, 2024 00:46
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

Successfully merging this pull request may close these issues.

1 participant