@onivoro/onix 20.0.54 → 20.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.
Files changed (149) hide show
  1. package/executors.json +22 -32
  2. package/package.json +1 -6
  3. package/src/executors/build-cli/executor.d.ts +3 -2
  4. package/src/executors/build-cli/executor.js +14 -11
  5. package/src/executors/build-cli/executor.js.map +1 -1
  6. package/src/executors/build-cli/schema.d.ts +3 -1
  7. package/src/executors/build-cli/schema.json +7 -2
  8. package/src/executors/db/executor.js +20 -0
  9. package/src/executors/db/executor.js.map +1 -0
  10. package/src/executors/db/schema.d.ts +6 -0
  11. package/src/executors/{typeorm → db}/schema.json +7 -3
  12. package/src/executors/deploy/executor.js +33 -0
  13. package/src/executors/deploy/executor.js.map +1 -0
  14. package/src/executors/deploy/schema.d.ts +5 -0
  15. package/src/executors/deploy/schema.json +28 -0
  16. package/src/executors/docker/executor.d.ts +4 -0
  17. package/src/executors/docker/executor.js +24 -0
  18. package/src/executors/docker/executor.js.map +1 -0
  19. package/src/executors/{docker-run → docker}/schema.d.ts +1 -1
  20. package/src/executors/{docker-run → docker}/schema.json +4 -4
  21. package/src/executors/gen/executor.d.ts +4 -0
  22. package/src/executors/gen/executor.js +19 -0
  23. package/src/executors/gen/executor.js.map +1 -0
  24. package/src/executors/gen/schema.d.ts +3 -0
  25. package/src/executors/gen/schema.json +14 -0
  26. package/src/executors/local/executor.d.ts +3 -2
  27. package/src/executors/local/executor.js +19 -12
  28. package/src/executors/local/executor.js.map +1 -1
  29. package/src/executors/local/schema.d.ts +3 -2
  30. package/src/executors/local/schema.json +12 -5
  31. package/src/executors/playwright/executor.d.ts +3 -2
  32. package/src/executors/playwright/executor.js +15 -11
  33. package/src/executors/playwright/executor.js.map +1 -1
  34. package/src/executors/playwright/schema.d.ts +0 -1
  35. package/src/executors/playwright/schema.json +1 -5
  36. package/src/{inference → functions}/add-db-target.function.js.map +1 -1
  37. package/src/{inference → functions}/add-db-targets.function.js.map +1 -1
  38. package/src/{inference → functions}/add-docker-deploy-target.function.js.map +1 -1
  39. package/src/{inference → functions}/add-docker-deploy-targets.function.js.map +1 -1
  40. package/src/{inference → functions}/add-docker-target.function.js.map +1 -1
  41. package/src/{inference → functions}/add-docker-targets.function.js +1 -1
  42. package/src/{inference → functions}/add-docker-targets.function.js.map +1 -1
  43. package/src/{inference → functions}/add-gen-target.function.js.map +1 -1
  44. package/src/{inference → functions}/add-serve-target.function.js.map +1 -1
  45. package/src/{inference → functions}/add-serve-targets.function.js +1 -1
  46. package/src/{inference → functions}/add-serve-targets.function.js.map +1 -1
  47. package/src/{inference → functions}/build-onix-targets.function.js.map +1 -1
  48. package/src/functions/create-nodes-internal.function.d.ts +0 -0
  49. package/src/functions/create-nodes-internal.function.js +1 -0
  50. package/src/functions/create-nodes-internal.function.js.map +1 -0
  51. package/src/{inference → functions}/normalize-options.function.js.map +1 -1
  52. package/src/functions/push-image-to-ecr-wrapped.function.js +1 -2
  53. package/src/functions/push-image-to-ecr-wrapped.function.js.map +1 -1
  54. package/src/functions/push-image-to-ecr.function.d.ts +3 -2
  55. package/src/functions/push-image-to-ecr.function.js +18 -39
  56. package/src/functions/push-image-to-ecr.function.js.map +1 -1
  57. package/src/{inference → functions}/read-targets-cache.function.js.map +1 -1
  58. package/src/{inference → functions}/write-targets-to-cache.function.js.map +1 -1
  59. package/src/index.d.ts +7 -13
  60. package/src/index.js +7 -13
  61. package/src/index.js.map +1 -1
  62. package/src/plugins/plugin.js +4 -4
  63. package/src/executors/deploy-ecs/executor.js +0 -81
  64. package/src/executors/deploy-ecs/executor.js.map +0 -1
  65. package/src/executors/deploy-ecs/schema.d.ts +0 -9
  66. package/src/executors/deploy-ecs/schema.json +0 -32
  67. package/src/executors/deploy-lambda/executor.js +0 -29
  68. package/src/executors/deploy-lambda/executor.js.map +0 -1
  69. package/src/executors/deploy-lambda/schema.d.ts +0 -3
  70. package/src/executors/deploy-lambda/schema.json +0 -57
  71. package/src/executors/docker-run/executor.d.ts +0 -3
  72. package/src/executors/docker-run/executor.js +0 -14
  73. package/src/executors/docker-run/executor.js.map +0 -1
  74. package/src/executors/openapi-gen/executor.d.ts +0 -3
  75. package/src/executors/openapi-gen/executor.js +0 -11
  76. package/src/executors/openapi-gen/executor.js.map +0 -1
  77. package/src/executors/openapi-gen/schema.d.ts +0 -5
  78. package/src/executors/openapi-gen/schema.json +0 -25
  79. package/src/executors/typeorm/executor.d.ts +0 -3
  80. package/src/executors/typeorm/executor.js +0 -12
  81. package/src/executors/typeorm/executor.js.map +0 -1
  82. package/src/executors/typeorm/schema.d.ts +0 -5
  83. package/src/executors/xray/executor.d.ts +0 -3
  84. package/src/executors/xray/executor.js +0 -21
  85. package/src/executors/xray/executor.js.map +0 -1
  86. package/src/executors/xray/schema.d.ts +0 -1
  87. package/src/executors/xray/schema.json +0 -9
  88. package/src/functions/deploy-lambda.function.d.ts +0 -17
  89. package/src/functions/deploy-lambda.function.js +0 -74
  90. package/src/functions/deploy-lambda.function.js.map +0 -1
  91. package/src/functions/executor-factory.function.d.ts +0 -5
  92. package/src/functions/executor-factory.function.js +0 -20
  93. package/src/functions/executor-factory.function.js.map +0 -1
  94. package/src/functions/extract-project-build-assets.function.d.ts +0 -2
  95. package/src/functions/extract-project-build-assets.function.js +0 -19
  96. package/src/functions/extract-project-build-assets.function.js.map +0 -1
  97. package/src/functions/extract-project-build-outputs.function.d.ts +0 -2
  98. package/src/functions/extract-project-build-outputs.function.js +0 -21
  99. package/src/functions/extract-project-build-outputs.function.js.map +0 -1
  100. package/src/functions/extract-project-configuration.function.d.ts +0 -2
  101. package/src/functions/extract-project-configuration.function.js +0 -14
  102. package/src/functions/extract-project-configuration.function.js.map +0 -1
  103. package/src/functions/extract-target-configuration.function.d.ts +0 -2
  104. package/src/functions/extract-target-configuration.function.js +0 -8
  105. package/src/functions/extract-target-configuration.function.js.map +0 -1
  106. package/src/functions/interpolate.function.d.ts +0 -2
  107. package/src/functions/interpolate.function.js +0 -8
  108. package/src/functions/interpolate.function.js.map +0 -1
  109. package/src/functions/load-env-file.function.d.ts +0 -1
  110. package/src/functions/load-env-file.function.js +0 -17
  111. package/src/functions/load-env-file.function.js.map +0 -1
  112. package/src/functions/resolve-aws-credentials.function.d.ts +0 -1
  113. package/src/functions/resolve-aws-credentials.function.js +0 -15
  114. package/src/functions/resolve-aws-credentials.function.js.map +0 -1
  115. package/src/functions/restart-ecs-service.function.d.ts +0 -6
  116. package/src/functions/restart-ecs-service.function.js +0 -34
  117. package/src/functions/restart-ecs-service.function.js.map +0 -1
  118. package/src/webpack/patch-nx-source-map-paths.function.d.ts +0 -9
  119. package/src/webpack/patch-nx-source-map-paths.function.js +0 -13
  120. package/src/webpack/patch-nx-source-map-paths.function.js.map +0 -1
  121. package/src/webpack/patch-nx-source-maps.plugin.d.ts +0 -2
  122. package/src/webpack/patch-nx-source-maps.plugin.js +0 -11
  123. package/src/webpack/patch-nx-source-maps.plugin.js.map +0 -1
  124. /package/src/executors/{deploy-ecs → db}/executor.d.ts +0 -0
  125. /package/src/executors/{deploy-lambda → deploy}/executor.d.ts +0 -0
  126. /package/src/{inference → functions}/add-db-target.function.d.ts +0 -0
  127. /package/src/{inference → functions}/add-db-target.function.js +0 -0
  128. /package/src/{inference → functions}/add-db-targets.function.d.ts +0 -0
  129. /package/src/{inference → functions}/add-db-targets.function.js +0 -0
  130. /package/src/{inference → functions}/add-docker-deploy-target.function.d.ts +0 -0
  131. /package/src/{inference → functions}/add-docker-deploy-target.function.js +0 -0
  132. /package/src/{inference → functions}/add-docker-deploy-targets.function.d.ts +0 -0
  133. /package/src/{inference → functions}/add-docker-deploy-targets.function.js +0 -0
  134. /package/src/{inference → functions}/add-docker-target.function.d.ts +0 -0
  135. /package/src/{inference → functions}/add-docker-target.function.js +0 -0
  136. /package/src/{inference → functions}/add-docker-targets.function.d.ts +0 -0
  137. /package/src/{inference → functions}/add-gen-target.function.d.ts +0 -0
  138. /package/src/{inference → functions}/add-gen-target.function.js +0 -0
  139. /package/src/{inference → functions}/add-serve-target.function.d.ts +0 -0
  140. /package/src/{inference → functions}/add-serve-target.function.js +0 -0
  141. /package/src/{inference → functions}/add-serve-targets.function.d.ts +0 -0
  142. /package/src/{inference → functions}/build-onix-targets.function.d.ts +0 -0
  143. /package/src/{inference → functions}/build-onix-targets.function.js +0 -0
  144. /package/src/{inference → functions}/normalize-options.function.d.ts +0 -0
  145. /package/src/{inference → functions}/normalize-options.function.js +0 -0
  146. /package/src/{inference → functions}/read-targets-cache.function.d.ts +0 -0
  147. /package/src/{inference → functions}/read-targets-cache.function.js +0 -0
  148. /package/src/{inference → functions}/write-targets-to-cache.function.d.ts +0 -0
  149. /package/src/{inference → functions}/write-targets-to-cache.function.js +0 -0
