@storm-software/k8s-tools 0.0.1
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/LICENSE +201 -0
- package/README.md +7 -0
- package/executors.json +9 -0
- package/generators.json +14 -0
- package/index.js +4109 -0
- package/meta.json +1 -0
- package/package.json +71 -0
- package/packages/build-tools/src/build/index.d.ts +3 -0
- package/packages/build-tools/src/build/rolldown.d.ts +20 -0
- package/packages/build-tools/src/build/ts-build.d.ts +20 -0
- package/packages/build-tools/src/build/unbuild.d.ts +20 -0
- package/packages/build-tools/src/cli/index.d.ts +2 -0
- package/packages/build-tools/src/config/browser-config.d.ts +2 -0
- package/packages/build-tools/src/config/default-config.d.ts +2 -0
- package/packages/build-tools/src/config/get-config.d.ts +2 -0
- package/packages/build-tools/src/config/get-rolldown-config.d.ts +6 -0
- package/packages/build-tools/src/config/get-unbuild-config.d.ts +6 -0
- package/packages/build-tools/src/config/index.d.ts +7 -0
- package/packages/build-tools/src/config/neutral-config.d.ts +2 -0
- package/packages/build-tools/src/config/node-config.d.ts +3 -0
- package/packages/build-tools/src/index.d.ts +6 -0
- package/packages/build-tools/src/plugins/analyze-plugin.d.ts +4 -0
- package/packages/build-tools/src/plugins/index.d.ts +4 -0
- package/packages/build-tools/src/plugins/swc-plugin.d.ts +2 -0
- package/packages/build-tools/src/plugins/ts-resolve.d.ts +6 -0
- package/packages/build-tools/src/plugins/type-definitions.d.ts +7 -0
- package/packages/build-tools/src/types.d.ts +213 -0
- package/packages/build-tools/src/utils/apply-default-options.d.ts +6 -0
- package/packages/build-tools/src/utils/generate-package-json.d.ts +7 -0
- package/packages/build-tools/src/utils/get-entry-points.d.ts +3 -0
- package/packages/build-tools/src/utils/get-file-banner.d.ts +8 -0
- package/packages/build-tools/src/utils/get-project-deps.d.ts +5 -0
- package/packages/build-tools/src/utils/index.d.ts +7 -0
- package/packages/build-tools/src/utils/out-extension.d.ts +8 -0
- package/packages/build-tools/src/utils/run-tsup-build.d.ts +3 -0
- package/packages/build-tools/src/utils/task-graph.d.ts +6 -0
- package/packages/config/src/constants.d.ts +3 -0
- package/packages/config/src/define-config.d.ts +174 -0
- package/packages/config/src/index.d.ts +12 -0
- package/packages/config/src/schema.d.ts +1915 -0
- package/packages/config/src/types.d.ts +23 -0
- package/packages/config-tools/src/config-file/get-config-file.d.ts +16 -0
- package/packages/config-tools/src/config-file/index.d.ts +1 -0
- package/packages/config-tools/src/create-storm-config.d.ts +26 -0
- package/packages/config-tools/src/env/get-env.d.ts +15 -0
- package/packages/config-tools/src/env/index.d.ts +2 -0
- package/packages/config-tools/src/env/set-env.d.ts +14 -0
- package/packages/config-tools/src/index.d.ts +13 -0
- package/packages/config-tools/src/types.d.ts +33 -0
- package/packages/config-tools/src/utilities/apply-workspace-tokens.d.ts +4 -0
- package/packages/config-tools/src/utilities/chalk.d.ts +23 -0
- package/packages/config-tools/src/utilities/correct-paths.d.ts +1 -0
- package/packages/config-tools/src/utilities/file-path-utils.d.ts +2 -0
- package/packages/config-tools/src/utilities/find-up.d.ts +4 -0
- package/packages/config-tools/src/utilities/find-workspace-root.d.ts +14 -0
- package/packages/config-tools/src/utilities/get-default-config.d.ts +15 -0
- package/packages/config-tools/src/utilities/get-log-level.d.ts +15 -0
- package/packages/config-tools/src/utilities/index.d.ts +10 -0
- package/packages/config-tools/src/utilities/logger.d.ts +74 -0
- package/packages/config-tools/src/utilities/process-handler.d.ts +4 -0
- package/packages/config-tools/src/utilities/run.d.ts +18 -0
- package/packages/k8s-tools/index.d.ts +1 -0
- package/packages/k8s-tools/src/executors/helm-package/executor.d.ts +8 -0
- package/packages/k8s-tools/src/executors/index.d.ts +1 -0
- package/packages/k8s-tools/src/generators/helm-chart/generator.d.ts +5 -0
- package/packages/k8s-tools/src/generators/helm-dependency/generator.d.ts +5 -0
- package/packages/k8s-tools/src/generators/index.d.ts +2 -0
- package/packages/k8s-tools/src/index.d.ts +2 -0
- package/packages/k8s-tools/src/types.d.ts +28 -0
- package/packages/k8s-tools/src/utils/client.d.ts +26 -0
- package/packages/k8s-tools/src/utils/ensure-init.d.ts +9 -0
- package/packages/k8s-tools/src/utils/prettier.d.ts +9 -0
- package/packages/workspace-tools/index.d.ts +32 -0
- package/packages/workspace-tools/src/base/base-executor.d.ts +7 -0
- package/packages/workspace-tools/src/base/base-generator.d.ts +4 -0
- package/packages/workspace-tools/src/base/index.d.ts +3 -0
- package/packages/workspace-tools/src/base/typescript-library-generator.d.ts +8 -0
- package/packages/workspace-tools/src/executors/cargo-publish/executor.d.ts +6 -0
- package/packages/workspace-tools/src/executors/clean-package/constants.d.ts +4 -0
- package/packages/workspace-tools/src/executors/clean-package/executor.d.ts +8 -0
- package/packages/workspace-tools/src/executors/clean-package/types.d.ts +8 -0
- package/packages/workspace-tools/src/executors/clean-package/utils.d.ts +4 -0
- package/packages/workspace-tools/src/executors/npm-publish/executor.d.ts +6 -0
- package/packages/workspace-tools/src/executors/rolldown/executor.d.ts +9 -0
- package/packages/workspace-tools/src/executors/size-limit/executor.d.ts +8 -0
- package/packages/workspace-tools/src/executors/tsup/executor.d.ts +8 -0
- package/packages/workspace-tools/src/executors/tsup-browser/executor.d.ts +8 -0
- package/packages/workspace-tools/src/executors/tsup-neutral/executor.d.ts +8 -0
- package/packages/workspace-tools/src/executors/tsup-node/executor.d.ts +8 -0
- package/packages/workspace-tools/src/executors/typia/executor.d.ts +8 -0
- package/packages/workspace-tools/src/executors/unbuild/executor.d.ts +9 -0
- package/packages/workspace-tools/src/generators/config-schema/generator.d.ts +13 -0
- package/packages/workspace-tools/src/generators/init/init.d.ts +4 -0
- package/packages/workspace-tools/src/generators/node-library/generator.d.ts +5 -0
- package/packages/workspace-tools/src/generators/preset/generator.d.ts +5 -0
- package/packages/workspace-tools/src/generators/release-version/generator.d.ts +13 -0
- package/packages/workspace-tools/src/utils/apply-workspace-tokens.d.ts +8 -0
- package/packages/workspace-tools/src/utils/cargo.d.ts +26 -0
- package/packages/workspace-tools/src/utils/create-cli-options.d.ts +1 -0
- package/packages/workspace-tools/src/utils/get-project-configurations.d.ts +13 -0
- package/packages/workspace-tools/src/utils/index.d.ts +9 -0
- package/packages/workspace-tools/src/utils/lock-file.d.ts +23 -0
- package/packages/workspace-tools/src/utils/project-tags.d.ts +30 -0
- package/packages/workspace-tools/src/utils/toml.d.ts +167 -0
- package/packages/workspace-tools/src/utils/typia-transform.d.ts +2 -0
- package/packages/workspace-tools/src/utils/versions.d.ts +18 -0
- package/src/executors/helm-package/executor.js +1244 -0
- package/src/executors/helm-package/schema.d.ts +29 -0
- package/src/executors/helm-package/schema.json +112 -0
- package/src/generators/helm-chart/files/chart/.helmignore +23 -0
- package/src/generators/helm-chart/files/chart/Chart.yaml.template +6 -0
- package/src/generators/helm-chart/files/chart/templates/NOTES.txt +22 -0
- package/src/generators/helm-chart/files/chart/templates/_helpers.yaml +62 -0
- package/src/generators/helm-chart/files/chart/templates/deployment.yaml +68 -0
- package/src/generators/helm-chart/files/chart/templates/hpa.yaml +32 -0
- package/src/generators/helm-chart/files/chart/templates/ingress.yaml +61 -0
- package/src/generators/helm-chart/files/chart/templates/service.yaml +13 -0
- package/src/generators/helm-chart/files/chart/templates/serviceaccount.yaml +13 -0
- package/src/generators/helm-chart/files/chart/templates/test/test-connection.yaml +15 -0
- package/src/generators/helm-chart/files/chart/values.yaml +111 -0
- package/src/generators/helm-chart/generator.js +131 -0
- package/src/generators/helm-chart/schema.d.ts +11 -0
- package/src/generators/helm-chart/schema.json +48 -0
- package/src/generators/helm-dependency/generator.js +2805 -0
- package/src/generators/helm-dependency/schema.d.ts +15 -0
- package/src/generators/helm-dependency/schema.json +71 -0
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import type { StormConfigInput } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Type the config values for the current Storm workspace
|
|
4
|
+
*
|
|
5
|
+
* @param input - The config values for the current Storm workspace
|
|
6
|
+
* @returns The config values for the current Storm workspace
|
|
7
|
+
*/
|
|
8
|
+
export declare const defineConfig: (input: StormConfigInput) => {
|
|
9
|
+
colors: {
|
|
10
|
+
dark: {
|
|
11
|
+
foreground?: string | undefined;
|
|
12
|
+
background?: string | undefined;
|
|
13
|
+
brand?: string | undefined;
|
|
14
|
+
brand2?: string | undefined;
|
|
15
|
+
brand3?: string | undefined;
|
|
16
|
+
accent?: string | undefined;
|
|
17
|
+
help?: string | undefined;
|
|
18
|
+
success?: string | undefined;
|
|
19
|
+
info?: string | undefined;
|
|
20
|
+
warning?: string | undefined;
|
|
21
|
+
error?: string | undefined;
|
|
22
|
+
fatal?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
light: {
|
|
25
|
+
foreground?: string | undefined;
|
|
26
|
+
background?: string | undefined;
|
|
27
|
+
brand?: string | undefined;
|
|
28
|
+
brand2?: string | undefined;
|
|
29
|
+
brand3?: string | undefined;
|
|
30
|
+
accent?: string | undefined;
|
|
31
|
+
help?: string | undefined;
|
|
32
|
+
success?: string | undefined;
|
|
33
|
+
info?: string | undefined;
|
|
34
|
+
warning?: string | undefined;
|
|
35
|
+
error?: string | undefined;
|
|
36
|
+
fatal?: string | undefined;
|
|
37
|
+
};
|
|
38
|
+
} | {
|
|
39
|
+
brand?: string | undefined;
|
|
40
|
+
brand2?: string | undefined;
|
|
41
|
+
brand3?: string | undefined;
|
|
42
|
+
accent?: string | undefined;
|
|
43
|
+
help?: string | undefined;
|
|
44
|
+
success?: string | undefined;
|
|
45
|
+
info?: string | undefined;
|
|
46
|
+
warning?: string | undefined;
|
|
47
|
+
error?: string | undefined;
|
|
48
|
+
fatal?: string | undefined;
|
|
49
|
+
dark?: string | undefined;
|
|
50
|
+
light?: string | undefined;
|
|
51
|
+
} | {
|
|
52
|
+
base: {
|
|
53
|
+
dark: {
|
|
54
|
+
foreground?: string | undefined;
|
|
55
|
+
background?: string | undefined;
|
|
56
|
+
brand?: string | undefined;
|
|
57
|
+
brand2?: string | undefined;
|
|
58
|
+
brand3?: string | undefined;
|
|
59
|
+
accent?: string | undefined;
|
|
60
|
+
help?: string | undefined;
|
|
61
|
+
success?: string | undefined;
|
|
62
|
+
info?: string | undefined;
|
|
63
|
+
warning?: string | undefined;
|
|
64
|
+
error?: string | undefined;
|
|
65
|
+
fatal?: string | undefined;
|
|
66
|
+
};
|
|
67
|
+
light: {
|
|
68
|
+
foreground?: string | undefined;
|
|
69
|
+
background?: string | undefined;
|
|
70
|
+
brand?: string | undefined;
|
|
71
|
+
brand2?: string | undefined;
|
|
72
|
+
brand3?: string | undefined;
|
|
73
|
+
accent?: string | undefined;
|
|
74
|
+
help?: string | undefined;
|
|
75
|
+
success?: string | undefined;
|
|
76
|
+
info?: string | undefined;
|
|
77
|
+
warning?: string | undefined;
|
|
78
|
+
error?: string | undefined;
|
|
79
|
+
fatal?: string | undefined;
|
|
80
|
+
};
|
|
81
|
+
} | {
|
|
82
|
+
brand?: string | undefined;
|
|
83
|
+
brand2?: string | undefined;
|
|
84
|
+
brand3?: string | undefined;
|
|
85
|
+
accent?: string | undefined;
|
|
86
|
+
help?: string | undefined;
|
|
87
|
+
success?: string | undefined;
|
|
88
|
+
info?: string | undefined;
|
|
89
|
+
warning?: string | undefined;
|
|
90
|
+
error?: string | undefined;
|
|
91
|
+
fatal?: string | undefined;
|
|
92
|
+
dark?: string | undefined;
|
|
93
|
+
light?: string | undefined;
|
|
94
|
+
};
|
|
95
|
+
} | Record<string, {
|
|
96
|
+
dark: {
|
|
97
|
+
foreground?: string | undefined;
|
|
98
|
+
background?: string | undefined;
|
|
99
|
+
brand?: string | undefined;
|
|
100
|
+
brand2?: string | undefined;
|
|
101
|
+
brand3?: string | undefined;
|
|
102
|
+
accent?: string | undefined;
|
|
103
|
+
help?: string | undefined;
|
|
104
|
+
success?: string | undefined;
|
|
105
|
+
info?: string | undefined;
|
|
106
|
+
warning?: string | undefined;
|
|
107
|
+
error?: string | undefined;
|
|
108
|
+
fatal?: string | undefined;
|
|
109
|
+
};
|
|
110
|
+
light: {
|
|
111
|
+
foreground?: string | undefined;
|
|
112
|
+
background?: string | undefined;
|
|
113
|
+
brand?: string | undefined;
|
|
114
|
+
brand2?: string | undefined;
|
|
115
|
+
brand3?: string | undefined;
|
|
116
|
+
accent?: string | undefined;
|
|
117
|
+
help?: string | undefined;
|
|
118
|
+
success?: string | undefined;
|
|
119
|
+
info?: string | undefined;
|
|
120
|
+
warning?: string | undefined;
|
|
121
|
+
error?: string | undefined;
|
|
122
|
+
fatal?: string | undefined;
|
|
123
|
+
};
|
|
124
|
+
} | {
|
|
125
|
+
brand?: string | undefined;
|
|
126
|
+
brand2?: string | undefined;
|
|
127
|
+
brand3?: string | undefined;
|
|
128
|
+
accent?: string | undefined;
|
|
129
|
+
help?: string | undefined;
|
|
130
|
+
success?: string | undefined;
|
|
131
|
+
info?: string | undefined;
|
|
132
|
+
warning?: string | undefined;
|
|
133
|
+
error?: string | undefined;
|
|
134
|
+
fatal?: string | undefined;
|
|
135
|
+
dark?: string | undefined;
|
|
136
|
+
light?: string | undefined;
|
|
137
|
+
}>;
|
|
138
|
+
$schema?: string | undefined;
|
|
139
|
+
extends?: string | undefined;
|
|
140
|
+
name?: string | undefined;
|
|
141
|
+
namespace?: string | undefined;
|
|
142
|
+
organization?: string | undefined;
|
|
143
|
+
repository?: string | undefined;
|
|
144
|
+
license?: string | undefined;
|
|
145
|
+
homepage?: string | undefined;
|
|
146
|
+
docs?: string | undefined;
|
|
147
|
+
licensing?: string | undefined;
|
|
148
|
+
branch?: string | undefined;
|
|
149
|
+
preid?: string | undefined;
|
|
150
|
+
owner?: string | undefined;
|
|
151
|
+
worker?: string | undefined;
|
|
152
|
+
env?: "development" | "staging" | "production" | undefined;
|
|
153
|
+
workspaceRoot?: string | undefined;
|
|
154
|
+
packageDirectory?: string | undefined;
|
|
155
|
+
externalPackagePatterns?: string[] | undefined;
|
|
156
|
+
skipCache?: boolean | undefined;
|
|
157
|
+
cacheDirectory?: string | undefined;
|
|
158
|
+
buildDirectory?: string | undefined;
|
|
159
|
+
outputDirectory?: string | undefined;
|
|
160
|
+
runtimeVersion?: string | undefined;
|
|
161
|
+
packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
|
|
162
|
+
timezone?: string | undefined;
|
|
163
|
+
locale?: string | undefined;
|
|
164
|
+
logLevel?: "info" | "error" | "fatal" | "silent" | "warn" | "debug" | "trace" | "all" | undefined;
|
|
165
|
+
cloudflareAccountId?: string | null | undefined;
|
|
166
|
+
registry?: {
|
|
167
|
+
github?: string | undefined;
|
|
168
|
+
npm?: string | undefined;
|
|
169
|
+
cargo?: string | undefined;
|
|
170
|
+
cyclone?: string | undefined;
|
|
171
|
+
} | undefined;
|
|
172
|
+
configFile?: string | null | undefined;
|
|
173
|
+
extensions?: Record<string, any> | undefined;
|
|
174
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The config-schema library used by Storm Software for building TypeScript applications.
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* A package containing various utilities to support custom workspace configurations
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
*/
|
|
9
|
+
export * from "./constants";
|
|
10
|
+
export * from "./define-config";
|
|
11
|
+
export * from "./schema";
|
|
12
|
+
export * from "./types";
|