create-rindle 0.7.12 → 0.9.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/package.json
CHANGED
|
@@ -24,7 +24,7 @@ Rindle docs are served as raw markdown for LLMs: index at
|
|
|
24
24
|
- `pnpm migrate` — one-shot `rindle migrate apply` against the unified ingress derived
|
|
25
25
|
from `rindle.ncl` (the follower's `/migrate` is write-fenced). The dev loop already
|
|
26
26
|
applies on boot + on every `migrations/` change.
|
|
27
|
-
- `pnpm rindle:deploy` / `pnpm rindle:migrate:
|
|
27
|
+
- `pnpm rindle:deploy` / `pnpm rindle:migrate:cloud` — deploy the data tier to
|
|
28
28
|
Rindle Cloud (reads `rindle.ncl`, the same file `rindle up` runs locally; run
|
|
29
29
|
`rindle login` once first) and push `migrations/*.sql` to the deployed master.
|
|
30
30
|
|
|
@@ -29,9 +29,9 @@ Three tiers, same as the Rindle flagship examples:
|
|
|
29
29
|
|
|
30
30
|
The schema lives in `migrations/*.sql`. The `@rindle/client` table schema is **generated** from it
|
|
31
31
|
into `shared/schema.gen.ts` (re-exported by `shared/app-def.ts`, which layers on the relationships,
|
|
32
|
-
normalization, and mutators) — so the TypeScript can't drift from the DDL. To change the schema,
|
|
33
|
-
|
|
34
|
-
change.
|
|
32
|
+
normalization, and mutators) — so the TypeScript can't drift from the DDL. To change the schema,
|
|
33
|
+
add a new ordered `migrations/*.sql`; `pnpm dev` applies it and regenerates `shared/schema.gen.ts`
|
|
34
|
+
on every change.
|
|
35
35
|
|
|
36
36
|
## Run it
|
|
37
37
|
|
|
@@ -71,7 +71,7 @@ see the rejection path (the optimistic write snaps back + a toast).
|
|
|
71
71
|
```bash
|
|
72
72
|
rindle login # once — authenticate to Rindle Cloud
|
|
73
73
|
pnpm rindle:deploy # provision / re-attach the managed app (writes .rindle/cloud.json)
|
|
74
|
-
pnpm rindle:migrate:
|
|
74
|
+
pnpm rindle:migrate:cloud # push migrations/*.sql to the deployed write-master
|
|
75
75
|
```
|
|
76
76
|
|
|
77
77
|
`rindle deploy` reads `rindle.ncl` and records the binding in `.rindle/cloud.json` — commit it, so
|
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
-- @rindle/client TypeScript schema is GENERATED from the daemon's introspected result into
|
|
6
6
|
-- shared/schema.gen.ts — so the TS can't drift from the DDL.
|
|
7
7
|
--
|
|
8
|
-
-- To change the schema
|
|
9
|
-
-- regenerates shared/schema.gen.ts automatically; `pnpm migrate` does the
|
|
8
|
+
-- To change the schema after this file has been applied, add a NEW ordered file in migrations/.
|
|
9
|
+
-- `pnpm dev` applies it and regenerates shared/schema.gen.ts automatically; `pnpm migrate` does the
|
|
10
|
+
-- same for a one-shot run.
|
|
10
11
|
--
|
|
11
12
|
-- Column kinds map to the client schema like so: TEXT → string(), INTEGER/REAL → number(), a column
|
|
12
13
|
-- declared BOOLEAN/BOOL → boolean(), JSON → json(). Column ORDER matters — the IVM engine reads it
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"preview": "vite preview",
|
|
15
15
|
"migrate": "rindle migrate apply --dir migrations",
|
|
16
16
|
"rindle:deploy": "rindle deploy",
|
|
17
|
-
"rindle:migrate:
|
|
17
|
+
"rindle:migrate:cloud": "rindle migrate apply --cloud",
|
|
18
18
|
"typecheck": "tsr generate && tsc --noEmit"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
#
|
|
10
10
|
# rindle login # once — authenticate to Rindle Cloud
|
|
11
11
|
# rindle deploy # provision / re-attach the managed app (writes .rindle/cloud.json)
|
|
12
|
-
# rindle migrate apply --
|
|
12
|
+
# rindle migrate apply --cloud # push migrations/*.sql to the deployed write-master
|
|
13
13
|
#
|
|
14
14
|
# `app` becomes the cloud display name and groups every component under one app in `rindle ps`.
|
|
15
15
|
# `followers = 1` maps to the cloud `replicated` rung (a separate write-master + one follower,
|