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

Quick/support jsonc ext #1

Merged
merged 2 commits into from
Apr 23, 2021

Conversation

wesleyboar
Copy link
Contributor

@wesleyboar wesleyboar commented Apr 21, 2021

Goal

Support .jsonc extension. References:

Changes

  • New: Update README.md to suggest support.
  • New: Implement support.
  • New: Add tests for support.

Background

After reading Using Comments in JSON with Node.js and JavaScript Examples, I chose to use JSON with comments, but with the .jsonc extension (supported by Visual Studio Code). The .jsonc extension would let others—who are unaware of the availability of jsonc-require in a codebase—know that the file is not a regular JSON file (and hopefully lead them to see how it is imported elsewhere in the codebase).

wesleyboar added a commit to TACC/Core-CMS that referenced this pull request Apr 21, 2021
The support required `tacc-wbomar/jsonc-require` repo.
But Jenkins has credential failure if downloading from Git.
Alt: My PR to aMarCruz/jsonc-require is approved and merged.
Then the `.jsonc` support will be built into `json-require`.
SEE: aMarCruz/jsonc-require#1
wesleyboar added a commit to TACC/Core-CMS that referenced this pull request Apr 21, 2021
The support required `tacc-wbomar/jsonc-require` repo.
But Jenkins has credential failure if downloading from Git.
Alt: My PR to aMarCruz/jsonc-require is approved and merged.
Then the `.jsonc` support will be built into `json-require`.
SEE: aMarCruz/jsonc-require#1
@aMarCruz
Copy link
Owner

@tacc-wbomar , simple but excellent contribution 👍
Thanks.

@aMarCruz aMarCruz merged commit b20f4cd into aMarCruz:master Apr 23, 2021
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.

2 participants