@donotdev/cli 0.0.37 → 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 (119) hide show
  1. package/LICENSE.md +21 -48
  2. package/dependencies-matrix.json +108 -58
  3. package/dist/bin/commands/agent-setup.js +7196 -123
  4. package/dist/bin/commands/build.js +3341 -207
  5. package/dist/bin/commands/bump.js +268 -24
  6. package/dist/bin/commands/cacheout.js +262 -13
  7. package/dist/bin/commands/coach.js +365 -61
  8. package/dist/bin/commands/create-app.js +261 -14
  9. package/dist/bin/commands/create-project.js +270 -15
  10. package/dist/bin/commands/db.js +10743 -2346
  11. package/dist/bin/commands/deploy.js +4202 -776
  12. package/dist/bin/commands/dev.js +353 -38
  13. package/dist/bin/commands/doctor.js +412 -108
  14. package/dist/bin/commands/emu.js +392 -57
  15. package/dist/bin/commands/format.js +250 -15
  16. package/dist/bin/commands/get-demo.js +261 -14
  17. package/dist/bin/commands/make-admin.js +10022 -1552
  18. package/dist/bin/commands/preview.js +353 -38
  19. package/dist/bin/commands/seed.js +10743 -2346
  20. package/dist/bin/commands/setup-cicd.js +456 -133
  21. package/dist/bin/commands/setup.js +428 -125
  22. package/dist/bin/commands/staging.js +4202 -776
  23. package/dist/bin/commands/sync-secrets.js +250 -14
  24. package/dist/bin/commands/type-check.js +249 -13
  25. package/dist/bin/commands/wai.js +249 -13
  26. package/dist/bin/dndev.js +33 -4
  27. package/dist/bin/donotdev.js +33 -4
  28. package/dist/index.js +4278 -856
  29. package/{templates/root-consumer/guides/dndev/advanced/VERSION_CONTROL.md.example → guidelines/VERSION_CONTROL.md} +7 -11
  30. package/package.json +3 -2
  31. package/templates/app-demo/src/themes.css.example +21 -0
  32. package/templates/app-dndev/index.html.example +0 -3
  33. package/templates/app-dndev/src/themes.css.example +21 -0
  34. package/templates/app-next/src/app/layout.tsx.example +13 -4
  35. package/templates/app-next/src/themes.css.example +21 -0
  36. package/templates/app-vite/csp.example.json +44 -0
  37. package/templates/app-vite/index.html.example +0 -3
  38. package/templates/app-vite/src/themes.css.example +21 -0
  39. package/templates/functions-supabase/supabase/functions/.env.example +12 -0
  40. package/templates/functions-supabase/supabase/functions/disconnect-oauth/index.ts.example +7 -0
  41. package/templates/functions-supabase/supabase/functions/exchange-token/index.ts.example +7 -0
  42. package/templates/functions-supabase/supabase/functions/get-connections/index.ts.example +7 -0
  43. package/templates/functions-supabase/supabase/functions/refresh-token/index.ts.example +7 -0
  44. package/templates/functions-supabase/supabase/migrations/20250101000000_idempotency.sql +3 -0
  45. package/templates/functions-supabase/supabase/migrations/20250101000001_rate_limits.sql +3 -0
  46. package/templates/functions-supabase/supabase/migrations/20250101000003_operation_metrics.sql +3 -0
  47. package/templates/preset-admin/src/pages/DashboardPage.tsx.example +189 -0
  48. package/templates/preset-admin/src/pages/EntityPage.tsx.example +84 -0
  49. package/templates/preset-admin/src/pages/ReportsPage.tsx.example +243 -0
  50. package/templates/preset-admin/src/pages/SettingsPage.tsx.example +283 -0
  51. package/templates/preset-admin/src/pages/UsersPage.tsx.example +128 -0
  52. package/templates/preset-ecommerce/src/pages/CartPage.tsx.example +167 -0
  53. package/templates/preset-ecommerce/src/pages/CatalogPage.tsx.example +187 -0
  54. package/templates/preset-ecommerce/src/pages/CheckoutPage.tsx.example +244 -0
  55. package/templates/preset-ecommerce/src/pages/HomePage.tsx.example +268 -0
  56. package/templates/preset-ecommerce/src/pages/ProductPage.tsx.example +228 -0
  57. package/templates/preset-landing/src/pages/AboutPage.tsx.example +237 -0
  58. package/templates/preset-landing/src/pages/ContactPage.tsx.example +192 -0
  59. package/templates/preset-landing/src/pages/HomePage.tsx.example +399 -0
  60. package/templates/preset-saas/src/pages/DashboardPage.tsx.example +195 -0
  61. package/templates/preset-saas/src/pages/HomePage.tsx.example +270 -0
  62. package/templates/preset-saas/src/pages/PricingPage.tsx.example +204 -0
  63. package/templates/preset-saas/src/pages/ProfilePage.tsx.example +191 -0
  64. package/templates/preset-saas/src/pages/SettingsPage.tsx.example +292 -0
  65. package/templates/root-consumer/.claude/hooks/framework-compliance.sh.example +56 -0
  66. package/templates/root-consumer/.claude/hooks/guard-bash.sh.example +61 -0
  67. package/templates/root-consumer/.claude/hooks/guard-files.sh.example +46 -0
  68. package/templates/root-consumer/.claude/hooks/guard-mcp.sh.example +91 -0
  69. package/templates/root-consumer/.claude/hooks/guard-secrets.sh.example +67 -0
  70. package/templates/root-consumer/.claude/hooks/guard-write.sh.example +89 -0
  71. package/templates/root-consumer/.claude/hooks/session-start.sh.example +50 -0
  72. package/templates/root-consumer/.claude/hooks/track-mcp-lookup.sh.example +20 -0
  73. package/templates/root-consumer/.claude/hooks/typecheck-stop.sh.example +18 -0
  74. package/templates/root-consumer/.claude/rules/consumer-ux.md.example +32 -0
  75. package/templates/root-consumer/.claude/rules/definition-of-done.md.example +32 -0
  76. package/templates/root-consumer/.claude/rules/framework.md.example +39 -0
  77. package/templates/root-consumer/.claude/rules/git.md.example +14 -0
  78. package/templates/root-consumer/.claude/rules/security.md.example +13 -0
  79. package/templates/root-consumer/.claude/settings.json.example +123 -1
  80. package/templates/root-consumer/.claude/skills/brainstorm/SKILL.md.example +16 -0
  81. package/templates/root-consumer/.claude/skills/build/SKILL.md.example +103 -25
  82. package/templates/root-consumer/.claude/skills/design/SKILL.md.example +17 -0
  83. package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +33 -16
  84. package/templates/root-consumer/.claude/skills/polish/SKILL.md.example +50 -37
  85. package/templates/root-consumer/AI.md.example +2 -2
  86. package/templates/root-consumer/CLAUDE.md.example +33 -1
  87. package/templates/root-consumer/guides/dndev/INDEX.md.example +23 -27
  88. package/templates/root-consumer/guides/dndev/SETUP_AUTH.md.example +3 -2
  89. package/templates/root-consumer/guides/dndev/SETUP_OAUTH.md.example +12 -6
  90. package/templates/root-consumer/guides/dndev/SETUP_SUPABASE.md.example +50 -3
  91. package/templates/root-consumer/guides/wai-way/blueprints/3_compose.md.example +13 -15
  92. package/templates/app-demo/public/manifest.json.example +0 -10
  93. package/templates/app-dndev/public/manifest.json.example +0 -10
  94. package/templates/root-consumer/.claude/commands/brainstorm.md.example +0 -147
  95. package/templates/root-consumer/.claude/commands/build.md.example +0 -131
  96. package/templates/root-consumer/.claude/commands/design.md.example +0 -153
  97. package/templates/root-consumer/.claude/commands/grill.md.example +0 -108
  98. package/templates/root-consumer/.claude/commands/polish.md.example +0 -146
  99. package/templates/root-consumer/.claude/commands/techdebt.md.example +0 -28
  100. package/templates/root-consumer/guides/dndev/COMPONENTS_ATOMIC.md.example +0 -180
  101. package/templates/root-consumer/guides/dndev/COMPONENTS_CRUD.md.example +0 -234
  102. package/templates/root-consumer/guides/dndev/COMPONENTS_UI.md.example +0 -136
  103. package/templates/root-consumer/guides/dndev/COMPONENT_API.md.example +0 -195
  104. package/templates/root-consumer/guides/dndev/ENV_SETUP.md.example +0 -219
  105. package/templates/root-consumer/guides/dndev/GOTCHAS.md.example +0 -197
  106. package/templates/root-consumer/guides/dndev/SETUP_APP_CONFIG.md.example +0 -132
  107. package/templates/root-consumer/guides/dndev/SETUP_BLOG.md.example +0 -280
  108. package/templates/root-consumer/guides/dndev/SETUP_CICD.md.example +0 -115
  109. package/templates/root-consumer/guides/dndev/SETUP_CRUD.md.example +0 -334
  110. package/templates/root-consumer/guides/dndev/SETUP_FUNCTIONS.md.example +0 -9
  111. package/templates/root-consumer/guides/dndev/SETUP_I18N.md.example +0 -233
  112. package/templates/root-consumer/guides/dndev/SETUP_LAYOUTS.md.example +0 -158
  113. package/templates/root-consumer/guides/dndev/SETUP_PAGES.md.example +0 -205
  114. package/templates/root-consumer/guides/dndev/SETUP_PWA.md.example +0 -213
  115. package/templates/root-consumer/guides/dndev/SETUP_TESTING.md.example +0 -184
  116. package/templates/root-consumer/guides/dndev/SETUP_THEMES.md.example +0 -111
  117. package/templates/root-consumer/guides/dndev/SETUP_VERCEL.md.example +0 -260
  118. package/templates/root-consumer/guides/dndev/USE_ROUTING.md.example +0 -499
  119. package/templates/root-consumer/guides/dndev/essences_reference.css.example +0 -288
