@catladder/pipeline 1.0.0 → 1.0.4

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 (86) hide show
  1. package/package.json +1 -1
  2. package/src/build/docker.ts +7 -3
  3. package/src/deploy/kubernetes/deployJob.ts +1 -0
  4. package/dist/build/base/constants.d.ts +0 -7
  5. package/dist/build/base/constants.js +0 -11
  6. package/dist/build/base/createBuildJob.d.ts +0 -5
  7. package/dist/build/base/createBuildJob.js +0 -99
  8. package/dist/build/docker.d.ts +0 -5
  9. package/dist/build/docker.js +0 -95
  10. package/dist/build/index.d.ts +0 -12
  11. package/dist/build/index.js +0 -63
  12. package/dist/build/node/buildJob.d.ts +0 -3
  13. package/dist/build/node/buildJob.js +0 -97
  14. package/dist/build/node/cache.d.ts +0 -4
  15. package/dist/build/node/cache.js +0 -67
  16. package/dist/build/node/constants.d.ts +0 -6
  17. package/dist/build/node/constants.js +0 -10
  18. package/dist/build/node/index.d.ts +0 -5
  19. package/dist/build/node/index.js +0 -63
  20. package/dist/build/node/meteor.d.ts +0 -3
  21. package/dist/build/node/meteor.js +0 -103
  22. package/dist/build/node/testJob.d.ts +0 -3
  23. package/dist/build/node/testJob.js +0 -112
  24. package/dist/build/node/yarn.d.ts +0 -2
  25. package/dist/build/node/yarn.js +0 -12
  26. package/dist/build/tests/storybook.test.d.ts +0 -1
  27. package/dist/build/tests/storybook.test.js +0 -221
  28. package/dist/build/types.d.ts +0 -63
  29. package/dist/build/types.js +0 -16
  30. package/dist/catladder-gitlab.d.ts +0 -1
  31. package/dist/catladder-gitlab.js +0 -44
  32. package/dist/config/configruedEnvs.d.ts +0 -4
  33. package/dist/config/configruedEnvs.js +0 -86
  34. package/dist/config/configruedEnvs.test.d.ts +0 -1
  35. package/dist/config/configruedEnvs.test.js +0 -103
  36. package/dist/config/index.d.ts +0 -2
  37. package/dist/config/index.js +0 -24
  38. package/dist/config/readConfig.d.ts +0 -2
  39. package/dist/config/readConfig.js +0 -47
  40. package/dist/constants.d.ts +0 -2
  41. package/dist/constants.js +0 -6
  42. package/dist/context/index.d.ts +0 -5
  43. package/dist/context/index.js +0 -211
  44. package/dist/defaults/index.d.ts +0 -2
  45. package/dist/defaults/index.js +0 -8
  46. package/dist/deploy/base.d.ts +0 -9
  47. package/dist/deploy/base.js +0 -94
  48. package/dist/deploy/index.d.ts +0 -11
  49. package/dist/deploy/index.js +0 -34
  50. package/dist/deploy/kubernetes/cloudsql.d.ts +0 -6
  51. package/dist/deploy/kubernetes/cloudsql.js +0 -16
  52. package/dist/deploy/kubernetes/deployJob.d.ts +0 -3
  53. package/dist/deploy/kubernetes/deployJob.js +0 -148
  54. package/dist/deploy/kubernetes/index.d.ts +0 -1
  55. package/dist/deploy/kubernetes/index.js +0 -22
  56. package/dist/deploy/kubernetes/mongodb.d.ts +0 -15
  57. package/dist/deploy/kubernetes/mongodb.js +0 -23
  58. package/dist/deploy/types.d.ts +0 -92
  59. package/dist/deploy/types.js +0 -16
  60. package/dist/index.d.ts +0 -8
  61. package/dist/index.js +0 -36
  62. package/dist/pipeline/createChildPipeline.d.ts +0 -9
  63. package/dist/pipeline/createChildPipeline.js +0 -266
  64. package/dist/pipeline/createChildPipeline.test.d.ts +0 -1
  65. package/dist/pipeline/createChildPipeline.test.js +0 -199
  66. package/dist/pipeline/createJobs.d.ts +0 -3
  67. package/dist/pipeline/createJobs.js +0 -331
  68. package/dist/pipeline/index.d.ts +0 -2
  69. package/dist/pipeline/index.js +0 -24
  70. package/dist/pipeline/yarnInfo.d.ts +0 -2
  71. package/dist/pipeline/yarnInfo.js +0 -296
  72. package/dist/rules/index.d.ts +0 -3
  73. package/dist/rules/index.js +0 -27
  74. package/dist/runner/index.d.ts +0 -3
  75. package/dist/runner/index.js +0 -12
  76. package/dist/tsconfig.tsbuildinfo +0 -1
  77. package/dist/types/config.d.ts +0 -73
  78. package/dist/types/config.js +0 -80
  79. package/dist/types/context.d.ts +0 -36
  80. package/dist/types/context.js +0 -3
  81. package/dist/types/gitlab-types.d.ts +0 -86
  82. package/dist/types/gitlab-types.js +0 -5
  83. package/dist/types/index.d.ts +0 -3
  84. package/dist/types/index.js +0 -26
  85. package/dist/utils/index.d.ts +0 -2
  86. package/dist/utils/index.js +0 -18
