@geekmidas/cli 0.38.0 → 0.40.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/dist/{bundler-DQIuE3Kn.mjs → bundler-Db83tLti.mjs} +2 -2
- package/dist/{bundler-DQIuE3Kn.mjs.map → bundler-Db83tLti.mjs.map} +1 -1
- package/dist/{bundler-CyHg1v_T.cjs → bundler-DsXfFSCU.cjs} +2 -2
- package/dist/{bundler-CyHg1v_T.cjs.map → bundler-DsXfFSCU.cjs.map} +1 -1
- package/dist/{config-BC5n1a2D.mjs → config-C0b0jdmU.mjs} +2 -2
- package/dist/{config-BC5n1a2D.mjs.map → config-C0b0jdmU.mjs.map} +1 -1
- package/dist/{config-BAE9LFC1.cjs → config-xVZsRjN7.cjs} +2 -2
- package/dist/{config-BAE9LFC1.cjs.map → config-xVZsRjN7.cjs.map} +1 -1
- package/dist/config.cjs +2 -2
- package/dist/config.d.cts +1 -1
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +2 -2
- package/dist/dokploy-api-Bdmk5ImW.cjs +3 -0
- package/dist/{dokploy-api-C5czOZoc.cjs → dokploy-api-BdxOMH_V.cjs} +43 -1
- package/dist/{dokploy-api-C5czOZoc.cjs.map → dokploy-api-BdxOMH_V.cjs.map} +1 -1
- package/dist/{dokploy-api-B9qR2Yn1.mjs → dokploy-api-DWsqNjwP.mjs} +43 -1
- package/dist/{dokploy-api-B9qR2Yn1.mjs.map → dokploy-api-DWsqNjwP.mjs.map} +1 -1
- package/dist/dokploy-api-tZSZaHd9.mjs +3 -0
- package/dist/{encryption-JtMsiGNp.mjs → encryption-BC4MAODn.mjs} +1 -1
- package/dist/{encryption-JtMsiGNp.mjs.map → encryption-BC4MAODn.mjs.map} +1 -1
- package/dist/encryption-Biq0EZ4m.cjs +4 -0
- package/dist/encryption-CQXBZGkt.mjs +3 -0
- package/dist/{encryption-BAz0xQ1Q.cjs → encryption-DaCB_NmS.cjs} +13 -3
- package/dist/{encryption-BAz0xQ1Q.cjs.map → encryption-DaCB_NmS.cjs.map} +1 -1
- package/dist/{index-C7TkoYmt.d.mts → index-CXa3odEw.d.mts} +68 -7
- package/dist/index-CXa3odEw.d.mts.map +1 -0
- package/dist/{index-CpchsC9w.d.cts → index-E8Nu2Rxl.d.cts} +67 -6
- package/dist/index-E8Nu2Rxl.d.cts.map +1 -0
- package/dist/index.cjs +787 -145
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +767 -125
- package/dist/index.mjs.map +1 -1
- package/dist/{openapi-CjYeF-Tg.mjs → openapi-D3pA6FfZ.mjs} +2 -2
- package/dist/{openapi-CjYeF-Tg.mjs.map → openapi-D3pA6FfZ.mjs.map} +1 -1
- package/dist/{openapi-a-e3Y8WA.cjs → openapi-DhcCtKzM.cjs} +2 -2
- package/dist/{openapi-a-e3Y8WA.cjs.map → openapi-DhcCtKzM.cjs.map} +1 -1
- package/dist/{openapi-react-query-DvNpdDpM.cjs → openapi-react-query-C_MxpBgF.cjs} +1 -1
- package/dist/{openapi-react-query-DvNpdDpM.cjs.map → openapi-react-query-C_MxpBgF.cjs.map} +1 -1
- package/dist/{openapi-react-query-5rSortLH.mjs → openapi-react-query-ZoP9DPbY.mjs} +1 -1
- package/dist/{openapi-react-query-5rSortLH.mjs.map → openapi-react-query-ZoP9DPbY.mjs.map} +1 -1
- package/dist/openapi-react-query.cjs +1 -1
- package/dist/openapi-react-query.mjs +1 -1
- package/dist/openapi.cjs +3 -3
- package/dist/openapi.d.mts +1 -1
- package/dist/openapi.mjs +3 -3
- package/dist/{types-K2uQJ-FO.d.mts → types-BtGL-8QS.d.mts} +1 -1
- package/dist/{types-K2uQJ-FO.d.mts.map → types-BtGL-8QS.d.mts.map} +1 -1
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.d.cts +2 -2
- package/dist/workspace/index.d.mts +3 -3
- package/dist/workspace/index.mjs +1 -1
- package/dist/{workspace-My0A4IRO.cjs → workspace-BDAhr6Kb.cjs} +33 -4
- package/dist/{workspace-My0A4IRO.cjs.map → workspace-BDAhr6Kb.cjs.map} +1 -1
- package/dist/{workspace-DFJ3sWfY.mjs → workspace-D_6ZCaR_.mjs} +33 -4
- package/dist/{workspace-DFJ3sWfY.mjs.map → workspace-D_6ZCaR_.mjs.map} +1 -1
- package/package.json +5 -5
- package/src/build/index.ts +23 -6
- package/src/deploy/__tests__/domain.spec.ts +231 -0
- package/src/deploy/__tests__/secrets.spec.ts +300 -0
- package/src/deploy/__tests__/sniffer.spec.ts +221 -0
- package/src/deploy/docker.ts +58 -29
- package/src/deploy/dokploy-api.ts +99 -0
- package/src/deploy/domain.ts +125 -0
- package/src/deploy/index.ts +364 -145
- package/src/deploy/secrets.ts +182 -0
- package/src/deploy/sniffer.ts +180 -0
- package/src/dev/index.ts +155 -9
- package/src/docker/index.ts +17 -2
- package/src/docker/templates.ts +171 -1
- package/src/index.ts +18 -1
- package/src/init/generators/auth.ts +2 -0
- package/src/init/versions.ts +2 -2
- package/src/workspace/index.ts +2 -0
- package/src/workspace/schema.ts +32 -6
- package/src/workspace/types.ts +64 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/dokploy-api-B0w17y4_.mjs +0 -3
- package/dist/dokploy-api-BnGeUqN4.cjs +0 -3
- package/dist/index-C7TkoYmt.d.mts.map +0 -1
- package/dist/index-CpchsC9w.d.cts.map +0 -1
|
@@ -3312,6 +3312,27 @@ const ClientConfigSchema = object({ output: string().optional() });
|
|
|
3312
3312
|
*/
|
|
3313
3313
|
const AuthProviderSchema = _enum(["better-auth"]);
|
|
3314
3314
|
/**
|
|
3315
|
+
* Backend framework schema for non-gkm apps.
|
|
3316
|
+
*/
|
|
3317
|
+
const BackendFrameworkSchema = _enum([
|
|
3318
|
+
"hono",
|
|
3319
|
+
"better-auth",
|
|
3320
|
+
"express",
|
|
3321
|
+
"fastify"
|
|
3322
|
+
]);
|
|
3323
|
+
/**
|
|
3324
|
+
* Frontend framework schema.
|
|
3325
|
+
*/
|
|
3326
|
+
const FrontendFrameworkSchema = _enum([
|
|
3327
|
+
"nextjs",
|
|
3328
|
+
"remix",
|
|
3329
|
+
"vite"
|
|
3330
|
+
]);
|
|
3331
|
+
/**
|
|
3332
|
+
* Combined framework schema (backend or frontend).
|
|
3333
|
+
*/
|
|
3334
|
+
const FrameworkSchema = union([BackendFrameworkSchema, FrontendFrameworkSchema]);
|
|
3335
|
+
/**
|
|
3315
3336
|
* Deploy target schema.
|
|
3316
3337
|
* Currently only 'dokploy' is supported.
|
|
3317
3338
|
* 'vercel' and 'cloudflare' are planned for Phase 2.
|
|
@@ -3446,14 +3467,22 @@ const AppConfigSchema = object({
|
|
|
3446
3467
|
openapi: union([boolean(), OpenApiConfigSchema]).optional(),
|
|
3447
3468
|
runtime: _enum(["node", "bun"]).optional(),
|
|
3448
3469
|
env: union([string(), array(string())]).optional(),
|
|
3449
|
-
|
|
3470
|
+
entry: string().optional(),
|
|
3471
|
+
framework: FrameworkSchema.optional(),
|
|
3450
3472
|
client: ClientConfigSchema.optional(),
|
|
3451
3473
|
provider: AuthProviderSchema.optional()
|
|
3452
3474
|
}).refine((data) => {
|
|
3453
|
-
if (data.type === "frontend"
|
|
3475
|
+
if (data.type === "frontend") {
|
|
3476
|
+
const frontendFrameworks = [
|
|
3477
|
+
"nextjs",
|
|
3478
|
+
"remix",
|
|
3479
|
+
"vite"
|
|
3480
|
+
];
|
|
3481
|
+
if (!data.framework || !frontendFrameworks.includes(data.framework)) return false;
|
|
3482
|
+
}
|
|
3454
3483
|
return true;
|
|
3455
3484
|
}, {
|
|
3456
|
-
message: "Frontend apps must have framework
|
|
3485
|
+
message: "Frontend apps must have a valid frontend framework (nextjs, remix, vite)",
|
|
3457
3486
|
path: ["framework"]
|
|
3458
3487
|
}).refine((data) => {
|
|
3459
3488
|
if (data.type === "auth" && !data.provider) return false;
|
|
@@ -3795,4 +3824,4 @@ function getDependencyEnvVars(workspace, appName, urlPrefix = "http://localhost"
|
|
|
3795
3824
|
|
|
3796
3825
|
//#endregion
|
|
3797
3826
|
export { PHASE_2_DEPLOY_TARGETS, SUPPORTED_DEPLOY_TARGETS, WorkspaceConfigSchema, __require, defineWorkspace, formatValidationErrors, getAppBuildOrder, getAppGkmConfig, getDependencyEnvVars, getDeployTargetError, isDeployTargetSupported, isPhase2DeployTarget, isWorkspaceConfig, normalizeWorkspace, processConfig, safeValidateWorkspaceConfig, validateWorkspaceConfig, wrapSingleAppAsWorkspace };
|
|
3798
|
-
//# sourceMappingURL=workspace-
|
|
3827
|
+
//# sourceMappingURL=workspace-D_6ZCaR_.mjs.map
|