@donotdev/cli 0.0.15 → 0.0.16
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 +36 -20
- package/dist/bin/commands/build.js +69 -52
- package/dist/bin/commands/bump.js +7 -13
- package/dist/bin/commands/create-app.js +77 -29
- package/dist/bin/commands/create-project.js +109 -135
- package/dist/bin/commands/deploy.js +97 -45
- package/dist/bin/commands/dev.js +43 -24
- package/dist/bin/commands/doctor.d.ts +6 -0
- package/dist/bin/commands/doctor.d.ts.map +1 -0
- package/dist/bin/commands/{lint.js → doctor.js} +1178 -147
- package/dist/bin/commands/doctor.js.map +1 -0
- package/dist/bin/commands/emu.js +297 -107
- package/dist/bin/commands/make-admin.js +77499 -11
- package/dist/bin/commands/preview.js +44 -25
- package/dist/bin/commands/setup.d.ts +6 -0
- package/dist/bin/commands/setup.d.ts.map +1 -0
- package/dist/bin/commands/setup.js +11733 -0
- package/dist/bin/commands/setup.js.map +1 -0
- package/dist/bin/commands/type-check.js +2018 -283
- package/dist/bin/dndev.js +54 -58
- package/dist/bin/donotdev.js +28 -44
- package/dist/index.js +633 -416
- package/package.json +2 -2
- package/templates/app-expo/.env.example +2 -22
- package/templates/app-expo/README.md.example +1 -1
- 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/src/config/app.ts.example +46 -0
- package/templates/app-expo/src/config/providers.ts.example +7 -0
- package/templates/app-next/src/config/providers.ts.example +7 -0
- package/templates/app-vite/src/config/providers.ts.example +7 -0
- package/templates/app-vite/src/pages/HomePage.tsx.example +1 -1
- package/templates/functions-firebase/README.md.example +1 -1
- package/templates/functions-firebase/functions-firebase/.env.example.example +1 -1
- package/templates/functions-firebase/functions-firebase/README.md.example +1 -1
- package/templates/functions-firebase/functions-firebase/tsconfig.json.example +1 -1
- package/templates/functions-firebase/functions.config.js.example +1 -1
- package/templates/functions-supabase/supabase/config.toml.example +59 -0
- package/templates/functions-supabase/supabase/functions/.env.example +13 -0
- package/templates/functions-supabase/supabase/functions/deno.json.example +8 -0
- package/templates/overlay-firebase/env.fragment.example +1 -1
- package/templates/overlay-firebase/env.fragment.expo.example +1 -1
- package/templates/overlay-firebase/env.fragment.nextjs.example +1 -1
- package/templates/overlay-supabase/env.fragment.example +8 -3
- package/templates/overlay-supabase/env.fragment.expo.example +8 -3
- package/templates/overlay-supabase/env.fragment.nextjs.example +8 -3
- package/templates/overlay-vercel/env.fragment.example +1 -1
- package/templates/overlay-vercel/env.fragment.nextjs.example +1 -1
- package/templates/root-consumer/AI.md.example +15 -0
- package/templates/root-consumer/guides/dndev/AGENT_START_HERE.md.example +2 -2
- package/templates/root-consumer/guides/dndev/ENV_SETUP.md.example +6 -6
- package/templates/root-consumer/guides/dndev/INDEX.md.example +2 -2
- package/templates/root-consumer/guides/dndev/SETUP_APP_CONFIG.md.example +3 -3
- package/templates/root-consumer/guides/dndev/SETUP_CRUD.md.example +98 -0
- package/templates/root-consumer/guides/dndev/SETUP_FIREBASE.md.example +4 -4
- package/templates/root-consumer/guides/dndev/SETUP_OAUTH_PROVIDERS.md.example +60 -0
- package/templates/root-consumer/guides/dndev/SETUP_STRIPE.md.example +62 -0
- package/templates/root-consumer/guides/dndev/SETUP_SUPABASE.md.example +3 -3
- package/templates/root-consumer/guides/dndev/SETUP_VERCEL.md.example +2 -2
- package/templates/root-consumer/guides/wai-way/WAI_WAY_CLI.md.example +7 -8
- package/templates/root-consumer/guides/wai-way/blueprints/1_scaffold.md.example +9 -5
- package/dist/bin/commands/lint.d.ts +0 -11
- package/dist/bin/commands/lint.d.ts.map +0 -1
- package/dist/bin/commands/lint.js.map +0 -1
- package/dist/bin/commands/staging.d.ts +0 -11
- package/dist/bin/commands/staging.d.ts.map +0 -1
- package/dist/bin/commands/staging.js +0 -12
- package/dist/bin/commands/staging.js.map +0 -1
|
@@ -7742,23 +7742,7 @@ var init_utils = __esm({
|
|
|
7742
7742
|
}
|
|
7743
7743
|
});
|
|
7744
7744
|
|
|
7745
|
-
// packages/cli/src/bin/commands/preview.ts
|
|
7746
|
-
init_utils();
|
|
7747
|
-
|
|
7748
|
-
// packages/tooling/src/index.ts
|
|
7749
|
-
init_utils();
|
|
7750
|
-
|
|
7751
|
-
// packages/tooling/src/cli/index.ts
|
|
7752
|
-
init_utils();
|
|
7753
|
-
|
|
7754
|
-
// packages/tooling/src/utils/app-selector.ts
|
|
7755
|
-
init_utils();
|
|
7756
|
-
init_dist2();
|
|
7757
|
-
|
|
7758
7745
|
// packages/tooling/src/utils/app-detection.ts
|
|
7759
|
-
init_utils();
|
|
7760
|
-
init_pathResolver();
|
|
7761
|
-
init_typed_file_operations();
|
|
7762
7746
|
function detectApps(projectRoot) {
|
|
7763
7747
|
const apps = [];
|
|
7764
7748
|
const appsDir = joinPath(projectRoot, "apps");
|
|
@@ -7818,12 +7802,21 @@ function analyzeApp(appPath, appName) {
|
|
|
7818
7802
|
const functionsStat = statSync2(functionsPath);
|
|
7819
7803
|
const hasFunctions = pathExists(functionsPath) && (functionsStat?.isDirectory() ?? false);
|
|
7820
7804
|
let platform2;
|
|
7821
|
-
|
|
7822
|
-
|
|
7805
|
+
const firebaseJsonInFunctions = hasFunctions && pathExists(joinPath(functionsPath, "firebase.json"));
|
|
7806
|
+
const firebaseJsonInApp = pathExists(joinPath(appPath, "firebase.json"));
|
|
7807
|
+
if (firebaseJsonInFunctions || firebaseJsonInApp) {
|
|
7808
|
+
platform2 = "firebase";
|
|
7809
|
+
}
|
|
7810
|
+
if (!platform2) {
|
|
7811
|
+
const supabaseConfigPath = joinPath(appPath, "supabase", "config.toml");
|
|
7812
|
+
const hasSupabaseDep = !!(packageJson.dependencies?.["@donotdev/supabase"] || packageJson.dependencies?.["@supabase/supabase-js"]);
|
|
7813
|
+
if (pathExists(supabaseConfigPath) || hasSupabaseDep) {
|
|
7814
|
+
platform2 = "supabase";
|
|
7815
|
+
}
|
|
7816
|
+
}
|
|
7817
|
+
if (!platform2) {
|
|
7823
7818
|
const vercelJsonPath = joinPath(appPath, "vercel.json");
|
|
7824
|
-
if (pathExists(
|
|
7825
|
-
platform2 = "firebase";
|
|
7826
|
-
} else if (pathExists(vercelJsonPath)) {
|
|
7819
|
+
if (pathExists(vercelJsonPath)) {
|
|
7827
7820
|
platform2 = "vercel";
|
|
7828
7821
|
}
|
|
7829
7822
|
}
|
|
@@ -7838,9 +7831,16 @@ function analyzeApp(appPath, appName) {
|
|
|
7838
7831
|
platform: platform2
|
|
7839
7832
|
};
|
|
7840
7833
|
}
|
|
7834
|
+
var init_app_detection = __esm({
|
|
7835
|
+
"packages/tooling/src/utils/app-detection.ts"() {
|
|
7836
|
+
"use strict";
|
|
7837
|
+
init_utils();
|
|
7838
|
+
init_pathResolver();
|
|
7839
|
+
init_typed_file_operations();
|
|
7840
|
+
}
|
|
7841
|
+
});
|
|
7841
7842
|
|
|
7842
7843
|
// packages/tooling/src/utils/app-selector.ts
|
|
7843
|
-
init_cli_output();
|
|
7844
7844
|
async function selectApp(projectRoot, appName) {
|
|
7845
7845
|
const apps = detectApps(projectRoot);
|
|
7846
7846
|
if (apps.length === 0) {
|
|
@@ -7874,6 +7874,24 @@ async function selectApp(projectRoot, appName) {
|
|
|
7874
7874
|
}
|
|
7875
7875
|
return apps.find((a) => a.name === selected) || null;
|
|
7876
7876
|
}
|
|
7877
|
+
var init_app_selector = __esm({
|
|
7878
|
+
"packages/tooling/src/utils/app-selector.ts"() {
|
|
7879
|
+
"use strict";
|
|
7880
|
+
init_utils();
|
|
7881
|
+
init_dist2();
|
|
7882
|
+
init_app_detection();
|
|
7883
|
+
init_cli_output();
|
|
7884
|
+
}
|
|
7885
|
+
});
|
|
7886
|
+
|
|
7887
|
+
// packages/cli/src/bin/commands/preview.ts
|
|
7888
|
+
init_utils();
|
|
7889
|
+
|
|
7890
|
+
// packages/tooling/src/index.ts
|
|
7891
|
+
init_utils();
|
|
7892
|
+
|
|
7893
|
+
// packages/tooling/src/cli/index.ts
|
|
7894
|
+
init_utils();
|
|
7877
7895
|
|
|
7878
7896
|
// packages/tooling/src/utils/spawn-utils.ts
|
|
7879
7897
|
init_utils();
|
|
@@ -7887,15 +7905,16 @@ function createAppEnv(appPath) {
|
|
|
7887
7905
|
|
|
7888
7906
|
// packages/tooling/src/apps/preview.ts
|
|
7889
7907
|
init_utils();
|
|
7908
|
+
init_app_selector();
|
|
7909
|
+
init_cli_output();
|
|
7910
|
+
init_errors();
|
|
7911
|
+
init_pathResolver();
|
|
7890
7912
|
import {
|
|
7891
7913
|
spawn,
|
|
7892
7914
|
spawnSync as spawnSync2,
|
|
7893
7915
|
execSync as execSync2
|
|
7894
7916
|
} from "node:child_process";
|
|
7895
7917
|
import { platform } from "node:os";
|
|
7896
|
-
init_cli_output();
|
|
7897
|
-
init_errors();
|
|
7898
|
-
init_pathResolver();
|
|
7899
7918
|
var SIGNAL_EXIT_CODES = {
|
|
7900
7919
|
SIGINT: 130,
|
|
7901
7920
|
// 128 + 2
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../../src/bin/commands/setup.ts"],"names":[],"mappings":"AACA;;;GAGG;AAEH,OAAO,EAAE,KAAK,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC"}
|