package/executors.json CHANGED
@@ -1,48 +1,38 @@
1
1
  {
2
2
  "executors": {
3
3
  "build-cli": {
4
- "implementation": "./src/executors/build-cli/executor",
5
- "schema": "./src/executors/build-cli/schema.json",
4
+ "implementation": "./onix/src/executors/build-cli/executor",
5
+ "schema": "./onix/src/executors/build-cli/executor/schema.json",
6
6
  "description": "build-cli"
7
7
  },
8
- "typeorm": {
9
- "implementation": "./src/executors/typeorm/executor",
10
- "schema": "./src/executors/typeorm/schema.json",
11
- "description": "typeorm"
8
+ "orm": {
9
+ "implementation": "./onix/src/executors/db/executor",
10
+ "schema": "./onix/src/executors/db/executor/schema.json",
11
+ "description": "db"
12
12
  },
13
13
  "docker-run": {
14
- "implementation": "./src/executors/docker-run/executor",
15
- "schema": "./src/executors/docker-run/schema.json",
14
+ "implementation": "./onix/src/executors/docker/executor",
15
+ "schema": "./onix/src/executors/docker/executor/schema.json",
16
16
  "description": "docker-run"
17
17
  },
18
- "deploy-lambda": {
19
- "implementation": "./src/executors/deploy-lambda/executor",
20
- "schema": "./src/executors/deploy-lambda/schema.json",
21
- "description": "deploy-lambda"
18
+ "docker-deploy": {
19
+ "implementation": "./onix/src/executors/deploy/executor",
20
+ "schema": "./onix/src/executors/deploy/executor/schema.json",
21
+ "description": "docker-deploy"
22
22
  },
23
- "deploy-ecs": {
24
- "implementation": "./src/executors/deploy-ecs/executor",
25
- "schema": "./src/executors/deploy-ecs/schema.json",
26
- "description": "deploy-ecs"
23
+ "gen-axios": {
24
+ "implementation": "./onix/src/executors/gen/executor",
25
+ "schema": "./onix/src/executors/gen/executor/schema.json",
26
+ "description": "gen-axios"
27
27
  },
28
- "openapi-gen": {
29
- "implementation": "./src/executors/openapi-gen/executor",
30
- "schema": "./src/executors/openapi-gen/schema.json",
31
- "description": "openapi-gen"
32
- },
33
- "local": {
34
- "implementation": "./src/executors/local/executor",
35
- "schema": "./src/executors/local/schema.json",
36
- "description": "local"
37
- },
38
- "xray": {
39
- "implementation": "./src/executors/xray/executor",
40
- "schema": "./src/executors/xray/schema.json",
41
- "description": "xray"
28
+ "serve-locally": {
29
+ "implementation": "./onix/src/executors/local/executor",
30
+ "schema": "./onix/src/executors/local/executor/schema.json",
31
+ "description": "serve-locally"
42
32
  },
43
33
  "playwright": {
44
- "implementation": "./src/executors/playwright/executor",
45
- "schema": "./src/executors/playwright/schema.json",
34
+ "implementation": "./onix/src/executors/playwright/executor",
35
+ "schema": "./onix/src/executors/playwright/executor/schema.json",
46
36
  "description": "playwright"
47
37
  }
48
38
  }
package/package.json CHANGED
@@ -1,20 +1,15 @@
1
1
  {
2
2
  "name": "@onivoro/onix",
3
- "version": "20.0.54",
3
+ "version": "20.3.0",
4
4
  "type": "commonjs",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./src/index.d.ts",
7
7
  "executors": "./executors.json",
8
8
  "dependencies": {
9
9
  "@aws-sdk/client-ecr": "^3.734.0",
10
- "@aws-sdk/client-ecs": "^3.734.0",
11
- "@aws-sdk/client-lambda": "^3.734.0",
12
- "@aws-sdk/client-s3": "^3.735.0",
13
10
  "@aws-sdk/credential-providers": "^3.734.0",
14
11
  "@nx/devkit": "^20.3.2",
15
12
  "@nx/js": "20.3.2",
16
- "@playwright/test": "^1.50.0",
17
- "adm-zip": "^0.5.16",
18
13
  "esbuild": "^0.24.2",
19
14
  "esbuild-node-externals": "^1.16.0"
20
15
  },
@@ -1,3 +1,4 @@
1
+ import { PromiseExecutor } from '@nx/devkit';
1
2
  import { ExecutorSchema } from './schema';
2
- declare const _default: import("@nx/devkit").PromiseExecutor<ExecutorSchema>;
3
- export default _default;
3
+ declare const runExecutor: PromiseExecutor<ExecutorSchema>;
4
+ export default runExecutor;
@@ -3,15 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const child_process_1 = require("child_process");
6
- const executor_factory_function_1 = require("../../functions/executor-factory.function");
7
- const extract_project_build_outputs_function_1 = require("../../functions/extract-project-build-outputs.function");
8
- exports.default = (0, executor_factory_function_1.executorFactory)((options, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
9
- const [outputPath] = (0, extract_project_build_outputs_function_1.extractProjectBuildOutputs)(context, context.projectName);
10
- const tempPath = `${outputPath}/temp`;
11
- const executableOutputPath = `${outputPath}/main.js`;
12
- devkit_1.logger.info(`add a bin entry to root package.json pointing at this executable => ${executableOutputPath} and re-run this if the bin entry hasn't been added yet`);
13
- const command = `npx nx build ${context.projectName} && echo '#! /usr/bin/env node' > ${tempPath} && cat ${executableOutputPath} >> ${tempPath} && mv ${tempPath} ${executableOutputPath} && chmod +x ${executableOutputPath} && npm link`;
14
- devkit_1.logger.info(command);
15
- (0, child_process_1.execSync)(command, { stdio: 'inherit' });
16
- }));
6
+ const runExecutor = (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ moniker }) {
7
+ try {
8
+ const command = `nx build app-cli-${moniker} --skip-nx-cache && echo '#! /usr/bin/env node' >> dist/temp && cat dist/apps/cli/${moniker}/main.js >> dist/temp && mv dist/temp dist/apps/cli/${moniker}/main.js && chmod +x dist/apps/cli/${moniker}/main.js && npm link`;
9
+ devkit_1.logger.info(command);
10
+ (0, child_process_1.execSync)(command, { stdio: 'inherit' });
11
+ return {
12
+ success: true,
13
+ };
14
+ }
15
+ catch (error) {
16
+ return { success: false };
17
+ }
18
+ });
19
+ exports.default = runExecutor;
17
20
  //# sourceMappingURL=executor.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/build-cli/executor.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAEpC,iDAAyC;AACzC,yFAA4E;AAC5E,mHAAoG;AAEpG,kBAAe,IAAA,2CAAe,EAAC,CAAO,OAAuB,EAAE,OAAO,EAAE,EAAE;IACxE,MAAM,CAAC,UAAU,CAAC,GAAG,IAAA,mEAA0B,EAAC,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC9E,MAAM,QAAQ,GAAG,GAAG,UAAU,OAAO,CAAC;IACtC,MAAM,oBAAoB,GAAG,GAAG,UAAU,UAAU,CAAC;IACrD,eAAM,CAAC,IAAI,CAAC,uEAAuE,oBAAoB,yDAAyD,CAAC,CAAC;IAClK,MAAM,OAAO,GAAG,gBAAgB,OAAO,CAAC,WAAW,qCAAqC,QAAQ,WAAW,oBAAoB,OAAO,QAAQ,UAAU,QAAQ,IAAI,oBAAoB,gBAAgB,oBAAoB,cAAc,CAAC;IAE3O,eAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAErB,IAAA,wBAAQ,EAAC,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;AAC1C,CAAC,CAAA,CAAC,CAAC"}
1
+ {"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/build-cli/executor.ts"],"names":[],"mappings":";;;AAAA,uCAAqD;AAErD,iDAAyC;AAEzC,MAAM,WAAW,GAAoC,KAAoB,EAAE,oDAAf,EAAE,OAAO,EAAE;IACrE,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,oBAAoB,OAAO,qFAAqF,OAAO,uDAAuD,OAAO,sCAAsC,OAAO,sBAAsB,CAAC;QAEzQ,eAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAErB,IAAA,wBAAQ,EAAC,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QAExC,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 +1,3 @@
1
- export interface ExecutorSchema {}
1
+ export interface ExecutorSchema {
2
+ moniker: string;
3
+ }
@@ -1,9 +1,14 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/schema",
3
3
  "version": 2,
4
- "title": "Build-cli executor",
4
+ "title": "Gen executor",
5
5
  "description": "",
6
6
  "type": "object",
7
- "properties": {},
7
+ "properties": {
8
+ "moniker": {
9
+ "type": "string",
10
+ "description": "Lowercase single-word identifier used to consistently distinguish related projects and libraries"
11
+ }
12
+ },
8
13
  "required": []
9
14
  }
@@ -0,0 +1,20 @@
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 executor = (options, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
6
+ const { envKey, envPath, ormConfigPath, runOrRevert } = options;
7
+ try {
8
+ (0, child_process_1.execSync)(`export ${envKey}=${envPath} && npm run typeorm -- -d ${ormConfigPath} migration:${runOrRevert} -t=false`, { stdio: 'inherit' });
9
+ return {
10
+ success: true,
11
+ };
12
+ }
13
+ catch (error) {
14
+ return {
15
+ success: false,
16
+ };
17
+ }
18
+ });
19
+ exports.default = executor;
20
+ //# sourceMappingURL=executor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/db/executor.ts"],"names":[],"mappings":";;;AAEA,iDAAyC;AAEzC,MAAM,QAAQ,GAAoC,CAChD,OAAuB,EACvB,OAAwB,EACxB,EAAE;IACF,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;IAGhE,IAAI,CAAC;QACH,IAAA,wBAAQ,EAAC,UAAU,MAAM,IAAI,OAAO,6BAA6B,aAAa,cAAc,WAAW,WAAW,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QAE1I,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"}
@@ -0,0 +1,6 @@
1
+ export interface ExecutorSchema {
2
+ envPath: string;
3
+ envKey: string;
4
+ ormConfigPath: string;
5
+ runOrRevert: string;
6
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/schema",
3
3
  "version": 2,
4
- "title": "TypeORM executor",
4
+ "title": "Db executor",
5
5
  "description": "",
6
6
  "type": "object",
7
7
  "properties": {
@@ -9,16 +9,20 @@
9
9
  "type": "string",
10
10
  "description": "TypeORM CLI command: 'run' or 'revert'"
11
11
  },
12
- "envFile": {
12
+ "envPath": {
13
13
  "type": "string",
14
14
  "description": "Path and name of the .env file to load"
15
15
  },
16
+ "envKey": {
17
+ "type": "string",
18
+ "description": "Name of the environment variable that points to the location of the envFile"
19
+ },
16
20
  "ormConfigPath": {
17
21
  "type": "string",
18
22
  "description": "Path and name of the ormconfig"
19
23
  }
20
24
  },
21
25
  "required": [
22
- "envFile", "ormConfigPath"
26
+ "envPath", "envKey", "ormConfigPath"
23
27
  ]
24
28
  }
@@ -0,0 +1,33 @@
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, prefix, profile, dockerfilePath } = options;
8
+ try {
9
+ const webProjectName = context.projectName.replace('api', 'web');
10
+ const apiProjectPath = context.projectName.split('-').join('/').replace('app', 'apps').replace('appss', 'apps');
11
+ const webProjectPath = apiProjectPath.replace('api', 'web').replace('app', 'apps').replace('appss', 'apps');
12
+ // build api
13
+ child_process_1.execSync;
14
+ // build ui if there's a ui project in onix.config
15
+ // copy ui dist to api dist/assets if there's ui project in onix.config
16
+ // login to docker
17
+ // push image
18
+ // restart cluster service
19
+ const command = `export OSO_ENV=${envPath} && oso DeployImageAndUi -a ${context.projectName} -t production -p ${profile} -r us-east-2 -e ${ecr} -o ${apiProjectPath} -u ${webProjectName} -d dist/${webProjectPath} -f docker/prod/api/Dockerfile -g asdf && aws ecs update-service --cluster ${prefix}-cluster --service ${prefix}-service --force-new-deployment --profile ${profile} --region us-east-2`;
20
+ devkit_1.logger.info(command);
21
+ (0, child_process_1.execSync)(command, { stdio: 'inherit' });
22
+ return {
23
+ success: true,
24
+ };
25
+ }
26
+ catch (error) {
27
+ return {
28
+ success: false,
29
+ };
30
+ }
31
+ });
32
+ exports.default = executor;
33
+ //# sourceMappingURL=executor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/deploy/executor.ts"],"names":[],"mappings":";;;AAAA,uCAAsE;AAEtE,iDAAyC;AAEzC,MAAM,QAAQ,GAAoC,CAChD,OAAuB,EACvB,OAAwB,EACxB,EAAE;IACF,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC;IAElE,IAAI,CAAC;QACH,MAAM,cAAc,GAAG,OAAO,CAAC,WAAY,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAClE,MAAM,cAAc,GAAG,OAAO,CAAC,WAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACjH,MAAM,cAAc,GAAG,cAAc,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QAE5G,YAAY;QACZ,wBAAQ,CAAA;QACR,kDAAkD;QAClD,uEAAuE;QACvE,kBAAkB;QAClB,aAAa;QACb,0BAA0B;QAC1B,MAAM,OAAO,GAAG,kBAAkB,OAAO,+BAA+B,OAAO,CAAC,WAAW,qBAAqB,OAAO,oBAAoB,GAAG,OAAO,cAAc,OAAO,cAAc,YAAY,cAAc,8EAA8E,MAAM,sBAAsB,MAAM,6CAA6C,OAAO,qBAAqB,CAAC;QAE5Y,eAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAErB,IAAA,wBAAQ,EAAC,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QAExC,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"}
@@ -0,0 +1,5 @@
1
+ import { TOnixEnvironmentConfig } from "onix/src/types/onix-config.type";
2
+
3
+ export interface ExecutorSchema extends TOnixEnvironmentConfig {
4
+
5
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "$schema": "https://json-schema.org/schema",
3
+ "version": 2,
4
+ "title": "Db executor",
5
+ "description": "",
6
+ "type": "object",
7
+ "properties": {
8
+ "envPath": {
9
+ "type": "string",
10
+ "description": "Path and name of the .env file to load"
11
+ },
12
+ "ecr": {
13
+ "type": "string",
14
+ "description": "Name of the ECR repository and tag (conventionally separated by a colon)"
15
+ },
16
+ "prefix": {
17
+ "type": "string",
18
+ "description": "Common prefix of the AWS ECS cluster and service"
19
+ },
20
+ "profile": {
21
+ "type": "string",
22
+ "description": "Either 'ivimdev' or 'ivimprod' (either of which must be defined in the ~/.aws/credentials file"
23
+ }
24
+ },
25
+ "required": [
26
+ "envPath", "ecr", "prefix", "profile"
27
+ ]
28
+ }
@@ -0,0 +1,4 @@
1
+ import { PromiseExecutor } from '@nx/devkit';
2
+ import { ExecutorSchema } from './schema';
3
+ declare const executor: PromiseExecutor<ExecutorSchema>;
4
+ export default executor;
@@ -0,0 +1,24 @@
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
@@ -0,0 +1 @@
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,5 +1,5 @@
1
1
  export interface ExecutorSchema {
2
- envFile: string;
2
+ envPath: string;
3
3
  ecr: string;
4
4
  port: number;
5
5
  }
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/schema",
3
3
  "version": 2,
