@svgrid/studio 0.6.0 → 0.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.
Files changed (2) hide show
  1. package/dist/cli.js +6 -4
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -197,6 +197,8 @@ Options:
197
197
  --sql Wire a real SQL data source (default with --db)
198
198
  --route <seg> Route segment (default: <name> / table name)
199
199
  --api <path> API route path (default: /api/<route>)
200
+ --theme <id> design-system preset (default: ember) - layered, so your own tokens win
201
+ --dark start in dark mode
200
202
  -h, --help Show this help
201
203
 
202
204
  Examples:
@@ -467,14 +469,14 @@ async function main() {
467
469
  for (const table of tables) {
468
470
  schemas.push(await introspectDatabase({ dialect: opts.db, table, execute }));
469
471
  }
470
- const res = await runStudioAddApp(schemas, { dataSource: ds }, io);
472
+ const res = await runStudioAddApp(schemas, { dataSource: ds, theme: opts.theme, dark: opts.dark }, io);
471
473
  report(`app (${schemas.length} entities)`, res.written, summarizeVerify(res.verify));
472
474
  process.stdout.write(`\nRun \`npm run dev\` and open /\n`);
473
475
  return;
474
476
  }
475
477
  const table = opts.table ?? opts.route;
476
478
  const schema = await introspectDatabase({ dialect: opts.db, table, execute });
477
- const res = await runStudioAdd({ schema, route: opts.route ?? table, dataSource: ds }, io);
479
+ const res = await runStudioAdd({ schema, route: opts.route ?? table, dataSource: ds, theme: opts.theme, dark: opts.dark }, io);
478
480
  report(table, res.written, summarizeVerify(res.verify));
479
481
  process.stdout.write(`\nRun \`npm run dev\` and open /${opts.route ?? table}\n`);
480
482
  return;
@@ -491,12 +493,12 @@ async function main() {
491
493
  process.stderr.write('svgrid-studio: no tables/models found in ' + opts.from + '\n');
492
494
  process.exit(1);
493
495
  }
494
- const res = await runStudioAddApp(schemas, { dataSource: opts.dataSource }, io);
496
+ const res = await runStudioAddApp(schemas, { dataSource: opts.dataSource, theme: opts.theme, dark: opts.dark }, io);
495
497
  report(`app (${schemas.length} entities)`, res.written, summarizeVerify(res.verify));
496
498
  process.stdout.write(`\nRun \`npm run dev\` and open /\n`);
497
499
  return;
498
500
  }
499
- const result = await runStudioAdd({ from: opts.from, table: opts.table, route: opts.route, apiRoute: opts.apiRoute, dataSource: opts.dataSource }, io);
501
+ const result = await runStudioAdd({ from: opts.from, table: opts.table, route: opts.route, apiRoute: opts.apiRoute, dataSource: opts.dataSource, theme: opts.theme, dark: opts.dark }, io);
500
502
  report(result.schema.name, result.written, summarizeVerify(result.verify));
501
503
  process.stdout.write(`\nRun \`npm run dev\` and open /${opts.route ?? result.schema.name}\n`);
502
504
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "commercial",
5
5
  "url": "https://svgrid.com/pricing"
6
6
  },
7
- "version": "0.6.0",
7
+ "version": "0.8.0",
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": "^2.6.1"
30
+ "@svgrid/enterprise": "^3.0.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^22.10.7",