@geekmidas/cli 0.6.2 → 0.7.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/config.d.cts +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/index.cjs +2561 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2556 -29
- package/dist/index.mjs.map +1 -1
- package/dist/openapi-Mwy2_R4W.mjs +957 -0
- package/dist/openapi-Mwy2_R4W.mjs.map +1 -0
- package/dist/{openapi-react-query-_-B3s8v_.mjs → openapi-react-query-CcciaVu5.mjs} +1 -1
- package/dist/{openapi-react-query-_-B3s8v_.mjs.map → openapi-react-query-CcciaVu5.mjs.map} +1 -1
- package/dist/{openapi-react-query-Cp-w8_05.cjs → openapi-react-query-o5iMi8tz.cjs} +1 -1
- package/dist/{openapi-react-query-Cp-w8_05.cjs.map → openapi-react-query-o5iMi8tz.cjs.map} +1 -1
- package/dist/openapi-react-query.cjs +1 -1
- package/dist/openapi-react-query.mjs +1 -1
- package/dist/openapi-tAIbJJU_.cjs +993 -0
- package/dist/openapi-tAIbJJU_.cjs.map +1 -0
- package/dist/openapi.cjs +1 -4
- package/dist/openapi.d.cts +1 -1
- package/dist/openapi.d.mts +1 -1
- package/dist/openapi.mjs +1 -4
- package/dist/{types-Bi7VzDUZ.d.mts → types-B3TXoj7v.d.mts} +21 -53
- package/dist/{types-KmjzMgu8.d.cts → types-C0hwnSjm.d.cts} +21 -53
- package/package.json +5 -5
- package/src/build/types.ts +13 -0
- package/src/dev/index.ts +71 -8
- package/src/generators/EndpointGenerator.ts +46 -5
- package/src/generators/__tests__/EndpointGenerator.spec.ts +1 -1
- package/src/init/generators/config.ts +6 -1
- package/src/init/generators/package.ts +5 -1
- package/src/init/index.ts +9 -1
- package/src/init/templates/api.ts +31 -0
- package/src/init/templates/index.ts +1 -0
- package/src/init/templates/minimal.ts +83 -0
- package/src/types.ts +19 -0
- package/tsdown.config.ts +6 -0
- package/dist/CronGenerator-CCRYptuT.mjs +0 -55
- package/dist/CronGenerator-CCRYptuT.mjs.map +0 -1
- package/dist/CronGenerator-D4TWXQbh.cjs +0 -61
- package/dist/CronGenerator-D4TWXQbh.cjs.map +0 -1
- package/dist/CronGenerator-DWS3CCZt.d.cts +0 -14
- package/dist/CronGenerator-DZjdkEjI.d.mts +0 -14
- package/dist/EndpointGenerator-DGivkPLT.mjs +0 -335
- package/dist/EndpointGenerator-DGivkPLT.mjs.map +0 -1
- package/dist/EndpointGenerator-Dh7kMtuL.d.mts +0 -19
- package/dist/EndpointGenerator-npWEDoK2.cjs +0 -341
- package/dist/EndpointGenerator-npWEDoK2.cjs.map +0 -1
- package/dist/EndpointGenerator-zBsie_7s.d.cts +0 -19
- package/dist/FunctionGenerator-BmDHo27U.d.mts +0 -14
- package/dist/FunctionGenerator-CVk0h8tO.mjs +0 -54
- package/dist/FunctionGenerator-CVk0h8tO.mjs.map +0 -1
- package/dist/FunctionGenerator-DXjXBxUd.d.cts +0 -14
- package/dist/FunctionGenerator-DYTnyr4c.cjs +0 -60
- package/dist/FunctionGenerator-DYTnyr4c.cjs.map +0 -1
- package/dist/Generator-BGY-2dgI.d.cts +0 -27
- package/dist/Generator-CDt4pB3W.mjs +0 -41
- package/dist/Generator-CDt4pB3W.mjs.map +0 -1
- package/dist/Generator-CLVplqm2.cjs +0 -47
- package/dist/Generator-CLVplqm2.cjs.map +0 -1
- package/dist/Generator-yi9DH5TN.d.mts +0 -27
- package/dist/OpenApiTsGenerator-BVS4pOH7.mjs +0 -495
- package/dist/OpenApiTsGenerator-BVS4pOH7.mjs.map +0 -1
- package/dist/OpenApiTsGenerator-gPIIyppX.cjs +0 -501
- package/dist/OpenApiTsGenerator-gPIIyppX.cjs.map +0 -1
- package/dist/SubscriberGenerator-Bb-z3Kvx.d.cts +0 -15
- package/dist/SubscriberGenerator-CwsXqCpS.d.mts +0 -15
- package/dist/SubscriberGenerator-DABaJXML.mjs +0 -200
- package/dist/SubscriberGenerator-DABaJXML.mjs.map +0 -1
- package/dist/SubscriberGenerator-D_zpNGFr.cjs +0 -206
- package/dist/SubscriberGenerator-D_zpNGFr.cjs.map +0 -1
- package/dist/api-Bp5TIl1R.mjs +0 -167
- package/dist/api-Bp5TIl1R.mjs.map +0 -1
- package/dist/api-D4W9-tdZ.cjs +0 -173
- package/dist/api-D4W9-tdZ.cjs.map +0 -1
- package/dist/build/index.cjs +0 -15
- package/dist/build/index.d.cts +0 -7
- package/dist/build/index.d.mts +0 -7
- package/dist/build/index.mjs +0 -15
- package/dist/build/manifests.cjs +0 -4
- package/dist/build/manifests.d.cts +0 -13
- package/dist/build/manifests.d.mts +0 -13
- package/dist/build/manifests.mjs +0 -3
- package/dist/build/providerResolver.cjs +0 -5
- package/dist/build/providerResolver.d.cts +0 -23
- package/dist/build/providerResolver.d.mts +0 -23
- package/dist/build/providerResolver.mjs +0 -3
- package/dist/build/types.cjs +0 -0
- package/dist/build/types.d.cts +0 -3
- package/dist/build/types.d.mts +0 -3
- package/dist/build/types.mjs +0 -0
- package/dist/build-Cu6Mi0Lf.mjs +0 -87
- package/dist/build-Cu6Mi0Lf.mjs.map +0 -1
- package/dist/build-wmt8ZcmA.cjs +0 -93
- package/dist/build-wmt8ZcmA.cjs.map +0 -1
- package/dist/config-BP1IZynR.cjs +0 -168
- package/dist/config-BP1IZynR.cjs.map +0 -1
- package/dist/config-CIzRhm_D.d.mts +0 -11
- package/dist/config-CvehIYsb.d.cts +0 -11
- package/dist/config-UCK12Lrr.mjs +0 -162
- package/dist/config-UCK12Lrr.mjs.map +0 -1
- package/dist/dev/index.cjs +0 -17
- package/dist/dev/index.d.cts +0 -36
- package/dist/dev/index.d.mts +0 -36
- package/dist/dev/index.mjs +0 -13
- package/dist/dev-BBPWSllq.mjs +0 -348
- package/dist/dev-BBPWSllq.mjs.map +0 -1
- package/dist/dev-C2lCgE53.cjs +0 -378
- package/dist/dev-C2lCgE53.cjs.map +0 -1
- package/dist/docker-2-ipZDOJ.cjs +0 -119
- package/dist/docker-2-ipZDOJ.cjs.map +0 -1
- package/dist/docker-31GNwU3F.mjs +0 -113
- package/dist/docker-31GNwU3F.mjs.map +0 -1
- package/dist/env-CQ3hXAAW.d.mts +0 -11
- package/dist/env-CS0jvg7k.cjs +0 -144
- package/dist/env-CS0jvg7k.cjs.map +0 -1
- package/dist/env-D4YFgMqo.d.cts +0 -11
- package/dist/env-DEeVOvVu.mjs +0 -138
- package/dist/env-DEeVOvVu.mjs.map +0 -1
- package/dist/generators/CronGenerator.cjs +0 -4
- package/dist/generators/CronGenerator.d.cts +0 -5
- package/dist/generators/CronGenerator.d.mts +0 -5
- package/dist/generators/CronGenerator.mjs +0 -4
- package/dist/generators/EndpointGenerator.cjs +0 -4
- package/dist/generators/EndpointGenerator.d.cts +0 -5
- package/dist/generators/EndpointGenerator.d.mts +0 -5
- package/dist/generators/EndpointGenerator.mjs +0 -4
- package/dist/generators/FunctionGenerator.cjs +0 -4
- package/dist/generators/FunctionGenerator.d.cts +0 -5
- package/dist/generators/FunctionGenerator.d.mts +0 -5
- package/dist/generators/FunctionGenerator.mjs +0 -4
- package/dist/generators/Generator.cjs +0 -3
- package/dist/generators/Generator.d.cts +0 -4
- package/dist/generators/Generator.d.mts +0 -4
- package/dist/generators/Generator.mjs +0 -3
- package/dist/generators/OpenApiTsGenerator.cjs +0 -3
- package/dist/generators/OpenApiTsGenerator.d.cts +0 -44
- package/dist/generators/OpenApiTsGenerator.d.mts +0 -44
- package/dist/generators/OpenApiTsGenerator.mjs +0 -3
- package/dist/generators/SubscriberGenerator.cjs +0 -4
- package/dist/generators/SubscriberGenerator.d.cts +0 -5
- package/dist/generators/SubscriberGenerator.d.mts +0 -5
- package/dist/generators/SubscriberGenerator.mjs +0 -4
- package/dist/generators/index.cjs +0 -12
- package/dist/generators/index.d.cts +0 -8
- package/dist/generators/index.d.mts +0 -8
- package/dist/generators/index.mjs +0 -8
- package/dist/generators-3IemvCLk.cjs +0 -0
- package/dist/generators-FNpdfN6J.mjs +0 -0
- package/dist/index-DG6xNQMH.d.cts +0 -81
- package/dist/index-DZgrOOOW.d.mts +0 -81
- package/dist/init/generators/config.cjs +0 -3
- package/dist/init/generators/config.d.cts +0 -3
- package/dist/init/generators/config.d.mts +0 -3
- package/dist/init/generators/config.mjs +0 -3
- package/dist/init/generators/docker.cjs +0 -3
- package/dist/init/generators/docker.d.cts +0 -11
- package/dist/init/generators/docker.d.mts +0 -11
- package/dist/init/generators/docker.mjs +0 -3
- package/dist/init/generators/env.cjs +0 -3
- package/dist/init/generators/env.d.cts +0 -3
- package/dist/init/generators/env.d.mts +0 -3
- package/dist/init/generators/env.mjs +0 -3
- package/dist/init/generators/index.cjs +0 -14
- package/dist/init/generators/index.d.cts +0 -6
- package/dist/init/generators/index.d.mts +0 -6
- package/dist/init/generators/index.mjs +0 -11
- package/dist/init/generators/models.cjs +0 -3
- package/dist/init/generators/models.d.cts +0 -11
- package/dist/init/generators/models.d.mts +0 -11
- package/dist/init/generators/models.mjs +0 -3
- package/dist/init/generators/monorepo.cjs +0 -3
- package/dist/init/generators/monorepo.d.cts +0 -11
- package/dist/init/generators/monorepo.d.mts +0 -11
- package/dist/init/generators/monorepo.mjs +0 -3
- package/dist/init/generators/package.cjs +0 -8
- package/dist/init/generators/package.d.cts +0 -3
- package/dist/init/generators/package.d.mts +0 -3
- package/dist/init/generators/package.mjs +0 -8
- package/dist/init/generators/source.cjs +0 -3
- package/dist/init/generators/source.d.cts +0 -3
- package/dist/init/generators/source.d.mts +0 -3
- package/dist/init/generators/source.mjs +0 -3
- package/dist/init/index.cjs +0 -16
- package/dist/init/index.d.cts +0 -17
- package/dist/init/index.d.mts +0 -17
- package/dist/init/index.mjs +0 -16
- package/dist/init/templates/api.cjs +0 -3
- package/dist/init/templates/api.d.cts +0 -7
- package/dist/init/templates/api.d.mts +0 -7
- package/dist/init/templates/api.mjs +0 -3
- package/dist/init/templates/index.cjs +0 -12
- package/dist/init/templates/index.d.cts +0 -2
- package/dist/init/templates/index.d.mts +0 -2
- package/dist/init/templates/index.mjs +0 -7
- package/dist/init/templates/minimal.cjs +0 -3
- package/dist/init/templates/minimal.d.cts +0 -7
- package/dist/init/templates/minimal.d.mts +0 -7
- package/dist/init/templates/minimal.mjs +0 -3
- package/dist/init/templates/serverless.cjs +0 -3
- package/dist/init/templates/serverless.d.cts +0 -7
- package/dist/init/templates/serverless.d.mts +0 -7
- package/dist/init/templates/serverless.mjs +0 -3
- package/dist/init/templates/worker.cjs +0 -3
- package/dist/init/templates/worker.d.cts +0 -7
- package/dist/init/templates/worker.d.mts +0 -7
- package/dist/init/templates/worker.mjs +0 -3
- package/dist/init/utils.cjs +0 -7
- package/dist/init/utils.d.cts +0 -25
- package/dist/init/utils.d.mts +0 -25
- package/dist/init/utils.mjs +0 -3
- package/dist/init-BMA7xi8r.mjs +0 -161
- package/dist/init-BMA7xi8r.mjs.map +0 -1
- package/dist/init-D-7WEk-b.cjs +0 -167
- package/dist/init-D-7WEk-b.cjs.map +0 -1
- package/dist/manifests-BNKG6AXf.mjs +0 -68
- package/dist/manifests-BNKG6AXf.mjs.map +0 -1
- package/dist/manifests-D13Ej8AE.cjs +0 -80
- package/dist/manifests-D13Ej8AE.cjs.map +0 -1
- package/dist/minimal-BkyASH_C.mjs +0 -93
- package/dist/minimal-BkyASH_C.mjs.map +0 -1
- package/dist/minimal-CSFggzdH.cjs +0 -99
- package/dist/minimal-CSFggzdH.cjs.map +0 -1
- package/dist/models-BWlDfviw.mjs +0 -115
- package/dist/models-BWlDfviw.mjs.map +0 -1
- package/dist/models-BapGSoHC.cjs +0 -121
- package/dist/models-BapGSoHC.cjs.map +0 -1
- package/dist/monorepo-BBOWhkcd.mjs +0 -184
- package/dist/monorepo-BBOWhkcd.mjs.map +0 -1
- package/dist/monorepo-CFtxHeDh.cjs +0 -190
- package/dist/monorepo-CFtxHeDh.cjs.map +0 -1
- package/dist/openapi-DA9RkPJl.mjs +0 -74
- package/dist/openapi-DA9RkPJl.mjs.map +0 -1
- package/dist/openapi-DZH6RQHk.cjs +0 -98
- package/dist/openapi-DZH6RQHk.cjs.map +0 -1
- package/dist/package-6h-7QfJZ.d.cts +0 -11
- package/dist/package-BCe_KvGv.d.mts +0 -11
- package/dist/package-C3If80n1.mjs +0 -57
- package/dist/package-C3If80n1.mjs.map +0 -1
- package/dist/package-Dk8IMBOB.cjs +0 -62
- package/dist/package-Dk8IMBOB.cjs.map +0 -1
- package/dist/providerResolver-DEVKngbC.mjs +0 -96
- package/dist/providerResolver-DEVKngbC.mjs.map +0 -1
- package/dist/providerResolver-DOTbN9jo.cjs +0 -114
- package/dist/providerResolver-DOTbN9jo.cjs.map +0 -1
- package/dist/serverless-AGOS-l3G.cjs +0 -119
- package/dist/serverless-AGOS-l3G.cjs.map +0 -1
- package/dist/serverless-D5HjJByU.mjs +0 -113
- package/dist/serverless-D5HjJByU.mjs.map +0 -1
- package/dist/source-C1cyfHcF.cjs +0 -17
- package/dist/source-C1cyfHcF.cjs.map +0 -1
- package/dist/source-C3LiNUV9.d.mts +0 -11
- package/dist/source-CkQHBpwu.mjs +0 -11
- package/dist/source-CkQHBpwu.mjs.map +0 -1
- package/dist/source-Dtcjbokc.d.cts +0 -11
- package/dist/templates-C0EMmhwb.mjs +0 -88
- package/dist/templates-C0EMmhwb.mjs.map +0 -1
- package/dist/templates-CbgQ9dw0.cjs +0 -123
- package/dist/templates-CbgQ9dw0.cjs.map +0 -1
- package/dist/types-D2xYkOal.d.mts +0 -51
- package/dist/types-DA-r8HWZ.d.cts +0 -51
- package/dist/types.cjs +0 -0
- package/dist/types.d.cts +0 -2
- package/dist/types.d.mts +0 -2
- package/dist/types.mjs +0 -0
- package/dist/utils-CKEzCxc1.mjs +0 -69
- package/dist/utils-CKEzCxc1.mjs.map +0 -1
- package/dist/utils-DSdN2MTt.cjs +0 -99
- package/dist/utils-DSdN2MTt.cjs.map +0 -1
- package/dist/worker-CGhlqNH-.cjs +0 -156
- package/dist/worker-CGhlqNH-.cjs.map +0 -1
- package/dist/worker-CiP420As.mjs +0 -150
- package/dist/worker-CiP420As.mjs.map +0 -1
package/dist/config-BP1IZynR.cjs
DELETED
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region src/init/generators/config.ts
|
|
3
|
-
/**
|
|
4
|
-
* Generate configuration files (gkm.config.ts, tsconfig.json, biome.json, turbo.json)
|
|
5
|
-
*/
|
|
6
|
-
function generateConfigFiles(options, template) {
|
|
7
|
-
const { telescope, routesStructure } = options;
|
|
8
|
-
const isServerless = template.name === "serverless";
|
|
9
|
-
const hasWorker = template.name === "worker";
|
|
10
|
-
const getRoutesGlob = () => {
|
|
11
|
-
switch (routesStructure) {
|
|
12
|
-
case "centralized-endpoints": return "./src/endpoints/**/*.ts";
|
|
13
|
-
case "centralized-routes": return "./src/routes/**/*.ts";
|
|
14
|
-
case "domain-based": return "./src/**/routes/*.ts";
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
let gkmConfig = `import { defineConfig } from '@geekmidas/cli/config';
|
|
18
|
-
|
|
19
|
-
export default defineConfig({
|
|
20
|
-
routes: '${getRoutesGlob()}',
|
|
21
|
-
envParser: './src/config/env#envParser',
|
|
22
|
-
logger: './src/config/logger#logger',`;
|
|
23
|
-
if (isServerless || hasWorker) gkmConfig += `
|
|
24
|
-
functions: './src/functions/**/*.ts',`;
|
|
25
|
-
if (hasWorker) gkmConfig += `
|
|
26
|
-
crons: './src/crons/**/*.ts',
|
|
27
|
-
subscribers: './src/subscribers/**/*.ts',`;
|
|
28
|
-
if (telescope) gkmConfig += `
|
|
29
|
-
telescope: {
|
|
30
|
-
enabled: true,
|
|
31
|
-
path: '/__telescope',
|
|
32
|
-
},`;
|
|
33
|
-
gkmConfig += `
|
|
34
|
-
openapi: {
|
|
35
|
-
enabled: true,
|
|
36
|
-
},`;
|
|
37
|
-
gkmConfig += `
|
|
38
|
-
});
|
|
39
|
-
`;
|
|
40
|
-
const tsConfig = options.monorepo ? {
|
|
41
|
-
extends: "../../tsconfig.json",
|
|
42
|
-
compilerOptions: {
|
|
43
|
-
outDir: "./dist",
|
|
44
|
-
rootDir: "./src",
|
|
45
|
-
baseUrl: ".",
|
|
46
|
-
paths: { [`@${options.name}/*`]: ["../../packages/*/src"] }
|
|
47
|
-
},
|
|
48
|
-
include: ["src/**/*.ts"],
|
|
49
|
-
exclude: ["node_modules", "dist"]
|
|
50
|
-
} : {
|
|
51
|
-
compilerOptions: {
|
|
52
|
-
target: "ES2022",
|
|
53
|
-
module: "NodeNext",
|
|
54
|
-
moduleResolution: "NodeNext",
|
|
55
|
-
lib: ["ES2022"],
|
|
56
|
-
strict: true,
|
|
57
|
-
esModuleInterop: true,
|
|
58
|
-
skipLibCheck: true,
|
|
59
|
-
forceConsistentCasingInFileNames: true,
|
|
60
|
-
resolveJsonModule: true,
|
|
61
|
-
declaration: true,
|
|
62
|
-
declarationMap: true,
|
|
63
|
-
outDir: "./dist",
|
|
64
|
-
rootDir: "./src"
|
|
65
|
-
},
|
|
66
|
-
include: ["src/**/*.ts"],
|
|
67
|
-
exclude: ["node_modules", "dist"]
|
|
68
|
-
};
|
|
69
|
-
if (options.monorepo) return [{
|
|
70
|
-
path: "gkm.config.ts",
|
|
71
|
-
content: gkmConfig
|
|
72
|
-
}, {
|
|
73
|
-
path: "tsconfig.json",
|
|
74
|
-
content: JSON.stringify(tsConfig, null, 2) + "\n"
|
|
75
|
-
}];
|
|
76
|
-
const biomeConfig = {
|
|
77
|
-
$schema: "https://biomejs.dev/schemas/1.9.4/schema.json",
|
|
78
|
-
vcs: {
|
|
79
|
-
enabled: true,
|
|
80
|
-
clientKind: "git",
|
|
81
|
-
useIgnoreFile: true
|
|
82
|
-
},
|
|
83
|
-
organizeImports: { enabled: true },
|
|
84
|
-
formatter: {
|
|
85
|
-
enabled: true,
|
|
86
|
-
indentStyle: "space",
|
|
87
|
-
indentWidth: 2,
|
|
88
|
-
lineWidth: 80
|
|
89
|
-
},
|
|
90
|
-
javascript: { formatter: {
|
|
91
|
-
quoteStyle: "single",
|
|
92
|
-
trailingCommas: "all",
|
|
93
|
-
semicolons: "always",
|
|
94
|
-
arrowParentheses: "always"
|
|
95
|
-
} },
|
|
96
|
-
linter: {
|
|
97
|
-
enabled: true,
|
|
98
|
-
rules: {
|
|
99
|
-
recommended: true,
|
|
100
|
-
correctness: {
|
|
101
|
-
noUnusedImports: "error",
|
|
102
|
-
noUnusedVariables: "error"
|
|
103
|
-
},
|
|
104
|
-
style: { noNonNullAssertion: "off" }
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
files: { ignore: [
|
|
108
|
-
"node_modules",
|
|
109
|
-
"dist",
|
|
110
|
-
".gkm",
|
|
111
|
-
"coverage"
|
|
112
|
-
] }
|
|
113
|
-
};
|
|
114
|
-
const turboConfig = {
|
|
115
|
-
$schema: "https://turbo.build/schema.json",
|
|
116
|
-
tasks: {
|
|
117
|
-
build: {
|
|
118
|
-
dependsOn: ["^build"],
|
|
119
|
-
outputs: ["dist/**"]
|
|
120
|
-
},
|
|
121
|
-
dev: {
|
|
122
|
-
cache: false,
|
|
123
|
-
persistent: true
|
|
124
|
-
},
|
|
125
|
-
test: {
|
|
126
|
-
dependsOn: ["^build"],
|
|
127
|
-
cache: false
|
|
128
|
-
},
|
|
129
|
-
"test:once": {
|
|
130
|
-
dependsOn: ["^build"],
|
|
131
|
-
outputs: ["coverage/**"]
|
|
132
|
-
},
|
|
133
|
-
typecheck: {
|
|
134
|
-
dependsOn: ["^build"],
|
|
135
|
-
outputs: []
|
|
136
|
-
},
|
|
137
|
-
lint: { outputs: [] },
|
|
138
|
-
fmt: { outputs: [] }
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
return [
|
|
142
|
-
{
|
|
143
|
-
path: "gkm.config.ts",
|
|
144
|
-
content: gkmConfig
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
path: "tsconfig.json",
|
|
148
|
-
content: JSON.stringify(tsConfig, null, 2) + "\n"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
path: "biome.json",
|
|
152
|
-
content: JSON.stringify(biomeConfig, null, 2) + "\n"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
path: "turbo.json",
|
|
156
|
-
content: JSON.stringify(turboConfig, null, 2) + "\n"
|
|
157
|
-
}
|
|
158
|
-
];
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
//#endregion
|
|
162
|
-
Object.defineProperty(exports, 'generateConfigFiles', {
|
|
163
|
-
enumerable: true,
|
|
164
|
-
get: function () {
|
|
165
|
-
return generateConfigFiles;
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
//# sourceMappingURL=config-BP1IZynR.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-BP1IZynR.cjs","names":["options: TemplateOptions","template: TemplateConfig"],"sources":["../src/init/generators/config.ts"],"sourcesContent":["import type {\n GeneratedFile,\n TemplateConfig,\n TemplateOptions,\n} from '../templates/index.js';\n\n/**\n * Generate configuration files (gkm.config.ts, tsconfig.json, biome.json, turbo.json)\n */\nexport function generateConfigFiles(\n options: TemplateOptions,\n template: TemplateConfig,\n): GeneratedFile[] {\n const { telescope, routesStructure } = options;\n const isServerless = template.name === 'serverless';\n const hasWorker = template.name === 'worker';\n\n // Get routes glob pattern based on structure\n const getRoutesGlob = () => {\n switch (routesStructure) {\n case 'centralized-endpoints':\n return './src/endpoints/**/*.ts';\n case 'centralized-routes':\n return './src/routes/**/*.ts';\n case 'domain-based':\n return './src/**/routes/*.ts';\n }\n };\n\n // Build gkm.config.ts\n let gkmConfig = `import { defineConfig } from '@geekmidas/cli/config';\n\nexport default defineConfig({\n routes: '${getRoutesGlob()}',\n envParser: './src/config/env#envParser',\n logger: './src/config/logger#logger',`;\n\n if (isServerless || hasWorker) {\n gkmConfig += `\n functions: './src/functions/**/*.ts',`;\n }\n\n if (hasWorker) {\n gkmConfig += `\n crons: './src/crons/**/*.ts',\n subscribers: './src/subscribers/**/*.ts',`;\n }\n\n if (telescope) {\n gkmConfig += `\n telescope: {\n enabled: true,\n path: '/__telescope',\n },`;\n }\n\n // Always add openapi config (output path is fixed to .gkm/openapi.ts)\n gkmConfig += `\n openapi: {\n enabled: true,\n },`;\n\n gkmConfig += `\n});\n`;\n\n // Build tsconfig.json - extends root for monorepo, standalone for non-monorepo\n const tsConfig = options.monorepo\n ? {\n extends: '../../tsconfig.json',\n compilerOptions: {\n outDir: './dist',\n rootDir: './src',\n baseUrl: '.',\n paths: {\n [`@${options.name}/*`]: ['../../packages/*/src'],\n },\n },\n include: ['src/**/*.ts'],\n exclude: ['node_modules', 'dist'],\n }\n : {\n compilerOptions: {\n target: 'ES2022',\n module: 'NodeNext',\n moduleResolution: 'NodeNext',\n lib: ['ES2022'],\n strict: true,\n esModuleInterop: true,\n skipLibCheck: true,\n forceConsistentCasingInFileNames: true,\n resolveJsonModule: true,\n declaration: true,\n declarationMap: true,\n outDir: './dist',\n rootDir: './src',\n },\n include: ['src/**/*.ts'],\n exclude: ['node_modules', 'dist'],\n };\n\n // Skip biome.json and turbo.json for monorepo (they're at root)\n if (options.monorepo) {\n return [\n {\n path: 'gkm.config.ts',\n content: gkmConfig,\n },\n {\n path: 'tsconfig.json',\n content: JSON.stringify(tsConfig, null, 2) + '\\n',\n },\n ];\n }\n\n // Build biome.json\n const biomeConfig = {\n $schema: 'https://biomejs.dev/schemas/1.9.4/schema.json',\n vcs: {\n enabled: true,\n clientKind: 'git',\n useIgnoreFile: true,\n },\n organizeImports: {\n enabled: true,\n },\n formatter: {\n enabled: true,\n indentStyle: 'space',\n indentWidth: 2,\n lineWidth: 80,\n },\n javascript: {\n formatter: {\n quoteStyle: 'single',\n trailingCommas: 'all',\n semicolons: 'always',\n arrowParentheses: 'always',\n },\n },\n linter: {\n enabled: true,\n rules: {\n recommended: true,\n correctness: {\n noUnusedImports: 'error',\n noUnusedVariables: 'error',\n },\n style: {\n noNonNullAssertion: 'off',\n },\n },\n },\n files: {\n ignore: ['node_modules', 'dist', '.gkm', 'coverage'],\n },\n };\n\n // Build turbo.json\n const turboConfig = {\n $schema: 'https://turbo.build/schema.json',\n tasks: {\n build: {\n dependsOn: ['^build'],\n outputs: ['dist/**'],\n },\n dev: {\n cache: false,\n persistent: true,\n },\n test: {\n dependsOn: ['^build'],\n cache: false,\n },\n 'test:once': {\n dependsOn: ['^build'],\n outputs: ['coverage/**'],\n },\n typecheck: {\n dependsOn: ['^build'],\n outputs: [],\n },\n lint: {\n outputs: [],\n },\n fmt: {\n outputs: [],\n },\n },\n };\n\n return [\n {\n path: 'gkm.config.ts',\n content: gkmConfig,\n },\n {\n path: 'tsconfig.json',\n content: JSON.stringify(tsConfig, null, 2) + '\\n',\n },\n {\n path: 'biome.json',\n content: JSON.stringify(biomeConfig, null, 2) + '\\n',\n },\n {\n path: 'turbo.json',\n content: JSON.stringify(turboConfig, null, 2) + '\\n',\n },\n ];\n}\n"],"mappings":";;;;;AASA,SAAgB,oBACdA,SACAC,UACiB;CACjB,MAAM,EAAE,WAAW,iBAAiB,GAAG;CACvC,MAAM,eAAe,SAAS,SAAS;CACvC,MAAM,YAAY,SAAS,SAAS;CAGpC,MAAM,gBAAgB,MAAM;AAC1B,UAAQ,iBAAR;GACE,KAAK,wBACH,QAAO;GACT,KAAK,qBACH,QAAO;GACT,KAAK,eACH,QAAO;EACV;CACF;CAGD,IAAI,aAAa;;;aAGN,eAAe,CAAC;;;AAI3B,KAAI,gBAAgB,UAClB,eAAc;;AAIhB,KAAI,UACF,eAAc;;;AAKhB,KAAI,UACF,eAAc;;;;;AAQhB,eAAc;;;;AAKd,eAAc;;;CAKd,MAAM,WAAW,QAAQ,WACrB;EACE,SAAS;EACT,iBAAiB;GACf,QAAQ;GACR,SAAS;GACT,SAAS;GACT,OAAO,IACH,GAAG,QAAQ,KAAK,MAAM,CAAC,sBAAuB,EACjD;EACF;EACD,SAAS,CAAC,aAAc;EACxB,SAAS,CAAC,gBAAgB,MAAO;CAClC,IACD;EACE,iBAAiB;GACf,QAAQ;GACR,QAAQ;GACR,kBAAkB;GAClB,KAAK,CAAC,QAAS;GACf,QAAQ;GACR,iBAAiB;GACjB,cAAc;GACd,kCAAkC;GAClC,mBAAmB;GACnB,aAAa;GACb,gBAAgB;GAChB,QAAQ;GACR,SAAS;EACV;EACD,SAAS,CAAC,aAAc;EACxB,SAAS,CAAC,gBAAgB,MAAO;CAClC;AAGL,KAAI,QAAQ,SACV,QAAO,CACL;EACE,MAAM;EACN,SAAS;CACV,GACD;EACE,MAAM;EACN,SAAS,KAAK,UAAU,UAAU,MAAM,EAAE,GAAG;CAC9C,CACF;CAIH,MAAM,cAAc;EAClB,SAAS;EACT,KAAK;GACH,SAAS;GACT,YAAY;GACZ,eAAe;EAChB;EACD,iBAAiB,EACf,SAAS,KACV;EACD,WAAW;GACT,SAAS;GACT,aAAa;GACb,aAAa;GACb,WAAW;EACZ;EACD,YAAY,EACV,WAAW;GACT,YAAY;GACZ,gBAAgB;GAChB,YAAY;GACZ,kBAAkB;EACnB,EACF;EACD,QAAQ;GACN,SAAS;GACT,OAAO;IACL,aAAa;IACb,aAAa;KACX,iBAAiB;KACjB,mBAAmB;IACpB;IACD,OAAO,EACL,oBAAoB,MACrB;GACF;EACF;EACD,OAAO,EACL,QAAQ;GAAC;GAAgB;GAAQ;GAAQ;EAAW,EACrD;CACF;CAGD,MAAM,cAAc;EAClB,SAAS;EACT,OAAO;GACL,OAAO;IACL,WAAW,CAAC,QAAS;IACrB,SAAS,CAAC,SAAU;GACrB;GACD,KAAK;IACH,OAAO;IACP,YAAY;GACb;GACD,MAAM;IACJ,WAAW,CAAC,QAAS;IACrB,OAAO;GACR;GACD,aAAa;IACX,WAAW,CAAC,QAAS;IACrB,SAAS,CAAC,aAAc;GACzB;GACD,WAAW;IACT,WAAW,CAAC,QAAS;IACrB,SAAS,CAAE;GACZ;GACD,MAAM,EACJ,SAAS,CAAE,EACZ;GACD,KAAK,EACH,SAAS,CAAE,EACZ;EACF;CACF;AAED,QAAO;EACL;GACE,MAAM;GACN,SAAS;EACV;EACD;GACE,MAAM;GACN,SAAS,KAAK,UAAU,UAAU,MAAM,EAAE,GAAG;EAC9C;EACD;GACE,MAAM;GACN,SAAS,KAAK,UAAU,aAAa,MAAM,EAAE,GAAG;EACjD;EACD;GACE,MAAM;GACN,SAAS,KAAK,UAAU,aAAa,MAAM,EAAE,GAAG;EACjD;CACF;AACF"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { GeneratedFile, TemplateConfig, TemplateOptions } from "./index-DZgrOOOW.mjs";
|
|
2
|
-
|
|
3
|
-
//#region src/init/generators/config.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Generate configuration files (gkm.config.ts, tsconfig.json, biome.json, turbo.json)
|
|
7
|
-
*/
|
|
8
|
-
declare function generateConfigFiles(options: TemplateOptions, template: TemplateConfig): GeneratedFile[];
|
|
9
|
-
//#endregion
|
|
10
|
-
export { generateConfigFiles };
|
|
11
|
-
//# sourceMappingURL=config-CIzRhm_D.d.mts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { GeneratedFile, TemplateConfig, TemplateOptions } from "./index-DG6xNQMH.cjs";
|
|
2
|
-
|
|
3
|
-
//#region src/init/generators/config.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Generate configuration files (gkm.config.ts, tsconfig.json, biome.json, turbo.json)
|
|
7
|
-
*/
|
|
8
|
-
declare function generateConfigFiles(options: TemplateOptions, template: TemplateConfig): GeneratedFile[];
|
|
9
|
-
//#endregion
|
|
10
|
-
export { generateConfigFiles };
|
|
11
|
-
//# sourceMappingURL=config-CvehIYsb.d.cts.map
|
package/dist/config-UCK12Lrr.mjs
DELETED
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
//#region src/init/generators/config.ts
|
|
2
|
-
/**
|
|
3
|
-
* Generate configuration files (gkm.config.ts, tsconfig.json, biome.json, turbo.json)
|
|
4
|
-
*/
|
|
5
|
-
function generateConfigFiles(options, template) {
|
|
6
|
-
const { telescope, routesStructure } = options;
|
|
7
|
-
const isServerless = template.name === "serverless";
|
|
8
|
-
const hasWorker = template.name === "worker";
|
|
9
|
-
const getRoutesGlob = () => {
|
|
10
|
-
switch (routesStructure) {
|
|
11
|
-
case "centralized-endpoints": return "./src/endpoints/**/*.ts";
|
|
12
|
-
case "centralized-routes": return "./src/routes/**/*.ts";
|
|
13
|
-
case "domain-based": return "./src/**/routes/*.ts";
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
let gkmConfig = `import { defineConfig } from '@geekmidas/cli/config';
|
|
17
|
-
|
|
18
|
-
export default defineConfig({
|
|
19
|
-
routes: '${getRoutesGlob()}',
|
|
20
|
-
envParser: './src/config/env#envParser',
|
|
21
|
-
logger: './src/config/logger#logger',`;
|
|
22
|
-
if (isServerless || hasWorker) gkmConfig += `
|
|
23
|
-
functions: './src/functions/**/*.ts',`;
|
|
24
|
-
if (hasWorker) gkmConfig += `
|
|
25
|
-
crons: './src/crons/**/*.ts',
|
|
26
|
-
subscribers: './src/subscribers/**/*.ts',`;
|
|
27
|
-
if (telescope) gkmConfig += `
|
|
28
|
-
telescope: {
|
|
29
|
-
enabled: true,
|
|
30
|
-
path: '/__telescope',
|
|
31
|
-
},`;
|
|
32
|
-
gkmConfig += `
|
|
33
|
-
openapi: {
|
|
34
|
-
enabled: true,
|
|
35
|
-
},`;
|
|
36
|
-
gkmConfig += `
|
|
37
|
-
});
|
|
38
|
-
`;
|
|
39
|
-
const tsConfig = options.monorepo ? {
|
|
40
|
-
extends: "../../tsconfig.json",
|
|
41
|
-
compilerOptions: {
|
|
42
|
-
outDir: "./dist",
|
|
43
|
-
rootDir: "./src",
|
|
44
|
-
baseUrl: ".",
|
|
45
|
-
paths: { [`@${options.name}/*`]: ["../../packages/*/src"] }
|
|
46
|
-
},
|
|
47
|
-
include: ["src/**/*.ts"],
|
|
48
|
-
exclude: ["node_modules", "dist"]
|
|
49
|
-
} : {
|
|
50
|
-
compilerOptions: {
|
|
51
|
-
target: "ES2022",
|
|
52
|
-
module: "NodeNext",
|
|
53
|
-
moduleResolution: "NodeNext",
|
|
54
|
-
lib: ["ES2022"],
|
|
55
|
-
strict: true,
|
|
56
|
-
esModuleInterop: true,
|
|
57
|
-
skipLibCheck: true,
|
|
58
|
-
forceConsistentCasingInFileNames: true,
|
|
59
|
-
resolveJsonModule: true,
|
|
60
|
-
declaration: true,
|
|
61
|
-
declarationMap: true,
|
|
62
|
-
outDir: "./dist",
|
|
63
|
-
rootDir: "./src"
|
|
64
|
-
},
|
|
65
|
-
include: ["src/**/*.ts"],
|
|
66
|
-
exclude: ["node_modules", "dist"]
|
|
67
|
-
};
|
|
68
|
-
if (options.monorepo) return [{
|
|
69
|
-
path: "gkm.config.ts",
|
|
70
|
-
content: gkmConfig
|
|
71
|
-
}, {
|
|
72
|
-
path: "tsconfig.json",
|
|
73
|
-
content: JSON.stringify(tsConfig, null, 2) + "\n"
|
|
74
|
-
}];
|
|
75
|
-
const biomeConfig = {
|
|
76
|
-
$schema: "https://biomejs.dev/schemas/1.9.4/schema.json",
|
|
77
|
-
vcs: {
|
|
78
|
-
enabled: true,
|
|
79
|
-
clientKind: "git",
|
|
80
|
-
useIgnoreFile: true
|
|
81
|
-
},
|
|
82
|
-
organizeImports: { enabled: true },
|
|
83
|
-
formatter: {
|
|
84
|
-
enabled: true,
|
|
85
|
-
indentStyle: "space",
|
|
86
|
-
indentWidth: 2,
|
|
87
|
-
lineWidth: 80
|
|
88
|
-
},
|
|
89
|
-
javascript: { formatter: {
|
|
90
|
-
quoteStyle: "single",
|
|
91
|
-
trailingCommas: "all",
|
|
92
|
-
semicolons: "always",
|
|
93
|
-
arrowParentheses: "always"
|
|
94
|
-
} },
|
|
95
|
-
linter: {
|
|
96
|
-
enabled: true,
|
|
97
|
-
rules: {
|
|
98
|
-
recommended: true,
|
|
99
|
-
correctness: {
|
|
100
|
-
noUnusedImports: "error",
|
|
101
|
-
noUnusedVariables: "error"
|
|
102
|
-
},
|
|
103
|
-
style: { noNonNullAssertion: "off" }
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
files: { ignore: [
|
|
107
|
-
"node_modules",
|
|
108
|
-
"dist",
|
|
109
|
-
".gkm",
|
|
110
|
-
"coverage"
|
|
111
|
-
] }
|
|
112
|
-
};
|
|
113
|
-
const turboConfig = {
|
|
114
|
-
$schema: "https://turbo.build/schema.json",
|
|
115
|
-
tasks: {
|
|
116
|
-
build: {
|
|
117
|
-
dependsOn: ["^build"],
|
|
118
|
-
outputs: ["dist/**"]
|
|
119
|
-
},
|
|
120
|
-
dev: {
|
|
121
|
-
cache: false,
|
|
122
|
-
persistent: true
|
|
123
|
-
},
|
|
124
|
-
test: {
|
|
125
|
-
dependsOn: ["^build"],
|
|
126
|
-
cache: false
|
|
127
|
-
},
|
|
128
|
-
"test:once": {
|
|
129
|
-
dependsOn: ["^build"],
|
|
130
|
-
outputs: ["coverage/**"]
|
|
131
|
-
},
|
|
132
|
-
typecheck: {
|
|
133
|
-
dependsOn: ["^build"],
|
|
134
|
-
outputs: []
|
|
135
|
-
},
|
|
136
|
-
lint: { outputs: [] },
|
|
137
|
-
fmt: { outputs: [] }
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
return [
|
|
141
|
-
{
|
|
142
|
-
path: "gkm.config.ts",
|
|
143
|
-
content: gkmConfig
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
path: "tsconfig.json",
|
|
147
|
-
content: JSON.stringify(tsConfig, null, 2) + "\n"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
path: "biome.json",
|
|
151
|
-
content: JSON.stringify(biomeConfig, null, 2) + "\n"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
path: "turbo.json",
|
|
155
|
-
content: JSON.stringify(turboConfig, null, 2) + "\n"
|
|
156
|
-
}
|
|
157
|
-
];
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
//#endregion
|
|
161
|
-
export { generateConfigFiles };
|
|
162
|
-
//# sourceMappingURL=config-UCK12Lrr.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-UCK12Lrr.mjs","names":["options: TemplateOptions","template: TemplateConfig"],"sources":["../src/init/generators/config.ts"],"sourcesContent":["import type {\n GeneratedFile,\n TemplateConfig,\n TemplateOptions,\n} from '../templates/index.js';\n\n/**\n * Generate configuration files (gkm.config.ts, tsconfig.json, biome.json, turbo.json)\n */\nexport function generateConfigFiles(\n options: TemplateOptions,\n template: TemplateConfig,\n): GeneratedFile[] {\n const { telescope, routesStructure } = options;\n const isServerless = template.name === 'serverless';\n const hasWorker = template.name === 'worker';\n\n // Get routes glob pattern based on structure\n const getRoutesGlob = () => {\n switch (routesStructure) {\n case 'centralized-endpoints':\n return './src/endpoints/**/*.ts';\n case 'centralized-routes':\n return './src/routes/**/*.ts';\n case 'domain-based':\n return './src/**/routes/*.ts';\n }\n };\n\n // Build gkm.config.ts\n let gkmConfig = `import { defineConfig } from '@geekmidas/cli/config';\n\nexport default defineConfig({\n routes: '${getRoutesGlob()}',\n envParser: './src/config/env#envParser',\n logger: './src/config/logger#logger',`;\n\n if (isServerless || hasWorker) {\n gkmConfig += `\n functions: './src/functions/**/*.ts',`;\n }\n\n if (hasWorker) {\n gkmConfig += `\n crons: './src/crons/**/*.ts',\n subscribers: './src/subscribers/**/*.ts',`;\n }\n\n if (telescope) {\n gkmConfig += `\n telescope: {\n enabled: true,\n path: '/__telescope',\n },`;\n }\n\n // Always add openapi config (output path is fixed to .gkm/openapi.ts)\n gkmConfig += `\n openapi: {\n enabled: true,\n },`;\n\n gkmConfig += `\n});\n`;\n\n // Build tsconfig.json - extends root for monorepo, standalone for non-monorepo\n const tsConfig = options.monorepo\n ? {\n extends: '../../tsconfig.json',\n compilerOptions: {\n outDir: './dist',\n rootDir: './src',\n baseUrl: '.',\n paths: {\n [`@${options.name}/*`]: ['../../packages/*/src'],\n },\n },\n include: ['src/**/*.ts'],\n exclude: ['node_modules', 'dist'],\n }\n : {\n compilerOptions: {\n target: 'ES2022',\n module: 'NodeNext',\n moduleResolution: 'NodeNext',\n lib: ['ES2022'],\n strict: true,\n esModuleInterop: true,\n skipLibCheck: true,\n forceConsistentCasingInFileNames: true,\n resolveJsonModule: true,\n declaration: true,\n declarationMap: true,\n outDir: './dist',\n rootDir: './src',\n },\n include: ['src/**/*.ts'],\n exclude: ['node_modules', 'dist'],\n };\n\n // Skip biome.json and turbo.json for monorepo (they're at root)\n if (options.monorepo) {\n return [\n {\n path: 'gkm.config.ts',\n content: gkmConfig,\n },\n {\n path: 'tsconfig.json',\n content: JSON.stringify(tsConfig, null, 2) + '\\n',\n },\n ];\n }\n\n // Build biome.json\n const biomeConfig = {\n $schema: 'https://biomejs.dev/schemas/1.9.4/schema.json',\n vcs: {\n enabled: true,\n clientKind: 'git',\n useIgnoreFile: true,\n },\n organizeImports: {\n enabled: true,\n },\n formatter: {\n enabled: true,\n indentStyle: 'space',\n indentWidth: 2,\n lineWidth: 80,\n },\n javascript: {\n formatter: {\n quoteStyle: 'single',\n trailingCommas: 'all',\n semicolons: 'always',\n arrowParentheses: 'always',\n },\n },\n linter: {\n enabled: true,\n rules: {\n recommended: true,\n correctness: {\n noUnusedImports: 'error',\n noUnusedVariables: 'error',\n },\n style: {\n noNonNullAssertion: 'off',\n },\n },\n },\n files: {\n ignore: ['node_modules', 'dist', '.gkm', 'coverage'],\n },\n };\n\n // Build turbo.json\n const turboConfig = {\n $schema: 'https://turbo.build/schema.json',\n tasks: {\n build: {\n dependsOn: ['^build'],\n outputs: ['dist/**'],\n },\n dev: {\n cache: false,\n persistent: true,\n },\n test: {\n dependsOn: ['^build'],\n cache: false,\n },\n 'test:once': {\n dependsOn: ['^build'],\n outputs: ['coverage/**'],\n },\n typecheck: {\n dependsOn: ['^build'],\n outputs: [],\n },\n lint: {\n outputs: [],\n },\n fmt: {\n outputs: [],\n },\n },\n };\n\n return [\n {\n path: 'gkm.config.ts',\n content: gkmConfig,\n },\n {\n path: 'tsconfig.json',\n content: JSON.stringify(tsConfig, null, 2) + '\\n',\n },\n {\n path: 'biome.json',\n content: JSON.stringify(biomeConfig, null, 2) + '\\n',\n },\n {\n path: 'turbo.json',\n content: JSON.stringify(turboConfig, null, 2) + '\\n',\n },\n ];\n}\n"],"mappings":";;;;AASA,SAAgB,oBACdA,SACAC,UACiB;CACjB,MAAM,EAAE,WAAW,iBAAiB,GAAG;CACvC,MAAM,eAAe,SAAS,SAAS;CACvC,MAAM,YAAY,SAAS,SAAS;CAGpC,MAAM,gBAAgB,MAAM;AAC1B,UAAQ,iBAAR;GACE,KAAK,wBACH,QAAO;GACT,KAAK,qBACH,QAAO;GACT,KAAK,eACH,QAAO;EACV;CACF;CAGD,IAAI,aAAa;;;aAGN,eAAe,CAAC;;;AAI3B,KAAI,gBAAgB,UAClB,eAAc;;AAIhB,KAAI,UACF,eAAc;;;AAKhB,KAAI,UACF,eAAc;;;;;AAQhB,eAAc;;;;AAKd,eAAc;;;CAKd,MAAM,WAAW,QAAQ,WACrB;EACE,SAAS;EACT,iBAAiB;GACf,QAAQ;GACR,SAAS;GACT,SAAS;GACT,OAAO,IACH,GAAG,QAAQ,KAAK,MAAM,CAAC,sBAAuB,EACjD;EACF;EACD,SAAS,CAAC,aAAc;EACxB,SAAS,CAAC,gBAAgB,MAAO;CAClC,IACD;EACE,iBAAiB;GACf,QAAQ;GACR,QAAQ;GACR,kBAAkB;GAClB,KAAK,CAAC,QAAS;GACf,QAAQ;GACR,iBAAiB;GACjB,cAAc;GACd,kCAAkC;GAClC,mBAAmB;GACnB,aAAa;GACb,gBAAgB;GAChB,QAAQ;GACR,SAAS;EACV;EACD,SAAS,CAAC,aAAc;EACxB,SAAS,CAAC,gBAAgB,MAAO;CAClC;AAGL,KAAI,QAAQ,SACV,QAAO,CACL;EACE,MAAM;EACN,SAAS;CACV,GACD;EACE,MAAM;EACN,SAAS,KAAK,UAAU,UAAU,MAAM,EAAE,GAAG;CAC9C,CACF;CAIH,MAAM,cAAc;EAClB,SAAS;EACT,KAAK;GACH,SAAS;GACT,YAAY;GACZ,eAAe;EAChB;EACD,iBAAiB,EACf,SAAS,KACV;EACD,WAAW;GACT,SAAS;GACT,aAAa;GACb,aAAa;GACb,WAAW;EACZ;EACD,YAAY,EACV,WAAW;GACT,YAAY;GACZ,gBAAgB;GAChB,YAAY;GACZ,kBAAkB;EACnB,EACF;EACD,QAAQ;GACN,SAAS;GACT,OAAO;IACL,aAAa;IACb,aAAa;KACX,iBAAiB;KACjB,mBAAmB;IACpB;IACD,OAAO,EACL,oBAAoB,MACrB;GACF;EACF;EACD,OAAO,EACL,QAAQ;GAAC;GAAgB;GAAQ;GAAQ;EAAW,EACrD;CACF;CAGD,MAAM,cAAc;EAClB,SAAS;EACT,OAAO;GACL,OAAO;IACL,WAAW,CAAC,QAAS;IACrB,SAAS,CAAC,SAAU;GACrB;GACD,KAAK;IACH,OAAO;IACP,YAAY;GACb;GACD,MAAM;IACJ,WAAW,CAAC,QAAS;IACrB,OAAO;GACR;GACD,aAAa;IACX,WAAW,CAAC,QAAS;IACrB,SAAS,CAAC,aAAc;GACzB;GACD,WAAW;IACT,WAAW,CAAC,QAAS;IACrB,SAAS,CAAE;GACZ;GACD,MAAM,EACJ,SAAS,CAAE,EACZ;GACD,KAAK,EACH,SAAS,CAAE,EACZ;EACF;CACF;AAED,QAAO;EACL;GACE,MAAM;GACN,SAAS;EACV;EACD;GACE,MAAM;GACN,SAAS,KAAK,UAAU,UAAU,MAAM,EAAE,GAAG;EAC9C;EACD;GACE,MAAM;GACN,SAAS,KAAK,UAAU,aAAa,MAAM,EAAE,GAAG;EACjD;EACD;GACE,MAAM;GACN,SAAS,KAAK,UAAU,aAAa,MAAM,EAAE,GAAG;EACjD;CACF;AACF"}
|
package/dist/dev/index.cjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
require('../config-CFls09Ey.cjs');
|
|
2
|
-
require('../providerResolver-DOTbN9jo.cjs');
|
|
3
|
-
require('../Generator-CLVplqm2.cjs');
|
|
4
|
-
require('../CronGenerator-D4TWXQbh.cjs');
|
|
5
|
-
require('../EndpointGenerator-npWEDoK2.cjs');
|
|
6
|
-
require('../FunctionGenerator-DYTnyr4c.cjs');
|
|
7
|
-
require('../SubscriberGenerator-D_zpNGFr.cjs');
|
|
8
|
-
require('../generators-3IemvCLk.cjs');
|
|
9
|
-
require('../OpenApiTsGenerator-gPIIyppX.cjs');
|
|
10
|
-
require('../openapi-DZH6RQHk.cjs');
|
|
11
|
-
const require_dev = require('../dev-C2lCgE53.cjs');
|
|
12
|
-
|
|
13
|
-
exports.devCommand = require_dev.devCommand;
|
|
14
|
-
exports.findAvailablePort = require_dev.findAvailablePort;
|
|
15
|
-
exports.isPortAvailable = require_dev.isPortAvailable;
|
|
16
|
-
exports.loadEnvFiles = require_dev.loadEnvFiles;
|
|
17
|
-
exports.normalizeTelescopeConfig = require_dev.normalizeTelescopeConfig;
|
package/dist/dev/index.d.cts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { GkmConfig } from "../types-KmjzMgu8.cjs";
|
|
2
|
-
import { NormalizedTelescopeConfig } from "../types-DA-r8HWZ.cjs";
|
|
3
|
-
|
|
4
|
-
//#region src/dev/index.d.ts
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Load environment files
|
|
8
|
-
* @internal Exported for testing
|
|
9
|
-
*/
|
|
10
|
-
declare function loadEnvFiles(envConfig: string | string[] | undefined, cwd?: string): {
|
|
11
|
-
loaded: string[];
|
|
12
|
-
missing: string[];
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Check if a port is available
|
|
16
|
-
* @internal Exported for testing
|
|
17
|
-
*/
|
|
18
|
-
declare function isPortAvailable(port: number): Promise<boolean>;
|
|
19
|
-
/**
|
|
20
|
-
* Find an available port starting from the preferred port
|
|
21
|
-
* @internal Exported for testing
|
|
22
|
-
*/
|
|
23
|
-
declare function findAvailablePort(preferredPort: number, maxAttempts?: number): Promise<number>;
|
|
24
|
-
/**
|
|
25
|
-
* Normalize telescope configuration
|
|
26
|
-
* @internal Exported for testing
|
|
27
|
-
*/
|
|
28
|
-
declare function normalizeTelescopeConfig(config: GkmConfig['telescope']): NormalizedTelescopeConfig | undefined;
|
|
29
|
-
interface DevOptions {
|
|
30
|
-
port?: number;
|
|
31
|
-
enableOpenApi?: boolean;
|
|
32
|
-
}
|
|
33
|
-
declare function devCommand(options: DevOptions): Promise<void>;
|
|
34
|
-
//#endregion
|
|
35
|
-
export { DevOptions, devCommand, findAvailablePort, isPortAvailable, loadEnvFiles, normalizeTelescopeConfig };
|
|
36
|
-
//# sourceMappingURL=index.d.cts.map
|
package/dist/dev/index.d.mts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { GkmConfig } from "../types-Bi7VzDUZ.mjs";
|
|
2
|
-
import { NormalizedTelescopeConfig } from "../types-D2xYkOal.mjs";
|
|
3
|
-
|
|
4
|
-
//#region src/dev/index.d.ts
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Load environment files
|
|
8
|
-
* @internal Exported for testing
|
|
9
|
-
*/
|
|
10
|
-
declare function loadEnvFiles(envConfig: string | string[] | undefined, cwd?: string): {
|
|
11
|
-
loaded: string[];
|
|
12
|
-
missing: string[];
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Check if a port is available
|
|
16
|
-
* @internal Exported for testing
|
|
17
|
-
*/
|
|
18
|
-
declare function isPortAvailable(port: number): Promise<boolean>;
|
|
19
|
-
/**
|
|
20
|
-
* Find an available port starting from the preferred port
|
|
21
|
-
* @internal Exported for testing
|
|
22
|
-
*/
|
|
23
|
-
declare function findAvailablePort(preferredPort: number, maxAttempts?: number): Promise<number>;
|
|
24
|
-
/**
|
|
25
|
-
* Normalize telescope configuration
|
|
26
|
-
* @internal Exported for testing
|
|
27
|
-
*/
|
|
28
|
-
declare function normalizeTelescopeConfig(config: GkmConfig['telescope']): NormalizedTelescopeConfig | undefined;
|
|
29
|
-
interface DevOptions {
|
|
30
|
-
port?: number;
|
|
31
|
-
enableOpenApi?: boolean;
|
|
32
|
-
}
|
|
33
|
-
declare function devCommand(options: DevOptions): Promise<void>;
|
|
34
|
-
//#endregion
|
|
35
|
-
export { DevOptions, devCommand, findAvailablePort, isPortAvailable, loadEnvFiles, normalizeTelescopeConfig };
|
|
36
|
-
//# sourceMappingURL=index.d.mts.map
|
package/dist/dev/index.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import "../config-Bq72aj8e.mjs";
|
|
2
|
-
import "../providerResolver-DEVKngbC.mjs";
|
|
3
|
-
import "../Generator-CDt4pB3W.mjs";
|
|
4
|
-
import "../CronGenerator-CCRYptuT.mjs";
|
|
5
|
-
import "../EndpointGenerator-DGivkPLT.mjs";
|
|
6
|
-
import "../FunctionGenerator-CVk0h8tO.mjs";
|
|
7
|
-
import "../SubscriberGenerator-DABaJXML.mjs";
|
|
8
|
-
import "../generators-FNpdfN6J.mjs";
|
|
9
|
-
import "../OpenApiTsGenerator-BVS4pOH7.mjs";
|
|
10
|
-
import "../openapi-DA9RkPJl.mjs";
|
|
11
|
-
import { devCommand, findAvailablePort, isPortAvailable, loadEnvFiles, normalizeTelescopeConfig } from "../dev-BBPWSllq.mjs";
|
|
12
|
-
|
|
13
|
-
export { devCommand, findAvailablePort, isPortAvailable, loadEnvFiles, normalizeTelescopeConfig };
|