4
- "title": "Docker-run executor",
4
+ "title": "Db executor",
5
5
  "description": "",
6
6
  "type": "object",
7
7
  "properties": {
8
- "envFile": {
8
+ "envPath": {
9
9
  "type": "string",
10
10
  "description": "Path and name of the .env file to load"
11
11
  },
@@ -14,11 +14,11 @@
14
14
  "description": "Name of the ECR repository and tag (conventionally separated by a colon)"
15
15
  },
16
16
  "port": {
17
- "type": "number",
17
+ "type": "string",
18
18
  "description": "Port docker port to bind to localhost"
19
19
  }
20
20
  },
21
21
  "required": [
22
- "envFile", "ecr", "port"
22
+ "envPath", "ecr", "port"
23
23
  ]
24
24
  }
@@ -0,0 +1,4 @@
1
+ import { PromiseExecutor } from '@nx/devkit';
2
+ import { ExecutorSchema } from './schema';
3
+ declare const runExecutor: PromiseExecutor<ExecutorSchema>;
4
+ export default runExecutor;
@@ -0,0 +1,19 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ export interface ExecutorSchema {
2
+ moniker: string;
3
+ }
@@ -0,0 +1,14 @@
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
+ }
@@ -1,3 +1,4 @@
1
+ import { PromiseExecutor } from '@nx/devkit';
1
2
  import { ExecutorSchema } from './schema';
