@rindle/cli 0.1.2 → 0.1.3

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 (2) hide show
  1. package/README.md +18 -1
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -23,7 +23,9 @@ Talk to a running daemon from JS with [`@rindle/daemon-client`](../daemon-client
23
23
  ```sh
24
24
  npm i -D @rindle/cli
25
25
  npx rindle init # scaffold daemon.json
26
- npx rindle up # start + supervise a local rindled; prints how to connect
26
+ npx rindle up --migrate --gen shared/schema.gen.ts --watch
27
+ # start + supervise rindled, apply migrations, regenerate the typed schema,
28
+ # and re-run apply/gen whenever migrations/ changes
27
29
  ```
28
30
 
29
31
  `rindle up` prints the address the daemon is reachable at (default `http://127.0.0.1:7600`) and how
@@ -55,6 +57,21 @@ your package scripts:
55
57
  Then `npm run rindle up`. (Or skip the script and use `npx rindle …` directly — the bin is on your
56
58
  `node_modules/.bin`.) The daemon is run by `rindle up`, not as its own command — see below.
57
59
 
60
+
61
+ ### One-command app loop
62
+
63
+ `rindle up` can now own the whole daemon-side development loop:
64
+
65
+ ```sh
66
+ npx rindle up --migrate --gen shared/schema.gen.ts --watch
67
+ ```
68
+
69
+ That starts and supervises the local `rindled`, waits until it is ready, applies pending
70
+ `migrations/*.sql`, regenerates the `@rindle/client` schema TypeScript, and then watches the
71
+ migrations directory. On each change it re-applies and re-generates; keep your app server/Vite
72
+ process in a separate terminal. Drop `--watch` for a one-shot apply/gen, or use only
73
+ `--migrate` / only `--gen <out>` if your workflow splits those steps.
74
+
58
75
  ## The daemon (`rindled`)
59
76
 
60
77
  `rindled` is **not** exposed as a CLI command here — this package is a dev convenience, and `rindle
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindle/cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -89,12 +89,12 @@
89
89
  "typescript": "^5.7.0"
90
90
  },
91
91
  "optionalDependencies": {
92
- "@rindle/cli-darwin-arm64": "0.1.2",
93
- "@rindle/cli-darwin-x64": "0.1.2",
94
- "@rindle/cli-linux-arm64-gnu": "0.1.2",
95
- "@rindle/cli-linux-arm64-musl": "0.1.2",
96
- "@rindle/cli-linux-x64-gnu": "0.1.2",
97
- "@rindle/cli-linux-x64-musl": "0.1.2",
98
- "@rindle/cli-win32-x64-msvc": "0.1.2"
92
+ "@rindle/cli-darwin-arm64": "0.1.3",
93
+ "@rindle/cli-darwin-x64": "0.1.3",
94
+ "@rindle/cli-linux-arm64-gnu": "0.1.3",
95
+ "@rindle/cli-linux-arm64-musl": "0.1.3",
96
+ "@rindle/cli-linux-x64-gnu": "0.1.3",
97
+ "@rindle/cli-linux-x64-musl": "0.1.3",
98
+ "@rindle/cli-win32-x64-msvc": "0.1.3"
99
99
  }
100
100
  }