@beignet/cli 0.0.3 → 0.0.5
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 +219 -0
- package/README.md +379 -61
- package/dist/ansi.d.ts +10 -0
- package/dist/ansi.d.ts.map +1 -0
- package/dist/ansi.js +20 -0
- package/dist/ansi.js.map +1 -0
- package/dist/choices.d.ts +49 -0
- package/dist/choices.d.ts.map +1 -0
- package/dist/choices.js +53 -0
- package/dist/choices.js.map +1 -0
- package/dist/completion.d.ts +47 -0
- package/dist/completion.d.ts.map +1 -0
- package/dist/completion.js +123 -0
- package/dist/completion.js.map +1 -0
- package/dist/config.d.ts +8 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +8 -0
- package/dist/config.js.map +1 -1
- package/dist/create-prompts.d.ts +41 -0
- package/dist/create-prompts.d.ts.map +1 -0
- package/dist/create-prompts.js +78 -0
- package/dist/create-prompts.js.map +1 -0
- package/dist/create.d.ts +10 -5
- package/dist/create.d.ts.map +1 -1
- package/dist/create.js +28 -47
- package/dist/create.js.map +1 -1
- package/dist/db.d.ts +1 -0
- package/dist/db.d.ts.map +1 -1
- package/dist/db.js +37 -2
- package/dist/db.js.map +1 -1
- package/dist/github-annotations.d.ts +18 -0
- package/dist/github-annotations.d.ts.map +1 -0
- package/dist/github-annotations.js +22 -0
- package/dist/github-annotations.js.map +1 -0
- package/dist/index.d.ts +1 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +665 -603
- package/dist/index.js.map +1 -1
- package/dist/inspect.d.ts +21 -2
- package/dist/inspect.d.ts.map +1 -1
- package/dist/inspect.js +1938 -131
- package/dist/inspect.js.map +1 -1
- package/dist/lib.d.ts +20 -0
- package/dist/lib.d.ts.map +1 -0
- package/dist/lib.js +17 -0
- package/dist/lib.js.map +1 -0
- package/dist/lint.d.ts +10 -1
- package/dist/lint.d.ts.map +1 -1
- package/dist/lint.js +340 -33
- package/dist/lint.js.map +1 -1
- package/dist/make.d.ts +20 -3
- package/dist/make.d.ts.map +1 -1
- package/dist/make.js +1896 -382
- package/dist/make.js.map +1 -1
- package/dist/outbox.d.ts +24 -0
- package/dist/outbox.d.ts.map +1 -0
- package/dist/outbox.js +138 -0
- package/dist/outbox.js.map +1 -0
- package/dist/schedule.d.ts +36 -0
- package/dist/schedule.d.ts.map +1 -0
- package/dist/schedule.js +155 -0
- package/dist/schedule.js.map +1 -0
- package/dist/task.d.ts +26 -0
- package/dist/task.d.ts.map +1 -0
- package/dist/task.js +106 -0
- package/dist/task.js.map +1 -0
- package/dist/templates/base.d.ts +13 -0
- package/dist/templates/base.d.ts.map +1 -0
- package/dist/templates/base.js +300 -0
- package/dist/templates/base.js.map +1 -0
- package/dist/templates/db.d.ts +14 -0
- package/dist/templates/db.d.ts.map +1 -0
- package/dist/templates/db.js +962 -0
- package/dist/templates/db.js.map +1 -0
- package/dist/templates/index.d.ts +14 -0
- package/dist/templates/index.d.ts.map +1 -0
- package/dist/templates/index.js +123 -0
- package/dist/templates/index.js.map +1 -0
- package/dist/templates/server.d.ts +26 -0
- package/dist/templates/server.d.ts.map +1 -0
- package/dist/templates/server.js +520 -0
- package/dist/templates/server.js.map +1 -0
- package/dist/templates/shadcn.d.ts +5 -0
- package/dist/templates/shadcn.d.ts.map +1 -0
- package/dist/templates/shadcn.js +555 -0
- package/dist/templates/shadcn.js.map +1 -0
- package/dist/templates/shared.d.ts +49 -0
- package/dist/templates/shared.d.ts.map +1 -0
- package/dist/templates/shared.js +57 -0
- package/dist/templates/shared.js.map +1 -0
- package/dist/templates/shell.d.ts +5 -0
- package/dist/templates/shell.d.ts.map +1 -0
- package/dist/templates/shell.js +1190 -0
- package/dist/templates/shell.js.map +1 -0
- package/dist/templates/todos.d.ts +17 -0
- package/dist/templates/todos.d.ts.map +1 -0
- package/dist/templates/todos.js +607 -0
- package/dist/templates/todos.js.map +1 -0
- package/dist/version.d.ts +8 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +18 -0
- package/dist/version.js.map +1 -0
- package/package.json +9 -8
- package/src/ansi.ts +30 -0
- package/src/choices.ts +83 -0
- package/src/completion.ts +169 -0
- package/src/config.ts +16 -0
- package/src/create-prompts.ts +114 -0
- package/src/create.ts +40 -64
- package/src/db.ts +60 -4
- package/src/github-annotations.ts +37 -0
- package/src/index.ts +1075 -817
- package/src/inspect.ts +2859 -115
- package/src/lib.ts +45 -0
- package/src/lint.ts +493 -39
- package/src/make.ts +2389 -406
- package/src/outbox.ts +249 -0
- package/src/schedule.ts +272 -0
- package/src/task.ts +169 -0
- package/src/templates/base.ts +377 -0
- package/src/templates/db.ts +963 -0
- package/src/templates/index.ts +148 -0
- package/src/templates/server.ts +528 -0
- package/src/templates/shadcn.ts +570 -0
- package/src/templates/shared.ts +90 -0
- package/src/templates/shell.ts +1219 -0
- package/src/templates/todos.ts +607 -0
- package/src/version.ts +20 -0
- package/dist/create-bin.d.ts +0 -3
- package/dist/create-bin.d.ts.map +0 -1
- package/dist/create-bin.js +0 -9
- package/dist/create-bin.js.map +0 -1
- package/dist/templates.d.ts +0 -55
- package/dist/templates.d.ts.map +0 -1
- package/dist/templates.js +0 -3520
- package/dist/templates.js.map +0 -1
- package/src/create-bin.ts +0 -11
- package/src/templates.ts +0 -3774
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"db.js","sourceRoot":"","sources":["../../src/templates/db.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,sEAAsE;AACtE,uEAAuE;AACvE,EAAE;AACF,2DAA2D;AAC3D,0EAA0E;AAC1E,+EAA+E;AAC/E,yDAAyD;AACzD,4EAA4E;AAC5E,YAAY;AAEZ,MAAM,KAAK,GAAG;IACZ,aAAa,EAAE;;;;;;;;;CAShB;IACC,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAo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AO,EAAE,KAAK,IAAI,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type { IntegrationName, PackageManager, TemplateName, } from "../choices.js";
|
|
2
|
+
export { integrationChoices } from "../choices.js";
|
|
3
|
+
export type { TemplateContext, TemplateFile } from "./shared.js";
|
|
4
|
+
import type { TemplateContext, TemplateFile } from "./shared.js";
|
|
5
|
+
/**
|
|
6
|
+
* Render all template files for a new Beignet app.
|
|
7
|
+
*
|
|
8
|
+
* There is one starter: a full-stack app with a typed API, Better Auth,
|
|
9
|
+
* Drizzle/libSQL persistence, pino logging, devtools, and a shadcn UI shell.
|
|
10
|
+
* `ctx.api` swaps the UI shell for a minimal API landing page and a reduced
|
|
11
|
+
* typed client.
|
|
12
|
+
*/
|
|
13
|
+
export declare function getTemplateFiles(ctx: TemplateContext): TemplateFile[];
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/templates/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,eAAe,EACf,cAAc,EACd,YAAY,GACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,YAAY,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAiBjE,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAIjE;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,eAAe,GAAG,YAAY,EAAE,CAgHrE"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
export { integrationChoices } from "../choices.js";
|
|
2
|
+
import { baseFiles, envExample, integrationsDoc, packageJson, readme, } from "./base.js";
|
|
3
|
+
import { dbFiles } from "./db.js";
|
|
4
|
+
import { infrastructurePorts, ports, serverFiles, serverProviders, } from "./server.js";
|
|
5
|
+
import { shadcnTemplateFiles } from "./shadcn.js";
|
|
6
|
+
import { shellTemplateFiles } from "./shell.js";
|
|
7
|
+
import { todosFiles } from "./todos.js";
|
|
8
|
+
/**
|
|
9
|
+
* Render all template files for a new Beignet app.
|
|
10
|
+
*
|
|
11
|
+
* There is one starter: a full-stack app with a typed API, Better Auth,
|
|
12
|
+
* Drizzle/libSQL persistence, pino logging, devtools, and a shadcn UI shell.
|
|
13
|
+
* `ctx.api` swaps the UI shell for a minimal API landing page and a reduced
|
|
14
|
+
* typed client.
|
|
15
|
+
*/
|
|
16
|
+
export function getTemplateFiles(ctx) {
|
|
17
|
+
const templateFiles = [
|
|
18
|
+
{ path: "package.json", content: packageJson(ctx) },
|
|
19
|
+
{ path: "README.md", content: readme(ctx) },
|
|
20
|
+
{ path: ".gitignore", content: baseFiles.gitignore },
|
|
21
|
+
{ path: ".env.example", content: envExample(ctx) },
|
|
22
|
+
{ path: "next-env.d.ts", content: baseFiles.nextEnv },
|
|
23
|
+
{ path: "next.config.js", content: baseFiles.nextConfig },
|
|
24
|
+
{ path: "tsconfig.json", content: baseFiles.tsconfig },
|
|
25
|
+
{ path: "app-context.ts", content: serverFiles.appContext },
|
|
26
|
+
{
|
|
27
|
+
path: "app/api/[[...path]]/route.ts",
|
|
28
|
+
content: serverFiles.apiCatchAllRoute,
|
|
29
|
+
},
|
|
30
|
+
{ path: "app/api/health/route.ts", content: serverFiles.healthRoute },
|
|
31
|
+
{
|
|
32
|
+
path: "app/api/devtools/[[...path]]/route.ts",
|
|
33
|
+
content: serverFiles.devtoolsRoute,
|
|
34
|
+
},
|
|
35
|
+
{ path: "app/api/openapi/route.ts", content: serverFiles.openApiRoute },
|
|
36
|
+
{
|
|
37
|
+
path: "app/api/auth/[...all]/route.ts",
|
|
38
|
+
content: serverFiles.authRoute,
|
|
39
|
+
},
|
|
40
|
+
{ path: "features/shared/errors.ts", content: serverFiles.sharedErrors },
|
|
41
|
+
{ path: "features/todos/contracts.ts", content: todosFiles.contracts },
|
|
42
|
+
{ path: "features/todos/schemas.ts", content: todosFiles.schemas },
|
|
43
|
+
{ path: "features/todos/routes.ts", content: todosFiles.routes },
|
|
44
|
+
{ path: "features/todos/policy.ts", content: todosFiles.policy },
|
|
45
|
+
{ path: "features/todos/ports.ts", content: todosFiles.ports },
|
|
46
|
+
{
|
|
47
|
+
path: "features/todos/use-cases/create-todo.ts",
|
|
48
|
+
content: todosFiles.createTodoUseCase,
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
path: "features/todos/use-cases/delete-todo.ts",
|
|
52
|
+
content: todosFiles.deleteTodoUseCase,
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
path: "features/todos/use-cases/list-todos.ts",
|
|
56
|
+
content: todosFiles.listTodosUseCase,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
path: "features/todos/use-cases/update-todo.ts",
|
|
60
|
+
content: todosFiles.updateTodoUseCase,
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
path: "features/todos/use-cases/index.ts",
|
|
64
|
+
content: todosFiles.useCasesIndex,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
path: "features/todos/tests/helpers.ts",
|
|
68
|
+
content: todosFiles.testHelpers,
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
path: "features/todos/tests/todos.test.ts",
|
|
72
|
+
content: todosFiles.useCaseTest,
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
path: "features/todos/tests/routes.test.ts",
|
|
76
|
+
content: todosFiles.routesTest,
|
|
77
|
+
},
|
|
78
|
+
{ path: "ports/index.ts", content: ports(ctx) },
|
|
79
|
+
{ path: "ports/auth.ts", content: serverFiles.authPort },
|
|
80
|
+
{ path: "infra/app-ports.ts", content: infrastructurePorts(ctx) },
|
|
81
|
+
{ path: "infra/db/provider.ts", content: dbFiles.dbProvider },
|
|
82
|
+
{ path: "infra/db/repositories.ts", content: dbFiles.dbRepositories },
|
|
83
|
+
{ path: "infra/db/reset.ts", content: dbFiles.dbReset },
|
|
84
|
+
{ path: "infra/db/test-database.ts", content: dbFiles.dbTestDatabase },
|
|
85
|
+
{ path: "infra/db/schema/index.ts", content: dbFiles.dbSchema },
|
|
86
|
+
{
|
|
87
|
+
path: "infra/todos/drizzle-todo-repository.ts",
|
|
88
|
+
content: dbFiles.drizzleTodoRepository,
|
|
89
|
+
},
|
|
90
|
+
{ path: "drizzle.config.ts", content: dbFiles.drizzleConfig },
|
|
91
|
+
{ path: "drizzle/0000_starter.sql", content: dbFiles.starterMigrationSql },
|
|
92
|
+
{
|
|
93
|
+
path: "drizzle/meta/_journal.json",
|
|
94
|
+
content: dbFiles.starterMigrationJournal,
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
path: "drizzle/meta/0000_snapshot.json",
|
|
98
|
+
content: dbFiles.starterMigrationSnapshot,
|
|
99
|
+
},
|
|
100
|
+
{ path: "lib/env.ts", content: serverFiles.env },
|
|
101
|
+
{ path: "lib/auth.ts", content: serverFiles.authHelpers },
|
|
102
|
+
{ path: "lib/better-auth.ts", content: serverFiles.betterAuth },
|
|
103
|
+
{ path: "lib/use-case.ts", content: serverFiles.useCaseBuilder },
|
|
104
|
+
{ path: "server/index.ts", content: serverFiles.server },
|
|
105
|
+
{ path: "server/context.ts", content: serverFiles.serverContext },
|
|
106
|
+
{ path: "server/routes.ts", content: serverFiles.serverRoutes },
|
|
107
|
+
{ path: "server/providers.ts", content: serverProviders(ctx) },
|
|
108
|
+
];
|
|
109
|
+
if (ctx.api) {
|
|
110
|
+
templateFiles.push({ path: "app/layout.tsx", content: serverFiles.apiLayout }, { path: "app/page.tsx", content: serverFiles.apiPage }, { path: "client/index.ts", content: serverFiles.apiClientIndex });
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
templateFiles.push(...shadcnTemplateFiles(), ...shellTemplateFiles(ctx));
|
|
114
|
+
}
|
|
115
|
+
if (ctx.integrations.length > 0) {
|
|
116
|
+
templateFiles.push({
|
|
117
|
+
path: "docs/integrations.md",
|
|
118
|
+
content: integrationsDoc(ctx),
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
return templateFiles;
|
|
122
|
+
}
|
|
123
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/templates/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAGnD,OAAO,EACL,SAAS,EACT,UAAU,EACV,eAAe,EACf,WAAW,EACX,MAAM,GACP,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EACL,mBAAmB,EACnB,KAAK,EACL,WAAW,EACX,eAAe,GAChB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC;;;;;;;GAOG;AACH,MAAM,UAAU,gBAAgB,CAAC,GAAoB;IACnD,MAAM,aAAa,GAAmB;QACpC,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,WAAW,CAAC,GAAG,CAAC,EAAE;QACnD,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE;QAC3C,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,CAAC,SAAS,EAAE;QACpD,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE;QAClD,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,SAAS,CAAC,OAAO,EAAE;QACrD,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;QACzD,EAAE,IAAI,EAAE,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AE,sBAAsB;YAC5B,OAAO,EAAE,eAAe,CAAC,GAAG,CAAC;SAC9B,CAAC,CAAC;IACL,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type TemplateContext } from "./shared.js";
|
|
2
|
+
export declare function serverProviders(ctx: TemplateContext): string;
|
|
3
|
+
export declare function ports(ctx: TemplateContext): string;
|
|
4
|
+
export declare function infrastructurePorts(ctx: TemplateContext): string;
|
|
5
|
+
declare const files: {
|
|
6
|
+
env: string;
|
|
7
|
+
appContext: string;
|
|
8
|
+
sharedErrors: string;
|
|
9
|
+
useCaseBuilder: string;
|
|
10
|
+
authHelpers: string;
|
|
11
|
+
authPort: string;
|
|
12
|
+
serverRoutes: string;
|
|
13
|
+
serverContext: string;
|
|
14
|
+
server: string;
|
|
15
|
+
apiCatchAllRoute: string;
|
|
16
|
+
healthRoute: string;
|
|
17
|
+
devtoolsRoute: string;
|
|
18
|
+
openApiRoute: string;
|
|
19
|
+
authRoute: string;
|
|
20
|
+
betterAuth: string;
|
|
21
|
+
apiLayout: string;
|
|
22
|
+
apiPage: string;
|
|
23
|
+
apiClientIndex: string;
|
|
24
|
+
};
|
|
25
|
+
export { files as serverFiles };
|
|
26
|
+
//# sourceMappingURL=server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/templates/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnE,wBAAgB,eAAe,CAAC,GAAG,EAAE,eAAe,GAAG,MAAM,CA2C5D;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,eAAe,GAAG,MAAM,CAwClD;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,eAAe,GAAG,MAAM,CA2ChE;AAED,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;CAuYV,CAAC;AAEF,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,CAAC"}
|