create-beignet 0.0.8 → 0.0.10
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/CHANGELOG.md +17 -0
- package/README.md +15 -8
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# create-beignet
|
|
2
2
|
|
|
3
|
+
## 0.0.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2972ee4: `beignet create` supports `--db sqlite|postgres|mysql` (default `sqlite`), with a matching database prompt in interactive setup. Each backend scaffolds end to end: provider wiring, an idiomatic Drizzle schema, the vendored initial migration, env examples (`POSTGRES_DB_URL`, `MYSQL_DB_URL`), and a dialect-matched test database — in-memory libSQL for SQLite, in-process PGlite for Postgres, and a real server via `MYSQL_TEST_URL` for MySQL. `make resource` and `make feature` detect the app's database and generate dialect-correct schema and repository code, and `beignet db generate|migrate` work unchanged for every dialect.
|
|
8
|
+
- Updated dependencies [2972ee4]
|
|
9
|
+
- @beignet/cli@0.0.10
|
|
10
|
+
|
|
11
|
+
## 0.0.9
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 1bb42a3: Rename `@beignet/provider-drizzle-turso` to `@beignet/provider-db-drizzle`, with databases as subpath exports. Import from `@beignet/provider-db-drizzle/sqlite`; `DrizzleTurso*` symbols are now `DrizzleSqlite*`, the provider registers as `drizzle-sqlite`, and the connection env vars are `SQLITE_DB_URL` and `SQLITE_DB_AUTH_TOKEN` (the auth token applies to hosted libSQL such as Turso). Provider packages now follow `provider-<capability>-<implementation>` naming, and multi-backend implementations add backends as subpaths — `/postgres` and `/mysql` are planned next.
|
|
16
|
+
- Updated dependencies [6ebec8c]
|
|
17
|
+
- Updated dependencies [1bb42a3]
|
|
18
|
+
- @beignet/cli@0.0.9
|
|
19
|
+
|
|
3
20
|
## 0.0.8
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -26,16 +26,19 @@ After creation:
|
|
|
26
26
|
cd my-app
|
|
27
27
|
bun install
|
|
28
28
|
cp .env.example .env.local
|
|
29
|
+
bun beignet db migrate
|
|
29
30
|
bun run dev
|
|
30
31
|
```
|
|
31
32
|
|
|
32
33
|
## Interactive setup
|
|
33
34
|
|
|
34
35
|
Running bare `bun create beignet` in an interactive terminal opens a
|
|
35
|
-
prompt-based setup that asks for the project directory,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
prompt-based setup that asks for the project directory, whether to scaffold
|
|
37
|
+
an API-only app, which database to use, and which provider integrations to
|
|
38
|
+
add. Passing any selection flag (`--api`, `--db`, `--integrations`, or
|
|
39
|
+
`--package-manager`) skips the prompts, and `--yes` forces the
|
|
40
|
+
non-interactive defaults (the full-stack SQLite starter with `bun`) even on a
|
|
41
|
+
terminal:
|
|
39
42
|
|
|
40
43
|
```bash
|
|
41
44
|
bun create beignet my-app --yes
|
|
@@ -47,11 +50,15 @@ bun create beignet my-app --yes
|
|
|
47
50
|
passes through unchanged:
|
|
48
51
|
|
|
49
52
|
```bash
|
|
50
|
-
bun create beignet my-app --
|
|
53
|
+
bun create beignet my-app --api --integrations inngest,resend
|
|
54
|
+
bun create beignet my-app --db postgres
|
|
51
55
|
```
|
|
52
56
|
|
|
57
|
+
`--db` picks the database backend: `sqlite` (the default), `postgres`, or
|
|
58
|
+
`mysql`. Every backend scaffolds provider wiring, schema, the vendored initial
|
|
59
|
+
migration, env examples, and tests for that database.
|
|
60
|
+
|
|
53
61
|
See the
|
|
54
62
|
[`@beignet/cli` README](https://github.com/taylorbryant/beignet/tree/main/packages/cli#readme)
|
|
55
|
-
for the full list of
|
|
56
|
-
|
|
57
|
-
inside a generated app.
|
|
63
|
+
for the full list of flags and integrations, plus the `beignet` commands
|
|
64
|
+
available inside a generated app.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-beignet",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Create a new Beignet app with one command.",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"node": ">=18.0.0"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@beignet/cli": "^0.0.
|
|
61
|
+
"@beignet/cli": "^0.0.10"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@types/bun": "^1.3.13",
|