create-frootjs 1.0.7 → 1.0.9
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/dist/addons/agent.d.ts +22 -0
- package/dist/addons/agent.d.ts.map +1 -0
- package/dist/addons/agent.js +213 -0
- package/dist/addons/agent.js.map +1 -0
- package/dist/addons/database.js +47 -47
- package/dist/addons/docker.js +54 -54
- package/dist/addons/linter.js +46 -46
- package/dist/addons/testing.js +29 -29
- package/dist/addons/testing.js.map +1 -1
- package/dist/generator.d.ts +1 -0
- package/dist/generator.d.ts.map +1 -1
- package/dist/generator.js +14 -1
- package/dist/generator.js.map +1 -1
- package/dist/index.js +87 -2
- package/dist/index.js.map +1 -1
- package/dist/templates/fullstack.d.ts +3 -2
- package/dist/templates/fullstack.d.ts.map +1 -1
- package/dist/templates/fullstack.js +282 -134
- package/dist/templates/fullstack.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI Agent Context & Rules Add-on for create-frootjs
|
|
3
|
+
* Generates AGENT.md and .cursorrules so AI assistants (Cursor, Claude, Copilot, Antigravity)
|
|
4
|
+
* instantly understand the exact architecture, conventions, and API methods of the project.
|
|
5
|
+
*/
|
|
6
|
+
import { DatabaseOption } from './database.js';
|
|
7
|
+
import { LinterOption } from './linter.js';
|
|
8
|
+
import { TestingOption } from './testing.js';
|
|
9
|
+
export interface AgentContextOptions {
|
|
10
|
+
projectName: string;
|
|
11
|
+
templateId: string;
|
|
12
|
+
templateName: string;
|
|
13
|
+
pkgManager: string;
|
|
14
|
+
database?: DatabaseOption;
|
|
15
|
+
linter?: LinterOption;
|
|
16
|
+
testing?: TestingOption;
|
|
17
|
+
docker?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare function generateAgentDoc(opts: AgentContextOptions): string;
|
|
20
|
+
export declare function generateCursorRules(opts: AgentContextOptions): string;
|
|
21
|
+
export declare function applyAgentAddon(files: Record<string, string>, opts: AgentContextOptions): void;
|
|
22
|
+
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/addons/agent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM,CAsLlE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM,CAgBrE;AAED,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC7B,IAAI,EAAE,mBAAmB,GACxB,IAAI,CAGN"}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI Agent Context & Rules Add-on for create-frootjs
|
|
3
|
+
* Generates AGENT.md and .cursorrules so AI assistants (Cursor, Claude, Copilot, Antigravity)
|
|
4
|
+
* instantly understand the exact architecture, conventions, and API methods of the project.
|
|
5
|
+
*/
|
|
6
|
+
export function generateAgentDoc(opts) {
|
|
7
|
+
const { projectName, templateId, templateName, pkgManager, database, linter, testing, docker } = opts;
|
|
8
|
+
let dbSection = '';
|
|
9
|
+
if (database === 'drizzle') {
|
|
10
|
+
dbSection = `
|
|
11
|
+
### Database: Drizzle ORM + SQLite
|
|
12
|
+
- Schema location: \`src/db/schema.ts\`
|
|
13
|
+
- Database client: \`src/db/index.ts\` (better-sqlite3)
|
|
14
|
+
- Migration push command: \`${pkgManager} run db:push\`
|
|
15
|
+
- Studio GUI command: \`${pkgManager} run db:studio\`
|
|
16
|
+
- When creating tables, define schema in \`schema.ts\` and export relations.
|
|
17
|
+
`;
|
|
18
|
+
}
|
|
19
|
+
else if (database === 'prisma') {
|
|
20
|
+
dbSection = `
|
|
21
|
+
### Database: Prisma + SQLite
|
|
22
|
+
- Schema location: \`prisma/schema.prisma\`
|
|
23
|
+
- Push schema to database: \`${pkgManager} run db:push\`
|
|
24
|
+
- Generate client: \`${pkgManager} exec prisma generate\`
|
|
25
|
+
- Studio GUI command: \`${pkgManager} run db:studio\`
|
|
26
|
+
`;
|
|
27
|
+
}
|
|
28
|
+
let linterSection = '';
|
|
29
|
+
if (linter === 'biome') {
|
|
30
|
+
linterSection = `
|
|
31
|
+
### Linting & Formatting: Biome
|
|
32
|
+
- Lint command: \`${pkgManager} run lint\`
|
|
33
|
+
- Format command: \`${pkgManager} run format\`
|
|
34
|
+
- Configuration: \`biome.json\`
|
|
35
|
+
`;
|
|
36
|
+
}
|
|
37
|
+
else if (linter === 'eslint') {
|
|
38
|
+
linterSection = `
|
|
39
|
+
### Linting & Formatting: ESLint + Prettier
|
|
40
|
+
- Lint command: \`${pkgManager} run lint\`
|
|
41
|
+
- Format command: \`${pkgManager} run format\`
|
|
42
|
+
- Configuration: \`eslint.config.js\` and \`.prettierrc\`
|
|
43
|
+
`;
|
|
44
|
+
}
|
|
45
|
+
let testSection = '';
|
|
46
|
+
if (testing === 'vitest') {
|
|
47
|
+
testSection = `
|
|
48
|
+
### Testing: Vitest
|
|
49
|
+
- Run tests: \`${pkgManager} test\`
|
|
50
|
+
- Watch mode: \`${pkgManager} run test:watch\`
|
|
51
|
+
- Test files location: \`tests/**/*.test.ts\`
|
|
52
|
+
- Preferred testing pattern: Use \`app.fetch(new Request(...))\` to test routes in-memory without opening network ports.
|
|
53
|
+
`;
|
|
54
|
+
}
|
|
55
|
+
else if (testing === 'node') {
|
|
56
|
+
testSection = `
|
|
57
|
+
### Testing: Node.js Native Test Runner
|
|
58
|
+
- Run tests: \`${pkgManager} test\`
|
|
59
|
+
- Test files location: \`tests/**/*.test.ts\`
|
|
60
|
+
- Uses \`node:test\` and \`node:assert/strict\`.
|
|
61
|
+
- Preferred testing pattern: Use \`app.fetch(new Request(...))\` to test routes in-memory without opening network ports.
|
|
62
|
+
`;
|
|
63
|
+
}
|
|
64
|
+
let archGuidelines = '';
|
|
65
|
+
if (templateId === 'mvc') {
|
|
66
|
+
archGuidelines = `
|
|
67
|
+
### Architecture: MVC / Layered Architecture
|
|
68
|
+
- **Controllers** (\`src/controllers/\`): Handle incoming requests, extract params/body, format HTTP responses.
|
|
69
|
+
- **Services** (\`src/services/\`): Contain core business logic, validations, and database interactions.
|
|
70
|
+
- **Models** (\`src/models/\`): Define TypeScript interfaces and domain entity types.
|
|
71
|
+
- **Routes** (\`src/routes/\`): Mount endpoints and bind controller methods using \`new Froot()\`.
|
|
72
|
+
- **Middleware** (\`src/middleware/\`): Cross-cutting concerns (logging, auth, headers).
|
|
73
|
+
`;
|
|
74
|
+
}
|
|
75
|
+
else if (templateId === 'modular') {
|
|
76
|
+
archGuidelines = `
|
|
77
|
+
### Architecture: Modular Feature Architecture (NestJS-style)
|
|
78
|
+
- **Feature Modules** (\`src/modules/<feature>/\`): Self-contained domain modules containing routes, services, and schemas.
|
|
79
|
+
- **Guards & Filters** (\`src/common/\`): Common auth guards and centralized error filters.
|
|
80
|
+
- To add a new feature: Create a new folder under \`src/modules/\` and mount the router in \`src/app.ts\` using \`app.route('/api', featureModule)\`.
|
|
81
|
+
`;
|
|
82
|
+
}
|
|
83
|
+
else if (templateId === 'streaming') {
|
|
84
|
+
archGuidelines = `
|
|
85
|
+
### Architecture: Real-Time Streaming & SSE
|
|
86
|
+
- Uses \`streamSSE\` from \`frootjs/streaming\` for Server-Sent Events.
|
|
87
|
+
- Uses \`streamText\` for chunk-by-chunk token and text streaming.
|
|
88
|
+
`;
|
|
89
|
+
}
|
|
90
|
+
else if (templateId === 'websocket') {
|
|
91
|
+
archGuidelines = `
|
|
92
|
+
### Architecture: WebSockets & Pub/Sub Hub
|
|
93
|
+
- Uses \`upgradeWebSocket\` and \`createHub\` from \`frootjs/ws\` for real-time room communication.
|
|
94
|
+
`;
|
|
95
|
+
}
|
|
96
|
+
else if (templateId === 'openapi') {
|
|
97
|
+
archGuidelines = `
|
|
98
|
+
### Architecture: OpenAPI 3.1 & Interactive Docs
|
|
99
|
+
- Uses \`app.openapi()\` to auto-generate OpenAPI 3.1 schemas.
|
|
100
|
+
- Uses \`c.describe()\` or route doc options to declare parameters and response models.
|
|
101
|
+
- Interactive documentation UI available at \`/docs\`.
|
|
102
|
+
`;
|
|
103
|
+
}
|
|
104
|
+
else if (templateId === 'fullstack') {
|
|
105
|
+
archGuidelines = `
|
|
106
|
+
### Architecture: Fullstack JSX & Server Rendering
|
|
107
|
+
- JSX components located in \`src/components/\` using \`frootjs/jsx\`.
|
|
108
|
+
- Routes return \`c.html(<Component />)\` with zero client-side JavaScript overhead.
|
|
109
|
+
`;
|
|
110
|
+
}
|
|
111
|
+
return `# AI Agent Guide: ${projectName}
|
|
112
|
+
|
|
113
|
+
Welcome! This document provides context and conventions for AI assistants (Claude, Cursor, Copilot, Antigravity, Devin) working on this codebase.
|
|
114
|
+
|
|
115
|
+
## Project Summary
|
|
116
|
+
- **Project Name:** ${projectName}
|
|
117
|
+
- **Framework:** [Froot](https://github.com/orbitnorth/froot) (\`frootjs\`)
|
|
118
|
+
- **Template Architecture:** ${templateName} (\`${templateId}\`)
|
|
119
|
+
- **Package Manager:** \`${pkgManager}\`
|
|
120
|
+
- **Docker Support:** ${docker ? 'Yes (Dockerfile + docker-compose.yml)' : 'No'}
|
|
121
|
+
|
|
122
|
+
## Essential Commands
|
|
123
|
+
\`\`\`bash
|
|
124
|
+
# Start development server with hot-reload
|
|
125
|
+
${pkgManager} run dev
|
|
126
|
+
|
|
127
|
+
# Run TypeScript compilation check
|
|
128
|
+
${pkgManager} run build
|
|
129
|
+
|
|
130
|
+
# Start production server
|
|
131
|
+
${pkgManager} start
|
|
132
|
+
\`\`\`
|
|
133
|
+
${testSection}${linterSection}${dbSection}
|
|
134
|
+
${archGuidelines}
|
|
135
|
+
## Core Froot API Rules & Conventions
|
|
136
|
+
|
|
137
|
+
### 1. Handler Signatures
|
|
138
|
+
Handlers receive a single Context object \`c\`:
|
|
139
|
+
\`\`\`ts
|
|
140
|
+
import { Froot } from 'frootjs';
|
|
141
|
+
|
|
142
|
+
const app = new Froot();
|
|
143
|
+
|
|
144
|
+
app.get('/users/:id', async (c) => {
|
|
145
|
+
const id = c.req.param('id');
|
|
146
|
+
const role = c.req.query('role');
|
|
147
|
+
return c.json({ id, role });
|
|
148
|
+
});
|
|
149
|
+
\`\`\`
|
|
150
|
+
|
|
151
|
+
### 2. Request Data Extraction
|
|
152
|
+
- **Path Parameters:** \`c.req.param('paramName')\`
|
|
153
|
+
- **Query Parameters:** \`c.req.query('queryName')\`
|
|
154
|
+
- **JSON Body:** \`await c.req.json()\`
|
|
155
|
+
- **Headers:** \`c.req.header('authorization')\`
|
|
156
|
+
- **Cookies:** \`c.req.cookie('session')\`
|
|
157
|
+
|
|
158
|
+
### 3. Response Generation
|
|
159
|
+
- **JSON:** \`c.json(data, statusCode?)\`
|
|
160
|
+
- **Plain Text:** \`c.text(string, statusCode?)\`
|
|
161
|
+
- **HTML:** \`c.html(htmlStringOrJSX, statusCode?)\`
|
|
162
|
+
- **Redirect:** \`c.redirect(url, statusCode?)\`
|
|
163
|
+
|
|
164
|
+
### 4. Middleware Pattern
|
|
165
|
+
Middleware in Froot uses an onion-style async function:
|
|
166
|
+
\`\`\`ts
|
|
167
|
+
import type { MiddlewareHandler } from 'frootjs';
|
|
168
|
+
|
|
169
|
+
export const timingMiddleware: MiddlewareHandler = async (c, next) => {
|
|
170
|
+
const start = performance.now();
|
|
171
|
+
await next();
|
|
172
|
+
const elapsed = (performance.now() - start).toFixed(2);
|
|
173
|
+
c.header('X-Response-Time', \`\${elapsed}ms\`);
|
|
174
|
+
};
|
|
175
|
+
\`\`\`
|
|
176
|
+
|
|
177
|
+
### 5. CRITICAL: Anti-Patterns to AVOID
|
|
178
|
+
- **DO NOT** use Express-style response methods: \`res.send()\`, \`res.status().json()\` do NOT exist. Return \`c.json()\` instead.
|
|
179
|
+
- **DO NOT** use \`req.body\` synchronously. Always use \`await c.req.json()\`.
|
|
180
|
+
- **DO NOT** pass errors via \`next(err)\`. Either throw an error or handle it via \`app.onError()\`.
|
|
181
|
+
- **DO NOT** import from deprecated packages \`create-froot\`. The framework package is always \`frootjs\`.
|
|
182
|
+
|
|
183
|
+
### 6. Testing Conventions
|
|
184
|
+
Always use in-memory Web Standards \`app.fetch(request)\` for fast, port-independent tests:
|
|
185
|
+
\`\`\`ts
|
|
186
|
+
const req = new Request('http://localhost/api/health');
|
|
187
|
+
const res = await app.fetch(req);
|
|
188
|
+
const data = await res.json();
|
|
189
|
+
\`\`\`
|
|
190
|
+
`;
|
|
191
|
+
}
|
|
192
|
+
export function generateCursorRules(opts) {
|
|
193
|
+
return `# Froot Framework Rules (.cursorrules)
|
|
194
|
+
# Project: ${opts.projectName} (${opts.templateName})
|
|
195
|
+
|
|
196
|
+
# Framework Conventions:
|
|
197
|
+
- Web framework is frootjs (TypeScript-native, high performance).
|
|
198
|
+
- Handlers always receive (c) context and must return Response or Promise<Response>.
|
|
199
|
+
- Always use c.json(body, status) or c.text(msg, status).
|
|
200
|
+
- Never use Express-like res.send(), res.status(), req.body.
|
|
201
|
+
- For async bodies, use await c.req.json().
|
|
202
|
+
- Route parameters: c.req.param('id').
|
|
203
|
+
- Query parameters: c.req.query('key').
|
|
204
|
+
- Sub-routers: mount using app.route(prefix, subApp).
|
|
205
|
+
- Package manager: ${opts.pkgManager}. Run tests using ${opts.pkgManager} test.
|
|
206
|
+
- Check AGENT.md for full architectural guidelines.
|
|
207
|
+
`;
|
|
208
|
+
}
|
|
209
|
+
export function applyAgentAddon(files, opts) {
|
|
210
|
+
files['AGENT.md'] = generateAgentDoc(opts);
|
|
211
|
+
files['.cursorrules'] = generateCursorRules(opts);
|
|
212
|
+
}
|
|
213
|
+
//# sourceMappingURL=agent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../src/addons/agent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAiBH,MAAM,UAAU,gBAAgB,CAAC,IAAyB;IACxD,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAEtG,IAAI,SAAS,GAAG,EAAE,CAAC;IACnB,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,SAAS,GAAG;;;;8BAIc,UAAU;0BACd,UAAU;;CAEnC,CAAC;IACA,CAAC;SAAM,IAAI,QAAQ,KAAK,QAAQ,EAAE,CAAC;QACjC,SAAS,GAAG;;;+BAGe,UAAU;uBAClB,UAAU;0BACP,UAAU;CACnC,CAAC;IACA,CAAC;IAED,IAAI,aAAa,GAAG,EAAE,CAAC;IACvB,IAAI,MAAM,KAAK,OAAO,EAAE,CAAC;QACvB,aAAa,GAAG;;oBAEA,UAAU;sBACR,UAAU;;CAE/B,CAAC;IACA,CAAC;SAAM,IAAI,MAAM,KAAK,QAAQ,EAAE,CAAC;QAC/B,aAAa,GAAG;;oBAEA,UAAU;sBACR,UAAU;;CAE/B,CAAC;IACA,CAAC;IAED,IAAI,WAAW,GAAG,EAAE,CAAC;IACrB,IAAI,OAAO,KAAK,QAAQ,EAAE,CAAC;QACzB,WAAW,GAAG;;iBAED,UAAU;kBACT,UAAU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AU,eAAe,CAC7B,KAA6B,EAC7B,IAAyB;IAEzB,KAAK,CAAC,UAAU,CAAC,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAC3C,KAAK,CAAC,cAAc,CAAC,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC;AACpD,CAAC"}
|
package/dist/addons/database.js
CHANGED
|
@@ -19,36 +19,36 @@ export function applyDatabaseAddon(files, dbOption) {
|
|
|
19
19
|
pkg.devDependencies['drizzle-kit'] = '^0.30.0';
|
|
20
20
|
pkg.scripts['db:push'] = 'drizzle-kit push';
|
|
21
21
|
pkg.scripts['db:studio'] = 'drizzle-kit studio';
|
|
22
|
-
files['drizzle.config.ts'] = `import { defineConfig } from 'drizzle-kit';
|
|
23
|
-
|
|
24
|
-
export default defineConfig({
|
|
25
|
-
schema: './src/db/schema.ts',
|
|
26
|
-
out: './drizzle',
|
|
27
|
-
dialect: 'sqlite',
|
|
28
|
-
dbCredentials: {
|
|
29
|
-
url: 'sqlite.db',
|
|
30
|
-
},
|
|
31
|
-
});
|
|
22
|
+
files['drizzle.config.ts'] = `import { defineConfig } from 'drizzle-kit';
|
|
23
|
+
|
|
24
|
+
export default defineConfig({
|
|
25
|
+
schema: './src/db/schema.ts',
|
|
26
|
+
out: './drizzle',
|
|
27
|
+
dialect: 'sqlite',
|
|
28
|
+
dbCredentials: {
|
|
29
|
+
url: 'sqlite.db',
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
32
|
`;
|
|
33
|
-
files['src/db/schema.ts'] = `import { sqliteTable, text } from 'drizzle-orm/sqlite-core';
|
|
34
|
-
|
|
35
|
-
export const users = sqliteTable('users', {
|
|
36
|
-
id: text('id').primaryKey(),
|
|
37
|
-
name: text('name').notNull(),
|
|
38
|
-
email: text('email').notNull().unique(),
|
|
39
|
-
createdAt: text('created_at').notNull().$defaultFn(() => new Date().toISOString()),
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
export type User = typeof users.$inferSelect;
|
|
43
|
-
export type NewUser = typeof users.$inferInsert;
|
|
33
|
+
files['src/db/schema.ts'] = `import { sqliteTable, text } from 'drizzle-orm/sqlite-core';
|
|
34
|
+
|
|
35
|
+
export const users = sqliteTable('users', {
|
|
36
|
+
id: text('id').primaryKey(),
|
|
37
|
+
name: text('name').notNull(),
|
|
38
|
+
email: text('email').notNull().unique(),
|
|
39
|
+
createdAt: text('created_at').notNull().$defaultFn(() => new Date().toISOString()),
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export type User = typeof users.$inferSelect;
|
|
43
|
+
export type NewUser = typeof users.$inferInsert;
|
|
44
44
|
`;
|
|
45
|
-
files['src/db/index.ts'] = `import Database from 'better-sqlite3';
|
|
46
|
-
import { drizzle } from 'drizzle-orm/better-sqlite3';
|
|
47
|
-
import * as schema from './schema.js';
|
|
48
|
-
|
|
49
|
-
const sqlite = new Database('sqlite.db');
|
|
50
|
-
export const db = drizzle(sqlite, { schema });
|
|
51
|
-
export * from './schema.js';
|
|
45
|
+
files['src/db/index.ts'] = `import Database from 'better-sqlite3';
|
|
46
|
+
import { drizzle } from 'drizzle-orm/better-sqlite3';
|
|
47
|
+
import * as schema from './schema.js';
|
|
48
|
+
|
|
49
|
+
const sqlite = new Database('sqlite.db');
|
|
50
|
+
export const db = drizzle(sqlite, { schema });
|
|
51
|
+
export * from './schema.js';
|
|
52
52
|
`;
|
|
53
53
|
}
|
|
54
54
|
else if (dbOption === 'prisma') {
|
|
@@ -57,26 +57,26 @@ export * from './schema.js';
|
|
|
57
57
|
pkg.scripts['db:push'] = 'prisma db push';
|
|
58
58
|
pkg.scripts['db:studio'] = 'prisma studio';
|
|
59
59
|
pkg.scripts['db:generate'] = 'prisma generate';
|
|
60
|
-
files['prisma/schema.prisma'] = `datasource db {
|
|
61
|
-
provider = "sqlite"
|
|
62
|
-
url = "file:./dev.db"
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
generator client {
|
|
66
|
-
provider = "prisma-client-js"
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
model User {
|
|
70
|
-
id String @id @default(cuid())
|
|
71
|
-
name String
|
|
72
|
-
email String @unique
|
|
73
|
-
createdAt DateTime @default(now())
|
|
74
|
-
}
|
|
60
|
+
files['prisma/schema.prisma'] = `datasource db {
|
|
61
|
+
provider = "sqlite"
|
|
62
|
+
url = "file:./dev.db"
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
generator client {
|
|
66
|
+
provider = "prisma-client-js"
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
model User {
|
|
70
|
+
id String @id @default(cuid())
|
|
71
|
+
name String
|
|
72
|
+
email String @unique
|
|
73
|
+
createdAt DateTime @default(now())
|
|
74
|
+
}
|
|
75
75
|
`;
|
|
76
|
-
files['src/db/index.ts'] = `import { PrismaClient } from '@prisma/client';
|
|
77
|
-
|
|
78
|
-
export const prisma = new PrismaClient();
|
|
79
|
-
export * from '@prisma/client';
|
|
76
|
+
files['src/db/index.ts'] = `import { PrismaClient } from '@prisma/client';
|
|
77
|
+
|
|
78
|
+
export const prisma = new PrismaClient();
|
|
79
|
+
export * from '@prisma/client';
|
|
80
80
|
`;
|
|
81
81
|
}
|
|
82
82
|
// Update package.json
|
package/dist/addons/docker.js
CHANGED
|
@@ -5,64 +5,64 @@
|
|
|
5
5
|
export function applyDockerAddon(files, config) {
|
|
6
6
|
const { projectName, pkgManager, entryPoint, port = 3000 } = config;
|
|
7
7
|
// 1. .dockerignore
|
|
8
|
-
files['.dockerignore'] = `node_modules/
|
|
9
|
-
dist/
|
|
10
|
-
.git/
|
|
11
|
-
.gitignore
|
|
12
|
-
.env
|
|
13
|
-
.env.local
|
|
14
|
-
*.log
|
|
15
|
-
.pnpm-store/
|
|
16
|
-
npm-debug.log*
|
|
17
|
-
yarn-debug.log*
|
|
18
|
-
yarn-error.log*
|
|
8
|
+
files['.dockerignore'] = `node_modules/
|
|
9
|
+
dist/
|
|
10
|
+
.git/
|
|
11
|
+
.gitignore
|
|
12
|
+
.env
|
|
13
|
+
.env.local
|
|
14
|
+
*.log
|
|
15
|
+
.pnpm-store/
|
|
16
|
+
npm-debug.log*
|
|
17
|
+
yarn-debug.log*
|
|
18
|
+
yarn-error.log*
|
|
19
19
|
`;
|
|
20
20
|
// 2. Multi-stage Dockerfile
|
|
21
|
-
files['Dockerfile'] = `# Stage 1: Build & bundle
|
|
22
|
-
FROM node:22-alpine AS builder
|
|
23
|
-
WORKDIR /app
|
|
24
|
-
|
|
25
|
-
# Enable Corepack for pnpm/yarn
|
|
26
|
-
RUN corepack enable
|
|
27
|
-
|
|
28
|
-
COPY package*.json ./
|
|
29
|
-
${pkgManager === 'pnpm' ? 'COPY pnpm-lock.yaml ./\nRUN pnpm install --frozen-lockfile' : ''}${pkgManager === 'npm' ? 'COPY package-lock.json* ./\nRUN npm ci' : ''}${pkgManager === 'yarn' ? 'COPY yarn.lock* ./\nRUN yarn install --frozen-lockfile' : ''}${pkgManager === 'bun' ? 'RUN npm install -g bun && bun install' : ''}
|
|
30
|
-
|
|
31
|
-
COPY tsconfig.json ./
|
|
32
|
-
COPY src/ ./src/
|
|
33
|
-
${files['drizzle.config.ts'] ? 'COPY drizzle.config.ts ./\n' : ''}${files['prisma/schema.prisma'] ? 'COPY prisma/ ./prisma/\nRUN npx prisma generate\n' : ''}
|
|
34
|
-
RUN ${pkgManager === 'bun' ? 'bun' : 'npm'} run build
|
|
35
|
-
|
|
36
|
-
# Stage 2: Lean Production Runtime
|
|
37
|
-
FROM node:22-alpine AS runner
|
|
38
|
-
WORKDIR /app
|
|
39
|
-
|
|
40
|
-
ENV NODE_ENV=production
|
|
41
|
-
ENV PORT=${port}
|
|
42
|
-
|
|
43
|
-
# Run as non-root user
|
|
44
|
-
USER node
|
|
45
|
-
|
|
46
|
-
COPY --from=builder --chown=node:node /app/package*.json ./
|
|
47
|
-
COPY --from=builder --chown=node:node /app/node_modules/ ./node_modules/
|
|
48
|
-
COPY --from=builder --chown=node:node /app/dist/ ./dist/
|
|
49
|
-
|
|
50
|
-
EXPOSE ${port}
|
|
51
|
-
|
|
52
|
-
CMD ["node", "${entryPoint}"]
|
|
21
|
+
files['Dockerfile'] = `# Stage 1: Build & bundle
|
|
22
|
+
FROM node:22-alpine AS builder
|
|
23
|
+
WORKDIR /app
|
|
24
|
+
|
|
25
|
+
# Enable Corepack for pnpm/yarn
|
|
26
|
+
RUN corepack enable
|
|
27
|
+
|
|
28
|
+
COPY package*.json ./
|
|
29
|
+
${pkgManager === 'pnpm' ? 'COPY pnpm-lock.yaml ./\nRUN pnpm install --frozen-lockfile' : ''}${pkgManager === 'npm' ? 'COPY package-lock.json* ./\nRUN npm ci' : ''}${pkgManager === 'yarn' ? 'COPY yarn.lock* ./\nRUN yarn install --frozen-lockfile' : ''}${pkgManager === 'bun' ? 'RUN npm install -g bun && bun install' : ''}
|
|
30
|
+
|
|
31
|
+
COPY tsconfig.json ./
|
|
32
|
+
COPY src/ ./src/
|
|
33
|
+
${files['drizzle.config.ts'] ? 'COPY drizzle.config.ts ./\n' : ''}${files['prisma/schema.prisma'] ? 'COPY prisma/ ./prisma/\nRUN npx prisma generate\n' : ''}
|
|
34
|
+
RUN ${pkgManager === 'bun' ? 'bun' : 'npm'} run build
|
|
35
|
+
|
|
36
|
+
# Stage 2: Lean Production Runtime
|
|
37
|
+
FROM node:22-alpine AS runner
|
|
38
|
+
WORKDIR /app
|
|
39
|
+
|
|
40
|
+
ENV NODE_ENV=production
|
|
41
|
+
ENV PORT=${port}
|
|
42
|
+
|
|
43
|
+
# Run as non-root user
|
|
44
|
+
USER node
|
|
45
|
+
|
|
46
|
+
COPY --from=builder --chown=node:node /app/package*.json ./
|
|
47
|
+
COPY --from=builder --chown=node:node /app/node_modules/ ./node_modules/
|
|
48
|
+
COPY --from=builder --chown=node:node /app/dist/ ./dist/
|
|
49
|
+
|
|
50
|
+
EXPOSE ${port}
|
|
51
|
+
|
|
52
|
+
CMD ["node", "${entryPoint}"]
|
|
53
53
|
`;
|
|
54
54
|
// 3. docker-compose.yml
|
|
55
|
-
files['docker-compose.yml'] = `services:
|
|
56
|
-
${projectName}:
|
|
57
|
-
build:
|
|
58
|
-
context: .
|
|
59
|
-
dockerfile: Dockerfile
|
|
60
|
-
ports:
|
|
61
|
-
- "${port}:${port}"
|
|
62
|
-
environment:
|
|
63
|
-
- NODE_ENV=production
|
|
64
|
-
- PORT=${port}
|
|
65
|
-
restart: unless-stopped
|
|
55
|
+
files['docker-compose.yml'] = `services:
|
|
56
|
+
${projectName}:
|
|
57
|
+
build:
|
|
58
|
+
context: .
|
|
59
|
+
dockerfile: Dockerfile
|
|
60
|
+
ports:
|
|
61
|
+
- "${port}:${port}"
|
|
62
|
+
environment:
|
|
63
|
+
- NODE_ENV=production
|
|
64
|
+
- PORT=${port}
|
|
65
|
+
restart: unless-stopped
|
|
66
66
|
`;
|
|
67
67
|
}
|
|
68
68
|
//# sourceMappingURL=docker.js.map
|
package/dist/addons/linter.js
CHANGED
|
@@ -16,36 +16,36 @@ export function applyLinterAddon(files, linter) {
|
|
|
16
16
|
pkg.scripts['lint'] = 'biome lint src/';
|
|
17
17
|
pkg.scripts['format'] = 'biome format --write src/';
|
|
18
18
|
pkg.scripts['check'] = 'biome check src/';
|
|
19
|
-
files['biome.json'] = `{
|
|
20
|
-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
|
|
21
|
-
"vcs": {
|
|
22
|
-
"enabled": true,
|
|
23
|
-
"clientKind": "git",
|
|
24
|
-
"useIgnoreFile": true
|
|
25
|
-
},
|
|
26
|
-
"files": {
|
|
27
|
-
"ignoreUnknown": false,
|
|
28
|
-
"ignore": ["node_modules", "dist"]
|
|
29
|
-
},
|
|
30
|
-
"formatter": {
|
|
31
|
-
"enabled": true,
|
|
32
|
-
"indentStyle": "space",
|
|
33
|
-
"indentWidth": 2,
|
|
34
|
-
"lineWidth": 100
|
|
35
|
-
},
|
|
36
|
-
"linter": {
|
|
37
|
-
"enabled": true,
|
|
38
|
-
"rules": {
|
|
39
|
-
"recommended": true
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"javascript": {
|
|
43
|
-
"formatter": {
|
|
44
|
-
"quoteStyle": "single",
|
|
45
|
-
"semicolons": "always"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
19
|
+
files['biome.json'] = `{
|
|
20
|
+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
|
|
21
|
+
"vcs": {
|
|
22
|
+
"enabled": true,
|
|
23
|
+
"clientKind": "git",
|
|
24
|
+
"useIgnoreFile": true
|
|
25
|
+
},
|
|
26
|
+
"files": {
|
|
27
|
+
"ignoreUnknown": false,
|
|
28
|
+
"ignore": ["node_modules", "dist"]
|
|
29
|
+
},
|
|
30
|
+
"formatter": {
|
|
31
|
+
"enabled": true,
|
|
32
|
+
"indentStyle": "space",
|
|
33
|
+
"indentWidth": 2,
|
|
34
|
+
"lineWidth": 100
|
|
35
|
+
},
|
|
36
|
+
"linter": {
|
|
37
|
+
"enabled": true,
|
|
38
|
+
"rules": {
|
|
39
|
+
"recommended": true
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"javascript": {
|
|
43
|
+
"formatter": {
|
|
44
|
+
"quoteStyle": "single",
|
|
45
|
+
"semicolons": "always"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
49
|
`;
|
|
50
50
|
}
|
|
51
51
|
else if (linter === 'eslint') {
|
|
@@ -55,23 +55,23 @@ export function applyLinterAddon(files, linter) {
|
|
|
55
55
|
pkg.devDependencies['prettier'] = '^3.5.0';
|
|
56
56
|
pkg.scripts['lint'] = 'eslint src/';
|
|
57
57
|
pkg.scripts['format'] = 'prettier --write src/';
|
|
58
|
-
files['eslint.config.js'] = `import js from '@eslint/js';
|
|
59
|
-
import tseslint from 'typescript-eslint';
|
|
60
|
-
|
|
61
|
-
export default tseslint.config(
|
|
62
|
-
js.configs.recommended,
|
|
63
|
-
...tseslint.configs.recommended,
|
|
64
|
-
{
|
|
65
|
-
ignores: ['dist/**', 'node_modules/**'],
|
|
66
|
-
}
|
|
67
|
-
);
|
|
58
|
+
files['eslint.config.js'] = `import js from '@eslint/js';
|
|
59
|
+
import tseslint from 'typescript-eslint';
|
|
60
|
+
|
|
61
|
+
export default tseslint.config(
|
|
62
|
+
js.configs.recommended,
|
|
63
|
+
...tseslint.configs.recommended,
|
|
64
|
+
{
|
|
65
|
+
ignores: ['dist/**', 'node_modules/**'],
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
68
|
`;
|
|
69
|
-
files['.prettierrc'] = `{
|
|
70
|
-
"semi": true,
|
|
71
|
-
"singleQuote": true,
|
|
72
|
-
"tabWidth": 2,
|
|
73
|
-
"trailingComma": "es5"
|
|
74
|
-
}
|
|
69
|
+
files['.prettierrc'] = `{
|
|
70
|
+
"semi": true,
|
|
71
|
+
"singleQuote": true,
|
|
72
|
+
"tabWidth": 2,
|
|
73
|
+
"trailingComma": "es5"
|
|
74
|
+
}
|
|
75
75
|
`;
|
|
76
76
|
}
|
|
77
77
|
files['package.json'] = JSON.stringify(pkg, null, 2) + '\n';
|
package/dist/addons/testing.js
CHANGED
|
@@ -13,48 +13,48 @@ export function applyTestingAddon(files, testing, options) {
|
|
|
13
13
|
pkg.devDependencies = pkg.devDependencies || {};
|
|
14
14
|
// Resolve where app is exported
|
|
15
15
|
let appImport = '../src/index.js';
|
|
16
|
-
if (files['src/app.ts']) {
|
|
16
|
+
if (files['src/app.ts'] || files['src/app.tsx']) {
|
|
17
17
|
appImport = '../src/app.js';
|
|
18
18
|
}
|
|
19
|
-
else if (files['src/server.ts']) {
|
|
19
|
+
else if (files['src/server.ts'] || files['src/server.tsx']) {
|
|
20
20
|
appImport = '../src/server.js';
|
|
21
21
|
}
|
|
22
22
|
if (testing === 'vitest') {
|
|
23
23
|
pkg.devDependencies['vitest'] = '^3.0.0';
|
|
24
24
|
pkg.scripts['test'] = 'vitest run';
|
|
25
25
|
pkg.scripts['test:watch'] = 'vitest';
|
|
26
|
-
files['vitest.config.ts'] = `import { defineConfig } from 'vitest/config';
|
|
27
|
-
|
|
28
|
-
export default defineConfig({
|
|
29
|
-
test: {
|
|
30
|
-
environment: 'node',
|
|
31
|
-
globals: true,
|
|
32
|
-
},
|
|
33
|
-
});
|
|
26
|
+
files['vitest.config.ts'] = `import { defineConfig } from 'vitest/config';
|
|
27
|
+
|
|
28
|
+
export default defineConfig({
|
|
29
|
+
test: {
|
|
30
|
+
environment: 'node',
|
|
31
|
+
globals: true,
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
34
|
`;
|
|
35
|
-
files['tests/app.test.ts'] = `import { describe, it, expect } from 'vitest';
|
|
36
|
-
import { app } from '${appImport}';
|
|
37
|
-
|
|
38
|
-
describe('${options.projectName} HTTP tests', () => {
|
|
39
|
-
it('responds with status 200 on GET /', async () => {
|
|
40
|
-
const res = await app.fetch(new Request('http://localhost/'));
|
|
41
|
-
expect(res.status).toBe(200);
|
|
42
|
-
});
|
|
43
|
-
});
|
|
35
|
+
files['tests/app.test.ts'] = `import { describe, it, expect } from 'vitest';
|
|
36
|
+
import { app } from '${appImport}';
|
|
37
|
+
|
|
38
|
+
describe('${options.projectName} HTTP tests', () => {
|
|
39
|
+
it('responds with status 200 on GET /', async () => {
|
|
40
|
+
const res = await app.fetch(new Request('http://localhost/'));
|
|
41
|
+
expect(res.status).toBe(200);
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
44
|
`;
|
|
45
45
|
}
|
|
46
46
|
else if (testing === 'node') {
|
|
47
47
|
pkg.scripts['test'] = 'node --test tests/*.test.ts';
|
|
48
|
-
files['tests/app.test.ts'] = `import { describe, it } from 'node:test';
|
|
49
|
-
import assert from 'node:assert/strict';
|
|
50
|
-
import { app } from '${appImport}';
|
|
51
|
-
|
|
52
|
-
describe('${options.projectName} HTTP tests', () => {
|
|
53
|
-
it('responds with status 200 on GET /', async () => {
|
|
54
|
-
const res = await app.fetch(new Request('http://localhost/'));
|
|
55
|
-
assert.equal(res.status, 200);
|
|
56
|
-
});
|
|
57
|
-
});
|
|
48
|
+
files['tests/app.test.ts'] = `import { describe, it } from 'node:test';
|
|
49
|
+
import assert from 'node:assert/strict';
|
|
50
|
+
import { app } from '${appImport}';
|
|
51
|
+
|
|
52
|
+
describe('${options.projectName} HTTP tests', () => {
|
|
53
|
+
it('responds with status 200 on GET /', async () => {
|
|
54
|
+
const res = await app.fetch(new Request('http://localhost/'));
|
|
55
|
+
assert.equal(res.status, 200);
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
58
|
`;
|
|
59
59
|
}
|
|
60
60
|
files['package.json'] = JSON.stringify(pkg, null, 2) + '\n';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.js","sourceRoot":"","sources":["../../src/addons/testing.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAeH,MAAM,UAAU,iBAAiB,CAC/B,KAA6B,EAC7B,OAAsB,EACtB,OAA4B;IAE5B,IAAI,OAAO,KAAK,MAAM;QAAE,OAAO;IAE/B,MAAM,UAAU,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC;IACzC,IAAI,CAAC,UAAU;QAAE,OAAO;IAExB,MAAM,GAAG,GAAoB,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IACpD,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC;IAChC,GAAG,CAAC,eAAe,GAAG,GAAG,CAAC,eAAe,IAAI,EAAE,CAAC;IAEhD,gCAAgC;IAChC,IAAI,SAAS,GAAG,iBAAiB,CAAC;IAClC,IAAI,KAAK,CAAC,YAAY,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"testing.js","sourceRoot":"","sources":["../../src/addons/testing.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAeH,MAAM,UAAU,iBAAiB,CAC/B,KAA6B,EAC7B,OAAsB,EACtB,OAA4B;IAE5B,IAAI,OAAO,KAAK,MAAM;QAAE,OAAO;IAE/B,MAAM,U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