@@ -1,86 +0,0 @@
1
- export declare type Artifacts = {
2
- paths: string[];
3
- };
4
- export declare type GitlabJobCache = {
5
- key: string;
6
- policy?: string;
7
- paths: string[];
8
- };
9
- export declare type GitlabRule = {
10
- if?: string;
11
- when?: "always" | "on_success" | "manual" | "never";
12
- allow_failure?: boolean;
13
- };
14
- export declare type Retry = {
15
- max: number;
16
- when: string[];
17
- };
18
- export declare type Service = {
19
- name: string;
20
- command: string[];
21
- };
22
- export declare type GitlabEnvironment = {
23
- url: string;
24
- name: string;
25
- kubernetes?: {
26
- namespace?: string;
27
- };
28
- action?: "stop" | "start" | "prepare";
29
- on_stop?: string;
30
- auto_stop_in?: string;
31
- };
32
- export declare type GitlabJobDef = {
33
- stage: string;
34
- before_script?: string[];
35
- script: (string | undefined)[];
36
- interruptible?: boolean;
37
- needs?: Array<string | {
38
- job: string;
39
- artifacts: boolean;
40
- }>;
41
- rules?: GitlabRule[];
42
- cache?: GitlabJobCache | GitlabJobCache[];
43
- artifacts?: Artifacts;
44
- retry?: Retry;
45
- services?: Service[];
46
- image?: string;
47
- variables?: GitlabVariables;
48
- dependencies?: string[];
49
- environment?: GitlabEnvironment;
50
- allow_failure?: boolean;
51
- trigger?: {
52
- strategy: "depend";
53
- include: Array<{
54
- artifact: string;
55
- job: string;
56
- }>;
57
- };
58
- };
59
- export declare const GITLAB_BASE_STAGES: readonly ["setup", "test", "build", "deploy", "verify", "stop"];
60
- export declare type GitlabBaseStage = typeof GITLAB_BASE_STAGES[number];
61
- export declare type GitlabVariables = Record<string, string | undefined>;
62
- export declare type GitlabJob = {
63
- /**
64
- * the name of the job (without any env or app prefix and suffix)
65
- */
66
- name: string;
67
- /**
68
- * envMode sets the behavior of the job regarding multiple envs:
69
- * - none: the job does not run per env, but once for all envs
70
- * - jobPerEnv: the job runs once per env
71
- * - stagePerEnv: the job runs once per env and is organized in its own stage. This mproves usability in gitlab, but works the same as `jobPerEnv`
72
- */
73
-
74
- envMode: "jobPerEnv" | "stagePerEnv" | "none";
75
- job: GitlabJobDef;
76
- needsStages?: {
77
- stage: GitlabBaseStage;
78
- artifacts?: boolean;
79
- }[];
80
- };
81
- export declare type GitlabJobs = GitlabJob[];
82
- export declare type GitlabPipeline = {
83
- variables: GitlabVariables;
84
- stages: string[];
85
- jobs: GitlabJobs;
86
- };
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.GITLAB_BASE_STAGES = void 0;
5
- exports.GITLAB_BASE_STAGES = ["setup", "test", "build", "deploy", "verify", "stop"];
@@ -1,3 +0,0 @@
1
- export * from "./config";
2
- export * from "./gitlab-types";
3
- export * from "./context";
@@ -1,26 +0,0 @@
1
- "use strict";
2
-
3
- var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- Object.defineProperty(o, k2, {
6
- enumerable: true,
7
- get: function () {
8
- return m[k];
9
- }
10
- });
11
- } : function (o, m, k, k2) {
12
- if (k2 === undefined) k2 = k;
13
- o[k2] = m[k];
14
- });
15
-
16
- var __exportStar = this && this.__exportStar || function (m, exports) {
17
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
18
- };
19
-
20
- exports.__esModule = true;
21
-
22
- __exportStar(require("./config"), exports);
23
-
24
- __exportStar(require("./gitlab-types"), exports);
25
-
26
- __exportStar(require("./context"), exports);
@@ -1,2 +0,0 @@
1
- export declare function notNil<TValue>(value: TValue | null | undefined): value is TValue;
2
- export declare const ensureArray: <T>(s: T | T[]) => T[] | null;
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.ensureArray = exports.notNil = void 0;
5
-
6
- var lodash_1 = require("lodash");
7
-
8
- function notNil(value) {
9
- return value !== null && value !== undefined;
10
- }
11
-
12
- exports.notNil = notNil;
13
-
14
- var ensureArray = function (s) {
15
- return (0, lodash_1.isNil)(s) ? null : Array.isArray(s) ? s : [s];
16
- };
17
-
18
- exports.ensureArray = ensureArray;