2
- declare const _default: import("@nx/devkit").PromiseExecutor<ExecutorSchema>;
3
- export default _default;
3
+ declare const runExecutor: PromiseExecutor<ExecutorSchema>;
4
+ export default runExecutor;
@@ -1,17 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const devkit_1 = require("@nx/devkit");
5
4
  const child_process_1 = require("child_process");
6
- const load_env_file_function_1 = require("../../functions/load-env-file.function");
7
- const executor_factory_function_1 = require("../../functions/executor-factory.function");
8
- exports.default = (0, executor_factory_function_1.executorFactory)((options, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
9
- const { debugPort, envFile } = options;
10
- (0, load_env_file_function_1.loadEnvFile)(envFile);
11
- const inspectStatement = debugPort ? `--port=${debugPort}` : '';
12
- const command = `npx nx run ${context.projectName}:serve ${inspectStatement}`;
13
- devkit_1.logger.debug(command);
14
- const [program, ...args] = command.split(' ');
15
- (0, child_process_1.spawnSync)(program, args, { stdio: 'inherit' });
16
- }));
5
+ const runExecutor = (options, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
6
+ console.log('Running custom serve executor');
7
+ const { envKey, envPath } = options;
8
+ try {
9
+ const inspectStatement = options.port ? `--port=${options.port}` : '';
10
+ const command = `export ${envKey}=${envPath} && npx nx run ${context.projectName}:serve ${inspectStatement}`;
11
+ console.log(command);
12
+ (0, child_process_1.execSync)(command, { stdio: 'inherit' });
13
+ return {
14
+ success: true,
15
+ };
16
+ }
17
+ catch (error) {
18
+ return {
19
+ success: false,
20
+ };
21
+ }
22
+ });
23
+ exports.default = runExecutor;
17
24
  //# sourceMappingURL=executor.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/local/executor.ts"],"names":[],"mappings":";;;AAAA,uCAGoB;AACpB,iDAA0C;AAE1C,mFAAqE;AACrE,yFAA4E;AAE5E,kBAAe,IAAA,2CAAe,EAAC,CAC7B,OAAuB,EACvB,OAAwB,EACxB,EAAE;IACF,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAEvC,IAAA,oCAAW,EAAC,OAAO,CAAC,CAAC;IAErB,MAAM,gBAAgB,GAAG,SAAS,CAAC,CAAC,CAAC,UAAU,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAEhE,MAAM,OAAO,GAAG,cAAc,OAAO,CAAC,WAAW,UAAU,gBAAgB,EAAE,CAAC;IAE9E,eAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAEtB,MAAM,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAE9C,IAAA,yBAAS,EAAC,OAAO,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;AACjD,CAAC,CAAA,CAAC,CAAC"}
