@nbt-dev/nbt 0.1.0 → 0.1.2
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 +7 -6
- package/dist/nbt.js +195 -422
- package/package.json +8 -4
- package/stdlib/auth/schema.nbt +6 -3
- package/stdlib/dns/schema.nbt +1 -1
- package/stdlib/ingest/schema.nbt +1 -1
- package/stdlib/phone/schema.nbt +1 -1
- package/stdlib/registry/schema.nbt +1 -1
- package/stdlib/secrets/schema.nbt +16 -0
- package/stdlib/workflows/schema.nbt +27 -0
- package/vendor/linux-x64/cartridges/auth/schema.nbt +6 -3
- package/vendor/linux-x64/cartridges/dns/schema.nbt +1 -1
- package/vendor/linux-x64/cartridges/ingest/schema.nbt +1 -1
- package/vendor/linux-x64/cartridges/phone/schema.nbt +1 -1
- package/vendor/linux-x64/cartridges/registry/schema.nbt +1 -1
- package/vendor/linux-x64/cartridges/secrets/schema.nbt +16 -0
- package/vendor/linux-x64/cartridges/workflows/schema.nbt +27 -0
- package/vendor/linux-x64/console +0 -0
- package/vendor/linux-x64/esbuild +0 -0
- package/vendor/linux-x64/nbt +0 -0
- package/stdlib/design/migrations/20260501210107_initial/migration.nbt +0 -19
- package/stdlib/design/migrations/20260501210107_initial/schema_snapshot.nbt +0 -21
- package/stdlib/design/migrations/20260610130000_design_system/migration.nbt +0 -50
- package/stdlib/design/migrations/20260610130000_design_system/schema_snapshot.nbt +0 -80
- package/stdlib/design/schema.nbt +0 -140
- package/vendor/linux-x64/cartridges/design/migrations/20260501210107_initial/migration.nbt +0 -19
- package/vendor/linux-x64/cartridges/design/migrations/20260501210107_initial/schema_snapshot.nbt +0 -21
- package/vendor/linux-x64/cartridges/design/migrations/20260610130000_design_system/migration.nbt +0 -50
- package/vendor/linux-x64/cartridges/design/migrations/20260610130000_design_system/schema_snapshot.nbt +0 -80
- package/vendor/linux-x64/cartridges/design/schema.nbt +0 -140
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @nbt-dev/nbt
|
|
2
2
|
|
|
3
|
-
The `nbt` CLI and
|
|
3
|
+
The `nbt` CLI and runtime for nbt-dev — a schema-first backend platform for web development.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -16,12 +16,13 @@ npx nbt list # list available standard modules
|
|
|
16
16
|
npx nbt add crm email # vendor standard cartridges into nbt/
|
|
17
17
|
npx nbt update crm email # refresh vendored modules without deleting migrations
|
|
18
18
|
# ...edit nbt/<cart>/schema.nbt (entities, indexes, @route decls)…
|
|
19
|
-
npx nbt dev # boot the
|
|
20
|
-
npx nbt migrate create billing --baseline # first migration from the schema
|
|
19
|
+
npx nbt dev # boot the runtime + live-reload local carts on save
|
|
20
|
+
npx nbt migrate create billing -m "initial" --baseline # first migration from the schema
|
|
21
|
+
npx nbt status # what persistent changes are unrecorded?
|
|
21
22
|
npx nbt generate # typed TS clients for the local cartridge set
|
|
22
23
|
|
|
23
|
-
npx nbt
|
|
24
|
-
npx nbt
|
|
24
|
+
npx nbt deploy # build + ship the whole project as one release
|
|
25
|
+
npx nbt deploy --env prod # target another configured environment
|
|
25
26
|
```
|
|
26
27
|
|
|
27
28
|
Commands read `nbt.json` for paths and the target instance; `--host`/`--port`/`--root`/`--out`
|
|
@@ -29,7 +30,7 @@ flags override it. Run from anywhere inside the project — `nbt` walks up to fi
|
|
|
29
30
|
|
|
30
31
|
Standard cartridges use a shadcn-style ownership model: `nbt add <name>` copies their source into
|
|
31
32
|
your configured carts directory. The local copy is visible and editable, `nbt generate` follows
|
|
32
|
-
that local cartridge set, and `nbt
|
|
33
|
+
that local cartridge set, and `nbt deploy` ships it to the configured runtime as one release.
|
|
33
34
|
|
|
34
35
|
```bash
|
|
35
36
|
npx nbt up # boot using nbt.json dev port
|