@onivoro/onix 20.3.0 → 20.5.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/executors.json +32 -22
- package/package.json +6 -1
- package/src/executors/build-cli/executor.d.ts +2 -3
- package/src/executors/build-cli/executor.js +11 -14
- package/src/executors/build-cli/executor.js.map +1 -1
- package/src/executors/build-cli/schema.d.ts +1 -3
- package/src/executors/build-cli/schema.json +2 -7
- package/src/executors/deploy-ecs/executor.js +82 -0
- package/src/executors/deploy-ecs/executor.js.map +1 -0
- package/src/executors/deploy-ecs/schema.d.ts +9 -0
- package/src/executors/deploy-ecs/schema.json +32 -0
- package/src/executors/deploy-lambda/executor.d.ts +3 -0
- package/src/executors/deploy-lambda/executor.js +18 -0
- package/src/executors/deploy-lambda/executor.js.map +1 -0
- package/src/executors/deploy-lambda/schema.d.ts +3 -0
- package/src/executors/deploy-lambda/schema.json +57 -0
- package/src/executors/docker-run/executor.d.ts +3 -0
- package/src/executors/docker-run/executor.js +14 -0
- package/src/executors/docker-run/executor.js.map +1 -0
- package/src/executors/{docker → docker-run}/schema.d.ts +1 -1
- package/src/executors/{docker → docker-run}/schema.json +4 -4
- package/src/executors/local/executor.d.ts +2 -3
- package/src/executors/local/executor.js +9 -20
- package/src/executors/local/executor.js.map +1 -1
- package/src/executors/local/schema.d.ts +2 -3
- package/src/executors/local/schema.json +5 -12
- package/src/executors/openapi-gen/executor.d.ts +3 -0
- package/src/executors/openapi-gen/executor.js +11 -0
- package/src/executors/openapi-gen/executor.js.map +1 -0
- package/src/executors/openapi-gen/schema.d.ts +5 -0
- package/src/executors/openapi-gen/schema.json +25 -0
- package/src/executors/playwright/executor.d.ts +2 -3
- package/src/executors/playwright/executor.js +11 -15
- package/src/executors/playwright/executor.js.map +1 -1
- package/src/executors/playwright/schema.d.ts +1 -0
- package/src/executors/playwright/schema.json +5 -1
- package/src/executors/typeorm/executor.d.ts +3 -0
- package/src/executors/typeorm/executor.js +15 -0
- package/src/executors/typeorm/executor.js.map +1 -0
- package/src/executors/typeorm/schema.d.ts +5 -0
- package/src/executors/{db → typeorm}/schema.json +3 -7
- package/src/executors/xray/executor.d.ts +3 -0
- package/src/executors/xray/executor.js +21 -0
- package/src/executors/xray/executor.js.map +1 -0
- package/src/executors/xray/schema.d.ts +1 -0
- package/src/executors/xray/schema.json +9 -0
- package/src/functions/deploy-lambda.function.d.ts +17 -0
- package/src/functions/deploy-lambda.function.js +74 -0
- package/src/functions/deploy-lambda.function.js.map +1 -0
- package/src/functions/executor-factory.function.d.ts +5 -0
- package/src/functions/executor-factory.function.js +20 -0
- package/src/functions/executor-factory.function.js.map +1 -0
- package/src/functions/extract-project-build-assets.function.d.ts +2 -0
- package/src/functions/extract-project-build-assets.function.js +19 -0
- package/src/functions/extract-project-build-assets.function.js.map +1 -0
- package/src/functions/extract-project-build-outputs.function.d.ts +2 -0
- package/src/functions/extract-project-build-outputs.function.js +21 -0
- package/src/functions/extract-project-build-outputs.function.js.map +1 -0
- package/src/functions/extract-project-configuration.function.d.ts +2 -0
- package/src/functions/extract-project-configuration.function.js +14 -0
- package/src/functions/extract-project-configuration.function.js.map +1 -0
- package/src/functions/extract-target-configuration.function.d.ts +2 -0
- package/src/functions/extract-target-configuration.function.js +8 -0
- package/src/functions/extract-target-configuration.function.js.map +1 -0
- package/src/functions/interpolate.function.d.ts +2 -0
- package/src/functions/interpolate.function.js +8 -0
- package/src/functions/interpolate.function.js.map +1 -0
- package/src/functions/load-env-file.function.d.ts +1 -0
- package/src/functions/load-env-file.function.js +17 -0
- package/src/functions/load-env-file.function.js.map +1 -0
- package/src/functions/pm.function.d.ts +15 -0
- package/src/functions/pm.function.js +21 -0
- package/src/functions/pm.function.js.map +1 -0
- package/src/functions/pmx.function.d.ts +3 -0
- package/src/functions/pmx.function.js +21 -0
- package/src/functions/pmx.function.js.map +1 -0
- package/src/functions/push-image-to-ecr-wrapped.function.js +2 -1
- package/src/functions/push-image-to-ecr-wrapped.function.js.map +1 -1
- package/src/functions/push-image-to-ecr.function.d.ts +2 -3
- package/src/functions/push-image-to-ecr.function.js +39 -18
- package/src/functions/push-image-to-ecr.function.js.map +1 -1
- package/src/functions/resolve-aws-credentials.function.d.ts +1 -0
- package/src/functions/resolve-aws-credentials.function.js +15 -0
- package/src/functions/resolve-aws-credentials.function.js.map +1 -0
- package/src/functions/restart-ecs-service.function.d.ts +6 -0
- package/src/functions/restart-ecs-service.function.js +34 -0
- package/src/functions/restart-ecs-service.function.js.map +1 -0
- package/src/index.d.ts +17 -8
- package/src/index.js +17 -10
- package/src/index.js.map +1 -1
- package/src/{functions → inference}/add-db-target.function.js.map +1 -1
- package/src/{functions → inference}/add-db-targets.function.js.map +1 -1
- package/src/{functions → inference}/add-docker-deploy-target.function.js.map +1 -1
- package/src/{functions → inference}/add-docker-deploy-targets.function.js.map +1 -1
- package/src/{functions → inference}/add-docker-target.function.js.map +1 -1
- package/src/{functions → inference}/add-docker-targets.function.js +1 -1
- package/src/{functions → inference}/add-docker-targets.function.js.map +1 -1
- package/src/{functions → inference}/add-gen-target.function.js.map +1 -1
- package/src/{functions → inference}/add-serve-target.function.js.map +1 -1
- package/src/{functions → inference}/add-serve-targets.function.js +1 -1
- package/src/{functions → inference}/add-serve-targets.function.js.map +1 -1
- package/src/{functions → inference}/build-onix-targets.function.js.map +1 -1
- package/src/{functions → inference}/normalize-options.function.js.map +1 -1
- package/src/{functions → inference}/read-targets-cache.function.js.map +1 -1
- package/src/{functions → inference}/write-targets-to-cache.function.js.map +1 -1
- package/src/plugins/plugin.js +4 -4
- package/src/utils/vite-config-factory.d.ts +9 -0
- package/src/utils/vite-config-factory.js +48 -0
- package/src/utils/vite-config-factory.js.map +1 -0
- package/src/webpack/patch-nx-source-map-paths.function.d.ts +9 -0
- package/src/webpack/patch-nx-source-map-paths.function.js +13 -0
- package/src/webpack/patch-nx-source-map-paths.function.js.map +1 -0
- package/src/webpack/patch-nx-source-maps.plugin.d.ts +2 -0
- package/src/webpack/patch-nx-source-maps.plugin.js +11 -0
- package/src/webpack/patch-nx-source-maps.plugin.js.map +1 -0
- package/src/executors/db/executor.js +0 -20
- package/src/executors/db/executor.js.map +0 -1
- package/src/executors/db/schema.d.ts +0 -6
- package/src/executors/deploy/executor.d.ts +0 -4
- package/src/executors/deploy/executor.js +0 -33
- package/src/executors/deploy/executor.js.map +0 -1
- package/src/executors/deploy/schema.d.ts +0 -5
- package/src/executors/deploy/schema.json +0 -28
- package/src/executors/docker/executor.d.ts +0 -4
- package/src/executors/docker/executor.js +0 -24
- package/src/executors/docker/executor.js.map +0 -1
- package/src/executors/gen/executor.d.ts +0 -4
- package/src/executors/gen/executor.js +0 -19
- package/src/executors/gen/executor.js.map +0 -1
- package/src/executors/gen/schema.d.ts +0 -3
- package/src/executors/gen/schema.json +0 -14
- package/src/functions/create-nodes-internal.function.d.ts +0 -0
- package/src/functions/create-nodes-internal.function.js +0 -1
- package/src/functions/create-nodes-internal.function.js.map +0 -1
- /package/src/executors/{db → deploy-ecs}/executor.d.ts +0 -0
- /package/src/{functions → inference}/add-db-target.function.d.ts +0 -0
- /package/src/{functions → inference}/add-db-target.function.js +0 -0
- /package/src/{functions → inference}/add-db-targets.function.d.ts +0 -0
- /package/src/{functions → inference}/add-db-targets.function.js +0 -0
- /package/src/{functions → inference}/add-docker-deploy-target.function.d.ts +0 -0
- /package/src/{functions → inference}/add-docker-deploy-target.function.js +0 -0
- /package/src/{functions → inference}/add-docker-deploy-targets.function.d.ts +0 -0
- /package/src/{functions → inference}/add-docker-deploy-targets.function.js +0 -0
- /package/src/{functions → inference}/add-docker-target.function.d.ts +0 -0
- /package/src/{functions → inference}/add-docker-target.function.js +0 -0
- /package/src/{functions → inference}/add-docker-targets.function.d.ts +0 -0
- /package/src/{functions → inference}/add-gen-target.function.d.ts +0 -0
- /package/src/{functions → inference}/add-gen-target.function.js +0 -0
- /package/src/{functions → inference}/add-serve-target.function.d.ts +0 -0
- /package/src/{functions → inference}/add-serve-target.function.js +0 -0
- /package/src/{functions → inference}/add-serve-targets.function.d.ts +0 -0
- /package/src/{functions → inference}/build-onix-targets.function.d.ts +0 -0
- /package/src/{functions → inference}/build-onix-targets.function.js +0 -0
- /package/src/{functions → inference}/normalize-options.function.d.ts +0 -0
- /package/src/{functions → inference}/normalize-options.function.js +0 -0
- /package/src/{functions → inference}/read-targets-cache.function.d.ts +0 -0
- /package/src/{functions → inference}/read-targets-cache.function.js +0 -0
- /package/src/{functions → inference}/write-targets-to-cache.function.d.ts +0 -0
- /package/src/{functions → inference}/write-targets-to-cache.function.js +0 -0
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const child_process_1 = require("child_process");
|
|
6
|
-
const executor = (options, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
7
|
-
const { envPath, ecr, port } = options;
|
|
8
|
-
const localPort = (Number(port) + 2000);
|
|
9
|
-
try {
|
|
10
|
-
const command = `open http://localhost:${localPort} & docker run -p ${localPort}:${port} --env="PORT=${port}" --env-file "${envPath}" "${ecr}"`;
|
|
11
|
-
devkit_1.logger.info(command);
|
|
12
|
-
(0, child_process_1.execSync)(command);
|
|
13
|
-
return {
|
|
14
|
-
success: true,
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
catch (error) {
|
|
18
|
-
return {
|
|
19
|
-
success: false,
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
exports.default = executor;
|
|
24
|
-
//# sourceMappingURL=executor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/docker/executor.ts"],"names":[],"mappings":";;;AAAA,uCAAsE;AAEtE,iDAAsD;AAEtD,MAAM,QAAQ,GAAoC,CAChD,OAAuB,EACvB,OAAwB,EACxB,EAAE;IACF,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IACvC,MAAM,SAAS,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IACxC,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,yBAAyB,SAAS,oBAAoB,SAAS,IAAI,IAAI,gBAAgB,IAAI,iBAAiB,OAAO,MAAM,GAAG,GAAG,CAAC;QAEhJ,eAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAErB,IAAA,wBAAQ,EAAC,OAAO,CAAC,CAAC;QAElB,OAAO;YACL,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO;YACL,OAAO,EAAE,KAAK;SACf,CAAC;IACJ,CAAC;AACH,CAAC,CAAA,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const child_process_1 = require("child_process");
|
|
5
|
-
const runExecutor = (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ moniker }) {
|
|
6
|
-
try {
|
|
7
|
-
(0, child_process_1.execSync)(`rm -rf libs/axios/${moniker}/src/lib`, { stdio: 'inherit' });
|
|
8
|
-
(0, child_process_1.execSync)(`mkdir -p libs/axios/${moniker}`, { stdio: 'inherit' });
|
|
9
|
-
(0, child_process_1.execSync)(`docker run --rm -v .:/local openapitools/openapi-generator-cli:v6.3.0 generate -i local/api-dox/app-api-${moniker}.json -g typescript-axios -o local/libs/axios/${moniker}/src/lib`, { stdio: 'inherit' });
|
|
10
|
-
return {
|
|
11
|
-
success: true,
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
catch (error) {
|
|
15
|
-
return { success: false };
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
exports.default = runExecutor;
|
|
19
|
-
//# sourceMappingURL=executor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/gen/executor.ts"],"names":[],"mappings":";;;AAEA,iDAAyC;AAEzC,MAAM,WAAW,GAAoC,KAAoB,EAAE,oDAAf,EAAE,OAAO,EAAE;IACrE,IAAI,CAAC;QACH,IAAA,wBAAQ,EAAC,qBAAqB,OAAO,UAAU,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACvE,IAAA,wBAAQ,EAAC,uBAAuB,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACjE,IAAA,wBAAQ,EAAC,2GAA2G,OAAO,iDAAiD,OAAO,UAAU,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QAErN,OAAO;YACL,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC5B,CAAC;AACH,CAAC,CAAA,CAAC;AAEF,kBAAe,WAAW,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/schema",
|
|
3
|
-
"version": 2,
|
|
4
|
-
"title": "Gen executor",
|
|
5
|
-
"description": "",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"properties": {
|
|
8
|
-
"moniker": {
|
|
9
|
-
"type": "string",
|
|
10
|
-
"description": "Lowercase single-word identifier used to consistently distinguish related projects and libraries"
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
"required": []
|
|
14
|
-
}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=create-nodes-internal.function.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-nodes-internal.function.js","sourceRoot":"","sources":["../../../../onix/src/functions/create-nodes-internal.function.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|