@genesislcap/genx 14.491.0-canary.FUI-2574-2 → 14.491.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/README.md +0 -4
- package/dist/commands/index.d.ts +0 -1
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +0 -1
- package/dist/commands/run-builder.d.ts.map +1 -1
- package/dist/commands/run-builder.js +0 -4
- package/dist/index.js +0 -15
- package/package.json +9 -10
- package/dist/commands/generate-event-types.d.ts +0 -3
- package/dist/commands/generate-event-types.d.ts.map +0 -1
- package/dist/commands/generate-event-types.js +0 -7
- package/dist/utils/event-types.d.ts +0 -4
- package/dist/utils/event-types.d.ts.map +0 -1
- package/dist/utils/event-types.js +0 -23
package/README.md
CHANGED
|
@@ -26,10 +26,6 @@ To enable this module in your application, follow the steps below.
|
|
|
26
26
|
|
|
27
27
|
## [API Docs](./docs/api/index.md)
|
|
28
28
|
|
|
29
|
-
## Event type codegen
|
|
30
|
-
|
|
31
|
-
When `eventTypes.enabled` is set in `genx.config.*` or `package.json` (`genx` / `genesis` keys), `genx build` and `genx generate event-types` emit typed `EventDetailsMap` from Kotlin handler DTOs and generated table DAOs. See [@genesislcap/event-type-codegen](../event-type-codegen/README.md) for configuration, limitations, and migration.
|
|
32
|
-
|
|
33
29
|
## License
|
|
34
30
|
|
|
35
31
|
Note: this project provides front-end dependencies and uses licensed components listed in the next section; thus, licenses for those components are required during development. Contact [Genesis Global](https://genesis.global/contact-us/) for more details.
|
package/dist/commands/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export declare const commands: {
|
|
2
2
|
clean: () => Promise<(paths?: string[]) => Promise<void>>;
|
|
3
|
-
generateEventTypes: () => Promise<(folder?: string) => Promise<void>>;
|
|
4
3
|
run: () => Promise<(task: any, module: any, options: any) => Promise<void>>;
|
|
5
4
|
runBuilder: () => Promise<(dir: string, options: any, env: import("@genesislcap/build-kit").ENV, command: import("@genesislcap/build-kit").COMMAND) => Promise<void>>;
|
|
6
5
|
runSeedCommand: () => Promise<(dir: any, cliOptions: any, command?: import("@genesislcap/build-kit").COMMAND) => Promise<void>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,QAAQ;;;;;;;CAOpB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,MAAM,OAAO,QAAQ,CAAC"}
|
package/dist/commands/index.js
CHANGED
|
@@ -37,7 +37,6 @@ exports.commands = void 0;
|
|
|
37
37
|
// lazy loading command definitions
|
|
38
38
|
exports.commands = {
|
|
39
39
|
clean: () => Promise.resolve().then(() => __importStar(require('./clean'))).then((r) => r.default),
|
|
40
|
-
generateEventTypes: () => Promise.resolve().then(() => __importStar(require('./generate-event-types'))).then((r) => r.default),
|
|
41
40
|
run: () => Promise.resolve().then(() => __importStar(require('./run'))).then((r) => r.default),
|
|
42
41
|
runBuilder: () => Promise.resolve().then(() => __importStar(require('./run-builder'))).then((r) => r.default),
|
|
43
42
|
runSeedCommand: () => Promise.resolve().then(() => __importStar(require('./run-seed-command'))).then((r) => r.default),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-builder.d.ts","sourceRoot":"","sources":["../../src/commands/run-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,GAAG,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"run-builder.d.ts","sourceRoot":"","sources":["../../src/commands/run-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,GAAG,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;yBAG1E,WAAmB,EAAE,YAAO,EAAE,KAAK,GAAG,EAAE,SAAS,OAAO;AAA9E,wBAME"}
|
|
@@ -3,13 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const build_kit_1 = require("@genesislcap/build-kit");
|
|
5
5
|
const utils_1 = require("../utils");
|
|
6
|
-
const event_types_1 = require("../utils/event-types");
|
|
7
6
|
exports.default = (...args_1) => tslib_1.__awaiter(void 0, [...args_1], void 0, function* (dir = process.cwd(), options, env, command) {
|
|
8
7
|
(0, build_kit_1.setNodeEnv)(env);
|
|
9
8
|
const ctx = yield (0, build_kit_1.loadBuildContext)(dir, command, options);
|
|
10
|
-
if (command === build_kit_1.COMMAND.BUILD) {
|
|
11
|
-
yield (0, event_types_1.runEventTypesCodegenIfConfigured)(ctx.dirs.cwd, { runOnBuildOnly: true });
|
|
12
|
-
}
|
|
13
9
|
(0, build_kit_1.setEnvVars)(ctx);
|
|
14
10
|
const builder = yield (0, utils_1.resolveBuilder)(ctx);
|
|
15
11
|
builder(ctx);
|
package/dist/index.js
CHANGED
|
@@ -26,21 +26,6 @@ cli
|
|
|
26
26
|
const action = yield commands_1.commands.runBuilder();
|
|
27
27
|
action(folder, options, build_kit_1.ENV.PROD, build_kit_1.COMMAND.ANALYZE);
|
|
28
28
|
}));
|
|
29
|
-
cli
|
|
30
|
-
.command('generate [type] [folder]', 'Generate code (e.g. genx generate event-types)')
|
|
31
|
-
.action((type, folder) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
32
|
-
if (type === 'event-types') {
|
|
33
|
-
const action = yield commands_1.commands.generateEventTypes();
|
|
34
|
-
yield action(folder);
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
if (!type) {
|
|
38
|
-
consola_1.consola.error('Missing generate type. Example: genx generate event-types [folder]');
|
|
39
|
-
process.exit(1);
|
|
40
|
-
}
|
|
41
|
-
consola_1.consola.error(`Unknown generate type "${type}". Supported: event-types`);
|
|
42
|
-
process.exit(1);
|
|
43
|
-
}));
|
|
44
29
|
cli
|
|
45
30
|
.command('clean [...paths]', 'Delete specified paths (defaults to dist folder)')
|
|
46
31
|
.action((paths) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/genx",
|
|
3
3
|
"description": "Genx CLI",
|
|
4
|
-
"version": "14.491.0
|
|
4
|
+
"version": "14.491.0",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=22.0.0"
|
|
@@ -17,14 +17,13 @@
|
|
|
17
17
|
"genx": "./bin/genx"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@genesislcap/build-kit": "14.491.0
|
|
21
|
-
"@genesislcap/eslint-stylelint-builder": "14.491.0
|
|
22
|
-
"@genesislcap/
|
|
23
|
-
"@genesislcap/
|
|
24
|
-
"@genesislcap/
|
|
25
|
-
"@genesislcap/
|
|
26
|
-
"@genesislcap/
|
|
27
|
-
"@genesislcap/webpack-builder": "14.491.0-canary.FUI-2574-2",
|
|
20
|
+
"@genesislcap/build-kit": "14.491.0",
|
|
21
|
+
"@genesislcap/eslint-stylelint-builder": "14.491.0",
|
|
22
|
+
"@genesislcap/rollup-builder": "14.491.0",
|
|
23
|
+
"@genesislcap/ts-builder": "14.491.0",
|
|
24
|
+
"@genesislcap/uvu-playwright-builder": "14.491.0",
|
|
25
|
+
"@genesislcap/vite-builder": "14.491.0",
|
|
26
|
+
"@genesislcap/webpack-builder": "14.491.0",
|
|
28
27
|
"cac": "^6.7.14",
|
|
29
28
|
"consola": "^3.0.2",
|
|
30
29
|
"serve-handler": "^6.1.5"
|
|
@@ -37,5 +36,5 @@
|
|
|
37
36
|
"publishConfig": {
|
|
38
37
|
"access": "public"
|
|
39
38
|
},
|
|
40
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "fe8d35e6f405de70f75acf61dbe65afa428ae37d"
|
|
41
40
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generate-event-types.d.ts","sourceRoot":"","sources":["../../src/commands/generate-event-types.ts"],"names":[],"mappings":"yBAEsB,eAAsB;AAA5C,wBAEE"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const event_types_1 = require("../utils/event-types");
|
|
5
|
-
exports.default = (...args_1) => tslib_1.__awaiter(void 0, [...args_1], void 0, function* (folder = process.cwd()) {
|
|
6
|
-
yield (0, event_types_1.runEventTypesCodegenIfConfigured)(folder);
|
|
7
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-types.d.ts","sourceRoot":"","sources":["../../src/utils/event-types.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gCAAgC,GAC3C,KAAK,MAAM,EACX,UAAU;IAAE,cAAc,CAAC,EAAE,OAAO,CAAA;CAAE,sEAmBvC,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.runEventTypesCodegenIfConfigured = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const build_kit_1 = require("@genesislcap/build-kit");
|
|
6
|
-
const event_type_codegen_1 = require("@genesislcap/event-type-codegen");
|
|
7
|
-
const runEventTypesCodegenIfConfigured = (cwd, options) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
8
|
-
const pkg = yield (0, build_kit_1.loadPackageJSON)(cwd);
|
|
9
|
-
const config = yield (0, build_kit_1.loadConfig)(pkg);
|
|
10
|
-
const genesis = pkg.genesis;
|
|
11
|
-
const resolved = (0, event_type_codegen_1.resolveEventTypesConfig)(cwd, config.eventTypes, genesis);
|
|
12
|
-
if (!resolved.enabled) {
|
|
13
|
-
return null;
|
|
14
|
-
}
|
|
15
|
-
if ((options === null || options === void 0 ? void 0 : options.runOnBuildOnly) && !resolved.runOnBuild) {
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
return (0, event_type_codegen_1.generateEventTypes)({
|
|
19
|
-
clientRoot: cwd,
|
|
20
|
-
config: resolved,
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
exports.runEventTypesCodegenIfConfigured = runEventTypesCodegenIfConfigured;
|