1
+ {"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/local/executor.ts"],"names":[],"mappings":";;;AAIA,iDAAyC;AAGzC,MAAM,WAAW,GAAoC,CACnD,OAAuB,EACvB,OAAwB,EACxB,EAAE;IACF,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;IAE7C,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAEpC,IAAI,CAAC;QACH,MAAM,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACtE,MAAM,OAAO,GAAG,UAAU,MAAM,IAAI,OAAO,kBAAkB,OAAO,CAAC,WAAW,UAAU,gBAAgB,EAAE,CAAC;QAC7G,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACrB,IAAA,wBAAQ,EAAC,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QAExC,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,CAAA;AAED,kBAAe,WAAW,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export interface ExecutorSchema {
2
- debugPort?: number;
3
- envFile?: string;
2
+ envPath: string;
3
+ envKey: string;
4
+ port?: number;
4
5
  }
@@ -5,14 +5,21 @@
5
5
  "description": "",
6
6
  "type": "object",
7
7
  "properties": {
8
+ "envPath": {
9
+ "type": "string",
10
+ "description": "Path and name of the .env file to load"
11
+ },
12
+ "envKey": {
13
+ "type": "string",
14
+ "description": "Name of the environment variable that points to the location of the envFile"
15
+ },
8
16
  "debugPort": {
9
17
  "type": "number",
10
18
  "description": "Debug port"
11
- },
12
- "envFile": {
13
- "type": "string",
14
- "description": "Path and name of the .env file to load"
15
19
  }
16
20
  },
