create-basalt 1.6.0 → 1.8.0
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 +85 -8
- package/dist/args.d.ts +2 -1
- package/dist/args.js +8 -0
- package/dist/cli.js +9 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +13 -3
- package/dist/latest-versions.js +5 -0
- package/dist/templates.d.ts +38 -2
- package/dist/templates.js +593 -41
- package/dist/versions.js +10 -6
- package/dist/wizard.d.ts +2 -1
- package/dist/wizard.js +4 -2
- package/package.json +17 -8
package/dist/versions.js
CHANGED
|
@@ -6,19 +6,23 @@ export const SCAFFOLD_VERSIONS = {
|
|
|
6
6
|
'@basaltkit/admin-shadcn': '^1.1.0',
|
|
7
7
|
'@basaltkit/ai-mcp': '^0.1.0',
|
|
8
8
|
'@basaltkit/auth': '^3.1.0',
|
|
9
|
+
'@basaltkit/auth-prisma': '^1.6.0',
|
|
9
10
|
'@basaltkit/cli': '^1.2.0',
|
|
10
11
|
'@basaltkit/config': '^1.1.0',
|
|
11
|
-
'@basaltkit/core': '^1.
|
|
12
|
-
'@basaltkit/env': '^3.
|
|
12
|
+
'@basaltkit/core': '^1.4.0',
|
|
13
|
+
'@basaltkit/env': '^3.1.0',
|
|
13
14
|
'@basaltkit/events': '^1.3.0',
|
|
14
|
-
'@basaltkit/fastify': '^2.
|
|
15
|
-
'@basaltkit/generator': '^1.
|
|
15
|
+
'@basaltkit/fastify': '^2.3.0',
|
|
16
|
+
'@basaltkit/generator': '^1.5.0',
|
|
16
17
|
'@basaltkit/logger': '^1.3.0',
|
|
17
18
|
'@basaltkit/mcp': '^3.0.0',
|
|
18
|
-
'@basaltkit/prisma': '^2.
|
|
19
|
-
'@basaltkit/sdk': '^2.
|
|
19
|
+
'@basaltkit/prisma': '^2.2.0',
|
|
20
|
+
'@basaltkit/sdk': '^2.1.0',
|
|
20
21
|
'@basaltkit/subscriptions': '^4.0.0',
|
|
22
|
+
'@basaltkit/subscriptions-prisma': '^2.2.0',
|
|
21
23
|
'@basaltkit/teams': '^3.0.0',
|
|
24
|
+
'@basaltkit/teams-prisma': '^1.0.0',
|
|
22
25
|
'@basaltkit/tenancy': '^2.0.0',
|
|
26
|
+
'@basaltkit/tenancy-prisma': '^1.2.0',
|
|
23
27
|
'@basaltkit/testing': '^2.0.0',
|
|
24
28
|
};
|
package/dist/wizard.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PackageManager } from './index.js';
|
|
2
2
|
import { type Choice, type Prompter } from './prompt.js';
|
|
3
|
-
export type FeatureKey = 'tenancy' | 'auth' | 'billing' | 'ui' | 'cli' | 'mcp';
|
|
3
|
+
export type FeatureKey = 'tenancy' | 'auth' | 'billing' | 'ui' | 'cli' | 'mcp' | 'prisma';
|
|
4
4
|
/** The feature toggles offered in the "custom" preset (and shown in the summary). */
|
|
5
5
|
export declare const FEATURES: Choice<FeatureKey>[];
|
|
6
6
|
interface Preset {
|
|
@@ -21,6 +21,7 @@ export interface WizardResult {
|
|
|
21
21
|
ui: boolean;
|
|
22
22
|
cli: boolean;
|
|
23
23
|
mcp: boolean;
|
|
24
|
+
prisma: boolean;
|
|
24
25
|
pm: PackageManager;
|
|
25
26
|
install: boolean;
|
|
26
27
|
git: boolean;
|
package/dist/wizard.js
CHANGED
|
@@ -7,11 +7,12 @@ export const FEATURES = [
|
|
|
7
7
|
{ value: 'ui', label: 'Web UI', hint: 'React + shadcn + SDK (pnpm workspace)' },
|
|
8
8
|
{ value: 'cli', label: 'basalt CLI', hint: 'code generators + commands' },
|
|
9
9
|
{ value: 'mcp', label: 'MCP server', hint: 'expose routes as AI-agent tools (/mcp)' },
|
|
10
|
+
{ value: 'prisma', label: 'Database', hint: 'PostgreSQL via Prisma (migrations + real stores)' },
|
|
10
11
|
];
|
|
11
12
|
export const PRESETS = [
|
|
12
|
-
{ value: 'saas', label: 'SaaS starter', hint: 'tenancy + auth + billing + CLI', features: ['tenancy', 'auth', 'billing', 'cli'] },
|
|
13
|
+
{ value: 'saas', label: 'SaaS starter', hint: 'tenancy + auth + billing + database + CLI', features: ['tenancy', 'auth', 'billing', 'prisma', 'cli'] },
|
|
13
14
|
{ value: 'api', label: 'API only', hint: 'auth + MCP, no tenancy or UI', features: ['auth', 'mcp'] },
|
|
14
|
-
{ value: 'full', label: 'Full stack', hint: 'everything + web UI', features: ['tenancy', 'auth', 'billing', 'ui', 'cli', 'mcp'] },
|
|
15
|
+
{ value: 'full', label: 'Full stack', hint: 'everything + web UI', features: ['tenancy', 'auth', 'billing', 'prisma', 'ui', 'cli', 'mcp'] },
|
|
15
16
|
{ value: 'minimal', label: 'Minimal', hint: 'no batteries, add them later', features: [] },
|
|
16
17
|
{ value: 'custom', label: 'Custom', hint: 'pick features yourself', features: null },
|
|
17
18
|
];
|
|
@@ -90,6 +91,7 @@ export async function runWizard(prompter, options = {}) {
|
|
|
90
91
|
ui: featureSet.has('ui'),
|
|
91
92
|
cli: featureSet.has('cli'),
|
|
92
93
|
mcp: featureSet.has('mcp'),
|
|
94
|
+
prisma: featureSet.has('prisma'),
|
|
93
95
|
pm,
|
|
94
96
|
install,
|
|
95
97
|
git,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-basalt",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=22.5.0"
|
|
6
6
|
},
|
|
@@ -21,25 +21,34 @@
|
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
23
|
"devDependencies": {
|
|
24
|
+
"@basaltkit/auth-prisma": "^1.5.1",
|
|
25
|
+
"@basaltkit/subscriptions-prisma": "^2.2.3",
|
|
26
|
+
"@basaltkit/teams-prisma": "^1.0.3",
|
|
27
|
+
"@basaltkit/tenancy-prisma": "^1.2.0",
|
|
28
|
+
"@prisma/adapter-pg": "^7.10.0",
|
|
29
|
+
"@prisma/client": "^7.10.0",
|
|
24
30
|
"@types/node": "^26.6.1",
|
|
31
|
+
"@types/pg": "^8.23.1",
|
|
32
|
+
"pg": "^8.23.0",
|
|
33
|
+
"prisma": "^7.10.0",
|
|
25
34
|
"typescript": "^7.0.2",
|
|
26
35
|
"vitest": "^5.0.1",
|
|
27
36
|
"zod": "^4.6.5",
|
|
28
37
|
"@basaltkit/auth": "^3.1.0",
|
|
29
|
-
"@basaltkit/config": "^1.1.2",
|
|
30
|
-
"@basaltkit/core": "^1.3.2",
|
|
31
|
-
"@basaltkit/env": "^3.0.0",
|
|
32
38
|
"@basaltkit/cli": "^1.2.5",
|
|
39
|
+
"@basaltkit/config": "^1.1.2",
|
|
40
|
+
"@basaltkit/core": "^1.4.0",
|
|
41
|
+
"@basaltkit/env": "^3.1.0",
|
|
33
42
|
"@basaltkit/events": "^1.3.0",
|
|
34
|
-
"@basaltkit/generator": "^1.
|
|
43
|
+
"@basaltkit/generator": "^1.5.0",
|
|
44
|
+
"@basaltkit/fastify": "^2.3.0",
|
|
35
45
|
"@basaltkit/logger": "^1.3.0",
|
|
36
46
|
"@basaltkit/mcp": "^3.0.0",
|
|
37
|
-
"@basaltkit/prisma": "^2.
|
|
47
|
+
"@basaltkit/prisma": "^2.2.0",
|
|
48
|
+
"@basaltkit/subscriptions": "^4.0.0",
|
|
38
49
|
"@basaltkit/teams": "^3.0.1",
|
|
39
|
-
"@basaltkit/fastify": "^2.2.0",
|
|
40
50
|
"@basaltkit/tenancy": "^2.0.0",
|
|
41
51
|
"@basaltkit/testing": "^2.0.2",
|
|
42
|
-
"@basaltkit/subscriptions": "^4.0.0",
|
|
43
52
|
"@basaltkit/tsconfig": "^0.24.0"
|
|
44
53
|
},
|
|
45
54
|
"publishConfig": {
|