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 Env component #11

Merged
merged 35 commits into from
May 6, 2024
Merged

Add Env component #11

merged 35 commits into from
May 6, 2024

Conversation

aedart
Copy link
Owner

@aedart aedart commented May 6, 2024

PR adds an Env component that is able to read "environment variables" that are defined for the application's runtime.

By itself, the component is NOT able to define / set real environment variables, not read node's process.env. It relies on module bundlers to inject environment variables.

Additionally, this component is a prerequisite for the upcoming core App component.

Details

Details are available in the docs and in the CHANGELOG.md

This will be needed for tests.
IDE now stops complaining about it.
By copying given record and using a read-only repository adaptor, the environment variables should be fairly safe. They can still be cleared, which is useful for testing.
Also added a test of values parsed from the root .env file.
@aedart aedart added the enhancement New feature or request label May 6, 2024
@aedart aedart self-assigned this May 6, 2024
@aedart aedart merged commit ee4ed3b into add-core May 6, 2024
2 checks passed
@aedart aedart deleted the add-env branch May 6, 2024 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant