@donotdev/cli 0.1.0 → 0.1.1

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 (93) hide show
  1. package/dependencies-matrix.json +100 -50
  2. package/dist/bin/commands/agent-setup.js +245 -12
  3. package/dist/bin/commands/build.js +3339 -208
  4. package/dist/bin/commands/bump.js +245 -12
  5. package/dist/bin/commands/cacheout.js +245 -12
  6. package/dist/bin/commands/coach.js +361 -60
  7. package/dist/bin/commands/create-app.js +245 -12
  8. package/dist/bin/commands/create-project.js +253 -12
  9. package/dist/bin/commands/db.js +9114 -2327
  10. package/dist/bin/commands/deploy.js +4074 -694
  11. package/dist/bin/commands/dev.js +347 -33
  12. package/dist/bin/commands/doctor.js +408 -107
  13. package/dist/bin/commands/emu.js +386 -52
  14. package/dist/bin/commands/format.js +245 -12
  15. package/dist/bin/commands/get-demo.js +245 -12
  16. package/dist/bin/commands/make-admin.js +8356 -1516
  17. package/dist/bin/commands/preview.js +347 -33
  18. package/dist/bin/commands/seed.js +9114 -2327
  19. package/dist/bin/commands/setup-cicd.js +452 -132
  20. package/dist/bin/commands/setup.js +407 -107
  21. package/dist/bin/commands/staging.js +4074 -694
  22. package/dist/bin/commands/sync-secrets.js +246 -13
  23. package/dist/bin/commands/type-check.js +245 -12
  24. package/dist/bin/commands/wai.js +245 -12
  25. package/dist/bin/dndev.js +13 -4
  26. package/dist/bin/donotdev.js +13 -4
  27. package/dist/index.js +4169 -812
  28. package/{templates/root-consumer/guides/dndev/advanced/VERSION_CONTROL.md.example → guidelines/VERSION_CONTROL.md} +7 -11
  29. package/package.json +2 -1
  30. package/templates/app-demo/src/themes.css.example +21 -0
  31. package/templates/app-dndev/index.html.example +0 -3
  32. package/templates/app-dndev/src/themes.css.example +21 -0
  33. package/templates/app-next/src/app/layout.tsx.example +13 -4
  34. package/templates/app-next/src/themes.css.example +21 -0
  35. package/templates/app-vite/csp.example.json +44 -0
  36. package/templates/app-vite/index.html.example +0 -3
  37. package/templates/app-vite/src/themes.css.example +21 -0
  38. package/templates/functions-supabase/supabase/migrations/20250101000000_idempotency.sql +3 -0
  39. package/templates/functions-supabase/supabase/migrations/20250101000001_rate_limits.sql +3 -0
  40. package/templates/functions-supabase/supabase/migrations/20250101000003_operation_metrics.sql +3 -0
  41. package/templates/root-consumer/.claude/hooks/framework-compliance.sh.example +56 -0
  42. package/templates/root-consumer/.claude/hooks/guard-bash.sh.example +61 -0
  43. package/templates/root-consumer/.claude/hooks/guard-files.sh.example +46 -0
  44. package/templates/root-consumer/.claude/hooks/guard-mcp.sh.example +91 -0
  45. package/templates/root-consumer/.claude/hooks/guard-secrets.sh.example +67 -0
  46. package/templates/root-consumer/.claude/hooks/guard-write.sh.example +89 -0
  47. package/templates/root-consumer/.claude/hooks/session-start.sh.example +50 -0
  48. package/templates/root-consumer/.claude/hooks/track-mcp-lookup.sh.example +20 -0
  49. package/templates/root-consumer/.claude/hooks/typecheck-stop.sh.example +18 -0
  50. package/templates/root-consumer/.claude/rules/consumer-ux.md.example +32 -0
  51. package/templates/root-consumer/.claude/rules/definition-of-done.md.example +32 -0
  52. package/templates/root-consumer/.claude/rules/framework.md.example +39 -0
  53. package/templates/root-consumer/.claude/rules/git.md.example +14 -0
  54. package/templates/root-consumer/.claude/rules/security.md.example +13 -0
  55. package/templates/root-consumer/.claude/settings.json.example +123 -1
  56. package/templates/root-consumer/.claude/skills/build/SKILL.md.example +103 -25
  57. package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +26 -15
  58. package/templates/root-consumer/.claude/skills/polish/SKILL.md.example +50 -37
  59. package/templates/root-consumer/AI.md.example +2 -2
  60. package/templates/root-consumer/CLAUDE.md.example +33 -1
  61. package/templates/root-consumer/guides/dndev/INDEX.md.example +23 -27
  62. package/templates/root-consumer/guides/dndev/SETUP_AUTH.md.example +3 -2
  63. package/templates/root-consumer/guides/dndev/SETUP_OAUTH.md.example +10 -5
  64. package/templates/root-consumer/guides/dndev/SETUP_SUPABASE.md.example +50 -3
  65. package/templates/root-consumer/guides/wai-way/blueprints/3_compose.md.example +13 -15
  66. package/templates/app-demo/public/manifest.json.example +0 -10
  67. package/templates/app-dndev/public/manifest.json.example +0 -10
  68. package/templates/root-consumer/.claude/commands/brainstorm.md.example +0 -175
  69. package/templates/root-consumer/.claude/commands/build.md.example +0 -131
  70. package/templates/root-consumer/.claude/commands/design.md.example +0 -184
  71. package/templates/root-consumer/.claude/commands/grill.md.example +0 -135
  72. package/templates/root-consumer/.claude/commands/polish.md.example +0 -146
  73. package/templates/root-consumer/.claude/commands/techdebt.md.example +0 -28
  74. package/templates/root-consumer/guides/dndev/COMPONENTS_ATOMIC.md.example +0 -180
  75. package/templates/root-consumer/guides/dndev/COMPONENTS_CRUD.md.example +0 -234
  76. package/templates/root-consumer/guides/dndev/COMPONENTS_UI.md.example +0 -136
  77. package/templates/root-consumer/guides/dndev/COMPONENT_API.md.example +0 -195
  78. package/templates/root-consumer/guides/dndev/ENV_SETUP.md.example +0 -219
  79. package/templates/root-consumer/guides/dndev/GOTCHAS.md.example +0 -197
  80. package/templates/root-consumer/guides/dndev/SETUP_APP_CONFIG.md.example +0 -132
  81. package/templates/root-consumer/guides/dndev/SETUP_BLOG.md.example +0 -280
  82. package/templates/root-consumer/guides/dndev/SETUP_CICD.md.example +0 -115
  83. package/templates/root-consumer/guides/dndev/SETUP_CRUD.md.example +0 -334
  84. package/templates/root-consumer/guides/dndev/SETUP_FUNCTIONS.md.example +0 -9
  85. package/templates/root-consumer/guides/dndev/SETUP_I18N.md.example +0 -233
  86. package/templates/root-consumer/guides/dndev/SETUP_LAYOUTS.md.example +0 -158
  87. package/templates/root-consumer/guides/dndev/SETUP_PAGES.md.example +0 -205
  88. package/templates/root-consumer/guides/dndev/SETUP_PWA.md.example +0 -213
  89. package/templates/root-consumer/guides/dndev/SETUP_TESTING.md.example +0 -184
  90. package/templates/root-consumer/guides/dndev/SETUP_THEMES.md.example +0 -111
  91. package/templates/root-consumer/guides/dndev/SETUP_VERCEL.md.example +0 -260
  92. package/templates/root-consumer/guides/dndev/USE_ROUTING.md.example +0 -499
  93. package/templates/root-consumer/guides/dndev/essences_reference.css.example +0 -288
