@svgrid/studio 0.8.1 → 0.8.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/dist/cli.js +8 -0
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -99,6 +99,12 @@ function parse(args) {
|
|
|
99
99
|
out.theme = value(a);
|
|
100
100
|
else if (a === '--dark')
|
|
101
101
|
out.dark = true;
|
|
102
|
+
else if (a === '--kit') {
|
|
103
|
+
const k = Number(value(a));
|
|
104
|
+
if (k !== 2 && k !== 3)
|
|
105
|
+
throw new Error(`--kit must be 2 or 3, got ${k}`);
|
|
106
|
+
out.kit = k;
|
|
107
|
+
}
|
|
102
108
|
else if (a === '--title')
|
|
103
109
|
out.title = value(a);
|
|
104
110
|
else if (a === '-f' || a === '--force')
|
|
@@ -202,6 +208,7 @@ Options:
|
|
|
202
208
|
--api <path> API route path (default: /api/<route>)
|
|
203
209
|
--theme <id> design-system preset (default: ember) - layered, so your own tokens win
|
|
204
210
|
--dark start in dark mode
|
|
211
|
+
--kit <2|3> SvelteKit major (default: 2). 3 needs Vite 8, which StackBlitz cannot run yet
|
|
205
212
|
-h, --help Show this help
|
|
206
213
|
|
|
207
214
|
Examples:
|
|
@@ -300,6 +307,7 @@ async function main() {
|
|
|
300
307
|
...(opts.dataset ? { dataset: opts.dataset } : {}),
|
|
301
308
|
...(opts.theme ? { theme: opts.theme } : {}),
|
|
302
309
|
...(opts.dark ? { dark: true } : {}),
|
|
310
|
+
...(opts.kit ? { kit: opts.kit } : {}),
|
|
303
311
|
...(opts.title ? { title: opts.title } : {}),
|
|
304
312
|
...(opts.yes ? { yes: true } : {}),
|
|
305
313
|
...(opts.force ? { force: true } : {}),
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "commercial",
|
|
5
5
|
"url": "https://svgrid.com/pricing"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.8.
|
|
7
|
+
"version": "0.8.2",
|
|
8
8
|
"description": "SvGrid Studio CLI: scaffold a full CRUD screen (grid + edit panel + SvelteKit API route) from a Drizzle schema in one command.",
|
|
9
9
|
"license": "SEE LICENSE IN LICENSE",
|
|
10
10
|
"author": "jQWidgets <sales@jqwidgets.com>",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@svgrid/enterprise": "^3.1.
|
|
30
|
+
"@svgrid/enterprise": "^3.1.5"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "^22.10.7",
|