create-better-schemic 0.1.0-alpha.9 → 0.1.0-beta.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/LICENSE +1 -1
- package/README.md +8 -7
- package/lib/index.js +627 -711
- package/package.json +9 -12
- package/src/index.ts +58 -77
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
# create-better-schemic
|
|
2
2
|
|
|
3
|
-
Scaffold a new [Better-schemic](https://github.com/NONSTANDARDCODE/better-schemic) project — `package.json`, `tsconfig.json`,
|
|
4
|
-
|
|
3
|
+
Scaffold a new [Better-schemic](https://github.com/NONSTANDARDCODE/better-schemic) project — `package.json`, `tsconfig.json`, and
|
|
4
|
+
the `database/` schema — in one command.
|
|
5
5
|
|
|
6
6
|
```bash
|
|
7
7
|
npm create better-schemic@latest # or: bun create better-schemic, pnpm create better-schemic
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
-
Interactive by default (project directory
|
|
10
|
+
Interactive by default (project directory and whether/how to install). Flags:
|
|
11
11
|
|
|
12
12
|
```
|
|
13
|
-
create-better-schemic [directory] [--
|
|
13
|
+
create-better-schemic [directory] [--pm bun|npm|pnpm|yarn]
|
|
14
14
|
[--no-install] [--no-git] [-y]
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
It writes the TS project envelope,
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
It writes the TS project envelope, installs `better-schemic` (the ONE package: the authoring
|
|
18
|
+
surface, the engine and the CLI — Zod and the SurrealDB SDK ship inside it), then runs
|
|
19
|
+
`better-schemic init` to scaffold the config + `database/` schema. To add Better-schemic to an
|
|
20
|
+
EXISTING project, use `better-schemic init` directly.
|