package/dist/bin/dndev.js CHANGED
@@ -458,8 +458,9 @@ var init_command_registry = __esm({
458
458
  category: "build",
459
459
  options: [
460
460
  {
461
- flags: "--install <path...>",
462
- description: "Install tarballs into consumer app(s). Repeatable: --install ../wai --install ../apc"
461
+ flags: "--install <path>",
462
+ description: "Install tarballs into consumer app (repeatable: --install ../wai --install ../apc)",
463
+ collect: true
463
464
  },
464
465
  { flags: "--skip-build", description: "Use existing dist/ (no rebuild)" }
465
466
  ],
@@ -535,6 +536,10 @@ var init_command_registry = __esm({
535
536
  {
536
537
  flags: "--staging",
537
538
  description: "Deploy to staging (uses .env.staging, service-account-key.staging.json, .firebaserc staging project)"
539
+ },
540
+ {
541
+ flags: "--scope <scope>",
542
+ description: "Deploy scope: functions, frontend, or both. Skips interactive menu (headless)"
538
543
  }
539
544
  ],
540
545
  loader: "../apps/deploy.ts",
@@ -553,7 +558,11 @@ var init_command_registry = __esm({
553
558
  description: "Firebase project ID (overrides .firebaserc)"
554
559
  },
555
560
  { flags: "--skip-build", description: "skip build step" },
556
- { flags: "--force", description: "Force deployment / cleanup policy" }
561
+ { flags: "--force", description: "Force deployment / cleanup policy" },
562
+ {
563
+ flags: "--scope <scope>",
564
+ description: "Deploy scope: functions, frontend, or both. Skips interactive menu (headless)"
565
+ }
557
566
  ],
558
567
  loader: "../apps/deploy.ts"
559
568
  },
@@ -970,7 +979,7 @@ function registerCommand(program2, def, action) {
970
979
  }
971
980
 
972
981
  // packages/cli/src/bin/dndev.mjs
973
- var CLI_VERSION = true ? "0.1.0" : "0.0.0";
982
+ var CLI_VERSION = true ? "0.1.1" : "0.0.0";
974
983
  var args = process.argv.slice(2);
975
984
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
976
985
  console.log(CLI_VERSION);
@@ -458,8 +458,9 @@ var init_command_registry = __esm({
458
458
  category: "build",
459
459
  options: [
460
460
  {
461
- flags: "--install <path...>",
462
- description: "Install tarballs into consumer app(s). Repeatable: --install ../wai --install ../apc"
461
+ flags: "--install <path>",
462
+ description: "Install tarballs into consumer app (repeatable: --install ../wai --install ../apc)",
463
+ collect: true
463
464
  },
464
465
  { flags: "--skip-build", description: "Use existing dist/ (no rebuild)" }
465
466
  ],
@@ -535,6 +536,10 @@ var init_command_registry = __esm({
535
536
  {
536
537
  flags: "--staging",
537
538
  description: "Deploy to staging (uses .env.staging, service-account-key.staging.json, .firebaserc staging project)"
539
+ },
540
+ {
541
+ flags: "--scope <scope>",
542
+ description: "Deploy scope: functions, frontend, or both. Skips interactive menu (headless)"
538
543
  }
539
544
  ],
540
545
  loader: "../apps/deploy.ts",
@@ -553,7 +558,11 @@ var init_command_registry = __esm({
553
558
  description: "Firebase project ID (overrides .firebaserc)"
554
559
  },
555
560
  { flags: "--skip-build", description: "skip build step" },
556
- { flags: "--force", description: "Force deployment / cleanup policy" }
561
+ { flags: "--force", description: "Force deployment / cleanup policy" },
562
+ {
563
+ flags: "--scope <scope>",
564
+ description: "Deploy scope: functions, frontend, or both. Skips interactive menu (headless)"
565
+ }
557
566
  ],
558
567
  loader: "../apps/deploy.ts"
559
568
  },
@@ -970,7 +979,7 @@ function registerCommand(program2, def, action) {
970
979
  }
971
980
 
972
981
  // packages/cli/src/bin/dndev.mjs
973
- var CLI_VERSION = true ? "0.1.0" : "0.0.0";
982
+ var CLI_VERSION = true ? "0.1.1" : "0.0.0";
974
983
  var args = process.argv.slice(2);
975
984
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
976
985
  console.log(CLI_VERSION);