@@ -1,288 +0,0 @@
1
- /**
2
- * Reference: Framework essences (Brutalist, Luxury, Retro).
3
- * Copy the blocks you need into your app's src/themes.css.
4
- * Default essence = SaaS (Inter); these do not apply until you set the class on <html>.
5
- *
6
- * Fonts: Space Grotesk (Brutalist), Playfair Display (Luxury), Press Start 2P (Retro),
7
- * Inter, Roboto are bundled in @donotdev/ui (no external requests).
8
- */
9
-
10
- /** =========================================================================
11
- * Brutalist — Industrial, monospace body, Space Grotesk headlines, orange/black.
12
- * Set <html class="brutalist"> to apply.
13
- * ========================================================================= */
14
- .brutalist {
15
- --theme-icon: 'Construction';
16
- --theme-label: 'Brutalist';
17
- --theme-is-dark: 1;
18
-
19
- /* 1. Core Colors - Black + white + industrial orange */
20
- --background: #000000;
21
- --foreground: #ffffff;
22
- --primary: #f97316;
23
- --secondary: #ffffff;
24
- --accent: #f97316;
25
-
26
- /* 2. Semantic */
27
- --success: #22c55e;
28
- --warning: #f97316;
29
- --destructive: #dc2626;
30
-
31
- /* 3. Surfaces - Dark, industrial */
32
- --muted: #111111;
33
- --muted-foreground: #888888;
34
- --border: #ffffff;
35
- --input: #111111;
36
- --ring: #f97316;
37
- --card: #000000;
38
- --card-foreground: #f97316;
39
- --popover: #000000;
40
- --popover-foreground: #ffffff;
41
-
42
- /* 4. Text on Colors */
43
- --primary-foreground: #ffffff;
44
- --secondary-foreground: #000000;
45
- --accent-foreground: #000000;
46
- --success-foreground: #ffffff;
47
- --warning-foreground: #000000;
48
- --destructive-foreground: #ffffff;
49
-
50
- /* 5. Radius - Hard zero */
51
- --radius-interactive: 0;
52
- --radius-surface: 0;
53
- --radius-floating: 0;
54
-
55
- /* 6. Typography - Monospace for body, Space Grotesk 700 for headings */
56
- --font-family: var(--font-mono);
57
- --font-headline: "Space Grotesk", var(--font-sans);
58
- --font-weight-semibold: 700;
59
- --font-weight-bold: 700;
60
-
61
- /* 7. Borders */
62
- --border-width: 2px;
63
- --border-huge: 4px;
64
-
65
- /* 8. Shadows — flat by default, hard offset on interactive */
66
- --shadow-color: var(--foreground);
67
- --shadow-sm: none;
68
- --shadow-md: none;
69
- --shadow-xl: 8px 8px 0px 0px var(--shadow-color);
70
- --shadow-cta: 20px 20px 0px 0px var(--shadow-color);
71
-
72
- /* 9. Per-variant shadows — only at xl level (elevated/clickable) */
73
- --shadow-primary: none;
74
- --shadow-primary-xl: 8px 8px 0px 0px var(--background);
75
- --shadow-secondary: none;
76
- --shadow-secondary-xl: 8px 8px 0px 0px var(--primary);
77
-
78
- /* 10. Header padding for hard-offset shadows */
79
- --header-shadow-padding: 0.75rem;
80
- }
81
-
82
- /* Body - grid background */
83
- .brutalist body {
84
- background-color: var(--background);
85
- background-image:
86
- linear-gradient(#111 1px, transparent 1px),
87
- linear-gradient(90deg, #111 1px, transparent 1px);
88
- background-size: 40px 40px;
89
- }
90
-
91
- /* Uppercase headings (both native elements and Text component levels) */
92
- .brutalist {
93
- :is(h1, h2, h3, h4, h5, h6),
94
- [data-level^='h'] {
95
- text-transform: uppercase;
96
- }
97
- }
98
-
99
- /* Flat surface - no gradient glow */
100
- .brutalist .dndev-surface { background: var(--card); }
101
- .brutalist .dndev-surface[data-variant='outline'] { border: var(--border-width) solid var(--border); }
102
-
103
- .brutalist .dndev-card[data-variant='outline'] {
104
- background: transparent;
105
- box-shadow: none;
106
- }
107
-
108
-
109
- /** =========================================================================
110
- * Luxury — Playfair Display headlines, gold/cream, warm shadows.
111
- * Set <html class="luxury"> to apply.
112
- * ========================================================================= */
113
- .luxury {
114
- --theme-icon: 'Gem';
115
- --theme-label: 'Luxury';
116
- --theme-is-dark: 0;
117
-
118
- /* 1. Core Colors */
119
- --background: #faf8f5;
120
- --foreground: #1c1917;
121
- --primary: #b45309;
122
- --secondary: #fef3c7;
123
- --accent: #92400e;
124
-
125
- /* 2. Semantic */
126
- --success: #15803d;
127
- --warning: #b45309;
128
- --destructive: #b91c1c;
129
-
130
- /* 3. Surfaces */
131
- --muted: #fef9c3;
132
- --muted-foreground: #78716c;
133
- --border: #e7e5e4;
134
- --border-hairline: 1px;
135
- --input: #ffffff;
136
- --ring: #b45309;
137
- --card: #ffffff;
138
- --card-foreground: #1c1917;
139
- --popover: #ffffff;
140
- --popover-foreground: #1c1917;
141
-
142
- /* 4. Text on Colors */
143
- --primary-foreground: #ffffff;
144
- --secondary-foreground: #1c1917;
145
- --accent-foreground: #ffffff;
146
- --success-foreground: #ffffff;
147
- --warning-foreground: #1c1917;
148
- --destructive-foreground: #ffffff;
149
-
150
- /* 5. Radius */
151
- --radius-interactive: 0.375rem;
152
- --radius-surface: 0.5rem;
153
- --radius-floating: 0.5rem;
154
-
155
- /* 6. Typography — lighter weights, serif headlines */
156
- --font-family: var(--font-sans);
157
- --font-headline: 'Playfair Display', var(--font-serif);
158
- --font-weight-normal: 300;
159
- --font-weight-medium: 400;
160
- --font-weight-semibold: 500;
161
- --font-weight-bold: 600;
162
-
163
- /* 7. Spacing — generous, one notch above expressive */
164
- --gap-sm: 0.75rem;
165
- --gap-md: 1.5rem;
166
- --gap-lg: 3rem;
167
-
168
- /* 8. Shadows — warm gold-tinted, soft diffused */
169
- --shadow-color: color-mix(in oklab, #b45309 8%, transparent);
170
- --shadow-sm: 0 1px 3px var(--shadow-color);
171
- --shadow-md: 0 4px 12px var(--shadow-color);
172
- --shadow-xl: 0 8px 24px var(--shadow-color);
173
- }
174
-
175
-
176
- /** =========================================================================
177
- * Retro — 8-bit pixel aesthetic, Press Start 2P, neon on dark, CRT vibes.
178
- * Set <html class="retro"> to apply.
179
- * ========================================================================= */
180
- .retro {
181
- --theme-icon: 'Gamepad2';
182
- --theme-label: 'Retro';
183
- --theme-is-dark: 1;
184
-
185
- /* 1. Core Colors - Muted neon on zinc */
186
- --background: #1c1c22;
187
- --foreground: #c8e6c9;
188
- --primary: #5eead4;
189
- --secondary: #c084fc;
190
- --accent: #fbbf24;
191
-
192
- /* 2. Semantic */
193
- --success: #6ee7b7;
194
- --warning: #fbbf24;
195
- --destructive: #f87171;
196
-
197
- /* 3. Surfaces - Zinc CRT glass */
198
- --muted: #27272f;
199
- --muted-foreground: #8bae8b;
200
- --border: #4a6a4a;
201
- --input: #1c1c22;
202
- --ring: #5eead4;
203
- --card: #222228;
204
- --card-foreground: #c8e6c9;
205
- --popover: #222228;
206
- --popover-foreground: #c8e6c9;
207
-
208
- /* 4. Text on Colors */
209
- --primary-foreground: #0f172a;
210
- --secondary-foreground: #0f172a;
211
- --accent-foreground: #0f172a;
212
- --success-foreground: #0f172a;
213
- --warning-foreground: #0f172a;
214
- --destructive-foreground: #ffffff;
215
-
216
- /* 5. Radius - Hard pixel corners */
217
- --radius-interactive: 0;
218
- --radius-surface: 0;
219
- --radius-floating: 0;
220
-
221
- /* 6. Typography - Press Start 2P (pixel font, 400 only) */
222
- --font-family: 'Press Start 2P', var(--font-mono);
223
- --font-headline: 'Press Start 2P', var(--font-mono);
224
- --font-weight-normal: 400;
225
- --font-weight-medium: 400;
226
- --font-weight-semibold: 400;
227
- --font-weight-bold: 400;
228
-
229
- /* 7. Font scale - smaller base (pixel font reads large) */
230
- --font-size-xs: 0.5rem;
231
- --font-size-sm: 0.625rem;
232
- --font-size-base: 0.75rem;
233
- --font-size-lg: 0.875rem;
234
- --font-size-xl: 1rem;
235
- --font-size-2xl: 1.25rem;
236
- --font-size-3xl: 1.5rem;
237
- --line-height: 1.6;
238
-
239
- /* 8. Borders - Chunky pixel borders */
240
- --border-width: 3px;
241
- --border-huge: 4px;
242
-
243
- /* 9. Shadows — soft neon glow */
244
- --shadow-color: #5eead433;
245
- --shadow-sm: 0 0 4px #5eead422;
246
- --shadow-md: 0 0 8px #5eead433, 0 0 16px #5eead41a;
247
- --shadow-xl: 0 0 12px #5eead444, 0 0 24px #5eead42a, 0 0 48px #c084fc1a;
248
- --shadow-cta: 0 0 16px #5eead444, 0 0 32px #5eead422;
249
-
250
- /* 10. Per-variant shadows — soft neon matching */
251
- --shadow-primary: 0 0 8px #5eead42a;
252
- --shadow-primary-xl: 0 0 16px #5eead444, 0 0 32px #5eead422;
253
- --shadow-secondary: 0 0 8px #c084fc2a;
254
- --shadow-secondary-xl: 0 0 16px #c084fc44, 0 0 32px #c084fc22;
255
-
256
- /* 11. Header padding */
257
- --header-shadow-padding: 0;
258
- }
259
-
260
- /* Body - subtle CRT scanlines */
261
- .retro body {
262
- background-color: var(--background);
263
- background-image:
264
- repeating-linear-gradient(
265
- 0deg,
266
- transparent,
267
- transparent 2px,
268
- rgba(0, 0, 0, 0.08) 2px,
269
- rgba(0, 0, 0, 0.08) 4px
270
- );
271
- }
272
-
273
- /* Uppercase headings (pixel fonts look best in caps) */
274
- .retro {
275
- :is(h1, h2, h3, h4, h5, h6),
276
- [data-level^='h'] {
277
- text-transform: uppercase;
278
- }
279
- }
280
-
281
- /* Flat surfaces - no gradient, pixel-sharp */
282
- .retro .dndev-surface { background: var(--card); }
283
- .retro .dndev-surface[data-variant='outline'] { border: var(--border-width) solid var(--border); }
284
-
285
- .retro .dndev-card[data-variant='outline'] {
286
- background: transparent;
287
- box-shadow: none;
288
- }