1.0.4 • Published 2 years ago

@prescrire/cfg v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Configuration files

  1. package.json
  2. development.env
  3. production.env
  4. .cfg.json

Secrets

Put to your .gitignore and (in some cases) .gockerignore following lines:

.cfg.json
.secrets/

Configuration merge priority

The cfg reads its configuration in multiple places and merges them into one in accordance to a priority below:

  1. .cfg.json file in project root (should be added to .gitignore)
  2. cfg property in package.json
  3. package.json for props: name