17
- "required": []
21
+ "required": [
22
+ "envPath",
23
+ "envKey"
24
+ ]
18
25
  }
@@ -1,3 +1,4 @@
1
+ import { PromiseExecutor } from '@nx/devkit';
1
2
  import { ExecutorSchema } from './schema';
2
- declare const _default: import("@nx/devkit").PromiseExecutor<ExecutorSchema>;
3
- export default _default;
3
+ declare const runExecutor: PromiseExecutor<ExecutorSchema>;
4
+ export default runExecutor;
@@ -3,15 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const child_process_1 = require("child_process");
6
- const executor_factory_function_1 = require("../../functions/executor-factory.function");
7
- const load_env_file_function_1 = require("../../functions/load-env-file.function");
8
- const extract_project_configuration_function_1 = require("../../functions/extract-project-configuration.function");
9
- exports.default = (0, executor_factory_function_1.executorFactory)((options, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
10
- const { envFile } = options;
11
- (0, load_env_file_function_1.loadEnvFile)(envFile);
12
- const root = (0, extract_project_configuration_function_1.extractProjectConfiguration)(context, context.projectName).root;
13
- const command = `playwright test -c ${root}/playwright.config.ts`;
14
- devkit_1.logger.info(command);
15
- (0, child_process_1.execSync)(command, { stdio: 'inherit' });
16
- }));
6
+ const get_project_path_from_name_function_1 = require("../../utils/get-project-path-from-name.function");
7
+ const runExecutor = (options, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
8
+ try {
9
+ const command = `playwright test -c ${(0, get_project_path_from_name_function_1.getProjectPathFromName)(context.projectName)}/playwright.config.ts`;
10
+ devkit_1.logger.info(command);
11
+ (0, child_process_1.execSync)(command, { stdio: 'inherit' });
12
+ return {
13
+ success: true,
14
+ };
15
+ }
16
+ catch (error) {
17
+ return { success: false };
18
+ }
19
+ });
20
+ exports.default = runExecutor;
17
21
  //# sourceMappingURL=executor.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/playwright/executor.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAEpC,iDAAyC;AACzC,yFAA4E;AAC5E,mFAAqE;AACrE,mHAAqG;AAErG,kBAAe,IAAA,2CAAe,EAAC,CAAO,OAAuB,EAAE,OAAO,EAAE,EAAE;IACxE,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAE5B,IAAA,oCAAW,EAAC,OAAO,CAAC,CAAC;IAErB,MAAM,IAAI,GAAG,IAAA,oEAA2B,EAAC,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC;IAE5E,MAAM,OAAO,GAAG,sBAAsB,IAAI,uBAAuB,CAAC;IAElE,eAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAErB,IAAA,wBAAQ,EAAC,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;AAC1C,CAAC,CAAA,CAAC,CAAC"}
