@untool/core
Advanced tools
Comparing version 2.0.0-beta.0 to 2.0.0-beta.1
@@ -6,2 +6,10 @@ # Change Log | ||
# [2.0.0-beta.1](https://github.com/untool/untool/compare/v2.0.0-beta.0...v2.0.0-beta.1) (2019-12-12) | ||
**Note:** Version bump only for package @untool/core | ||
# [2.0.0-beta.0](https://github.com/untool/untool/compare/v2.0.0-alpha.5...v2.0.0-beta.0) (2019-12-06) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@untool/core", | ||
"version": "2.0.0-beta.0", | ||
"version": "2.0.0-beta.1", | ||
"description": "untool core", | ||
@@ -36,3 +36,3 @@ "repository": { | ||
}, | ||
"gitHead": "e2d1b1672c7ed68814330e482b1c4b5bd467975a" | ||
"gitHead": "4dbabfd03e4eb712b01858e324b03d96c89cb500" | ||
} |
@@ -26,3 +26,3 @@ # `@untool/core` | ||
`@untool/core` comes with support for environment specific configuration. For example, [`@untool/express`](https://github.com/untool/untool/blob/master/packages/express/README.md) uses this placeholder based mechanism to bind the server port to the value of an environment variable. | ||
`@untool/core` comes with support for environment specific configuration. For example, [`@untool/express`](../express/README.md) uses this placeholder based mechanism to bind the server port to the value of an environment variable. | ||
@@ -41,2 +41,10 @@ ```json | ||
Furthermore those placeholders accept fallback values. So — regarding our example — if there's no `PORT`-variable given _at runtime_, `@untool/core` is able to fall back to a value provided via the configuration. | ||
```json | ||
{ | ||
"port": "[PORT=3000]" | ||
} | ||
``` | ||
There is another kind of placeholders. It can be used to reference other configuration values. Nested structures will be flattened before being used for placeholder substitution. | ||
@@ -187,4 +195,4 @@ | ||
This is a semi-private function that is mainly being used internally, for example by [`@untool/yargs`](https://github.com/untool/untool/blob/master/packages/yargs/README.md). It returns the core mixin container - this allows you to call all defined mixin methods. | ||
This is a semi-private function that is mainly being used internally, for example by [`@untool/yargs`](../yargs/README.md). It returns the core mixin container - this allows you to call all defined mixin methods. | ||
You will only ever have to call it if you want to use `@untool/core` programmatically. You can pass it an `configOverrides` object that will be merged into the main config object, and and options object mixins might use instead of CLI arguments. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46944
196