@donotdev/cli 0.3.0 → 0.3.2
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/dependencies-matrix.json +51 -27
- package/dist/bin/commands/agent-setup.js +28 -18
- package/dist/bin/commands/build.js +1086 -58
- package/dist/bin/commands/bump.js +337 -53
- package/dist/bin/commands/cacheout.js +28 -18
- package/dist/bin/commands/coach.js +33 -25
- package/dist/bin/commands/create-app.js +597 -244
- package/dist/bin/commands/create-project.js +607 -254
- package/dist/bin/commands/db-check.js +37 -28
- package/dist/bin/commands/db.js +37 -28
- package/dist/bin/commands/deploy.js +13758 -11807
- package/dist/bin/commands/dev.js +50 -34
- package/dist/bin/commands/doctor.js +33 -25
- package/dist/bin/commands/emu.js +65 -43
- package/dist/bin/commands/format.js +28 -18
- package/dist/bin/commands/get-demo.js +81 -46
- package/dist/bin/commands/make-admin.js +966 -896
- package/dist/bin/commands/preview.js +50 -34
- package/dist/bin/commands/seed.js +37 -28
- package/dist/bin/commands/setup-cicd.js +1286 -87
- package/dist/bin/commands/setup.js +152 -138
- package/dist/bin/commands/staging.js +13758 -11807
- package/dist/bin/commands/sync-secrets.js +152 -132
- package/dist/bin/commands/type-check.js +1086 -39
- package/dist/bin/commands/wai.js +28 -18
- package/dist/bin/dndev.js +513 -30
- package/dist/bin/donotdev.js +33 -8
- package/dist/index.js +14568 -12497
- package/package.json +1 -1
- package/templates/app-demo/index.html.example +0 -1
- package/templates/app-demo/src/pages/ConditionalFormPage.tsx.example +2 -2
- package/templates/app-demo/src/pages/ShowcaseDetailPage.tsx.example +1 -0
- package/templates/app-demo/tsconfig.json.example +1 -1
- package/templates/app-dndev/index.html.example +1 -3
- package/templates/app-dndev/src/pages/NotFoundPage.tsx.example +1 -0
- package/templates/app-expo/app/_layout.tsx.example +1 -1
- package/templates/app-expo/app/form.tsx.example +10 -3
- package/templates/app-expo/app/index.tsx.example +3 -3
- package/templates/app-expo/app/list.tsx.example +2 -2
- package/templates/app-expo/app/profile.tsx.example +4 -3
- package/templates/app-expo/app/signin.tsx.example +2 -2
- package/templates/app-expo/babel.config.js.example +23 -6
- package/templates/app-expo/metro.config.js.example +7 -17
- package/templates/app-expo/tsconfig.json.example +2 -1
- package/templates/app-next/src/app/AppDocument.tsx.example +2 -3
- package/templates/app-vite/index.html.example +1 -3
- package/templates/app-vite/src/locales/home_en.json.example +6 -6
- package/templates/app-vite/src/pages/FormPageExample.tsx.example +1 -1
- package/templates/app-vite/src/pages/HomePage.tsx.example +3 -3
- package/templates/app-vite/src/pages/NotFoundPage.tsx.example +1 -0
- package/templates/deploy-config/firebase.json.example +6 -5
- package/templates/deploy-config/tsconfig.functions.json.example +2 -7
- package/templates/deploy-config/vercel.json.example +6 -420
- package/templates/functions-firebase/README.md.example +8 -8
- package/templates/functions-firebase/functions.config.js.example +2 -1
- package/templates/functions-firebase/src/index.ts.example +4 -3
- package/templates/functions-firebase/src/oauth/exchangeToken.ts.example +8 -6
- package/templates/functions-firebase/src/oauth/refreshToken.ts.example +8 -6
- package/templates/functions-firebase/tsconfig.json.example +3 -5
- package/templates/functions-supabase/supabase/config.toml.example +2 -1
- package/templates/functions-supabase/supabase/functions/change-plan/index.ts.example +2 -3
- package/templates/functions-supabase/supabase/functions/create-checkout-session/index.ts.example +2 -3
- package/templates/functions-supabase/supabase/functions/stripe-webhook/index.ts.example +2 -3
- package/templates/functions-vercel/README.md.example +15 -25
- package/templates/functions-vercel/build.mjs.example +4 -46
- package/templates/functions-vercel/src/api/auth/setCustomClaims.ts.example +6 -11
- package/templates/functions-vercel/src/api/billing/handleStripeWebhook.ts.example +2 -3
- package/templates/functions-vercel/src/api/oauth/checkGitHubAccess.ts.example +5 -11
- package/templates/functions-vercel/src/api/oauth/exchangeToken.ts.example +5 -11
- package/templates/functions-vercel/src/api/oauth/grantGitHubAccess.ts.example +5 -11
- package/templates/functions-vercel/tsconfig.json.example +5 -6
- package/templates/github/workflows/firebase-deploy.yml.example +1 -1
- package/templates/preset-admin/src/pages/DashboardPage.tsx.example +3 -2
- package/templates/preset-admin/src/pages/ReportsPage.tsx.example +13 -12
- package/templates/preset-admin/src/pages/SettingsPage.tsx.example +5 -5
- package/templates/preset-admin/src/pages/UsersPage.tsx.example +13 -12
- package/templates/preset-ecommerce/src/pages/CartPage.tsx.example +5 -5
- package/templates/preset-ecommerce/src/pages/CatalogPage.tsx.example +1 -4
- package/templates/preset-ecommerce/src/pages/CheckoutPage.tsx.example +10 -12
- package/templates/preset-ecommerce/src/pages/ProductPage.tsx.example +7 -4
- package/templates/preset-landing/src/pages/AboutPage.tsx.example +11 -9
- package/templates/preset-landing/src/pages/ContactPage.tsx.example +13 -7
- package/templates/preset-landing/src/pages/HomePage.tsx.example +50 -32
- package/templates/preset-saas/src/pages/DashboardPage.tsx.example +1 -1
- package/templates/preset-saas/src/pages/HomePage.tsx.example +3 -2
- package/templates/preset-saas/src/pages/PricingPage.tsx.example +4 -3
- package/templates/preset-saas/src/pages/ProfilePage.tsx.example +7 -7
- package/templates/preset-saas/src/pages/SettingsPage.tsx.example +3 -3
- package/templates/root-consumer/.claude/hooks/guard-bash.sh.example +101 -10
- package/templates/root-consumer/.claude/rules/definition-of-done.md.example +2 -2
- package/templates/root-consumer/.claude/rules/framework.md.example +1 -1
- package/templates/root-consumer/.claude/settings.json.example +0 -11
- package/templates/root-consumer/.claude/skills/build/SKILL.md.example +1 -1
- package/templates/root-consumer/.dndev/args.json.example +2 -2
- package/templates/root-consumer/.env.example +1 -1
- package/templates/root-consumer/.gitignore.example +2 -0
- package/templates/root-consumer/AGENTS.md.example +3 -3
- package/templates/root-consumer/README.md.example +1 -1
- package/templates/app-vite/csp.example.json +0 -44
- package/templates/functions-vercel/src/api/oauth/disconnect.ts.example +0 -20
- package/templates/functions-vercel/src/api/oauth/getConnections.ts.example +0 -20
- package/templates/functions-vercel/src/api/oauth/refreshToken.ts.example +0 -20
- package/templates/functions-vercel/vercel.json.example +0 -14
- package/templates/root-consumer/.claude/hooks/typecheck-stop.sh.example +0 -18
package/dist/bin/donotdev.js
CHANGED
|
@@ -750,6 +750,20 @@ var init_command_registry = __esm({
|
|
|
750
750
|
loader: "../cli/db/db.ts",
|
|
751
751
|
exportName: "db"
|
|
752
752
|
},
|
|
753
|
+
{
|
|
754
|
+
name: "db-check [app]",
|
|
755
|
+
description: "List, per generated CHECK constraint (<table>_<column>_<rule>, added NOT VALID), the row ids that violate it (Supabase, read-only)",
|
|
756
|
+
category: "deployment",
|
|
757
|
+
public: true,
|
|
758
|
+
options: [
|
|
759
|
+
{
|
|
760
|
+
flags: "-a, --app <app>",
|
|
761
|
+
description: "App name (for multi-app monorepos)"
|
|
762
|
+
}
|
|
763
|
+
],
|
|
764
|
+
loader: "../cli/db/check.ts",
|
|
765
|
+
exportName: "dbCheck"
|
|
766
|
+
},
|
|
753
767
|
// ---------------------------------------------------------------------------
|
|
754
768
|
// Content
|
|
755
769
|
// ---------------------------------------------------------------------------
|
|
@@ -888,17 +902,28 @@ var init_command_registry = __esm({
|
|
|
888
902
|
loader: "../quality/test-e2e.ts"
|
|
889
903
|
},
|
|
890
904
|
{
|
|
891
|
-
name: "test:uat [
|
|
892
|
-
description: "Run Playwright
|
|
905
|
+
name: "test:uat [apps...]",
|
|
906
|
+
description: "Run apps' Playwright e2e suites on one throwaway Supabase stack (own project_id, ports and volumes; torn down afterwards), from migrations or a read-only copy of live. Works in consumer projects and the monorepo; reads e2e/uat.json",
|
|
893
907
|
category: "other",
|
|
894
908
|
appCommand: true,
|
|
895
909
|
options: [
|
|
896
|
-
{ flags: "--
|
|
897
|
-
{ flags: "--headed", description: "run tests in headed browser" },
|
|
910
|
+
{ flags: "-a, --app <app>", description: "app to test (same as one positional)" },
|
|
898
911
|
{
|
|
899
|
-
flags: "--
|
|
900
|
-
description: "
|
|
901
|
-
}
|
|
912
|
+
flags: "--keep",
|
|
913
|
+
description: "keep the throwaway stack and workdir after the run"
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
flags: "--from <source>",
|
|
917
|
+
description: "database start: migrations (empty database + every migration) or live (read-only copy of database.projectRef + the migrations live has not applied); default: database.from in e2e/uat.json, else migrations"
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
flags: "--serve",
|
|
921
|
+
description: "after the tests, keep the stack and app servers up for manual testing until Ctrl-C / SIGTERM"
|
|
922
|
+
},
|
|
923
|
+
{ flags: "--skip-tests", description: "do not run Playwright (with --serve or --keep)" },
|
|
924
|
+
{ flags: "--headed", description: "run tests in headed browser" },
|
|
925
|
+
{ flags: "--ui", description: "open Playwright UI mode" },
|
|
926
|
+
{ flags: "--grep <pattern>", description: "only run tests matching the pattern" }
|
|
902
927
|
],
|
|
903
928
|
loader: "../quality/test-uat.ts"
|
|
904
929
|
},
|
|
@@ -1003,7 +1028,7 @@ function registerCommand(program2, def, action) {
|
|
|
1003
1028
|
}
|
|
1004
1029
|
|
|
1005
1030
|
// packages/cli/src/bin/dndev.mjs
|
|
1006
|
-
var CLI_VERSION = true ? "0.
|
|
1031
|
+
var CLI_VERSION = true ? "0.3.1" : "0.0.0";
|
|
1007
1032
|
var args = process.argv.slice(2);
|
|
1008
1033
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
|
|
1009
1034
|
console.log(CLI_VERSION);
|