1
+ {"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/playwright/executor.ts"],"names":[],"mappings":";;;AAAA,uCAAqD;AAErD,iDAAyC;AACzC,yGAAyF;AAEzF,MAAM,WAAW,GAAoC,CAAO,OAAO,EAAE,OAAO,EAAE,EAAE;IAC9E,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,sBAAsB,IAAA,4DAAsB,EAAC,OAAO,CAAC,WAAY,CAAC,uBAAuB,CAAC;QAE1G,eAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAErB,IAAA,wBAAQ,EAAC,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QAExC,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 +1,2 @@
1
1
  export interface ExecutorSchema {
2
- envFile?: string;
3
2
  }
@@ -1,14 +1,10 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/schema",
3
3
  "version": 2,
4
- "title": "Playwright executor",
4
+ "title": "Gen executor",
5
5
  "description": "",
6
6
  "type": "object",
7
7
  "properties": {
8
- "envFile": {
9
- "type": "string",
10
- "description": "Path and name of the .env file to load"
11
- }
12
8
  },
13
9
  "required": []
14
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"add-db-target.function.js","sourceRoot":"","sources":["../../../../onix/src/inference/add-db-target.function.ts"],"names":[],"mappings":";;AAIA,kCA2BC;AA7BD,wFAA0E;AAE1E,SAAgB,WAAW,CAAC,WAAmB,EAAE,MAA8B,EAAE,OAAiD,EAAE,WAAgB,EAAE,WAAW;IAC/J,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;IAElD,IAAI,aAAa,EAAE,CAAC;QAClB,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;YACtC,MAAM,UAAU,GAAG,WAAW,CAAC,WAAW,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,IAAI,WAAW,EAAE,CAAC;YAEjG,OAAO,CAAC,UAAU,CAAC,GAAG;gBACpB,OAAO,EAAE,UAAU,MAAM,IAAI,OAAO,6BAA6B,aAAa,cAAc,WAAW,WAAW;gBAClH,OAAO,EAAE,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,EAAE;gBAC/B,KAAK,EAAE,IAAI;gBACX,SAAS,EAAE,CAAC,IAAI,4CAAe,EAAE,CAAC;gBAClC,MAAM,EAAE;oBACN,GAAG,CAAC,YAAY,IAAI,WAAW;wBAC7B,CAAC,CAAC,CAAC,YAAY,EAAE,aAAa,CAAC;wBAC/B,CAAC,CAAC,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;oBAC5B;wBACE,oBAAoB,EAAE,EAAE;qBACzB;iBACF;gBACD,QAAQ,EAAE;oBACR,YAAY,EAAE,CAAC,kBAAkB,EAAE,KAAK,CAAC;oBACzC,WAAW,EAAE,+BAA+B;iBAC7C;aACF,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"add-db-target.function.js","sourceRoot":"","sources":["../../../../onix/src/functions/add-db-target.function.ts"],"names":[],"mappings":";;AAIA,kCA2BC;AA7BD,wFAA0E;AAE1E,SAAgB,WAAW,CAAC,WAAmB,EAAE,MAA8B,EAAE,OAAiD,EAAE,WAAgB,EAAE,WAAW;IAC/J,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;IAElD,IAAI,aAAa,EAAE,CAAC;QAClB,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;YACtC,MAAM,UAAU,GAAG,WAAW,CAAC,WAAW,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,IAAI,WAAW,EAAE,CAAC;YAEjG,OAAO,CAAC,UAAU,CAAC,GAAG;gBACpB,OAAO,EAAE,UAAU,MAAM,IAAI,OAAO,6BAA6B,aAAa,cAAc,WAAW,WAAW;gBAClH,OAAO,EAAE,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,EAAE;gBAC/B,KAAK,EAAE,IAAI;gBACX,SAAS,EAAE,CAAC,IAAI,4CAAe,EAAE,CAAC;gBAClC,MAAM,EAAE;oBACN,GAAG,CAAC,YAAY,IAAI,WAAW;wBAC7B,CAAC,CAAC,CAAC,YAAY,EAAE,aAAa,CAAC;wBAC/B,CAAC,CAAC,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;oBAC5B;wBACE,oBAAoB,EAAE,EAAE;qBACzB;iBACF;gBACD,QAAQ,EAAE;oBACR,YAAY,EAAE,CAAC,kBAAkB,EAAE,KAAK,CAAC;oBACzC,WAAW,EAAE,+BAA+B;iBAC7C;aACF,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;AACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"add-db-targets.function.js","sourceRoot":"","sources":["../../../../onix/src/inference/add-db-targets.function.ts"],"names":[],"mappings":";;AAIA,oCAIC;AAND,qEAAuD;AAEvD,SAAgB,YAAY,CAAC,UAAuB,EAAE,OAAiD,EAAE,WAAgB,EAAE,WAAW;IAClI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,EAAE,MAAM,CAAC,EAAE,EAAE;QAC5E,IAAA,oCAAW,EAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;AACP,CAAC"}
1
+ {"version":3,"file":"add-db-targets.function.js","sourceRoot":"","sources":["../../../../onix/src/functions/add-db-targets.function.ts"],"names":[],"mappings":";;AAIA,oCAIC;AAND,qEAAuD;AAEvD,SAAgB,YAAY,CAAC,UAAuB,EAAE,OAAiD,EAAE,WAAgB,EAAE,WAAW;IAClI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,EAAE,MAAM,CAAC,EAAE,EAAE;QAC5E,IAAA,oCAAW,EAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"add-docker-deploy-target.function.js","sourceRoot":"","sources":["../../../../onix/src/inference/add-docker-deploy-target.function.ts"],"names":[],"mappings":";;AAGA,sDAmBC;AAnBD,SAAgB,qBAAqB,CAAC,WAAmB,EAAE,MAA8B,EAAE,OAAiD,EAAE,WAAgB,EAAE,WAAW;IACvK,MAAM,UAAU,GAAG,sBAAsB,WAAW,EAAE,CAAC;IACvD,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC;IAE9D,MAAM,OAAO,GAAG,mBAAmB,GAAG,OAAO,cAAc,qBAAqB,GAAG,EAAE,CAAC;IAEtF,IAAI,GAAG,IAAI,cAAc,EAAE,CAAC;QACxB,OAAO,CAAC,UAAU,CAAC,GAAG;YAClB,OAAO,EAAE,aAAa;YACtB,OAAO,EAAE,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,EAAE;YAC/B,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,EAAE;YACV,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE;gBACN,YAAY,EAAE,CAAC,QAAQ,CAAC;gBACxB,WAAW,EAAE,gEAAgE;aAChF;SACJ,CAAC;IACN,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"add-docker-deploy-target.function.js","sourceRoot":"","sources":["../../../../onix/src/functions/add-docker-deploy-target.function.ts"],"names":[],"mappings":";;AAGA,sDAmBC;AAnBD,SAAgB,qBAAqB,CAAC,WAAmB,EAAE,MAA8B,EAAE,OAAiD,EAAE,WAAgB,EAAE,WAAW;IACvK,MAAM,UAAU,GAAG,sBAAsB,WAAW,EAAE,CAAC;IACvD,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC;IAE9D,MAAM,OAAO,GAAG,mBAAmB,GAAG,OAAO,cAAc,qBAAqB,GAAG,EAAE,CAAC;IAEtF,IAAI,GAAG,IAAI,cAAc,EAAE,CAAC;QACxB,OAAO,CAAC,UAAU,CAAC,GAAG;YAClB,OAAO,EAAE,aAAa;YACtB,OAAO,EAAE,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,EAAE;YAC/B,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,EAAE;YACV,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE;gBACN,YAAY,EAAE,CAAC,QAAQ,CAAC;gBACxB,WAAW,EAAE,gEAAgE;aAChF;SACJ,CAAC;IACN,CAAC;AACL,CAAC"}