@donotdev/cli 0.0.3
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 +48 -0
- package/README.md +291 -0
- package/dependencies-matrix.json +694 -0
- package/dist/bin/commands/build.d.ts +11 -0
- package/dist/bin/commands/build.d.ts.map +1 -0
- package/dist/bin/commands/build.js +8162 -0
- package/dist/bin/commands/build.js.map +1 -0
- package/dist/bin/commands/bump.d.ts +11 -0
- package/dist/bin/commands/bump.d.ts.map +1 -0
- package/dist/bin/commands/bump.js +8004 -0
- package/dist/bin/commands/bump.js.map +1 -0
- package/dist/bin/commands/cacheout.d.ts +11 -0
- package/dist/bin/commands/cacheout.d.ts.map +1 -0
- package/dist/bin/commands/cacheout.js +7630 -0
- package/dist/bin/commands/cacheout.js.map +1 -0
- package/dist/bin/commands/create-app.d.ts +11 -0
- package/dist/bin/commands/create-app.d.ts.map +1 -0
- package/dist/bin/commands/create-app.js +9032 -0
- package/dist/bin/commands/create-app.js.map +1 -0
- package/dist/bin/commands/create-project.d.ts +11 -0
- package/dist/bin/commands/create-project.d.ts.map +1 -0
- package/dist/bin/commands/create-project.js +9643 -0
- package/dist/bin/commands/create-project.js.map +1 -0
- package/dist/bin/commands/deploy.d.ts +11 -0
- package/dist/bin/commands/deploy.d.ts.map +1 -0
- package/dist/bin/commands/deploy.js +9007 -0
- package/dist/bin/commands/deploy.js.map +1 -0
- package/dist/bin/commands/dev.d.ts +11 -0
- package/dist/bin/commands/dev.d.ts.map +1 -0
- package/dist/bin/commands/dev.js +7892 -0
- package/dist/bin/commands/dev.js.map +1 -0
- package/dist/bin/commands/emu.d.ts +11 -0
- package/dist/bin/commands/emu.d.ts.map +1 -0
- package/dist/bin/commands/emu.js +8302 -0
- package/dist/bin/commands/emu.js.map +1 -0
- package/dist/bin/commands/format.d.ts +11 -0
- package/dist/bin/commands/format.d.ts.map +1 -0
- package/dist/bin/commands/format.js +8009 -0
- package/dist/bin/commands/format.js.map +1 -0
- package/dist/bin/commands/lint.d.ts +11 -0
- package/dist/bin/commands/lint.d.ts.map +1 -0
- package/dist/bin/commands/lint.js +7481 -0
- package/dist/bin/commands/lint.js.map +1 -0
- package/dist/bin/commands/preview.d.ts +11 -0
- package/dist/bin/commands/preview.d.ts.map +1 -0
- package/dist/bin/commands/preview.js +7909 -0
- package/dist/bin/commands/preview.js.map +1 -0
- package/dist/bin/commands/sync-secrets.d.ts +11 -0
- package/dist/bin/commands/sync-secrets.d.ts.map +1 -0
- package/dist/bin/commands/sync-secrets.js +8227 -0
- package/dist/bin/commands/sync-secrets.js.map +1 -0
- package/dist/bin/dndev.js +222 -0
- package/dist/bin/donotdev.js +222 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12820 -0
- package/dist/index.js.map +1 -0
- package/package.json +71 -0
- package/templates/app-demo/index.html.example +20 -0
- package/templates/app-demo/public/favicon.ico.example +0 -0
- package/templates/app-demo/public/fonts/Roboto-400-cyrillic-ext.woff2.example +0 -0
- package/templates/app-demo/public/fonts/Roboto-400-cyrillic.woff2.example +0 -0
- package/templates/app-demo/public/fonts/Roboto-400-greek-ext.woff2.example +0 -0
- package/templates/app-demo/public/fonts/Roboto-400-greek.woff2.example +0 -0
- package/templates/app-demo/public/fonts/Roboto-400-latin-ext.woff2.example +0 -0
- package/templates/app-demo/public/fonts/Roboto-400-latin.woff2.example +0 -0
- package/templates/app-demo/public/fonts/Roboto-400-vietnamese.woff2.example +0 -0
- package/templates/app-demo/public/fonts/Roboto-700-cyrillic-ext.woff2.example +0 -0
- package/templates/app-demo/public/fonts/Roboto-700-cyrillic.woff2.example +0 -0
- package/templates/app-demo/public/fonts/Roboto-700-greek-ext.woff2.example +0 -0
- package/templates/app-demo/public/fonts/Roboto-700-greek.woff2.example +0 -0
- package/templates/app-demo/public/fonts/Roboto-700-latin-ext.woff2.example +0 -0
- package/templates/app-demo/public/fonts/Roboto-700-latin.woff2.example +0 -0
- package/templates/app-demo/public/fonts/Roboto-700-vietnamese.woff2.example +0 -0
- package/templates/app-demo/public/fonts/fonts.css.example +144 -0
- package/templates/app-demo/public/logo.png.example +0 -0
- package/templates/app-demo/public/logo.svg.example +1 -0
- package/templates/app-demo/public/manifest.json.example +10 -0
- package/templates/app-demo/src/App.tsx.example +17 -0
- package/templates/app-demo/src/Routes.tsx.example +20 -0
- package/templates/app-demo/src/components/ThemeToggle.tsx.example +48 -0
- package/templates/app-demo/src/globals.css.example +4 -0
- package/templates/app-demo/src/main.tsx.example +27 -0
- package/templates/app-demo/src/pages/DetailPage.tsx.example +103 -0
- package/templates/app-demo/src/pages/FullPage.tsx.example +142 -0
- package/templates/app-demo/src/pages/HomePage.tsx.example +79 -0
- package/templates/app-demo/src/pages/components/ComponentRenderer.tsx.example +511 -0
- package/templates/app-demo/src/pages/components/ComponentsData.tsx.example +152 -0
- package/templates/app-demo/src/pages/components/DemoLayout.tsx.example +266 -0
- package/templates/app-demo/src/pages/components/LayoutRoute.tsx.example +20 -0
- package/templates/app-demo/src/pages/components/componentConfig.ts.example +921 -0
- package/templates/app-demo/src/themes.css.example +179 -0
- package/templates/app-demo/tsconfig.json.example +9 -0
- package/templates/app-demo/vite.config.ts.example +53 -0
- package/templates/app-next/.env.example +92 -0
- package/templates/app-next/next.config.ts.example +8 -0
- package/templates/app-next/postcss.config.js.example +58 -0
- package/templates/app-next/service-account-key.json.example +2 -0
- package/templates/app-next/src/app/ClientLayout.tsx.example +39 -0
- package/templates/app-next/src/app/layout.tsx.example +52 -0
- package/templates/app-next/src/app/not-found.tsx.example +21 -0
- package/templates/app-next/src/config/app.ts.example +75 -0
- package/templates/app-next/src/config/legal.ts.example +170 -0
- package/templates/app-next/src/globals.css.example +15 -0
- package/templates/app-next/src/locales/dndev_en.json.example +516 -0
- package/templates/app-next/src/pages/HomePage.tsx.example +20 -0
- package/templates/app-next/src/pages/legal/LegalNoticePage.tsx.example +75 -0
- package/templates/app-next/src/pages/legal/PrivacyPage.tsx.example +69 -0
- package/templates/app-next/src/pages/legal/TermsPage.tsx.example +71 -0
- package/templates/app-next/src/themes.css.example +179 -0
- package/templates/app-next/tsconfig.json.example +11 -0
- package/templates/app-payload/.env.example +28 -0
- package/templates/app-payload/README.md.example +233 -0
- package/templates/app-payload/collections/Company.ts.example +125 -0
- package/templates/app-payload/collections/Hero.ts.example +62 -0
- package/templates/app-payload/collections/Media.ts.example +41 -0
- package/templates/app-payload/collections/Products.ts.example +115 -0
- package/templates/app-payload/collections/Services.ts.example +104 -0
- package/templates/app-payload/collections/Testimonials.ts.example +92 -0
- package/templates/app-payload/collections/Users.ts.example +35 -0
- package/templates/app-payload/src/server.ts.example +79 -0
- package/templates/app-payload/tsconfig.json.example +24 -0
- package/templates/app-vite/.env.example +77 -0
- package/templates/app-vite/index.html.example +127 -0
- package/templates/app-vite/service-account-key.json.example +2 -0
- package/templates/app-vite/src/App.tsx.example +39 -0
- package/templates/app-vite/src/Routes.tsx.example +16 -0
- package/templates/app-vite/src/config/app.ts.example +75 -0
- package/templates/app-vite/src/config/legal.ts.example +170 -0
- package/templates/app-vite/src/globals.css.example +11 -0
- package/templates/app-vite/src/locales/dndev_en.json.example +516 -0
- package/templates/app-vite/src/main.tsx.example +21 -0
- package/templates/app-vite/src/pages/HomePage.tsx.example +22 -0
- package/templates/app-vite/src/pages/NotFoundPage.tsx.example +33 -0
- package/templates/app-vite/src/pages/legal/LegalNoticePage.tsx.example +75 -0
- package/templates/app-vite/src/pages/legal/PrivacyPage.tsx.example +69 -0
- package/templates/app-vite/src/pages/legal/TermsPage.tsx.example +71 -0
- package/templates/app-vite/src/pages/locales/README.md.example +1 -0
- package/templates/app-vite/src/pages/locales/example_en.json.example +5 -0
- package/templates/app-vite/src/themes.css.example +179 -0
- package/templates/app-vite/tsconfig.json.example +9 -0
- package/templates/app-vite/vite.config.ts.example +9 -0
- package/templates/functions-firebase/README.md.example +129 -0
- package/templates/functions-firebase/build.mjs.example +52 -0
- package/templates/functions-firebase/functions-firebase/.env.example.example +45 -0
- package/templates/functions-firebase/functions-firebase/README.md.example +123 -0
- package/templates/functions-firebase/functions-firebase/build.mjs.example +52 -0
- package/templates/functions-firebase/functions-firebase/src/auth/getCustomClaims.ts.example +19 -0
- package/templates/functions-firebase/functions-firebase/src/auth/getUserAuthStatus.ts.example +21 -0
- package/templates/functions-firebase/functions-firebase/src/auth/index.ts.example +11 -0
- package/templates/functions-firebase/functions-firebase/src/auth/removeCustomClaims.ts.example +21 -0
- package/templates/functions-firebase/functions-firebase/src/auth/setCustomClaims.ts.example +21 -0
- package/templates/functions-firebase/functions-firebase/src/billing/handleStripeWebhook.ts.example +24 -0
- package/templates/functions-firebase/functions-firebase/src/billing/index.ts.example +10 -0
- package/templates/functions-firebase/functions-firebase/src/billing/processPaymentSuccess.ts.example +14 -0
- package/templates/functions-firebase/functions-firebase/src/billing/refreshSubscriptionStatus.ts.example +14 -0
- package/templates/functions-firebase/functions-firebase/src/crud/createEntity.ts.example +19 -0
- package/templates/functions-firebase/functions-firebase/src/crud/deleteEntity.ts.example +14 -0
- package/templates/functions-firebase/functions-firebase/src/crud/getEntity.ts.example +14 -0
- package/templates/functions-firebase/functions-firebase/src/crud/index.ts.example +12 -0
- package/templates/functions-firebase/functions-firebase/src/crud/listEntities.ts.example +14 -0
- package/templates/functions-firebase/functions-firebase/src/crud/updateEntity.ts.example +14 -0
- package/templates/functions-firebase/functions-firebase/src/index.ts.example +45 -0
- package/templates/functions-firebase/functions-firebase/src/oauth/checkGitHubAccess.ts.example +14 -0
- package/templates/functions-firebase/functions-firebase/src/oauth/disconnect.ts.example +14 -0
- package/templates/functions-firebase/functions-firebase/src/oauth/exchangeToken.ts.example +14 -0
- package/templates/functions-firebase/functions-firebase/src/oauth/getConnections.ts.example +14 -0
- package/templates/functions-firebase/functions-firebase/src/oauth/grantGitHubAccess.ts.example +14 -0
- package/templates/functions-firebase/functions-firebase/src/oauth/index.ts.example +17 -0
- package/templates/functions-firebase/functions-firebase/src/oauth/refreshToken.ts.example +14 -0
- package/templates/functions-firebase/functions-firebase/src/oauth/revokeGitHubAccess.ts.example +14 -0
- package/templates/functions-firebase/functions-firebase/tsconfig.json.example +21 -0
- package/templates/functions-firebase/functions.yaml.example +14 -0
- package/templates/functions-firebase/src/auth/getCustomClaims.ts.example +19 -0
- package/templates/functions-firebase/src/auth/getUserAuthStatus.ts.example +21 -0
- package/templates/functions-firebase/src/auth/index.ts.example +11 -0
- package/templates/functions-firebase/src/auth/removeCustomClaims.ts.example +21 -0
- package/templates/functions-firebase/src/auth/setCustomClaims.ts.example +21 -0
- package/templates/functions-firebase/src/billing/handleStripeWebhook.ts.example +24 -0
- package/templates/functions-firebase/src/billing/index.ts.example +10 -0
- package/templates/functions-firebase/src/billing/processPaymentSuccess.ts.example +14 -0
- package/templates/functions-firebase/src/billing/refreshSubscriptionStatus.ts.example +14 -0
- package/templates/functions-firebase/src/crud/createEntity.ts.example +19 -0
- package/templates/functions-firebase/src/crud/deleteEntity.ts.example +14 -0
- package/templates/functions-firebase/src/crud/getEntity.ts.example +14 -0
- package/templates/functions-firebase/src/crud/index.ts.example +12 -0
- package/templates/functions-firebase/src/crud/listEntities.ts.example +14 -0
- package/templates/functions-firebase/src/crud/updateEntity.ts.example +14 -0
- package/templates/functions-firebase/src/index.ts.example +45 -0
- package/templates/functions-firebase/src/oauth/checkGitHubAccess.ts.example +14 -0
- package/templates/functions-firebase/src/oauth/disconnect.ts.example +14 -0
- package/templates/functions-firebase/src/oauth/exchangeToken.ts.example +14 -0
- package/templates/functions-firebase/src/oauth/getConnections.ts.example +14 -0
- package/templates/functions-firebase/src/oauth/grantGitHubAccess.ts.example +14 -0
- package/templates/functions-firebase/src/oauth/index.ts.example +17 -0
- package/templates/functions-firebase/src/oauth/refreshToken.ts.example +14 -0
- package/templates/functions-firebase/src/oauth/revokeGitHubAccess.ts.example +14 -0
- package/templates/functions-firebase/tsconfig.json.example +24 -0
- package/templates/functions-vercel/README.md.example +116 -0
- package/templates/functions-vercel/build.mjs.example +52 -0
- package/templates/functions-vercel/functions-vercel/.env.example.example +37 -0
- package/templates/functions-vercel/functions-vercel/README.md.example +116 -0
- package/templates/functions-vercel/functions-vercel/build.mjs.example +52 -0
- package/templates/functions-vercel/functions-vercel/src/api/auth/getCustomClaims.ts.example +20 -0
- package/templates/functions-vercel/functions-vercel/src/api/auth/getUserAuthStatus.ts.example +20 -0
- package/templates/functions-vercel/functions-vercel/src/api/auth/removeCustomClaims.ts.example +20 -0
- package/templates/functions-vercel/functions-vercel/src/api/auth/setCustomClaims.ts.example +20 -0
- package/templates/functions-vercel/functions-vercel/src/api/billing/handleStripeWebhook.ts.example +20 -0
- package/templates/functions-vercel/functions-vercel/src/api/billing/processPaymentSuccess.ts.example +20 -0
- package/templates/functions-vercel/functions-vercel/src/api/billing/refreshSubscriptionStatus.ts.example +20 -0
- package/templates/functions-vercel/functions-vercel/src/api/crud/createEntity.ts.example +20 -0
- package/templates/functions-vercel/functions-vercel/src/api/crud/deleteEntity.ts.example +20 -0
- package/templates/functions-vercel/functions-vercel/src/api/crud/getEntity.ts.example +20 -0
- package/templates/functions-vercel/functions-vercel/src/api/crud/listEntities.ts.example +20 -0
- package/templates/functions-vercel/functions-vercel/src/api/crud/updateEntity.ts.example +20 -0
- package/templates/functions-vercel/functions-vercel/src/api/oauth/checkGitHubAccess.ts.example +20 -0
- package/templates/functions-vercel/functions-vercel/src/api/oauth/disconnect.ts.example +20 -0
- package/templates/functions-vercel/functions-vercel/src/api/oauth/exchangeToken.ts.example +20 -0
- package/templates/functions-vercel/functions-vercel/src/api/oauth/getConnections.ts.example +20 -0
- package/templates/functions-vercel/functions-vercel/src/api/oauth/grantGitHubAccess.ts.example +20 -0
- package/templates/functions-vercel/functions-vercel/src/api/oauth/refreshToken.ts.example +20 -0
- package/templates/functions-vercel/functions-vercel/src/api/oauth/revokeGitHubAccess.ts.example +20 -0
- package/templates/functions-vercel/functions-vercel/tsconfig.json.example +21 -0
- package/templates/functions-vercel/functions-vercel/vercel.json.example +14 -0
- package/templates/functions-vercel/src/api/auth/getCustomClaims.ts.example +20 -0
- package/templates/functions-vercel/src/api/auth/getUserAuthStatus.ts.example +20 -0
- package/templates/functions-vercel/src/api/auth/removeCustomClaims.ts.example +20 -0
- package/templates/functions-vercel/src/api/auth/setCustomClaims.ts.example +20 -0
- package/templates/functions-vercel/src/api/billing/handleStripeWebhook.ts.example +20 -0
- package/templates/functions-vercel/src/api/billing/processPaymentSuccess.ts.example +20 -0
- package/templates/functions-vercel/src/api/billing/refreshSubscriptionStatus.ts.example +20 -0
- package/templates/functions-vercel/src/api/crud/createEntity.ts.example +20 -0
- package/templates/functions-vercel/src/api/crud/deleteEntity.ts.example +20 -0
- package/templates/functions-vercel/src/api/crud/getEntity.ts.example +20 -0
- package/templates/functions-vercel/src/api/crud/listEntities.ts.example +20 -0
- package/templates/functions-vercel/src/api/crud/updateEntity.ts.example +20 -0
- package/templates/functions-vercel/src/api/oauth/checkGitHubAccess.ts.example +20 -0
- package/templates/functions-vercel/src/api/oauth/disconnect.ts.example +20 -0
- package/templates/functions-vercel/src/api/oauth/exchangeToken.ts.example +20 -0
- package/templates/functions-vercel/src/api/oauth/getConnections.ts.example +20 -0
- package/templates/functions-vercel/src/api/oauth/grantGitHubAccess.ts.example +20 -0
- package/templates/functions-vercel/src/api/oauth/refreshToken.ts.example +20 -0
- package/templates/functions-vercel/src/api/oauth/revokeGitHubAccess.ts.example +20 -0
- package/templates/functions-vercel/tsconfig.json.example +24 -0
- package/templates/functions-vercel/vercel.json.example +14 -0
- package/templates/github/github/workflows/firebase-deploy.yml.example +79 -0
- package/templates/github/workflows/firebase-deploy.yml.example +79 -0
- package/templates/root-consumer/.env.example +19 -0
- package/templates/root-consumer/.gitignore.example +82 -0
- package/templates/root-consumer/.prettierrc.cjs.example +12 -0
- package/templates/root-consumer/CLAUDE.md.example +73 -0
- package/templates/root-consumer/README.md.example +295 -0
- package/templates/root-consumer/bunfig.toml.example +68 -0
- package/templates/root-consumer/eslint.config.js.example +336 -0
- package/templates/root-consumer/firebase.json.example +348 -0
- package/templates/root-consumer/guides/AGENT_START_HERE.md.example +98 -0
- package/templates/root-consumer/guides/APP_CHECK_SETUP.md.example +111 -0
- package/templates/root-consumer/guides/AUTH_SETUP.md.example +92 -0
- package/templates/root-consumer/guides/BILLING_SETUP.md.example +120 -0
- package/templates/root-consumer/guides/CLI.md.example +293 -0
- package/templates/root-consumer/guides/COMPONENTS.md.example +875 -0
- package/templates/root-consumer/guides/CONFIG_SETUP.md.example +132 -0
- package/templates/root-consumer/guides/EMULATOR_SETUP.md.example +48 -0
- package/templates/root-consumer/guides/FEATURES.md.example +286 -0
- package/templates/root-consumer/guides/FRAMEWORK_OVERVIEW.md.example +97 -0
- package/templates/root-consumer/guides/FUNCTIONS.md.example +177 -0
- package/templates/root-consumer/guides/GETTING_STARTED.md.example +451 -0
- package/templates/root-consumer/guides/HOW_TO_USE.md.example +296 -0
- package/templates/root-consumer/guides/I18N_SETUP.md.example +204 -0
- package/templates/root-consumer/guides/IMPORT_PATTERNS.md.example +79 -0
- package/templates/root-consumer/guides/INDEX.md.example +50 -0
- package/templates/root-consumer/guides/INSTALLATION.md.example +296 -0
- package/templates/root-consumer/guides/LAYOUTS.md.example +310 -0
- package/templates/root-consumer/guides/PAGES_SETUP.md.example +123 -0
- package/templates/root-consumer/guides/STYLING.md.example +273 -0
- package/templates/root-consumer/guides/THEMING_SETUP.md.example +119 -0
- package/templates/root-consumer/guides/VERSION_CONTROL.md.example +181 -0
- package/templates/root-consumer/tsconfig.functions.json.example +15 -0
- package/templates/root-consumer/tsconfig.json.example +18 -0
- package/templates/root-consumer/turbo.json.example +46 -0
- package/templates/root-consumer/vercel.json.example +124 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync-secrets.js","sourceRoot":"","sources":["../../../src/bin/commands/sync-secrets.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD;;;;;;;;GAQG;AAEH,OAAO,EAAE,WAAW,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
|
+
var __esm = (fn, res) => function __init() {
|
|
4
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
// packages/tooling/src/bundler/utils.ts
|
|
8
|
+
import { createRequire } from "node:module";
|
|
9
|
+
import { fileURLToPath } from "node:url";
|
|
10
|
+
import { dirname, resolve } from "node:path";
|
|
11
|
+
import { Buffer as Buffer2 } from "node:buffer";
|
|
12
|
+
import process from "node:process";
|
|
13
|
+
var require2, __filename, __dirname;
|
|
14
|
+
var init_utils = __esm({
|
|
15
|
+
"packages/tooling/src/bundler/utils.ts"() {
|
|
16
|
+
"use strict";
|
|
17
|
+
require2 = createRequire(import.meta.url);
|
|
18
|
+
__filename = fileURLToPath(import.meta.url);
|
|
19
|
+
__dirname = dirname(__filename);
|
|
20
|
+
if (typeof globalThis !== "undefined") {
|
|
21
|
+
globalThis.require = require2;
|
|
22
|
+
globalThis.__filename = __filename;
|
|
23
|
+
globalThis.__dirname = __dirname;
|
|
24
|
+
globalThis.Buffer = Buffer2;
|
|
25
|
+
globalThis.process = process;
|
|
26
|
+
if (typeof global === "undefined") {
|
|
27
|
+
globalThis.global = globalThis;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
// packages/cli/src/bin/dndev.mjs
|
|
34
|
+
init_utils();
|
|
35
|
+
import { Command } from "commander";
|
|
36
|
+
var CLI_VERSION = "0.0.1";
|
|
37
|
+
var args = process.argv.slice(2);
|
|
38
|
+
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
|
|
39
|
+
console.log(CLI_VERSION);
|
|
40
|
+
process.exit(0);
|
|
41
|
+
}
|
|
42
|
+
if (args.length === 0 || args.length === 1 && (args[0] === "--help" || args[0] === "-h")) {
|
|
43
|
+
console.log(`DoNotDev CLI v${CLI_VERSION}
|
|
44
|
+
|
|
45
|
+
Usage: dndev <command>[:<app>] [options]
|
|
46
|
+
|
|
47
|
+
Commands:
|
|
48
|
+
init, create-project Create a new DoNotDev project
|
|
49
|
+
create-app Add app to existing project
|
|
50
|
+
dev [app] Start development server
|
|
51
|
+
build [app] Build for production
|
|
52
|
+
preview [app] Preview production build
|
|
53
|
+
emu [app] Start dev with Firebase emulators
|
|
54
|
+
format Format code with Prettier
|
|
55
|
+
lint Lint code with ESLint
|
|
56
|
+
deploy [app] Deploy to Firebase
|
|
57
|
+
sync-secrets Sync env vars to Firebase/Vercel
|
|
58
|
+
cacheout [app] Clear build caches
|
|
59
|
+
bump Update framework packages and peer dependencies
|
|
60
|
+
|
|
61
|
+
Options:
|
|
62
|
+
-v, --version Display version number
|
|
63
|
+
-h, --help Display this help
|
|
64
|
+
|
|
65
|
+
Examples:
|
|
66
|
+
dndev init my-app Create a new project
|
|
67
|
+
dndev dev Start dev server
|
|
68
|
+
dndev dev:web Start dev server for 'web' app
|
|
69
|
+
dndev build Build for production
|
|
70
|
+
dndev deploy Deploy to Firebase
|
|
71
|
+
|
|
72
|
+
Run 'dndev <command> --help' for command-specific help.`);
|
|
73
|
+
process.exit(0);
|
|
74
|
+
}
|
|
75
|
+
var program = new Command();
|
|
76
|
+
program.name("dndev").description("DoNotDev Framework CLI").version(CLI_VERSION, "-v, --version", "display version number").usage("<command>[:<app>] [options]").helpCommand("help [command]", "display help for command");
|
|
77
|
+
function extractCommonOptions(commanderOptions) {
|
|
78
|
+
const quiet = process.env.QUIET === "true" || process.env.QUIET === "1" || commanderOptions.quiet || false;
|
|
79
|
+
const debug = process.env.DEBUG === "true" || process.env.DEBUG === "1" || commanderOptions.debug || false;
|
|
80
|
+
const verbose = !debug && (process.env.VERBOSE === "true" || process.env.VERBOSE === "1" || commanderOptions.verbose || false);
|
|
81
|
+
const dryRun = process.env.DRY_RUN === "true" || process.env.DRY_RUN === "1" || commanderOptions.dryRun || commanderOptions.dry || false;
|
|
82
|
+
return { dryRun, quiet, verbose, debug };
|
|
83
|
+
}
|
|
84
|
+
function addCommonOptions(cmd) {
|
|
85
|
+
cmd.option("--dry-run, --dry", "Preview changes without applying").option("--verbose", "Verbose output").option("--debug", "Debug output").option("--quiet, -q", "Quiet output (errors only)");
|
|
86
|
+
}
|
|
87
|
+
program.command("init [name]").alias("create-project").description("Create a new DoNotDev project").action(async (name) => {
|
|
88
|
+
const { main } = await import("./commands/create-project.js");
|
|
89
|
+
await main({ projectName: name });
|
|
90
|
+
});
|
|
91
|
+
program.command("create-app [name]").description("Add a new app to existing project").action(async () => {
|
|
92
|
+
const { main } = await import("./commands/create-app.js");
|
|
93
|
+
await main();
|
|
94
|
+
});
|
|
95
|
+
var formatCmd = program.command("format").description("Format code with Prettier");
|
|
96
|
+
addCommonOptions(formatCmd);
|
|
97
|
+
formatCmd.action(async (commanderOptions) => {
|
|
98
|
+
const commonOptions = extractCommonOptions(commanderOptions);
|
|
99
|
+
const options = { ...commonOptions, ...commanderOptions };
|
|
100
|
+
try {
|
|
101
|
+
const { main } = await import("./commands/format.js");
|
|
102
|
+
await main(options);
|
|
103
|
+
} catch (error) {
|
|
104
|
+
if (error.code === "invalid-argument" || error.name === "DoNotDevError") {
|
|
105
|
+
process.exit(error.context?.exitCode || 1);
|
|
106
|
+
}
|
|
107
|
+
throw error;
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
var lintCmd = program.command("lint").description("Lint code with ESLint").option("-f, --fix", "automatically fix issues");
|
|
111
|
+
addCommonOptions(lintCmd);
|
|
112
|
+
lintCmd.action(async (commanderOptions) => {
|
|
113
|
+
const commonOptions = extractCommonOptions(commanderOptions);
|
|
114
|
+
const options = { ...commonOptions, ...commanderOptions };
|
|
115
|
+
try {
|
|
116
|
+
const { main } = await import("./commands/lint.js");
|
|
117
|
+
await main(options);
|
|
118
|
+
} catch (error) {
|
|
119
|
+
if (error.code === "invalid-argument" || error.name === "DoNotDevError") {
|
|
120
|
+
process.exit(error.context?.exitCode || 1);
|
|
121
|
+
}
|
|
122
|
+
throw error;
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
var cacheoutCmd = program.command("cacheout [app]").alias("co").description("Clear build caches").option("--app <app>", "App name to clear cache for");
|
|
126
|
+
addCommonOptions(cacheoutCmd);
|
|
127
|
+
cacheoutCmd.action(async (app, commanderOptions) => {
|
|
128
|
+
const commonOptions = extractCommonOptions(commanderOptions);
|
|
129
|
+
const options = { ...commonOptions, ...commanderOptions };
|
|
130
|
+
if (app) {
|
|
131
|
+
options.app = app;
|
|
132
|
+
}
|
|
133
|
+
const { main } = await import("./commands/cacheout.js");
|
|
134
|
+
await main(options);
|
|
135
|
+
});
|
|
136
|
+
var bumpCmd = program.command("bump").description("Update framework packages and peer dependencies to latest compatible versions");
|
|
137
|
+
addCommonOptions(bumpCmd);
|
|
138
|
+
bumpCmd.action(async (commanderOptions) => {
|
|
139
|
+
const commonOptions = extractCommonOptions(commanderOptions);
|
|
140
|
+
const options = { ...commonOptions, ...commanderOptions };
|
|
141
|
+
try {
|
|
142
|
+
const { main } = await import("./commands/bump.js");
|
|
143
|
+
await main(options);
|
|
144
|
+
} catch (error) {
|
|
145
|
+
if (error.code === "invalid-argument" || error.name === "DoNotDevError") {
|
|
146
|
+
process.exit(error.context?.exitCode || 1);
|
|
147
|
+
}
|
|
148
|
+
throw error;
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
var deployCmd = program.command("deploy [app]").description("Deploy to Firebase").option("-p, --project <project>", "Firebase project ID").option("--skip-build", "skip build step");
|
|
152
|
+
addCommonOptions(deployCmd);
|
|
153
|
+
deployCmd.action(async (app, commanderOptions) => {
|
|
154
|
+
const commonOptions = extractCommonOptions(commanderOptions);
|
|
155
|
+
const options = { ...commonOptions, ...commanderOptions, app };
|
|
156
|
+
const { main } = await import("./commands/deploy.js");
|
|
157
|
+
await main(options);
|
|
158
|
+
});
|
|
159
|
+
var syncSecretsCmd = program.command("sync-secrets").description("Sync env vars to Firebase/Vercel").option("-e, --env-file <file>", "environment file path").option("--platform <platform>", "platform (firebase|vercel)").option("-p, --project <project>", "project ID");
|
|
160
|
+
addCommonOptions(syncSecretsCmd);
|
|
161
|
+
syncSecretsCmd.action(async (commanderOptions) => {
|
|
162
|
+
const commonOptions = extractCommonOptions(commanderOptions);
|
|
163
|
+
const options = { ...commonOptions, ...commanderOptions };
|
|
164
|
+
const { main } = await import("./commands/sync-secrets.js");
|
|
165
|
+
await main(options);
|
|
166
|
+
});
|
|
167
|
+
program.command("dev [app]").description("Start development server").action(async (app) => {
|
|
168
|
+
const { main } = await import("./commands/dev.js");
|
|
169
|
+
if (app) {
|
|
170
|
+
process.argv = [process.argv[0], process.argv[1], app];
|
|
171
|
+
} else {
|
|
172
|
+
process.argv = [process.argv[0], process.argv[1]];
|
|
173
|
+
}
|
|
174
|
+
process.exit(await main());
|
|
175
|
+
});
|
|
176
|
+
program.command("emu [app]").description("Start dev with Firebase emulators").action(async (app) => {
|
|
177
|
+
const { main } = await import("./commands/emu.js");
|
|
178
|
+
if (app) {
|
|
179
|
+
process.argv = [process.argv[0], process.argv[1], app];
|
|
180
|
+
} else {
|
|
181
|
+
process.argv = [process.argv[0], process.argv[1]];
|
|
182
|
+
}
|
|
183
|
+
process.exit(await main());
|
|
184
|
+
});
|
|
185
|
+
program.command("build [app]").description("Build for production").action(async (app) => {
|
|
186
|
+
const { main } = await import("./commands/build.js");
|
|
187
|
+
if (app) {
|
|
188
|
+
process.argv = [process.argv[0], process.argv[1], app];
|
|
189
|
+
} else {
|
|
190
|
+
process.argv = [process.argv[0], process.argv[1]];
|
|
191
|
+
}
|
|
192
|
+
process.exit(await main());
|
|
193
|
+
});
|
|
194
|
+
program.command("preview [app]").description("Preview production build").action(async (app) => {
|
|
195
|
+
const { main } = await import("./commands/preview.js");
|
|
196
|
+
if (app) {
|
|
197
|
+
process.argv = [process.argv[0], process.argv[1], app];
|
|
198
|
+
} else {
|
|
199
|
+
process.argv = [process.argv[0], process.argv[1]];
|
|
200
|
+
}
|
|
201
|
+
process.exit(await main());
|
|
202
|
+
});
|
|
203
|
+
function preprocessArgs(args2) {
|
|
204
|
+
if (args2.length === 0) return args2;
|
|
205
|
+
const firstArg = args2[0];
|
|
206
|
+
const appCommands = ["dev", "build", "preview", "emu", "deploy"];
|
|
207
|
+
if (firstArg && firstArg.includes(":")) {
|
|
208
|
+
const colonIndex = firstArg.indexOf(":");
|
|
209
|
+
const command = firstArg.substring(0, colonIndex);
|
|
210
|
+
const app = firstArg.substring(colonIndex + 1);
|
|
211
|
+
if (appCommands.includes(command) && app) {
|
|
212
|
+
return [command, app, ...args2.slice(1)];
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
return args2;
|
|
216
|
+
}
|
|
217
|
+
program.on("command:*", () => {
|
|
218
|
+
console.error(`Unknown command: ${program.args.join(" ")}`);
|
|
219
|
+
console.error('Run "dndev --help" for available commands.');
|
|
220
|
+
process.exit(1);
|
|
221
|
+
});
|
|
222
|
+
program.parse([process.argv[0], process.argv[1], ...preprocessArgs(args)]);
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
|
+
var __esm = (fn, res) => function __init() {
|
|
4
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
// packages/tooling/src/bundler/utils.ts
|
|
8
|
+
import { createRequire } from "node:module";
|
|
9
|
+
import { fileURLToPath } from "node:url";
|
|
10
|
+
import { dirname, resolve } from "node:path";
|
|
11
|
+
import { Buffer as Buffer2 } from "node:buffer";
|
|
12
|
+
import process from "node:process";
|
|
13
|
+
var require2, __filename, __dirname;
|
|
14
|
+
var init_utils = __esm({
|
|
15
|
+
"packages/tooling/src/bundler/utils.ts"() {
|
|
16
|
+
"use strict";
|
|
17
|
+
require2 = createRequire(import.meta.url);
|
|
18
|
+
__filename = fileURLToPath(import.meta.url);
|
|
19
|
+
__dirname = dirname(__filename);
|
|
20
|
+
if (typeof globalThis !== "undefined") {
|
|
21
|
+
globalThis.require = require2;
|
|
22
|
+
globalThis.__filename = __filename;
|
|
23
|
+
globalThis.__dirname = __dirname;
|
|
24
|
+
globalThis.Buffer = Buffer2;
|
|
25
|
+
globalThis.process = process;
|
|
26
|
+
if (typeof global === "undefined") {
|
|
27
|
+
globalThis.global = globalThis;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
// packages/cli/src/bin/dndev.mjs
|
|
34
|
+
init_utils();
|
|
35
|
+
import { Command } from "commander";
|
|
36
|
+
var CLI_VERSION = "0.0.1";
|
|
37
|
+
var args = process.argv.slice(2);
|
|
38
|
+
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
|
|
39
|
+
console.log(CLI_VERSION);
|
|
40
|
+
process.exit(0);
|
|
41
|
+
}
|
|
42
|
+
if (args.length === 0 || args.length === 1 && (args[0] === "--help" || args[0] === "-h")) {
|
|
43
|
+
console.log(`DoNotDev CLI v${CLI_VERSION}
|
|
44
|
+
|
|
45
|
+
Usage: dndev <command>[:<app>] [options]
|
|
46
|
+
|
|
47
|
+
Commands:
|
|
48
|
+
init, create-project Create a new DoNotDev project
|
|
49
|
+
create-app Add app to existing project
|
|
50
|
+
dev [app] Start development server
|
|
51
|
+
build [app] Build for production
|
|
52
|
+
preview [app] Preview production build
|
|
53
|
+
emu [app] Start dev with Firebase emulators
|
|
54
|
+
format Format code with Prettier
|
|
55
|
+
lint Lint code with ESLint
|
|
56
|
+
deploy [app] Deploy to Firebase
|
|
57
|
+
sync-secrets Sync env vars to Firebase/Vercel
|
|
58
|
+
cacheout [app] Clear build caches
|
|
59
|
+
bump Update framework packages and peer dependencies
|
|
60
|
+
|
|
61
|
+
Options:
|
|
62
|
+
-v, --version Display version number
|
|
63
|
+
-h, --help Display this help
|
|
64
|
+
|
|
65
|
+
Examples:
|
|
66
|
+
dndev init my-app Create a new project
|
|
67
|
+
dndev dev Start dev server
|
|
68
|
+
dndev dev:web Start dev server for 'web' app
|
|
69
|
+
dndev build Build for production
|
|
70
|
+
dndev deploy Deploy to Firebase
|
|
71
|
+
|
|
72
|
+
Run 'dndev <command> --help' for command-specific help.`);
|
|
73
|
+
process.exit(0);
|
|
74
|
+
}
|
|
75
|
+
var program = new Command();
|
|
76
|
+
program.name("dndev").description("DoNotDev Framework CLI").version(CLI_VERSION, "-v, --version", "display version number").usage("<command>[:<app>] [options]").helpCommand("help [command]", "display help for command");
|
|
77
|
+
function extractCommonOptions(commanderOptions) {
|
|
78
|
+
const quiet = process.env.QUIET === "true" || process.env.QUIET === "1" || commanderOptions.quiet || false;
|
|
79
|
+
const debug = process.env.DEBUG === "true" || process.env.DEBUG === "1" || commanderOptions.debug || false;
|
|
80
|
+
const verbose = !debug && (process.env.VERBOSE === "true" || process.env.VERBOSE === "1" || commanderOptions.verbose || false);
|
|
81
|
+
const dryRun = process.env.DRY_RUN === "true" || process.env.DRY_RUN === "1" || commanderOptions.dryRun || commanderOptions.dry || false;
|
|
82
|
+
return { dryRun, quiet, verbose, debug };
|
|
83
|
+
}
|
|
84
|
+
function addCommonOptions(cmd) {
|
|
85
|
+
cmd.option("--dry-run, --dry", "Preview changes without applying").option("--verbose", "Verbose output").option("--debug", "Debug output").option("--quiet, -q", "Quiet output (errors only)");
|
|
86
|
+
}
|
|
87
|
+
program.command("init [name]").alias("create-project").description("Create a new DoNotDev project").action(async (name) => {
|
|
88
|
+
const { main } = await import("./commands/create-project.js");
|
|
89
|
+
await main({ projectName: name });
|
|
90
|
+
});
|
|
91
|
+
program.command("create-app [name]").description("Add a new app to existing project").action(async () => {
|
|
92
|
+
const { main } = await import("./commands/create-app.js");
|
|
93
|
+
await main();
|
|
94
|
+
});
|
|
95
|
+
var formatCmd = program.command("format").description("Format code with Prettier");
|
|
96
|
+
addCommonOptions(formatCmd);
|
|
97
|
+
formatCmd.action(async (commanderOptions) => {
|
|
98
|
+
const commonOptions = extractCommonOptions(commanderOptions);
|
|
99
|
+
const options = { ...commonOptions, ...commanderOptions };
|
|
100
|
+
try {
|
|
101
|
+
const { main } = await import("./commands/format.js");
|
|
102
|
+
await main(options);
|
|
103
|
+
} catch (error) {
|
|
104
|
+
if (error.code === "invalid-argument" || error.name === "DoNotDevError") {
|
|
105
|
+
process.exit(error.context?.exitCode || 1);
|
|
106
|
+
}
|
|
107
|
+
throw error;
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
var lintCmd = program.command("lint").description("Lint code with ESLint").option("-f, --fix", "automatically fix issues");
|
|
111
|
+
addCommonOptions(lintCmd);
|
|
112
|
+
lintCmd.action(async (commanderOptions) => {
|
|
113
|
+
const commonOptions = extractCommonOptions(commanderOptions);
|
|
114
|
+
const options = { ...commonOptions, ...commanderOptions };
|
|
115
|
+
try {
|
|
116
|
+
const { main } = await import("./commands/lint.js");
|
|
117
|
+
await main(options);
|
|
118
|
+
} catch (error) {
|
|
119
|
+
if (error.code === "invalid-argument" || error.name === "DoNotDevError") {
|
|
120
|
+
process.exit(error.context?.exitCode || 1);
|
|
121
|
+
}
|
|
122
|
+
throw error;
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
var cacheoutCmd = program.command("cacheout [app]").alias("co").description("Clear build caches").option("--app <app>", "App name to clear cache for");
|
|
126
|
+
addCommonOptions(cacheoutCmd);
|
|
127
|
+
cacheoutCmd.action(async (app, commanderOptions) => {
|
|
128
|
+
const commonOptions = extractCommonOptions(commanderOptions);
|
|
129
|
+
const options = { ...commonOptions, ...commanderOptions };
|
|
130
|
+
if (app) {
|
|
131
|
+
options.app = app;
|
|
132
|
+
}
|
|
133
|
+
const { main } = await import("./commands/cacheout.js");
|
|
134
|
+
await main(options);
|
|
135
|
+
});
|
|
136
|
+
var bumpCmd = program.command("bump").description("Update framework packages and peer dependencies to latest compatible versions");
|
|
137
|
+
addCommonOptions(bumpCmd);
|
|
138
|
+
bumpCmd.action(async (commanderOptions) => {
|
|
139
|
+
const commonOptions = extractCommonOptions(commanderOptions);
|
|
140
|
+
const options = { ...commonOptions, ...commanderOptions };
|
|
141
|
+
try {
|
|
142
|
+
const { main } = await import("./commands/bump.js");
|
|
143
|
+
await main(options);
|
|
144
|
+
} catch (error) {
|
|
145
|
+
if (error.code === "invalid-argument" || error.name === "DoNotDevError") {
|
|
146
|
+
process.exit(error.context?.exitCode || 1);
|
|
147
|
+
}
|
|
148
|
+
throw error;
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
var deployCmd = program.command("deploy [app]").description("Deploy to Firebase").option("-p, --project <project>", "Firebase project ID").option("--skip-build", "skip build step");
|
|
152
|
+
addCommonOptions(deployCmd);
|
|
153
|
+
deployCmd.action(async (app, commanderOptions) => {
|
|
154
|
+
const commonOptions = extractCommonOptions(commanderOptions);
|
|
155
|
+
const options = { ...commonOptions, ...commanderOptions, app };
|
|
156
|
+
const { main } = await import("./commands/deploy.js");
|
|
157
|
+
await main(options);
|
|
158
|
+
});
|
|
159
|
+
var syncSecretsCmd = program.command("sync-secrets").description("Sync env vars to Firebase/Vercel").option("-e, --env-file <file>", "environment file path").option("--platform <platform>", "platform (firebase|vercel)").option("-p, --project <project>", "project ID");
|
|
160
|
+
addCommonOptions(syncSecretsCmd);
|
|
161
|
+
syncSecretsCmd.action(async (commanderOptions) => {
|
|
162
|
+
const commonOptions = extractCommonOptions(commanderOptions);
|
|
163
|
+
const options = { ...commonOptions, ...commanderOptions };
|
|
164
|
+
const { main } = await import("./commands/sync-secrets.js");
|
|
165
|
+
await main(options);
|
|
166
|
+
});
|
|
167
|
+
program.command("dev [app]").description("Start development server").action(async (app) => {
|
|
168
|
+
const { main } = await import("./commands/dev.js");
|
|
169
|
+
if (app) {
|
|
170
|
+
process.argv = [process.argv[0], process.argv[1], app];
|
|
171
|
+
} else {
|
|
172
|
+
process.argv = [process.argv[0], process.argv[1]];
|
|
173
|
+
}
|
|
174
|
+
process.exit(await main());
|
|
175
|
+
});
|
|
176
|
+
program.command("emu [app]").description("Start dev with Firebase emulators").action(async (app) => {
|
|
177
|
+
const { main } = await import("./commands/emu.js");
|
|
178
|
+
if (app) {
|
|
179
|
+
process.argv = [process.argv[0], process.argv[1], app];
|
|
180
|
+
} else {
|
|
181
|
+
process.argv = [process.argv[0], process.argv[1]];
|
|
182
|
+
}
|
|
183
|
+
process.exit(await main());
|
|
184
|
+
});
|
|
185
|
+
program.command("build [app]").description("Build for production").action(async (app) => {
|
|
186
|
+
const { main } = await import("./commands/build.js");
|
|
187
|
+
if (app) {
|
|
188
|
+
process.argv = [process.argv[0], process.argv[1], app];
|
|
189
|
+
} else {
|
|
190
|
+
process.argv = [process.argv[0], process.argv[1]];
|
|
191
|
+
}
|
|
192
|
+
process.exit(await main());
|
|
193
|
+
});
|
|
194
|
+
program.command("preview [app]").description("Preview production build").action(async (app) => {
|
|
195
|
+
const { main } = await import("./commands/preview.js");
|
|
196
|
+
if (app) {
|
|
197
|
+
process.argv = [process.argv[0], process.argv[1], app];
|
|
198
|
+
} else {
|
|
199
|
+
process.argv = [process.argv[0], process.argv[1]];
|
|
200
|
+
}
|
|
201
|
+
process.exit(await main());
|
|
202
|
+
});
|
|
203
|
+
function preprocessArgs(args2) {
|
|
204
|
+
if (args2.length === 0) return args2;
|
|
205
|
+
const firstArg = args2[0];
|
|
206
|
+
const appCommands = ["dev", "build", "preview", "emu", "deploy"];
|
|
207
|
+
if (firstArg && firstArg.includes(":")) {
|
|
208
|
+
const colonIndex = firstArg.indexOf(":");
|
|
209
|
+
const command = firstArg.substring(0, colonIndex);
|
|
210
|
+
const app = firstArg.substring(colonIndex + 1);
|
|
211
|
+
if (appCommands.includes(command) && app) {
|
|
212
|
+
return [command, app, ...args2.slice(1)];
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
return args2;
|
|
216
|
+
}
|
|
217
|
+
program.on("command:*", () => {
|
|
218
|
+
console.error(`Unknown command: ${program.args.join(" ")}`);
|
|
219
|
+
console.error('Run "dndev --help" for available commands.');
|
|
220
|
+
process.exit(1);
|
|
221
|
+
});
|
|
222
|
+
program.parse([process.argv[0], process.argv[1], ...preprocessArgs(args)]);
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @donotdev/cli - DoNotDev Framework CLI
|
|
3
|
+
*
|
|
4
|
+
* Thin wrapper around @donotdev/tooling for public distribution.
|
|
5
|
+
* Tooling is the source of truth for all CLI code.
|
|
6
|
+
*/
|
|
7
|
+
export { createApp, createProject, format, lint, dev, build, preview, emu, cacheout, syncSecrets, deploy, } from '@donotdev/tooling';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAGH,OAAO,EACL,SAAS,EACT,aAAa,EACb,MAAM,EACN,IAAI,EACJ,GAAG,EACH,KAAK,EACL,OAAO,EACP,GAAG,EACH,QAAQ,EACR,WAAW,EACX,MAAM,GACP,MAAM,mBAAmB,CAAC"}
|