@dxos/config 2.32.1-dev.77d63563 → 2.32.1-dev.b05915c7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1) hide show
  1. package/package.json +6 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/config",
3
- "version": "2.32.1-dev.77d63563",
3
+ "version": "2.32.1-dev.b05915c7",
4
4
  "description": "Config utilities",
5
5
  "license": "MIT",
6
6
  "author": "DXOS.org",
@@ -12,10 +12,10 @@
12
12
  "webpack-plugin.js"
13
13
  ],
14
14
  "dependencies": {
15
- "@dxos/codec-protobuf": "2.32.1-dev.77d63563",
16
- "@dxos/debug": "2.32.1-dev.77d63563",
17
- "@dxos/protocols": "2.32.1-dev.77d63563",
18
- "@dxos/util": "2.32.1-dev.77d63563",
15
+ "@dxos/codec-protobuf": "2.32.1-dev.b05915c7",
16
+ "@dxos/debug": "2.32.1-dev.b05915c7",
17
+ "@dxos/protocols": "2.32.1-dev.b05915c7",
18
+ "@dxos/util": "2.32.1-dev.b05915c7",
19
19
  "boolean": "^3.0.1",
20
20
  "debug": "^4.3.3",
21
21
  "js-yaml": "^4.1.0",
@@ -51,6 +51,5 @@
51
51
  "build:test": "toolchain build:test",
52
52
  "lint": "toolchain lint",
53
53
  "test": "toolchain test"
54
- },
55
- "readme": "\n# @dxos/config\n> DXOS config\n\nLoad configuration using a simple config folder structure.\n\n\n## Install\n\n```\n$ npm install @dxos/config\n```\n\n## Usage\n\nWe have a config folder with yml files:\n\n```\nconfig/\n├── config.yml\n├── defaults.yml\n└── envs-map.yml\n\n```\n\nEach file is mapped to its owns type :\n\n```\nDynamics() -> config.yml\nEnvs() -> envs-map.yml\nDefaults() -> defaults.yml\n```\n\nThe `Dynamics()` config.yml file is *special*, it will be loaded if the `dynamic` property is set to `false`.\nIf `dynamic` is set to `true` each app will try to load from an endpoint (using `{publicUrl}/config/config.json`),\n`wire app serve` adds config endpoints for each app serving the global config file (`~/.wire/remote.yml`).\n\nAlso the `envs-map.yml` is *special*. It provides a map between `process.env` vars and the config paths:\n\n```\nPUBLIC_URL:\n path: app.publicUrl\nNODE_ENV:\n path: debug.mode\nDEBUG:\n path: debug.logging\n\n```\n\n> For web a project with webpack is required.\n\n- Add the `ConfigPlugin` to your webpack plugins (web-only):\n\n```js\nconst { ConfigPlugin } = require('@dxos/config/ConfigPlugin');\n\n//...\n\nplugins: [\n new ConfigPlugin({\n // PATH TO CONFIG FOLDER\n path: path.resolve(__dirname, 'config'),\n dynamic: process.env.CONFIG_DYNAMIC\n }),\n]\n\n```\n\n- Load your configs:\n\n```js\nconst { Config, LocalStorage, Dynamics, Envs, Defaults } from '@dxos/config`;\n\nexport const config = async () => new Config(\n LocalStorage(),\n await Dynamics(),\n Envs(),\n Defaults()\n)\n\n```\n\n> Note that config is a function and it should be *awaited*!!!\n\n## API\n\n...\n\n## Contributing\n\nPRs accepted.\n\n## License\n\nGPL-3.0 © dxos\n"
54
+ }
56
55
  }