@donotdev/cli 0.0.36 → 0.1.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 (64) hide show
  1. package/LICENSE.md +21 -48
  2. package/dependencies-matrix.json +24 -24
  3. package/dist/bin/commands/agent-setup.js +6965 -125
  4. package/dist/bin/commands/build.js +6 -3
  5. package/dist/bin/commands/bump.js +35 -15
  6. package/dist/bin/commands/cacheout.js +19 -3
  7. package/dist/bin/commands/coach.js +6 -3
  8. package/dist/bin/commands/create-app.js +18 -4
  9. package/dist/bin/commands/create-project.js +19 -5
  10. package/dist/bin/commands/db.js +1700 -3786
  11. package/dist/bin/commands/deploy.js +144 -98
  12. package/dist/bin/commands/dev.js +8 -7
  13. package/dist/bin/commands/doctor.js +6 -3
  14. package/dist/bin/commands/emu.js +8 -7
  15. package/dist/bin/commands/format.js +7 -5
  16. package/dist/bin/commands/get-demo.js +18 -4
  17. package/dist/bin/commands/make-admin.js +1809 -179
  18. package/dist/bin/commands/preview.js +8 -7
  19. package/dist/bin/commands/seed.js +1700 -3786
  20. package/dist/bin/commands/setup-cicd.js +6 -3
  21. package/dist/bin/commands/setup.js +23 -20
  22. package/dist/bin/commands/staging.js +144 -98
  23. package/dist/bin/commands/sync-secrets.js +6 -3
  24. package/dist/bin/commands/type-check.js +6 -3
  25. package/dist/bin/commands/wai.js +6 -3
  26. package/dist/bin/dndev.js +21 -1
  27. package/dist/bin/donotdev.js +21 -1
  28. package/dist/index.js +172 -107
  29. package/package.json +2 -2
  30. package/templates/app-next/src/locales/home_en.json.example +6 -6
  31. package/templates/app-vite/src/locales/home_en.json.example +6 -6
  32. package/templates/functions-supabase/supabase/functions/.env.example +12 -0
  33. package/templates/functions-supabase/supabase/functions/disconnect-oauth/index.ts.example +7 -0
  34. package/templates/functions-supabase/supabase/functions/exchange-token/index.ts.example +7 -0
  35. package/templates/functions-supabase/supabase/functions/get-connections/index.ts.example +7 -0
  36. package/templates/functions-supabase/supabase/functions/refresh-token/index.ts.example +7 -0
  37. package/templates/preset-admin/src/pages/DashboardPage.tsx.example +189 -0
  38. package/templates/preset-admin/src/pages/EntityPage.tsx.example +84 -0
  39. package/templates/preset-admin/src/pages/ReportsPage.tsx.example +243 -0
  40. package/templates/preset-admin/src/pages/SettingsPage.tsx.example +283 -0
  41. package/templates/preset-admin/src/pages/UsersPage.tsx.example +128 -0
  42. package/templates/preset-ecommerce/src/pages/CartPage.tsx.example +167 -0
  43. package/templates/preset-ecommerce/src/pages/CatalogPage.tsx.example +187 -0
  44. package/templates/preset-ecommerce/src/pages/CheckoutPage.tsx.example +244 -0
  45. package/templates/preset-ecommerce/src/pages/HomePage.tsx.example +268 -0
  46. package/templates/preset-ecommerce/src/pages/ProductPage.tsx.example +228 -0
  47. package/templates/preset-landing/src/pages/AboutPage.tsx.example +237 -0
  48. package/templates/preset-landing/src/pages/ContactPage.tsx.example +192 -0
  49. package/templates/preset-landing/src/pages/HomePage.tsx.example +399 -0
  50. package/templates/preset-saas/src/pages/DashboardPage.tsx.example +195 -0
  51. package/templates/preset-saas/src/pages/HomePage.tsx.example +270 -0
  52. package/templates/preset-saas/src/pages/PricingPage.tsx.example +204 -0
  53. package/templates/preset-saas/src/pages/ProfilePage.tsx.example +191 -0
  54. package/templates/preset-saas/src/pages/SettingsPage.tsx.example +292 -0
  55. package/templates/root-consumer/.claude/commands/brainstorm.md.example +28 -0
  56. package/templates/root-consumer/.claude/commands/design.md.example +31 -0
  57. package/templates/root-consumer/.claude/commands/grill.md.example +33 -6
  58. package/templates/root-consumer/.claude/skills/brainstorm/SKILL.md.example +16 -0
  59. package/templates/root-consumer/.claude/skills/build/SKILL.md.example +50 -0
  60. package/templates/root-consumer/.claude/skills/design/SKILL.md.example +17 -0
  61. package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +11 -5
  62. package/templates/root-consumer/guides/dndev/SETUP_OAUTH.md.example +2 -1
  63. package/templates/root-consumer/guides/dndev/advanced/COOKIE_REFERENCE.md.example +252 -252
  64. package/templates/root-consumer/guides/dndev/advanced/VERSION_CONTROL.md.example +174 -174
@@ -163,7 +163,7 @@ var require_picocolors = __commonJS({
163
163
  }
164
164
  });
165
165
 
166
- // node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs
166
+ // node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
167
167
  import { stdin as j, stdout as M } from "node:process";
168
168
  import O from "node:readline";
169
169
  import { Writable as X } from "node:stream";
@@ -257,7 +257,7 @@ function m(e2, u2) {
257
257
  }
258
258
  var import_sisteransi, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, d, oD, y, V, nD, G, _, z, K, aD, k, hD, lD, xD, B, AD, S, gD, vD, h, x, A, kD, $D, H, SD, OD, PD, J, LD;
