@rcpooley/concord 0.2.0 → 0.3.0
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.
- package/README.md +11 -2
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -214,6 +214,11 @@ npm ci --omit=dev --ignore-scripts --no-audit --no-fund
|
|
|
214
214
|
|
|
215
215
|
A config with no `dependencies` (only this package's types) installs nothing.
|
|
216
216
|
|
|
217
|
+
[`@rcpooley/concord-kit`](https://www.npmjs.com/package/@rcpooley/concord-kit)
|
|
218
|
+
is an opinionated library of this kind, from the same repo: apps as one file
|
|
219
|
+
each, machines that derive their base layers, a generated nginx edge, and
|
|
220
|
+
`assemble()` to put every module in order.
|
|
221
|
+
|
|
217
222
|
## How the config crosses the boundary
|
|
218
223
|
|
|
219
224
|
The config repo exports **plain data**, not class instances:
|
|
@@ -320,11 +325,15 @@ Releases are manual. `main` can run ahead of the published version, and a
|
|
|
320
325
|
running daemon only reports itself out of date once a newer version is
|
|
321
326
|
published.
|
|
322
327
|
|
|
328
|
+
This repo holds two packages released in lockstep: `@rcpooley/concord` (the
|
|
329
|
+
root) and `@rcpooley/concord-kit` (`kit/`). `npm version` bumps both.
|
|
330
|
+
|
|
323
331
|
```bash
|
|
324
332
|
git checkout main && git pull
|
|
325
|
-
npm version patch # or minor / major;
|
|
333
|
+
npm version patch # or minor / major; bumps both packages, commits, tags vX.Y.Z
|
|
326
334
|
git push --follow-tags
|
|
327
|
-
npm publish # runs the tests first
|
|
335
|
+
npm publish # @rcpooley/concord (runs the tests first)
|
|
336
|
+
npm publish ./kit # @rcpooley/concord-kit
|
|
328
337
|
```
|
|
329
338
|
|
|
330
339
|
Bump the **major** version whenever `SCHEMA_VERSION` changes: configs written
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rcpooley/concord",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Declarative config reconciler: edit a typed config repo, push it, and your hosts converge. Also exports the schema library config repos import.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://www.npmjs.com/package/@rcpooley/concord",
|
|
@@ -34,10 +34,11 @@
|
|
|
34
34
|
],
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "tsc -p tsconfig.json",
|
|
37
|
-
"test": "npm run build && node --test 'test/*.test.mjs'",
|
|
37
|
+
"test": "npm run build && npm --prefix kit run build && node --test 'test/*.test.mjs' 'kit/test/*.test.mjs'",
|
|
38
38
|
"prepare": "npm run build",
|
|
39
39
|
"concord": "node dist/cli/main.js",
|
|
40
|
-
"prepublishOnly": "npm test"
|
|
40
|
+
"prepublishOnly": "npm test",
|
|
41
|
+
"version": "node bin/sync-kit-version.mjs && git add kit/package.json"
|
|
41
42
|
},
|
|
42
43
|
"dependencies": {
|
|
43
44
|
"age-encryption": "^0.3.0",
|