@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.
Files changed (159) hide show
  1. package/executors.json +32 -22
  2. package/package.json +6 -1
  3. package/src/executors/build-cli/executor.d.ts +2 -3
  4. package/src/executors/build-cli/executor.js +11 -14
  5. package/src/executors/build-cli/executor.js.map +1 -1
  6. package/src/executors/build-cli/schema.d.ts +1 -3
  7. package/src/executors/build-cli/schema.json +2 -7
  8. package/src/executors/deploy-ecs/executor.js +82 -0
  9. package/src/executors/deploy-ecs/executor.js.map +1 -0
  10. package/src/executors/deploy-ecs/schema.d.ts +9 -0
  11. package/src/executors/deploy-ecs/schema.json +32 -0
  12. package/src/executors/deploy-lambda/executor.d.ts +3 -0
  13. package/src/executors/deploy-lambda/executor.js +18 -0
  14. package/src/executors/deploy-lambda/executor.js.map +1 -0
  15. package/src/executors/deploy-lambda/schema.d.ts +3 -0
  16. package/src/executors/deploy-lambda/schema.json +57 -0
  17. package/src/executors/docker-run/executor.d.ts +3 -0
  18. package/src/executors/docker-run/executor.js +14 -0
  19. package/src/executors/docker-run/executor.js.map +1 -0
  20. package/src/executors/{docker → docker-run}/schema.d.ts +1 -1
  21. package/src/executors/{docker → docker-run}/schema.json +4 -4
  22. package/src/executors/local/executor.d.ts +2 -3
  23. package/src/executors/local/executor.js +9 -20
  24. package/src/executors/local/executor.js.map +1 -1
  25. package/src/executors/local/schema.d.ts +2 -3
  26. package/src/executors/local/schema.json +5 -12
  27. package/src/executors/openapi-gen/executor.d.ts +3 -0
  28. package/src/executors/openapi-gen/executor.js +11 -0
  29. package/src/executors/openapi-gen/executor.js.map +1 -0
  30. package/src/executors/openapi-gen/schema.d.ts +5 -0
  31. package/src/executors/openapi-gen/schema.json +25 -0
  32. package/src/executors/playwright/executor.d.ts +2 -3
  33. package/src/executors/playwright/executor.js +11 -15
  34. package/src/executors/playwright/executor.js.map +1 -1
  35. package/src/executors/playwright/schema.d.ts +1 -0
  36. package/src/executors/playwright/schema.json +5 -1
  37. package/src/executors/typeorm/executor.d.ts +3 -0
  38. package/src/executors/typeorm/executor.js +15 -0
  39. package/src/executors/typeorm/executor.js.map +1 -0
  40. package/src/executors/typeorm/schema.d.ts +5 -0
  41. package/src/executors/{db → typeorm}/schema.json +3 -7
  42. package/src/executors/xray/executor.d.ts +3 -0
  43. package/src/executors/xray/executor.js +21 -0
  44. package/src/executors/xray/executor.js.map +1 -0
  45. package/src/executors/xray/schema.d.ts +1 -0
  46. package/src/executors/xray/schema.json +9 -0
  47. package/src/functions/deploy-lambda.function.d.ts +17 -0
  48. package/src/functions/deploy-lambda.function.js +74 -0
  49. package/src/functions/deploy-lambda.function.js.map +1 -0
  50. package/src/functions/executor-factory.function.d.ts +5 -0
  51. package/src/functions/executor-factory.function.js +20 -0
  52. package/src/functions/executor-factory.function.js.map +1 -0
  53. package/src/functions/extract-project-build-assets.function.d.ts +2 -0
  54. package/src/functions/extract-project-build-assets.function.js +19 -0
  55. package/src/functions/extract-project-build-assets.function.js.map +1 -0
  56. package/src/functions/extract-project-build-outputs.function.d.ts +2 -0
  57. package/src/functions/extract-project-build-outputs.function.js +21 -0
  58. package/src/functions/extract-project-build-outputs.function.js.map +1 -0
  59. package/src/functions/extract-project-configuration.function.d.ts +2 -0
  60. package/src/functions/extract-project-configuration.function.js +14 -0
  61. package/src/functions/extract-project-configuration.function.js.map +1 -0
  62. package/src/functions/extract-target-configuration.function.d.ts +2 -0
  63. package/src/functions/extract-target-configuration.function.js +8 -0
  64. package/src/functions/extract-target-configuration.function.js.map +1 -0
  65. package/src/functions/interpolate.function.d.ts +2 -0
  66. package/src/functions/interpolate.function.js +8 -0
  67. package/src/functions/interpolate.function.js.map +1 -0
  68. package/src/functions/load-env-file.function.d.ts +1 -0
  69. package/src/functions/load-env-file.function.js +17 -0
  70. package/src/functions/load-env-file.function.js.map +1 -0
  71. package/src/functions/pm.function.d.ts +15 -0
  72. package/src/functions/pm.function.js +21 -0
  73. package/src/functions/pm.function.js.map +1 -0
  74. package/src/functions/pmx.function.d.ts +3 -0
  75. package/src/functions/pmx.function.js +21 -0
  76. package/src/functions/pmx.function.js.map +1 -0
  77. package/src/functions/push-image-to-ecr-wrapped.function.js +2 -1
  78. package/src/functions/push-image-to-ecr-wrapped.function.js.map +1 -1
  79. package/src/functions/push-image-to-ecr.function.d.ts +2 -3
  80. package/src/functions/push-image-to-ecr.function.js +39 -18
  81. package/src/functions/push-image-to-ecr.function.js.map +1 -1
  82. package/src/functions/resolve-aws-credentials.function.d.ts +1 -0
  83. package/src/functions/resolve-aws-credentials.function.js +15 -0
  84. package/src/functions/resolve-aws-credentials.function.js.map +1 -0
  85. package/src/functions/restart-ecs-service.function.d.ts +6 -0
  86. package/src/functions/restart-ecs-service.function.js +34 -0
  87. package/src/functions/restart-ecs-service.function.js.map +1 -0
  88. package/src/index.d.ts +17 -8
  89. package/src/index.js +17 -10
  90. package/src/index.js.map +1 -1
  91. package/src/{functions → inference}/add-db-target.function.js.map +1 -1
  92. package/src/{functions → inference}/add-db-targets.function.js.map +1 -1
  93. package/src/{functions → inference}/add-docker-deploy-target.function.js.map +1 -1
  94. package/src/{functions → inference}/add-docker-deploy-targets.function.js.map +1 -1
  95. package/src/{functions → inference}/add-docker-target.function.js.map +1 -1
  96. package/src/{functions → inference}/add-docker-targets.function.js +1 -1
  97. package/src/{functions → inference}/add-docker-targets.function.js.map +1 -1
  98. package/src/{functions → inference}/add-gen-target.function.js.map +1 -1
  99. package/src/{functions → inference}/add-serve-target.function.js.map +1 -1
  100. package/src/{functions → inference}/add-serve-targets.function.js +1 -1
  101. package/src/{functions → inference}/add-serve-targets.function.js.map +1 -1
  102. package/src/{functions → inference}/build-onix-targets.function.js.map +1 -1
  103. package/src/{functions → inference}/normalize-options.function.js.map +1 -1
  104. package/src/{functions → inference}/read-targets-cache.function.js.map +1 -1
  105. package/src/{functions → inference}/write-targets-to-cache.function.js.map +1 -1
  106. package/src/plugins/plugin.js +4 -4
  107. package/src/utils/vite-config-factory.d.ts +9 -0
  108. package/src/utils/vite-config-factory.js +48 -0
  109. package/src/utils/vite-config-factory.js.map +1 -0
  110. package/src/webpack/patch-nx-source-map-paths.function.d.ts +9 -0
  111. package/src/webpack/patch-nx-source-map-paths.function.js +13 -0
  112. package/src/webpack/patch-nx-source-map-paths.function.js.map +1 -0
  113. package/src/webpack/patch-nx-source-maps.plugin.d.ts +2 -0
  114. package/src/webpack/patch-nx-source-maps.plugin.js +11 -0
  115. package/src/webpack/patch-nx-source-maps.plugin.js.map +1 -0
  116. package/src/executors/db/executor.js +0 -20
  117. package/src/executors/db/executor.js.map +0 -1
  118. package/src/executors/db/schema.d.ts +0 -6
  119. package/src/executors/deploy/executor.d.ts +0 -4
  120. package/src/executors/deploy/executor.js +0 -33
  121. package/src/executors/deploy/executor.js.map +0 -1
  122. package/src/executors/deploy/schema.d.ts +0 -5
  123. package/src/executors/deploy/schema.json +0 -28
  124. package/src/executors/docker/executor.d.ts +0 -4
  125. package/src/executors/docker/executor.js +0 -24
  126. package/src/executors/docker/executor.js.map +0 -1
  127. package/src/executors/gen/executor.d.ts +0 -4
  128. package/src/executors/gen/executor.js +0 -19
  129. package/src/executors/gen/executor.js.map +0 -1
  130. package/src/executors/gen/schema.d.ts +0 -3
  131. package/src/executors/gen/schema.json +0 -14
  132. package/src/functions/create-nodes-internal.function.d.ts +0 -0
  133. package/src/functions/create-nodes-internal.function.js +0 -1
  134. package/src/functions/create-nodes-internal.function.js.map +0 -1
  135. /package/src/executors/{db → deploy-ecs}/executor.d.ts +0 -0
  136. /package/src/{functions → inference}/add-db-target.function.d.ts +0 -0
  137. /package/src/{functions → inference}/add-db-target.function.js +0 -0
  138. /package/src/{functions → inference}/add-db-targets.function.d.ts +0 -0
  139. /package/src/{functions → inference}/add-db-targets.function.js +0 -0
  140. /package/src/{functions → inference}/add-docker-deploy-target.function.d.ts +0 -0
  141. /package/src/{functions → inference}/add-docker-deploy-target.function.js +0 -0
  142. /package/src/{functions → inference}/add-docker-deploy-targets.function.d.ts +0 -0
  143. /package/src/{functions → inference}/add-docker-deploy-targets.function.js +0 -0
  144. /package/src/{functions → inference}/add-docker-target.function.d.ts +0 -0
  145. /package/src/{functions → inference}/add-docker-target.function.js +0 -0
  146. /package/src/{functions → inference}/add-docker-targets.function.d.ts +0 -0
  147. /package/src/{functions → inference}/add-gen-target.function.d.ts +0 -0
  148. /package/src/{functions → inference}/add-gen-target.function.js +0 -0
  149. /package/src/{functions → inference}/add-serve-target.function.d.ts +0 -0
  150. /package/src/{functions → inference}/add-serve-target.function.js +0 -0
  151. /package/src/{functions → inference}/add-serve-targets.function.d.ts +0 -0
  152. /package/src/{functions → inference}/build-onix-targets.function.d.ts +0 -0
  153. /package/src/{functions → inference}/build-onix-targets.function.js +0 -0
  154. /package/src/{functions → inference}/normalize-options.function.d.ts +0 -0
  155. /package/src/{functions → inference}/normalize-options.function.js +0 -0
  156. /package/src/{functions → inference}/read-targets-cache.function.d.ts +0 -0
  157. /package/src/{functions → inference}/read-targets-cache.function.js +0 -0
  158. /package/src/{functions → inference}/write-targets-to-cache.function.d.ts +0 -0
  159. /package/src/{functions → inference}/write-targets-to-cache.function.js +0 -0
@@ -1,4 +0,0 @@
1
- import { PromiseExecutor } from '@nx/devkit';
2
- import { ExecutorSchema } from './schema';
3
- declare const executor: PromiseExecutor<ExecutorSchema>;
4
- export default executor;
@@ -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,4 +0,0 @@
1
- import { PromiseExecutor } from '@nx/devkit';
2
- import { ExecutorSchema } from './schema';
3
- declare const runExecutor: PromiseExecutor<ExecutorSchema>;
4
- export default runExecutor;
@@ -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,3 +0,0 @@
1
- export interface ExecutorSchema {
2
- moniker: string;
3
- }
@@ -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