@donotdev/cli 0.1.0 → 0.1.42
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/LICENSE.md +1 -1
- package/README.md +0 -0
- package/dependencies-matrix.json +175 -72
- package/dist/bin/commands/agent-setup.js +936 -428
- package/dist/bin/commands/build.js +4363 -883
- package/dist/bin/commands/bump.js +1296 -780
- package/dist/bin/commands/cacheout.js +494 -363
- package/dist/bin/commands/coach.js +632 -431
- package/dist/bin/commands/create-app.js +1316 -799
- package/dist/bin/commands/create-project.js +1355 -827
- package/dist/bin/commands/db.js +26158 -18868
- package/dist/bin/commands/deploy.js +5983 -1971
- package/dist/bin/commands/dev.js +1223 -657
- package/dist/bin/commands/doctor.js +1100 -528
- package/dist/bin/commands/emu.js +1380 -757
- package/dist/bin/commands/format.js +494 -363
- package/dist/bin/commands/get-demo.js +1210 -715
- package/dist/bin/commands/make-admin.js +16073 -8700
- package/dist/bin/commands/preview.js +1227 -658
- package/dist/bin/commands/seed.js +26171 -18881
- package/dist/bin/commands/setup-cicd.js +1475 -880
- package/dist/bin/commands/setup.js +1574 -956
- package/dist/bin/commands/staging.js +5984 -1972
- package/dist/bin/commands/sync-secrets.js +1423 -676
- package/dist/bin/commands/type-check.js +976 -469
- package/dist/bin/commands/wai.js +499 -368
- package/dist/bin/dndev.js +43 -19
- package/dist/bin/donotdev.js +43 -19
- package/dist/index.js +6166 -2133
- package/guidelines/DEPENDENCIES.md +155 -0
- package/{templates/root-consumer/guides/dndev/advanced/VERSION_CONTROL.md.example → guidelines/VERSION_CONTROL.md} +7 -11
- package/package.json +2 -1
- package/templates/app-demo/.env.example +1 -1
- package/templates/app-demo/entities/Contact.ts.example +0 -0
- package/templates/app-demo/entities/ExampleEntity.ts.example +0 -0
- package/templates/app-demo/entities/demo.ts.example +0 -0
- package/templates/app-demo/index.html.example +0 -0
- package/templates/app-demo/public/apple-touch-icon.png.example +0 -0
- package/templates/app-demo/public/fonts/fonts.css.example +0 -0
- package/templates/app-demo/public/icon-192x192.png.example +0 -0
- package/templates/app-demo/public/icon-512x512.png.example +0 -0
- package/templates/app-demo/src/App.tsx.example +0 -0
- package/templates/app-demo/src/config/app.ts.example +0 -0
- package/templates/app-demo/src/entities/booking.ts.example +0 -0
- package/templates/app-demo/src/entities/onboarding.ts.example +0 -0
- package/templates/app-demo/src/entities/product.ts.example +0 -0
- package/templates/app-demo/src/entities/quote.ts.example +0 -0
- package/templates/app-demo/src/globals.css.example +0 -0
- package/templates/app-demo/src/main.tsx.example +0 -0
- package/templates/app-demo/src/pages/ChangelogPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ConditionalFormPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/DashboardPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/HomePage.tsx.example +0 -0
- package/templates/app-demo/src/pages/OnboardingPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/PricingPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ProductsPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ProfilePage.tsx.example +0 -0
- package/templates/app-demo/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ShowcaseDetailPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/ShowcasePage.tsx.example +0 -0
- package/templates/app-demo/src/pages/components/ComponentRenderer.tsx.example +0 -0
- package/templates/app-demo/src/pages/components/ComponentsData.tsx.example +0 -0
- package/templates/app-demo/src/pages/components/componentConfig.ts.example +0 -0
- package/templates/app-demo/src/pages/legal/LegalPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/legal/PrivacyPage.tsx.example +0 -0
- package/templates/app-demo/src/pages/legal/TermsPage.tsx.example +0 -0
- package/templates/app-demo/src/themes.css.example +27 -0
- package/templates/app-demo/tsconfig.json.example +0 -0
- package/templates/app-demo/vite.config.ts.example +0 -0
- package/templates/app-dndev/index.html.example +0 -3
- package/templates/app-dndev/src/App.tsx.example +0 -0
- package/templates/app-dndev/src/components/CockpitLayout.css.example +0 -0
- package/templates/app-dndev/src/components/CockpitLayout.tsx.example +0 -0
- package/templates/app-dndev/src/components/Kanban.css.example +0 -0
- package/templates/app-dndev/src/components/ModeToggle.tsx.example +0 -0
- package/templates/app-dndev/src/components/OverlaySlot.tsx.example +0 -0
- package/templates/app-dndev/src/components/TerminalPanel.css.example +0 -0
- package/templates/app-dndev/src/components/TerminalPanel.tsx.example +0 -0
- package/templates/app-dndev/src/components/markdown-prose.css.example +0 -0
- package/templates/app-dndev/src/components/phases/CaptainLog.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/ContextTabs.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/PhaseCard.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/PhaseDetail.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/ReviewPanel.tsx.example +0 -0
- package/templates/app-dndev/src/components/phases/phaseData.ts.example +0 -0
- package/templates/app-dndev/src/config/app.ts.example +0 -0
- package/templates/app-dndev/src/config/commands.ts.example +0 -0
- package/templates/app-dndev/src/config/legal.ts.example +0 -0
- package/templates/app-dndev/src/config/providers.ts.example +1 -1
- package/templates/app-dndev/src/globals.css.example +0 -0
- package/templates/app-dndev/src/hooks/useDndevFile.ts.example +0 -0
- package/templates/app-dndev/src/main.tsx.example +0 -0
- package/templates/app-dndev/src/pages/BoardPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/GrillPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/HomePage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/NotFoundPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/PhasesPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/legal/LegalNoticePage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/legal/PrivacyPage.tsx.example +0 -0
- package/templates/app-dndev/src/pages/legal/TermsPage.tsx.example +0 -0
- package/templates/app-dndev/src/stores/dndevStore.ts.example +0 -0
- package/templates/app-dndev/src/themes.css.example +26 -0
- package/templates/app-dndev/terminal-sidecar.cjs.example +0 -0
- package/templates/app-dndev/vite.config.ts.example +0 -0
- package/templates/app-expo/.env.example +0 -32
- package/templates/app-expo/.expo/README.md.example +0 -0
- package/templates/app-expo/.gitignore.example +0 -0
- package/templates/app-expo/README.md.example +1 -1
- package/templates/app-expo/app/.gitkeep +0 -0
- package/templates/app-expo/app/_layout.tsx.example +0 -0
- package/templates/app-expo/app/form.tsx.example +0 -0
- package/templates/app-expo/app/index.tsx.example +0 -0
- package/templates/app-expo/app/list.tsx.example +0 -0
- package/templates/app-expo/app/profile.tsx.example +0 -0
- package/templates/app-expo/app/signin.tsx.example +0 -0
- package/templates/app-expo/app.json.example +0 -0
- package/templates/app-expo/assets/adaptive-icon.png +0 -0
- package/templates/app-expo/assets/favicon.png +0 -0
- package/templates/app-expo/assets/icon.png +0 -0
- package/templates/app-expo/assets/splash.png +0 -0
- package/templates/app-expo/babel.config.js.example +0 -0
- package/templates/app-expo/eas.json.example +0 -0
- package/templates/app-expo/expo-env.d.ts.example +0 -0
- package/templates/app-expo/metro.config.js.example +0 -0
- package/templates/app-expo/service-account-key.json.example +1 -1
- package/templates/app-expo/src/config/app.ts.example +0 -0
- package/templates/app-expo/src/config/providers.ts.example +1 -1
- package/templates/app-expo/tsconfig.json.example +0 -0
- package/templates/app-next/.env.example +0 -33
- package/templates/app-next/next.config.ts.example +0 -2
- package/templates/app-next/postcss.config.js.example +0 -0
- package/templates/app-next/service-account-key.json.example +0 -0
- package/templates/app-next/src/app/ClientLayout.tsx.example +0 -0
- package/templates/app-next/src/app/layout.tsx.example +13 -4
- package/templates/app-next/src/app/not-found.tsx.example +0 -0
- package/templates/app-next/src/config/app.ts.example +0 -0
- package/templates/app-next/src/config/legal.ts.example +0 -0
- package/templates/app-next/src/config/providers.ts.example +1 -1
- package/templates/app-next/src/globals.css.example +0 -0
- package/templates/app-next/src/locales/dndev_en.json.example +0 -0
- package/templates/app-next/src/locales/home_en.json.example +6 -6
- package/templates/app-next/src/pages/HomePage.tsx.example +0 -0
- package/templates/app-next/src/pages/legal/LegalNoticePage.tsx.example +0 -0
- package/templates/app-next/src/pages/legal/PrivacyPage.tsx.example +0 -0
- package/templates/app-next/src/pages/legal/TermsPage.tsx.example +0 -0
- package/templates/app-next/src/pages/locales/example_en.json.example +0 -0
- package/templates/app-next/src/themes.css.example +28 -1
- package/templates/app-vite/.env.example +0 -33
- package/templates/app-vite/csp.example.json +44 -0
- package/templates/app-vite/index.html.example +0 -3
- package/templates/app-vite/service-account-key.json.example +0 -0
- package/templates/app-vite/src/App.tsx.example +0 -0
- package/templates/app-vite/src/config/app.ts.example +0 -0
- package/templates/app-vite/src/config/legal.ts.example +0 -0
- package/templates/app-vite/src/config/providers.ts.example +1 -1
- package/templates/app-vite/src/globals.css.example +0 -0
- package/templates/app-vite/src/locales/dndev_en.json.example +0 -0
- package/templates/app-vite/src/locales/home_en.json.example +6 -6
- package/templates/app-vite/src/main.tsx.example +0 -0
- package/templates/app-vite/src/pages/FormPageExample.tsx.example +0 -0
- package/templates/app-vite/src/pages/HomePage.tsx.example +1 -1
- package/templates/app-vite/src/pages/ListPageExample.tsx.example +0 -0
- package/templates/app-vite/src/pages/NotFoundPage.tsx.example +0 -0
- package/templates/app-vite/src/pages/legal/LegalNoticePage.tsx.example +0 -0
- package/templates/app-vite/src/pages/legal/PrivacyPage.tsx.example +0 -0
- package/templates/app-vite/src/pages/legal/TermsPage.tsx.example +0 -0
- package/templates/app-vite/src/pages/locales/example_en.json.example +0 -0
- package/templates/app-vite/src/themes.css.example +26 -0
- package/templates/deploy-config/.firebaserc.example +0 -0
- package/templates/deploy-config/firestore.indexes.json.example +0 -0
- package/templates/deploy-config/firestore.rules.example +0 -0
- package/templates/deploy-config/storage.rules.example +0 -0
- package/templates/deploy-config/tsconfig.functions.json.example +0 -0
- package/templates/deploy-config/vercel.json.example +2 -2
- package/templates/functions-firebase/.env.example +2 -2
- package/templates/functions-firebase/README.md.example +3 -3
- package/templates/functions-firebase/build.mjs.example +0 -0
- package/templates/functions-firebase/functions.config.js.example +0 -0
- package/templates/functions-firebase/functions.yaml.example +0 -0
- package/templates/functions-firebase/src/auth/getCustomClaims.ts.example +0 -0
- package/templates/functions-firebase/src/auth/getUserAuthStatus.ts.example +0 -0
- package/templates/functions-firebase/src/auth/index.ts.example +0 -0
- package/templates/functions-firebase/src/auth/removeCustomClaims.ts.example +0 -0
- package/templates/functions-firebase/src/auth/setCustomClaims.ts.example +0 -0
- package/templates/functions-firebase/src/billing/handleStripeWebhook.ts.example +0 -0
- package/templates/functions-firebase/src/billing/index.ts.example +0 -0
- package/templates/functions-firebase/src/billing/processPaymentSuccess.ts.example +0 -0
- package/templates/functions-firebase/src/billing/refreshSubscriptionStatus.ts.example +0 -0
- package/templates/functions-firebase/src/crud/createEntity.ts.example +0 -0
- package/templates/functions-firebase/src/crud/deleteEntity.ts.example +0 -0
- package/templates/functions-firebase/src/crud/getEntity.ts.example +0 -0
- package/templates/functions-firebase/src/crud/index.ts.example +0 -0
- package/templates/functions-firebase/src/crud/listEntities.ts.example +0 -0
- package/templates/functions-firebase/src/crud/updateEntity.ts.example +0 -0
- package/templates/functions-firebase/src/index.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/checkGitHubAccess.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/disconnect.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/exchangeToken.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/getConnections.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/grantGitHubAccess.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/index.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/refreshToken.ts.example +0 -0
- package/templates/functions-firebase/src/oauth/revokeGitHubAccess.ts.example +0 -0
- package/templates/functions-firebase/tsconfig.json.example +0 -0
- package/templates/functions-supabase/supabase/config.toml.example +0 -0
- package/templates/functions-supabase/supabase/functions/.env.example +0 -0
- package/templates/functions-supabase/supabase/functions/cancel-subscription/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/change-plan/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/create-checkout-session/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/create-customer-portal/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/crud/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/delete-account/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/deno.json.example +0 -0
- package/templates/functions-supabase/supabase/functions/disconnect-oauth/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/exchange-token/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/get-connections/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/get-custom-claims/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/get-user-auth-status/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/refresh-subscription-status/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/refresh-token/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/remove-custom-claims/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/functions/set-custom-claims/index.ts.example +0 -0
- package/templates/functions-supabase/supabase/migrations/20250101000000_idempotency.sql +3 -0
- package/templates/functions-supabase/supabase/migrations/20250101000001_rate_limits.sql +3 -0
- package/templates/functions-supabase/supabase/migrations/20250101000002_cleanup_jobs.sql +0 -0
- package/templates/functions-supabase/supabase/migrations/20250101000003_operation_metrics.sql +3 -0
- package/templates/functions-supabase/supabase/migrations/20250101000004_crud_bulk.sql +192 -0
- package/templates/functions-vercel/.env.example +3 -3
- package/templates/functions-vercel/README.md.example +2 -2
- package/templates/functions-vercel/build.mjs.example +0 -0
- package/templates/functions-vercel/src/api/auth/getCustomClaims.ts.example +0 -0
- package/templates/functions-vercel/src/api/auth/getUserAuthStatus.ts.example +0 -0
- package/templates/functions-vercel/src/api/auth/removeCustomClaims.ts.example +0 -0
- package/templates/functions-vercel/src/api/auth/setCustomClaims.ts.example +0 -0
- package/templates/functions-vercel/src/api/billing/handleStripeWebhook.ts.example +0 -0
- package/templates/functions-vercel/src/api/billing/processPaymentSuccess.ts.example +0 -0
- package/templates/functions-vercel/src/api/billing/refreshSubscriptionStatus.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/createEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/deleteEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/getEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/listEntities.ts.example +0 -0
- package/templates/functions-vercel/src/api/crud/updateEntity.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/checkGitHubAccess.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/disconnect.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/exchangeToken.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/getConnections.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/grantGitHubAccess.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/refreshToken.ts.example +0 -0
- package/templates/functions-vercel/src/api/oauth/revokeGitHubAccess.ts.example +0 -0
- package/templates/functions-vercel/tsconfig.json.example +0 -0
- package/templates/functions-vercel/vercel.json.example +0 -0
- package/templates/github-consumer/.github/workflows/ci.yml.example +0 -0
- package/templates/overlay-firebase/env.fragment.example +0 -0
- package/templates/overlay-firebase/env.fragment.expo.example +0 -0
- package/templates/overlay-firebase/env.fragment.nextjs.example +0 -0
- package/templates/overlay-firebase/src/config/providers.expo.ts.example +0 -0
- package/templates/overlay-firebase/src/config/providers.ts.example +0 -0
- package/templates/overlay-supabase/env.fragment.example +0 -0
- package/templates/overlay-supabase/env.fragment.expo.example +0 -0
- package/templates/overlay-supabase/env.fragment.nextjs.example +0 -0
- package/templates/overlay-supabase/src/config/providers.expo.ts.example +1 -1
- package/templates/overlay-supabase/src/config/providers.ts.example +1 -1
- package/templates/overlay-vercel/env.fragment.example +0 -0
- package/templates/overlay-vercel/env.fragment.nextjs.example +0 -0
- package/templates/overlay-vercel/src/config/providers.ts.example +0 -0
- package/templates/preset-admin/src/pages/DashboardPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/EntityPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/ReportsPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/preset-admin/src/pages/UsersPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/CartPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/CatalogPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/CheckoutPage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/HomePage.tsx.example +0 -0
- package/templates/preset-ecommerce/src/pages/ProductPage.tsx.example +0 -0
- package/templates/preset-landing/src/pages/AboutPage.tsx.example +0 -0
- package/templates/preset-landing/src/pages/ContactPage.tsx.example +0 -0
- package/templates/preset-landing/src/pages/HomePage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/DashboardPage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/HomePage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/PricingPage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/ProfilePage.tsx.example +0 -0
- package/templates/preset-saas/src/pages/SettingsPage.tsx.example +0 -0
- package/templates/root-consumer/.claude/agents/architect.md.example +0 -0
- package/templates/root-consumer/.claude/agents/builder.md.example +0 -0
- package/templates/root-consumer/.claude/agents/coder.md.example +0 -0
- package/templates/root-consumer/.claude/agents/extractor.md.example +0 -0
- package/templates/root-consumer/.claude/agents/polisher.md.example +0 -0
- package/templates/root-consumer/.claude/agents/prompt-engineer.md.example +0 -0
- package/templates/root-consumer/.claude/hooks/guard-bash.sh.example +61 -0
- package/templates/root-consumer/.claude/hooks/guard-write.sh.example +56 -0
- package/templates/root-consumer/.claude/hooks/session-start.sh.example +50 -0
- package/templates/root-consumer/.claude/hooks/typecheck-stop.sh.example +18 -0
- package/templates/root-consumer/.claude/rules/consumer-ux.md.example +32 -0
- package/templates/root-consumer/.claude/rules/definition-of-done.md.example +32 -0
- package/templates/root-consumer/.claude/rules/framework.md.example +39 -0
- package/templates/root-consumer/.claude/rules/git.md.example +14 -0
- package/templates/root-consumer/.claude/rules/security.md.example +13 -0
- package/templates/root-consumer/.claude/settings.json.example +100 -4
- package/templates/root-consumer/.claude/skills/brainstorm/SKILL.md.example +0 -0
- package/templates/root-consumer/.claude/skills/build/SKILL.md.example +22 -27
- package/templates/root-consumer/.claude/skills/design/SKILL.md.example +0 -0
- package/templates/root-consumer/.claude/skills/design/output-template.md +0 -0
- package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +26 -15
- package/templates/root-consumer/.claude/skills/polish/SKILL.md.example +50 -37
- package/templates/root-consumer/.claude/skills/techdebt/SKILL.md.example +0 -0
- package/templates/root-consumer/.cursor/mcp.json.example +0 -0
- package/templates/root-consumer/.cursor/rules/no-docs.mdc.example +5 -1
- package/templates/root-consumer/.dndev/args.json.example +0 -0
- package/templates/root-consumer/.dndev.secrets.example +0 -0
- package/templates/root-consumer/.env.example +0 -1
- package/templates/root-consumer/.gemini/settings.json.example +0 -0
- package/templates/root-consumer/.gitignore.example +1 -0
- package/templates/root-consumer/.mcp.json.example +0 -0
- package/templates/root-consumer/.prettierrc.cjs.example +0 -0
- package/templates/root-consumer/AGENTS.md.example +63 -0
- package/templates/root-consumer/CLAUDE.md.example +1 -1
- package/templates/root-consumer/README.md.example +11 -33
- package/templates/root-consumer/entities/index.ts.example +0 -0
- package/templates/root-consumer/eslint.config.js.example +0 -0
- package/templates/root-consumer/tsconfig.json.example +0 -0
- package/templates/app-demo/public/manifest.json.example +0 -10
- package/templates/app-dndev/public/manifest.json.example +0 -10
- package/templates/root-consumer/.claude/commands/brainstorm.md.example +0 -175
- package/templates/root-consumer/.claude/commands/build.md.example +0 -131
- package/templates/root-consumer/.claude/commands/design.md.example +0 -184
- package/templates/root-consumer/.claude/commands/grill.md.example +0 -135
- package/templates/root-consumer/.claude/commands/polish.md.example +0 -146
- package/templates/root-consumer/.claude/commands/techdebt.md.example +0 -28
- package/templates/root-consumer/.claude/statusline.py.example +0 -79
- package/templates/root-consumer/.clinerules.example +0 -1
- package/templates/root-consumer/.cursorrules.example +0 -1
- package/templates/root-consumer/.github/copilot-instructions.md.example +0 -1
- package/templates/root-consumer/.windsurfrules.example +0 -1
- package/templates/root-consumer/AI.md.example +0 -108
- package/templates/root-consumer/CONVENTIONS.md.example +0 -1
- package/templates/root-consumer/GEMINI.md.example +0 -1
- package/templates/root-consumer/guides/dndev/AGENT_START_HERE.md.example +0 -135
- package/templates/root-consumer/guides/dndev/COMPONENTS_ADV.md.example +0 -276
- package/templates/root-consumer/guides/dndev/COMPONENTS_ATOMIC.md.example +0 -180
- package/templates/root-consumer/guides/dndev/COMPONENTS_CRUD.md.example +0 -234
- package/templates/root-consumer/guides/dndev/COMPONENTS_UI.md.example +0 -136
- package/templates/root-consumer/guides/dndev/COMPONENT_API.md.example +0 -195
- package/templates/root-consumer/guides/dndev/ENV_SETUP.md.example +0 -219
- package/templates/root-consumer/guides/dndev/GOTCHAS.md.example +0 -197
- package/templates/root-consumer/guides/dndev/INDEX.md.example +0 -60
- package/templates/root-consumer/guides/dndev/SETUP_APP_CONFIG.md.example +0 -132
- package/templates/root-consumer/guides/dndev/SETUP_AUTH.md.example +0 -133
- package/templates/root-consumer/guides/dndev/SETUP_BILLING.md.example +0 -114
- package/templates/root-consumer/guides/dndev/SETUP_BLOG.md.example +0 -280
- package/templates/root-consumer/guides/dndev/SETUP_CICD.md.example +0 -115
- package/templates/root-consumer/guides/dndev/SETUP_CRUD.md.example +0 -334
- package/templates/root-consumer/guides/dndev/SETUP_FIREBASE.md.example +0 -231
- package/templates/root-consumer/guides/dndev/SETUP_FUNCTIONS.md.example +0 -9
- package/templates/root-consumer/guides/dndev/SETUP_I18N.md.example +0 -233
- package/templates/root-consumer/guides/dndev/SETUP_LAYOUTS.md.example +0 -158
- package/templates/root-consumer/guides/dndev/SETUP_OAUTH.md.example +0 -54
- package/templates/root-consumer/guides/dndev/SETUP_OAUTH_PROVIDERS.md.example +0 -60
- package/templates/root-consumer/guides/dndev/SETUP_PAGES.md.example +0 -205
- package/templates/root-consumer/guides/dndev/SETUP_PWA.md.example +0 -213
- package/templates/root-consumer/guides/dndev/SETUP_SOC2.md.example +0 -234
- package/templates/root-consumer/guides/dndev/SETUP_STRIPE.md.example +0 -62
- package/templates/root-consumer/guides/dndev/SETUP_SUPABASE.md.example +0 -215
- package/templates/root-consumer/guides/dndev/SETUP_TESTING.md.example +0 -184
- package/templates/root-consumer/guides/dndev/SETUP_THEMES.md.example +0 -111
- package/templates/root-consumer/guides/dndev/SETUP_VERCEL.md.example +0 -260
- package/templates/root-consumer/guides/dndev/USE_ROUTING.md.example +0 -499
- package/templates/root-consumer/guides/dndev/advanced/APP_CHECK.md.example +0 -111
- package/templates/root-consumer/guides/dndev/advanced/COOKIE_REFERENCE.md.example +0 -252
- package/templates/root-consumer/guides/dndev/advanced/EMULATORS.md.example +0 -48
- package/templates/root-consumer/guides/dndev/essences_reference.css.example +0 -288
- package/templates/root-consumer/guides/wai-way/WAI_WAY_CLI.md.example +0 -402
- package/templates/root-consumer/guides/wai-way/agents/architect.md.example +0 -78
- package/templates/root-consumer/guides/wai-way/agents/builder.md.example +0 -97
- package/templates/root-consumer/guides/wai-way/agents/extractor.md.example +0 -363
- package/templates/root-consumer/guides/wai-way/agents/polisher.md.example +0 -133
- package/templates/root-consumer/guides/wai-way/blueprints/0_brainstorm.md.example +0 -315
- package/templates/root-consumer/guides/wai-way/blueprints/1_scaffold.md.example +0 -133
- package/templates/root-consumer/guides/wai-way/blueprints/2_entities.md.example +0 -111
- package/templates/root-consumer/guides/wai-way/blueprints/3_compose.md.example +0 -150
- package/templates/root-consumer/guides/wai-way/blueprints/4_configure.md.example +0 -238
- package/templates/root-consumer/guides/wai-way/context_map.json.example +0 -127
- package/templates/root-consumer/guides/wai-way/entity_patterns.md.example +0 -839
- package/templates/root-consumer/guides/wai-way/hld_template.md.example +0 -138
- package/templates/root-consumer/guides/wai-way/lld_template.md.example +0 -103
- package/templates/root-consumer/guides/wai-way/page_patterns.md.example +0 -722
- package/templates/root-consumer/guides/wai-way/prd_template.md.example +0 -140
- package/templates/root-consumer/guides/wai-way/presets_guide.md.example +0 -217
- package/templates/root-consumer/guides/wai-way/spec_template.md.example +0 -313
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
# Setup: Blog
|
|
2
|
-
|
|
3
|
-
**Convention-based markdown blog.** Drop `slug_lang.md` files in `src/content/blog/`, get a fully functional blog with i18n, reading time, tags, RSS, and sitemap.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Quick Start
|
|
8
|
-
|
|
9
|
-
### 1. Create the content directory
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
src/content/blog/
|
|
13
|
-
├── my-first-post_en.md
|
|
14
|
-
├── my-first-post_fr.md
|
|
15
|
-
└── another-post_en.md
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
### 2. Write a post with frontmatter
|
|
19
|
-
|
|
20
|
-
```markdown
|
|
21
|
-
---
|
|
22
|
-
title: My First Post
|
|
23
|
-
description: A short summary for listings and SEO
|
|
24
|
-
date: 2025-06-01
|
|
25
|
-
tags: tutorial, getting-started
|
|
26
|
-
image: /blog/my-first-post.png
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
Your markdown content here. Supports:
|
|
30
|
-
- **Bold**, *italic*, ~~strikethrough~~
|
|
31
|
-
- [Internal links](/faq) and [external links](https://example.com)
|
|
32
|
-
- Images: 
|
|
33
|
-
- Code blocks with syntax highlighting
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
### 3. Create the data loader
|
|
37
|
-
|
|
38
|
-
```typescript
|
|
39
|
-
// src/data/blog/index.ts
|
|
40
|
-
import { createBlogLoader } from '@donotdev/templates';
|
|
41
|
-
import type { BlogLoader } from '@donotdev/templates';
|
|
42
|
-
|
|
43
|
-
const markdownFiles = import.meta.glob('../../content/blog/*.md', {
|
|
44
|
-
query: '?raw',
|
|
45
|
-
import: 'default',
|
|
46
|
-
eager: true,
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
export function getBlogLoader(lang: string = 'en'): BlogLoader {
|
|
50
|
-
return createBlogLoader(markdownFiles as Record<string, string>, lang);
|
|
51
|
-
}
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
### 4. Create the listing page
|
|
55
|
-
|
|
56
|
-
```typescript
|
|
57
|
-
// src/pages/BlogPage.tsx
|
|
58
|
-
import { BookOpen } from 'lucide-react';
|
|
59
|
-
import { HeroSection } from '@donotdev/components';
|
|
60
|
-
import { useTranslation, type PageMeta } from '@donotdev/core';
|
|
61
|
-
import { BlogList } from '@donotdev/templates';
|
|
62
|
-
import { PageContainer } from '@donotdev/ui';
|
|
63
|
-
import { getBlogLoader } from '../data/blog';
|
|
64
|
-
|
|
65
|
-
export const NAMESPACE = 'blog';
|
|
66
|
-
export const meta: PageMeta = { namespace: NAMESPACE, icon: <BookOpen /> };
|
|
67
|
-
|
|
68
|
-
export default function BlogPage() {
|
|
69
|
-
const { t, i18n } = useTranslation([NAMESPACE]);
|
|
70
|
-
const posts = getBlogLoader(i18n?.language).getAllPosts();
|
|
71
|
-
|
|
72
|
-
return (
|
|
73
|
-
<PageContainer variant="docs">
|
|
74
|
-
<HeroSection title={t('title')} subtitle={t('subtitle')} />
|
|
75
|
-
<BlogList posts={posts} />
|
|
76
|
-
</PageContainer>
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
### 5. Create the post page (dynamic route)
|
|
82
|
-
|
|
83
|
-
```typescript
|
|
84
|
-
// src/pages/BlogPostPage.tsx
|
|
85
|
-
import { BookOpen } from 'lucide-react';
|
|
86
|
-
import { useTranslation, type PageMeta } from '@donotdev/core';
|
|
87
|
-
import { BlogPostView } from '@donotdev/templates';
|
|
88
|
-
import { PageContainer, useRouteParam } from '@donotdev/ui';
|
|
89
|
-
import { getBlogLoader } from '../data/blog';
|
|
90
|
-
|
|
91
|
-
export const NAMESPACE = 'blog';
|
|
92
|
-
export const meta: PageMeta = {
|
|
93
|
-
namespace: NAMESPACE,
|
|
94
|
-
icon: <BookOpen />,
|
|
95
|
-
route: '/blog/:slug',
|
|
96
|
-
hideFromMenu: true,
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
export default function BlogPostPage() {
|
|
100
|
-
const { i18n } = useTranslation([NAMESPACE]);
|
|
101
|
-
const slug = useRouteParam('slug');
|
|
102
|
-
const post = slug ? getBlogLoader(i18n?.language).getPostBySlug(slug) : null;
|
|
103
|
-
|
|
104
|
-
return (
|
|
105
|
-
<PageContainer variant="docs">
|
|
106
|
-
<BlogPostView post={post} />
|
|
107
|
-
</PageContainer>
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
### 6. Add locale files
|
|
113
|
-
|
|
114
|
-
Blog UI labels (`readMore`, `backToBlog`, `publishedOn`, etc.) are provided by the framework via `blog_*.json` in `@donotdev/core`. Override any key by creating the same file in your app.
|
|
115
|
-
|
|
116
|
-
Page-specific strings (title, subtitle) go in your app locale:
|
|
117
|
-
|
|
118
|
-
```json
|
|
119
|
-
// src/pages/locales/blog_en.json
|
|
120
|
-
{
|
|
121
|
-
"title": "Blog",
|
|
122
|
-
"subtitle": "Your subtitle here"
|
|
123
|
-
}
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
---
|
|
127
|
-
|
|
128
|
-
## File Convention
|
|
129
|
-
|
|
130
|
-
**Pattern:** `slug_lang.md`
|
|
131
|
-
|
|
132
|
-
| File | Slug | Language |
|
|
133
|
-
|------|------|----------|
|
|
134
|
-
| `my-post_en.md` | `my-post` | English |
|
|
135
|
-
| `my-post_fr.md` | `my-post` | French |
|
|
136
|
-
| `my-post_de.md` | `my-post` | German |
|
|
137
|
-
| `solo-post_en.md` | `solo-post` | English (no FR = falls back to EN) |
|
|
138
|
-
|
|
139
|
-
**Rules:**
|
|
140
|
-
- Slug = everything before the last `_xx` suffix
|
|
141
|
-
- Language suffix must be 2-5 characters (ISO codes)
|
|
142
|
-
- English (`_en`) is the fallback language
|
|
143
|
-
- If a post only exists in `_en`, it's shown for all languages
|
|
144
|
-
|
|
145
|
-
---
|
|
146
|
-
|
|
147
|
-
## Frontmatter Fields
|
|
148
|
-
|
|
149
|
-
| Field | Required | Description |
|
|
150
|
-
|-------|----------|-------------|
|
|
151
|
-
| `title` | Yes | Post title |
|
|
152
|
-
| `description` | Yes | Summary for listings and SEO |
|
|
153
|
-
| `date` | Yes | Publication date (YYYY-MM-DD) |
|
|
154
|
-
| `tags` | No | Comma-separated tags |
|
|
155
|
-
| `image` | No | Hero image path — must be in `public/blog/` (see Images section) |
|
|
156
|
-
|
|
157
|
-
Custom fields are preserved in `meta[key]`.
|
|
158
|
-
|
|
159
|
-
---
|
|
160
|
-
|
|
161
|
-
## Images
|
|
162
|
-
|
|
163
|
-
### Hero Images (frontmatter `image` field)
|
|
164
|
-
|
|
165
|
-
One image per post. Used in blog listing cards, article page, RSS feed, and OG/social sharing.
|
|
166
|
-
|
|
167
|
-
**Convention:**
|
|
168
|
-
- **Location:** `public/blog/[slug].png` (matches the post slug)
|
|
169
|
-
- **Size:** 1200×630px minimum (standard OG ratio, sharp on retina)
|
|
170
|
-
- **Format:** PNG or JPG
|
|
171
|
-
- **Reference:** `image: /blog/my-post.png` in frontmatter
|
|
172
|
-
|
|
173
|
-
```
|
|
174
|
-
public/
|
|
175
|
-
└── blog/
|
|
176
|
-
├── my-first-post.png ← matches my-first-post_en.md
|
|
177
|
-
├── another-post.png ← matches another-post_en.md
|
|
178
|
-
└── inline-diagram.svg ← used in markdown body
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
**Where it shows:**
|
|
182
|
-
| Context | Sizing |
|
|
183
|
-
|---------|--------|
|
|
184
|
-
| Blog listing (featured card) | `width: 100%`, `max-height: 360px`, `object-fit: cover` |
|
|
185
|
-
| Blog listing (grid cards) | `width: 100%`, `max-height: 180px`, `object-fit: cover` |
|
|
186
|
-
| Article page | `width: 100%`, `max-height: 480px`, `object-fit: cover` |
|
|
187
|
-
| RSS feed | `<enclosure>` with full URL |
|
|
188
|
-
|
|
189
|
-
### Inline Images (in markdown body)
|
|
190
|
-
|
|
191
|
-
Images referenced in markdown content also go in `public/blog/`:
|
|
192
|
-
|
|
193
|
-
```markdown
|
|
194
|
-

|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
Rendered with `loading="lazy"` and `decoding="async"`.
|
|
198
|
-
|
|
199
|
-
**Co-located images (next to .md files) do NOT work** — `?raw` imports treat markdown as text strings, not processed modules.
|
|
200
|
-
|
|
201
|
-
---
|
|
202
|
-
|
|
203
|
-
## Tags & Filtering
|
|
204
|
-
|
|
205
|
-
```typescript
|
|
206
|
-
const blog = getBlogLoader('en');
|
|
207
|
-
const allTags = blog.getAllTags(); // ['react', 'typescript', ...]
|
|
208
|
-
const filtered = blog.getPostsByTag('react'); // Posts tagged 'react'
|
|
209
|
-
```
|
|
210
|
-
|
|
211
|
-
---
|
|
212
|
-
|
|
213
|
-
## RSS & Sitemap
|
|
214
|
-
|
|
215
|
-
**Fully automatic — zero configuration.** The framework handles everything:
|
|
216
|
-
|
|
217
|
-
### Build-time generation
|
|
218
|
-
|
|
219
|
-
The SEO pipeline (Vite `SEOPlugin` / Next.js `SEOHandler`) automatically:
|
|
220
|
-
|
|
221
|
-
1. Discovers `src/content/blog/*_en.md` files
|
|
222
|
-
2. Appends blog post URLs to `sitemap.xml`
|
|
223
|
-
3. Generates `rss.xml` (RSS 2.0 with Atom self-link) with all posts
|
|
224
|
-
|
|
225
|
-
No manual scripts needed. Just drop `.md` files and build.
|
|
226
|
-
|
|
227
|
-
### RSS auto-discovery
|
|
228
|
-
|
|
229
|
-
A `<link rel="alternate" type="application/rss+xml">` tag is automatically injected in the `<head>` by `AutoMetaTags`. This lets browsers and feed readers detect the feed without users needing to know the URL.
|
|
230
|
-
|
|
231
|
-
**Requires:** `VITE_APP_URL` (or `NEXT_PUBLIC_APP_URL`) set in `.env` — the RSS link uses the base URL to construct `https://yourdomain.com/rss.xml`.
|
|
232
|
-
|
|
233
|
-
### RSS feed contents
|
|
234
|
-
|
|
235
|
-
Each blog post entry includes:
|
|
236
|
-
- `<title>`, `<description>`, `<link>`, `<guid>`, `<pubDate>`
|
|
237
|
-
- `<category>` (from frontmatter `tags`)
|
|
238
|
-
- `<enclosure>` (from frontmatter `image`, if set)
|
|
239
|
-
|
|
240
|
-
---
|
|
241
|
-
|
|
242
|
-
## Scaling (50+ Posts)
|
|
243
|
-
|
|
244
|
-
Default uses `eager: true` (all posts bundled into JS). For large blogs, switch to lazy loading:
|
|
245
|
-
|
|
246
|
-
```typescript
|
|
247
|
-
// Lazy: posts loaded on demand, not bundled
|
|
248
|
-
const markdownFiles = import.meta.glob('../../content/blog/*.md', {
|
|
249
|
-
query: '?raw',
|
|
250
|
-
import: 'default',
|
|
251
|
-
eager: false, // ← Change this
|
|
252
|
-
});
|
|
253
|
-
|
|
254
|
-
// Now each value is () => Promise<string> instead of string
|
|
255
|
-
// You'll need to await them before passing to createBlogLoader
|
|
256
|
-
```
|
|
257
|
-
|
|
258
|
-
For most apps (< 50 posts), eager loading is optimal.
|
|
259
|
-
|
|
260
|
-
---
|
|
261
|
-
|
|
262
|
-
## Auto-Deploy
|
|
263
|
-
|
|
264
|
-
Push a new `.md` file → CI builds → `import.meta.glob` picks it up at build time → deployed. No CMS, no API.
|
|
265
|
-
|
|
266
|
-
---
|
|
267
|
-
|
|
268
|
-
## API Reference
|
|
269
|
-
|
|
270
|
-
From `@donotdev/templates`:
|
|
271
|
-
|
|
272
|
-
| Export | Type | Description |
|
|
273
|
-
|--------|------|-------------|
|
|
274
|
-
| `createBlogLoader` | Function | Create loader from glob results + language |
|
|
275
|
-
| `parseFrontmatter` | Function | Parse `---` frontmatter from raw markdown |
|
|
276
|
-
| `BlogList` | Component | Renders post listing with cards |
|
|
277
|
-
| `BlogPostView` | Component | Renders single post with MarkdownViewer |
|
|
278
|
-
| `BlogPost` | Type | Post with slug, meta, content, readingTime, tags |
|
|
279
|
-
| `BlogMeta` | Type | Frontmatter metadata |
|
|
280
|
-
| `BlogLoader` | Type | Loader interface |
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
# Setup: CI/CD
|
|
2
|
-
|
|
3
|
-
**One command to set up GitHub Actions: secrets, workflows, staging.**
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Prerequisites
|
|
8
|
-
|
|
9
|
-
1. **GitHub CLI** installed and authenticated:
|
|
10
|
-
```bash
|
|
11
|
-
gh auth login
|
|
12
|
-
```
|
|
13
|
-
2. **Git remote** pointing to your GitHub repository
|
|
14
|
-
3. **`.dndev.secrets`** at project root with private tokens:
|
|
15
|
-
```env
|
|
16
|
-
GH_PAT=ghp_your_personal_access_token
|
|
17
|
-
VERCEL_TOKEN=your_vercel_token # if using Vercel
|
|
18
|
-
SUPABASE_ACCESS_TOKEN=your_token # if using Supabase
|
|
19
|
-
```
|
|
20
|
-
4. **Service account key** (Firebase projects):
|
|
21
|
-
- `service-account-key.json` in your app directory
|
|
22
|
-
- `service-account-key.staging.json` for staging (optional)
|
|
23
|
-
|
|
24
|
-
---
|
|
25
|
-
|
|
26
|
-
## Quick Start
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
dndev setup-cicd
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
The command will:
|
|
33
|
-
1. Detect your app and providers (Firebase, Vercel, Supabase)
|
|
34
|
-
2. Show a plan of secrets to upload and workflows to generate
|
|
35
|
-
3. Upload all secrets to GitHub
|
|
36
|
-
4. Write `.github/workflows/ci.yml`, `deploy.yml`, and optionally `deploy-staging.yml`
|
|
37
|
-
|
|
38
|
-
---
|
|
39
|
-
|
|
40
|
-
## Options
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
dndev setup-cicd --app web # Target specific app
|
|
44
|
-
dndev setup-cicd --dry-run # Preview without uploading or writing
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
---
|
|
48
|
-
|
|
49
|
-
## What Gets Created
|
|
50
|
-
|
|
51
|
-
### Secrets (uploaded to GitHub)
|
|
52
|
-
|
|
53
|
-
| Secret | Source | When |
|
|
54
|
-
|--------|--------|------|
|
|
55
|
-
| `GH_PAT` | `.dndev.secrets` | Always (private dndev checkout) |
|
|
56
|
-
| `FIREBASE_SERVICE_ACCOUNT` | `service-account-key.json` (base64) | Firebase projects |
|
|
57
|
-
| `FIREBASE_SERVICE_ACCOUNT_STAGING` | `service-account-key.staging.json` (base64) | If staging detected |
|
|
58
|
-
| `VERCEL_TOKEN` | `.dndev.secrets` | Vercel projects |
|
|
59
|
-
| `VERCEL_ORG_ID` | `.env` | Vercel projects |
|
|
60
|
-
| `VERCEL_PROJECT_ID` | `.env` | Vercel projects |
|
|
61
|
-
| `SUPABASE_ACCESS_TOKEN` | `.dndev.secrets` | Supabase projects |
|
|
62
|
-
| `SUPABASE_PROJECT_REF` | Extracted from `VITE_SUPABASE_URL` | Supabase projects |
|
|
63
|
-
| `VITE_*` / `NEXT_PUBLIC_*` | `.env` | Public build vars |
|
|
64
|
-
|
|
65
|
-
### Workflows
|
|
66
|
-
|
|
67
|
-
| File | Trigger | What it does |
|
|
68
|
-
|------|---------|-------------|
|
|
69
|
-
| `ci.yml` | Push + PR to main | Checkout, install, typecheck, test |
|
|
70
|
-
| `deploy.yml` | Push to main | Build + deploy to detected providers |
|
|
71
|
-
| `deploy-staging.yml` | Push to staging/develop | Same as deploy, using staging credentials |
|
|
72
|
-
|
|
73
|
-
---
|
|
74
|
-
|
|
75
|
-
## Staging Support
|
|
76
|
-
|
|
77
|
-
Staging is auto-detected if:
|
|
78
|
-
- `.firebaserc` contains a `staging` project alias
|
|
79
|
-
- `service-account-key.staging.json` exists
|
|
80
|
-
|
|
81
|
-
To enable staging manually:
|
|
82
|
-
|
|
83
|
-
1. Add staging alias to `.firebaserc`:
|
|
84
|
-
```json
|
|
85
|
-
{
|
|
86
|
-
"projects": {
|
|
87
|
-
"default": "my-app-prod",
|
|
88
|
-
"staging": "my-app-staging"
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
```
|
|
92
|
-
2. Download the staging service account key as `service-account-key.staging.json`
|
|
93
|
-
3. Re-run `dndev setup-cicd`
|
|
94
|
-
|
|
95
|
-
---
|
|
96
|
-
|
|
97
|
-
## Troubleshooting
|
|
98
|
-
|
|
99
|
-
**"Could not detect GitHub repository"**
|
|
100
|
-
→ Ensure `git remote -v` shows a GitHub URL.
|
|
101
|
-
|
|
102
|
-
**Missing secrets warning**
|
|
103
|
-
→ Add the missing values to `.dndev.secrets` or `.env` and re-run.
|
|
104
|
-
|
|
105
|
-
**"gh: not found"**
|
|
106
|
-
→ Install GitHub CLI: https://cli.github.com/
|
|
107
|
-
|
|
108
|
-
---
|
|
109
|
-
|
|
110
|
-
## See Also
|
|
111
|
-
|
|
112
|
-
- [SETUP_FIREBASE.md](./SETUP_FIREBASE.md) — Firebase setup
|
|
113
|
-
- [SETUP_VERCEL.md](./SETUP_VERCEL.md) — Vercel setup
|
|
114
|
-
- [SETUP_SUPABASE.md](./SETUP_SUPABASE.md) — Supabase setup
|
|
115
|
-
- [ENV_SETUP.md](./ENV_SETUP.md) — Environment variables
|