@donotdev/cli 0.0.37 → 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.
- package/LICENSE.md +21 -48
- package/dependencies-matrix.json +24 -24
- package/dist/bin/commands/agent-setup.js +6963 -123
- package/dist/bin/commands/build.js +4 -1
- package/dist/bin/commands/bump.js +23 -12
- package/dist/bin/commands/cacheout.js +17 -1
- package/dist/bin/commands/coach.js +4 -1
- package/dist/bin/commands/create-app.js +16 -2
- package/dist/bin/commands/create-project.js +17 -3
- package/dist/bin/commands/db.js +1708 -98
- package/dist/bin/commands/deploy.js +142 -96
- package/dist/bin/commands/dev.js +6 -5
- package/dist/bin/commands/doctor.js +4 -1
- package/dist/bin/commands/emu.js +6 -5
- package/dist/bin/commands/format.js +5 -3
- package/dist/bin/commands/get-demo.js +16 -2
- package/dist/bin/commands/make-admin.js +1717 -87
- package/dist/bin/commands/preview.js +6 -5
- package/dist/bin/commands/seed.js +1708 -98
- package/dist/bin/commands/setup-cicd.js +4 -1
- package/dist/bin/commands/setup.js +21 -18
- package/dist/bin/commands/staging.js +142 -96
- package/dist/bin/commands/sync-secrets.js +4 -1
- package/dist/bin/commands/type-check.js +4 -1
- package/dist/bin/commands/wai.js +4 -1
- package/dist/bin/dndev.js +21 -1
- package/dist/bin/donotdev.js +21 -1
- package/dist/index.js +170 -105
- package/package.json +2 -2
- package/templates/functions-supabase/supabase/functions/.env.example +12 -0
- package/templates/functions-supabase/supabase/functions/disconnect-oauth/index.ts.example +7 -0
- package/templates/functions-supabase/supabase/functions/exchange-token/index.ts.example +7 -0
- package/templates/functions-supabase/supabase/functions/get-connections/index.ts.example +7 -0
- package/templates/functions-supabase/supabase/functions/refresh-token/index.ts.example +7 -0
- package/templates/preset-admin/src/pages/DashboardPage.tsx.example +189 -0
- package/templates/preset-admin/src/pages/EntityPage.tsx.example +84 -0
- package/templates/preset-admin/src/pages/ReportsPage.tsx.example +243 -0
- package/templates/preset-admin/src/pages/SettingsPage.tsx.example +283 -0
- package/templates/preset-admin/src/pages/UsersPage.tsx.example +128 -0
- package/templates/preset-ecommerce/src/pages/CartPage.tsx.example +167 -0
- package/templates/preset-ecommerce/src/pages/CatalogPage.tsx.example +187 -0
- package/templates/preset-ecommerce/src/pages/CheckoutPage.tsx.example +244 -0
- package/templates/preset-ecommerce/src/pages/HomePage.tsx.example +268 -0
- package/templates/preset-ecommerce/src/pages/ProductPage.tsx.example +228 -0
- package/templates/preset-landing/src/pages/AboutPage.tsx.example +237 -0
- package/templates/preset-landing/src/pages/ContactPage.tsx.example +192 -0
- package/templates/preset-landing/src/pages/HomePage.tsx.example +399 -0
- package/templates/preset-saas/src/pages/DashboardPage.tsx.example +195 -0
- package/templates/preset-saas/src/pages/HomePage.tsx.example +270 -0
- package/templates/preset-saas/src/pages/PricingPage.tsx.example +204 -0
- package/templates/preset-saas/src/pages/ProfilePage.tsx.example +191 -0
- package/templates/preset-saas/src/pages/SettingsPage.tsx.example +292 -0
- package/templates/root-consumer/.claude/commands/brainstorm.md.example +28 -0
- package/templates/root-consumer/.claude/commands/design.md.example +31 -0
- package/templates/root-consumer/.claude/commands/grill.md.example +33 -6
- package/templates/root-consumer/.claude/skills/brainstorm/SKILL.md.example +16 -0
- package/templates/root-consumer/.claude/skills/design/SKILL.md.example +17 -0
- package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +11 -5
- package/templates/root-consumer/guides/dndev/SETUP_OAUTH.md.example +2 -1
|
@@ -7699,7 +7699,10 @@ var init_PathResolver = __esm({
|
|
|
7699
7699
|
*/
|
|
7700
7700
|
getEmptyCjsModulePath() {
|
|
7701
7701
|
const resolved = this.resolvePackage("@donotdev/core/empty");
|
|
7702
|
-
if (!resolved)
|
|
7702
|
+
if (!resolved)
|
|
7703
|
+
throw new Error(
|
|
7704
|
+
"Cannot resolve @donotdev/core/empty \u2014 package setup is broken"
|
|
7705
|
+
);
|
|
7703
7706
|
return resolved;
|
|
7704
7707
|
}
|
|
7705
7708
|
// === PRIVATE METHODS ===
|
|
@@ -7762,7 +7762,10 @@ var init_PathResolver = __esm({
|
|
|
7762
7762
|
*/
|
|
7763
7763
|
getEmptyCjsModulePath() {
|
|
7764
7764
|
const resolved = this.resolvePackage("@donotdev/core/empty");
|
|
7765
|
-
if (!resolved)
|
|
7765
|
+
if (!resolved)
|
|
7766
|
+
throw new Error(
|
|
7767
|
+
"Cannot resolve @donotdev/core/empty \u2014 package setup is broken"
|
|
7768
|
+
);
|
|
7766
7769
|
return resolved;
|
|
7767
7770
|
}
|
|
7768
7771
|
// === PRIVATE METHODS ===
|
|
@@ -8140,14 +8143,25 @@ function flattenGroups(groups, options) {
|
|
|
8140
8143
|
const flat = {};
|
|
8141
8144
|
for (const group of Object.values(groups)) {
|
|
8142
8145
|
if (options?.skipRootExclude && group.rootExclude) continue;
|
|
8143
|
-
for (const [name, version] of Object.entries(group.packages
|
|
8146
|
+
for (const [name, version] of Object.entries(group.packages ?? {})) {
|
|
8144
8147
|
flat[name] = version;
|
|
8145
8148
|
}
|
|
8146
8149
|
}
|
|
8147
8150
|
return flat;
|
|
8148
8151
|
}
|
|
8149
8152
|
function resolveGroup(groupName, matrix) {
|
|
8150
|
-
|
|
8153
|
+
const group = matrix.groups[groupName];
|
|
8154
|
+
if (!group) return {};
|
|
8155
|
+
const result = {};
|
|
8156
|
+
if (group.includes) {
|
|
8157
|
+
for (const included of group.includes) {
|
|
8158
|
+
Object.assign(result, resolveGroup(included, matrix));
|
|
8159
|
+
}
|
|
8160
|
+
}
|
|
8161
|
+
if (group.packages) {
|
|
8162
|
+
Object.assign(result, group.packages);
|
|
8163
|
+
}
|
|
8164
|
+
return result;
|
|
8151
8165
|
}
|
|
8152
8166
|
function resolveGroups(groupNames, matrix) {
|
|
8153
8167
|
const result = {};
|
|
@@ -8272,9 +8286,10 @@ function syncDonotdevToMatrix(matrix, donotdevVersions, dryRun) {
|
|
|
8272
8286
|
changes.push({ pkg: pkgName, from: "N/A", to: `^${actualVersion}` });
|
|
8273
8287
|
continue;
|
|
8274
8288
|
}
|
|
8275
|
-
const
|
|
8289
|
+
const packages = group.packages ??= {};
|
|
8290
|
+
const matrixVersion = packages[pkgName];
|
|
8276
8291
|
if (!matrixVersion) {
|
|
8277
|
-
|
|
8292
|
+
packages[pkgName] = `^${actualVersion}`;
|
|
8278
8293
|
changes.push({ pkg: pkgName, from: "N/A", to: `^${actualVersion}` });
|
|
8279
8294
|
continue;
|
|
8280
8295
|
}
|
|
@@ -8285,7 +8300,7 @@ function syncDonotdevToMatrix(matrix, donotdevVersions, dryRun) {
|
|
|
8285
8300
|
from: matrixVersion,
|
|
8286
8301
|
to: `^${actualVersion}`
|
|
8287
8302
|
});
|
|
8288
|
-
|
|
8303
|
+
packages[pkgName] = `^${actualVersion}`;
|
|
8289
8304
|
}
|
|
8290
8305
|
}
|
|
8291
8306
|
if (changes.length > 0 && !dryRun) {
|
|
@@ -8908,9 +8923,7 @@ init_cli_output();
|
|
|
8908
8923
|
init_pathResolver();
|
|
8909
8924
|
async function queryNpmPackage(packageName) {
|
|
8910
8925
|
try {
|
|
8911
|
-
const res = await fetch(
|
|
8912
|
-
`https://registry.npmjs.org/${packageName}/latest`
|
|
8913
|
-
);
|
|
8926
|
+
const res = await fetch(`https://registry.npmjs.org/${packageName}/latest`);
|
|
8914
8927
|
if (!res.ok) return null;
|
|
8915
8928
|
return await res.json();
|
|
8916
8929
|
} catch {
|
|
@@ -9302,9 +9315,7 @@ async function main(options = {}) {
|
|
|
9302
9315
|
);
|
|
9303
9316
|
summary.push(`Updated ${updatedCount} package.json file(s)`);
|
|
9304
9317
|
if (syncedPins > 0) {
|
|
9305
|
-
summary.push(
|
|
9306
|
-
`Synced ${syncedPins} override/resolution pin(s)`
|
|
9307
|
-
);
|
|
9318
|
+
summary.push(`Synced ${syncedPins} override/resolution pin(s)`);
|
|
9308
9319
|
}
|
|
9309
9320
|
}
|
|
9310
9321
|
if (shouldRemoveDeprecated) {
|
|
@@ -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)
|
|
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 ===
|
|
@@ -7524,6 +7527,19 @@ async function findCacheItems(targetDir, verbose) {
|
|
|
7524
7527
|
check(joinPath(appPath, "node_modules", ".vite"));
|
|
7525
7528
|
check(joinPath(appPath, "tsconfig.tsbuildinfo"));
|
|
7526
7529
|
check(joinPath(appPath, "tsconfig.build.tsbuildinfo"));
|
|
7530
|
+
check(joinPath(appPath, "public", "route-manifest.json"));
|
|
7531
|
+
check(joinPath(appPath, "public", "theme-manifest.json"));
|
|
7532
|
+
check(joinPath(appPath, "public", "i18n-manifest.json"));
|
|
7533
|
+
check(joinPath(appPath, "public", "asset-manifest.json"));
|
|
7534
|
+
check(joinPath(appPath, "public", "seo-manifest.json"));
|
|
7535
|
+
check(joinPath(appPath, "public", "pwa-manifest.json"));
|
|
7536
|
+
check(joinPath(appPath, "public", "robots.txt"));
|
|
7537
|
+
check(joinPath(appPath, "public", "sitemap.xml"));
|
|
7538
|
+
check(joinPath(appPath, "public", "rss.xml"));
|
|
7539
|
+
check(joinPath(appPath, "public", "llms.txt"));
|
|
7540
|
+
check(joinPath(appPath, "public", "llms-full.txt"));
|
|
7541
|
+
check(joinPath(appPath, "public", "dndev-fonts.css"));
|
|
7542
|
+
check(joinPath(appPath, ".dndev-build"));
|
|
7527
7543
|
}
|
|
7528
7544
|
} catch (error2) {
|
|
7529
7545
|
}
|
|
@@ -7325,7 +7325,10 @@ var init_PathResolver = __esm({
|
|
|
7325
7325
|
*/
|
|
7326
7326
|
getEmptyCjsModulePath() {
|
|
7327
7327
|
const resolved = this.resolvePackage("@donotdev/core/empty");
|
|
7328
|
-
if (!resolved)
|
|
7328
|
+
if (!resolved)
|
|
7329
|
+
throw new Error(
|
|
7330
|
+
"Cannot resolve @donotdev/core/empty \u2014 package setup is broken"
|
|
7331
|
+
);
|
|
7329
7332
|
return resolved;
|
|
7330
7333
|
}
|
|
7331
7334
|
// === PRIVATE METHODS ===
|
|
@@ -7712,7 +7712,10 @@ var init_PathResolver = __esm({
|
|
|
7712
7712
|
*/
|
|
7713
7713
|
getEmptyCjsModulePath() {
|
|
7714
7714
|
const resolved = this.resolvePackage("@donotdev/core/empty");
|
|
7715
|
-
if (!resolved)
|
|
7715
|
+
if (!resolved)
|
|
7716
|
+
throw new Error(
|
|
7717
|
+
"Cannot resolve @donotdev/core/empty \u2014 package setup is broken"
|
|
7718
|
+
);
|
|
7716
7719
|
return resolved;
|
|
7717
7720
|
}
|
|
7718
7721
|
// === PRIVATE METHODS ===
|
|
@@ -8448,7 +8451,18 @@ function loadMatrix(mode) {
|
|
|
8448
8451
|
return cachedMatrix;
|
|
8449
8452
|
}
|
|
8450
8453
|
function resolveGroup(groupName, matrix) {
|
|
8451
|
-
|
|
8454
|
+
const group = matrix.groups[groupName];
|
|
8455
|
+
if (!group) return {};
|
|
8456
|
+
const result = {};
|
|
8457
|
+
if (group.includes) {
|
|
8458
|
+
for (const included of group.includes) {
|
|
8459
|
+
Object.assign(result, resolveGroup(included, matrix));
|
|
8460
|
+
}
|
|
8461
|
+
}
|
|
8462
|
+
if (group.packages) {
|
|
8463
|
+
Object.assign(result, group.packages);
|
|
8464
|
+
}
|
|
8465
|
+
return result;
|
|
8452
8466
|
}
|
|
8453
8467
|
function resolveGroups(groupNames, matrix) {
|
|
8454
8468
|
const result = {};
|
|
@@ -7854,7 +7854,10 @@ var init_PathResolver = __esm({
|
|
|
7854
7854
|
*/
|
|
7855
7855
|
getEmptyCjsModulePath() {
|
|
7856
7856
|
const resolved = this.resolvePackage("@donotdev/core/empty");
|
|
7857
|
-
if (!resolved)
|
|
7857
|
+
if (!resolved)
|
|
7858
|
+
throw new Error(
|
|
7859
|
+
"Cannot resolve @donotdev/core/empty \u2014 package setup is broken"
|
|
7860
|
+
);
|
|
7858
7861
|
return resolved;
|
|
7859
7862
|
}
|
|
7860
7863
|
// === PRIVATE METHODS ===
|
|
@@ -8769,7 +8772,18 @@ function loadMatrix(mode) {
|
|
|
8769
8772
|
return cachedMatrix;
|
|
8770
8773
|
}
|
|
8771
8774
|
function resolveGroup(groupName, matrix) {
|
|
8772
|
-
|
|
8775
|
+
const group = matrix.groups[groupName];
|
|
8776
|
+
if (!group) return {};
|
|
8777
|
+
const result = {};
|
|
8778
|
+
if (group.includes) {
|
|
8779
|
+
for (const included of group.includes) {
|
|
8780
|
+
Object.assign(result, resolveGroup(included, matrix));
|
|
8781
|
+
}
|
|
8782
|
+
}
|
|
8783
|
+
if (group.packages) {
|
|
8784
|
+
Object.assign(result, group.packages);
|
|
8785
|
+
}
|
|
8786
|
+
return result;
|
|
8773
8787
|
}
|
|
8774
8788
|
function resolveGroups(groupNames, matrix) {
|
|
8775
8789
|
const result = {};
|
|
@@ -9845,7 +9859,7 @@ async function main(_options, name) {
|
|
|
9845
9859
|
const relativeMonorepoPath = executionMode === "development" ? calculateRelativePath(projectDirNormalized, monorepoRoot) : "";
|
|
9846
9860
|
const primaryPlatform = Object.values(appConfigs).find(
|
|
9847
9861
|
(c) => c.backend !== "none"
|
|
9848
|
-
)?.backend ?? "
|
|
9862
|
+
)?.backend ?? "none";
|
|
9849
9863
|
const hasVercel = Object.values(appConfigs).some(
|
|
9850
9864
|
(c) => c.host === "vercel"
|
|
9851
9865
|
);
|