@geekmidas/cli 0.2.4 → 0.3.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/build/index.cjs +2 -2
- package/dist/build/index.mjs +2 -2
- package/dist/build/manifests.cjs +3 -2
- package/dist/build/manifests.mjs +2 -2
- package/dist/{build-BqexeI-W.mjs → build-C6uEGRj8.mjs} +18 -16
- package/dist/build-C6uEGRj8.mjs.map +1 -0
- package/dist/{build-BVng9MQX.cjs → build-CBYBPZpC.cjs} +17 -15
- package/dist/build-CBYBPZpC.cjs.map +1 -0
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/manifests-C2eMoMUm.mjs +68 -0
- package/dist/manifests-C2eMoMUm.mjs.map +1 -0
- package/dist/manifests-CK1VV_pM.cjs +80 -0
- package/dist/manifests-CK1VV_pM.cjs.map +1 -0
- package/docs/manifest-refactor-design.md +287 -0
- package/package.json +2 -2
- package/src/build/__tests__/index-new.spec.ts +43 -72
- package/src/build/__tests__/manifests.spec.ts +346 -0
- package/src/build/index.ts +59 -62
- package/src/build/manifests.ts +85 -13
- package/src/types.ts +0 -7
- package/dist/build-BVng9MQX.cjs.map +0 -1
- package/dist/build-BqexeI-W.mjs.map +0 -1
- package/dist/manifests-BrJXpHrf.mjs +0 -21
- package/dist/manifests-BrJXpHrf.mjs.map +0 -1
- package/dist/manifests-D0saShvH.cjs +0 -27
- package/dist/manifests-D0saShvH.cjs.map +0 -1
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { join, relative } from "path";
|
|
2
|
-
import { writeFile } from "node:fs/promises";
|
|
3
|
-
|
|
4
|
-
//#region src/build/manifests.ts
|
|
5
|
-
const logger = console;
|
|
6
|
-
async function generateManifests(outputDir, routes, functions, crons, subscribers) {
|
|
7
|
-
const manifest = {
|
|
8
|
-
routes,
|
|
9
|
-
functions,
|
|
10
|
-
crons,
|
|
11
|
-
subscribers
|
|
12
|
-
};
|
|
13
|
-
const manifestPath = join(outputDir, "manifest.json");
|
|
14
|
-
await writeFile(manifestPath, JSON.stringify(manifest, null, 2));
|
|
15
|
-
logger.log(`\nGenerated unified manifest with ${routes.length} routes, ${functions.length} functions, ${crons.length} crons, ${subscribers.length} subscribers`);
|
|
16
|
-
logger.log(`Manifest: ${relative(process.cwd(), manifestPath)}`);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
export { generateManifests };
|
|
21
|
-
//# sourceMappingURL=manifests-BrJXpHrf.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"manifests-BrJXpHrf.mjs","names":["outputDir: string","routes: RouteInfo[]","functions: FunctionInfo[]","crons: CronInfo[]","subscribers: SubscriberInfo[]","manifest: BuildManifest"],"sources":["../src/build/manifests.ts"],"sourcesContent":["import { writeFile } from 'node:fs/promises';\nimport { join, relative } from 'path';\nimport type {\n BuildManifest,\n CronInfo,\n FunctionInfo,\n RouteInfo,\n SubscriberInfo,\n} from '../types';\n\nconst logger = console;\n\nexport async function generateManifests(\n outputDir: string,\n routes: RouteInfo[],\n functions: FunctionInfo[],\n crons: CronInfo[],\n subscribers: SubscriberInfo[],\n): Promise<void> {\n // Generate unified manifest for all providers\n const manifest: BuildManifest = {\n routes,\n functions,\n crons,\n subscribers,\n };\n\n const manifestPath = join(outputDir, 'manifest.json');\n await writeFile(manifestPath, JSON.stringify(manifest, null, 2));\n\n logger.log(\n `\\nGenerated unified manifest with ${routes.length} routes, ${functions.length} functions, ${crons.length} crons, ${subscribers.length} subscribers`,\n );\n logger.log(`Manifest: ${relative(process.cwd(), manifestPath)}`);\n}\n"],"mappings":";;;;AAUA,MAAM,SAAS;AAEf,eAAsB,kBACpBA,WACAC,QACAC,WACAC,OACAC,aACe;CAEf,MAAMC,WAA0B;EAC9B;EACA;EACA;EACA;CACD;CAED,MAAM,eAAe,KAAK,WAAW,gBAAgB;AACrD,OAAM,UAAU,cAAc,KAAK,UAAU,UAAU,MAAM,EAAE,CAAC;AAEhE,QAAO,KACJ,oCAAoC,OAAO,OAAO,WAAW,UAAU,OAAO,cAAc,MAAM,OAAO,UAAU,YAAY,OAAO,cACxI;AACD,QAAO,KAAK,YAAY,SAAS,QAAQ,KAAK,EAAE,aAAa,CAAC,EAAE;AACjE"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const path = require_chunk.__toESM(require("path"));
|
|
3
|
-
const node_fs_promises = require_chunk.__toESM(require("node:fs/promises"));
|
|
4
|
-
|
|
5
|
-
//#region src/build/manifests.ts
|
|
6
|
-
const logger = console;
|
|
7
|
-
async function generateManifests(outputDir, routes, functions, crons, subscribers) {
|
|
8
|
-
const manifest = {
|
|
9
|
-
routes,
|
|
10
|
-
functions,
|
|
11
|
-
crons,
|
|
12
|
-
subscribers
|
|
13
|
-
};
|
|
14
|
-
const manifestPath = (0, path.join)(outputDir, "manifest.json");
|
|
15
|
-
await (0, node_fs_promises.writeFile)(manifestPath, JSON.stringify(manifest, null, 2));
|
|
16
|
-
logger.log(`\nGenerated unified manifest with ${routes.length} routes, ${functions.length} functions, ${crons.length} crons, ${subscribers.length} subscribers`);
|
|
17
|
-
logger.log(`Manifest: ${(0, path.relative)(process.cwd(), manifestPath)}`);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
//#endregion
|
|
21
|
-
Object.defineProperty(exports, 'generateManifests', {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () {
|
|
24
|
-
return generateManifests;
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
//# sourceMappingURL=manifests-D0saShvH.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"manifests-D0saShvH.cjs","names":["outputDir: string","routes: RouteInfo[]","functions: FunctionInfo[]","crons: CronInfo[]","subscribers: SubscriberInfo[]","manifest: BuildManifest"],"sources":["../src/build/manifests.ts"],"sourcesContent":["import { writeFile } from 'node:fs/promises';\nimport { join, relative } from 'path';\nimport type {\n BuildManifest,\n CronInfo,\n FunctionInfo,\n RouteInfo,\n SubscriberInfo,\n} from '../types';\n\nconst logger = console;\n\nexport async function generateManifests(\n outputDir: string,\n routes: RouteInfo[],\n functions: FunctionInfo[],\n crons: CronInfo[],\n subscribers: SubscriberInfo[],\n): Promise<void> {\n // Generate unified manifest for all providers\n const manifest: BuildManifest = {\n routes,\n functions,\n crons,\n subscribers,\n };\n\n const manifestPath = join(outputDir, 'manifest.json');\n await writeFile(manifestPath, JSON.stringify(manifest, null, 2));\n\n logger.log(\n `\\nGenerated unified manifest with ${routes.length} routes, ${functions.length} functions, ${crons.length} crons, ${subscribers.length} subscribers`,\n );\n logger.log(`Manifest: ${relative(process.cwd(), manifestPath)}`);\n}\n"],"mappings":";;;;;AAUA,MAAM,SAAS;AAEf,eAAsB,kBACpBA,WACAC,QACAC,WACAC,OACAC,aACe;CAEf,MAAMC,WAA0B;EAC9B;EACA;EACA;EACA;CACD;CAED,MAAM,eAAe,eAAK,WAAW,gBAAgB;AACrD,OAAM,gCAAU,cAAc,KAAK,UAAU,UAAU,MAAM,EAAE,CAAC;AAEhE,QAAO,KACJ,oCAAoC,OAAO,OAAO,WAAW,UAAU,OAAO,cAAc,MAAM,OAAO,UAAU,YAAY,OAAO,cACxI;AACD,QAAO,KAAK,YAAY,mBAAS,QAAQ,KAAK,EAAE,aAAa,CAAC,EAAE;AACjE"}
|