259
259
  var init_dist = __esm({
260
- "node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs"() {
260
+ "node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
261
261
  init_utils();
262
262
  import_sisteransi = __toESM(require_src(), 1);
263
263
  uD = DD();
@@ -7690,7 +7690,10 @@ var init_PathResolver = __esm({
7690
7690
  */
7691
7691
  getEmptyCjsModulePath() {
7692
7692
  const resolved = this.resolvePackage("@donotdev/core/empty");
7693
- if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
7693
+ if (!resolved)
7694
+ throw new Error(
7695
+ "Cannot resolve @donotdev/core/empty \u2014 package setup is broken"
7696
+ );
7694
7697
  return resolved;
7695
7698
  }
7696
7699
  // === PRIVATE METHODS ===
@@ -8045,12 +8048,10 @@ function createAppEnv(appPath) {
8045
8048
  function spawnCrossPlatform(command, args, options) {
8046
8049
  const isWindows = platform() === "win32";
8047
8050
  const useShell = options.shell ?? isWindows;
8051
+ const { shell: _3, ...rest } = options;
8048
8052
  if (useShell) {
8049
- const fullCommand = `${command} ${args.join(" ")}`;
8050
- const { shell: _4, ...rest2 } = options;
8051
- return spawn(fullCommand, [], { ...rest2, shell: true });
8053
+ return spawn(command, args, { ...rest, shell: true });
8052
8054
  }
8053
- const { shell: _3, ...rest } = options;
8054
8055
  return spawn(command, args, rest);
8055
8056
  }
8056
8057
  function createEmulatorEnv(appPath, framework = "vite", options) {
@@ -163,7 +163,7 @@ var require_picocolors = __commonJS({
163
163
  }
164
164
  });
165
165
 
166
- // node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs
166
+ // node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
167
167
  import { stdin as j, stdout as M } from "node:process";
168
168
  import { Writable as X } from "node:stream";
169
169
  function DD({ onlyFirst: e2 = false } = {}) {
@@ -204,7 +204,7 @@ function rD() {
204
204
  }
205
205
  var import_sisteransi, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, nD, _, xD, B, AD, A;
206
206
  var init_dist = __esm({
207
- "node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs"() {
207
+ "node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
208
208
  init_utils();
209
209
  import_sisteransi = __toESM(require_src(), 1);
210
210
  uD = DD();
@@ -7311,7 +7311,10 @@ var init_PathResolver = __esm({
7311
7311
  */
7312
7312
  getEmptyCjsModulePath() {
7313
7313
  const resolved = this.resolvePackage("@donotdev/core/empty");
7314
- if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
7314
+ if (!resolved)
7315
+ throw new Error(
7316
+ "Cannot resolve @donotdev/core/empty \u2014 package setup is broken"
7317
+ );
7315
7318
  return resolved;
7316
7319
  }
7317
7320
  // === PRIVATE METHODS ===
@@ -7924,10 +7927,9 @@ async function runPrettier(rootDir, dryRun, verbose) {
7924
7927
  log.info("DRY RUN: Would run Prettier");
7925
7928
  return stats;
7926
7929
  }
7927
- const result = spawnSync(`bunx ${prettierArgs.join(" ")}`, {
7930
+ const result = spawnSync("bunx", prettierArgs, {
7928
7931
  cwd: rootDir,
7929
7932
  stdio: "pipe",
7930
- shell: true,
7931
7933
  encoding: "utf-8",
7932
7934
  env: { ...process.env }
7933
7935
  });
@@ -163,7 +163,7 @@ var require_picocolors = __commonJS({
163
163
  }
164
164
  });
165
165
 
166
- // node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs
166
+ // node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
167
167
  import { stdin as j, stdout as M } from "node:process";
168
168
  import * as g from "node:readline";
169
169
  import O from "node:readline";
@@ -279,7 +279,7 @@ function fD({ input: e2 = j, output: u2 = M, overwrite: t = true, hideCursor: F2
279
279
  }
280
280
  var import_sisteransi, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, d, oD, y, V, nD, G, _, z, K, aD, k, hD, lD, xD, B, AD, S, gD, vD, h, x, A, OD, PD, J, LD;
281
281
  var init_dist = __esm({
282
- "node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs"() {
282
+ "node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
283
283
  init_utils();
284
284
  import_sisteransi = __toESM(require_src(), 1);
285
285
  uD = DD();
@@ -7552,7 +7552,10 @@ var init_PathResolver = __esm({
7552
7552
  */
7553
7553
  getEmptyCjsModulePath() {
7554
7554
  const resolved = this.resolvePackage("@donotdev/core/empty");
7555
- if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
7555
+ if (!resolved)
7556
+ throw new Error(
7557
+ "Cannot resolve @donotdev/core/empty \u2014 package setup is broken"
7558
+ );
7556
7559
  return resolved;
7557
7560
  }
7558
7561
  // === PRIVATE METHODS ===
@@ -8024,7 +8027,18 @@ function loadMatrix(mode) {
8024
8027
  return cachedMatrix;
8025
8028
  }
8026
8029
  function resolveGroup(groupName, matrix) {
8027
- return matrix.groups[groupName]?.packages || {};
8030
+ const group = matrix.groups[groupName];
8031
+ if (!group) return {};
8032
+ const result = {};
8033
+ if (group.includes) {
8034
+ for (const included of group.includes) {
8035
+ Object.assign(result, resolveGroup(included, matrix));
8036
+ }
8037
+ }
8038
+ if (group.packages) {
8039
+ Object.assign(result, group.packages);
8040
+ }
8041
+ return result;
8028
8042
  }
8029
8043
  function resolveGroups(groupNames, matrix) {
8030
8044
  const result = {};