@storm-software/build-tools 0.152.1 → 0.153.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/README.md +1 -2
- package/dist/{chunk-CWUN5DID.mjs → chunk-CD62RCLQ.mjs} +550 -248
- package/dist/{chunk-3TEAAXLP.js → chunk-M5UNNISH.js} +550 -248
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/types-BL-PZK84.d.mts +226 -0
- package/dist/types-BL-PZK84.d.ts +226 -0
- package/dist/types.d.mts +2 -1
- package/dist/types.d.ts +2 -1
- package/dist/utilities/copy-assets.d.mts +2 -1
- package/dist/utilities/copy-assets.d.ts +2 -1
- package/dist/utilities/generate-package-json.d.mts +2 -1
- package/dist/utilities/generate-package-json.d.ts +2 -1
- package/dist/utilities/get-entry-points.d.mts +2 -1
- package/dist/utilities/get-entry-points.d.ts +2 -1
- package/dist/utilities/get-env.d.mts +2 -1
- package/dist/utilities/get-env.d.ts +2 -1
- package/dist/utilities/index.d.mts +2 -1
- package/dist/utilities/index.d.ts +2 -1
- package/dist/utilities/index.js +2 -2
- package/dist/utilities/index.mjs +1 -1
- package/dist/utilities/read-nx-config.js +2 -2
- package/dist/utilities/read-nx-config.mjs +1 -1
- package/package.json +2 -2
- package/dist/types-DWiPwz5j.d.mts +0 -218
- package/dist/types-DWiPwz5j.d.ts +0 -218
|
@@ -24,12 +24,8 @@ var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
|
24
24
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
25
25
|
var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
|
|
26
26
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
27
|
-
var STORM_DEFAULT_SOCIAL_TWITTER = "StormSoftwareHQ";
|
|
28
27
|
var STORM_DEFAULT_SOCIAL_DISCORD = "https://discord.gg/MQ6YVzakM5";
|
|
29
|
-
var STORM_DEFAULT_SOCIAL_TELEGRAM = "https://t.me/storm_software";
|
|
30
28
|
var STORM_DEFAULT_SOCIAL_SLACK = "https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA";
|
|
31
|
-
var STORM_DEFAULT_SOCIAL_MEDIUM = "https://medium.com/storm-software";
|
|
32
|
-
var STORM_DEFAULT_SOCIAL_GITHUB = "https://github.com/storm-software";
|
|
33
29
|
var STORM_DEFAULT_RELEASE_FOOTER = `
|
|
34
30
|
Storm Software is an open source software development organization with the mission is to make software development more accessible. Our ideal future is one where anyone can create software without years of prior development experience serving as a barrier to entry. We hope to achieve this via LLMs, Generative AI, and intuitive, high-level data modeling/programming languages.
|
|
35
31
|
|
|
@@ -38,234 +34,488 @@ Join us on [Discord](${STORM_DEFAULT_SOCIAL_DISCORD}) to chat with the team, rec
|
|
|
38
34
|
If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our [website](${STORM_DEFAULT_CONTACT}) or join our [Slack](${STORM_DEFAULT_SOCIAL_SLACK}) channel!
|
|
39
35
|
`;
|
|
40
36
|
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
37
|
+
var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
|
|
41
38
|
|
|
42
39
|
// ../config/src/schema.ts
|
|
43
|
-
import * as z from "zod";
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
|
|
40
|
+
import * as z from "zod/mini";
|
|
41
|
+
var schemaRegistry = z.registry();
|
|
42
|
+
var colorSchema = z.string().check(
|
|
43
|
+
z.length(7),
|
|
44
|
+
z.toLowerCase(),
|
|
45
|
+
z.regex(/^#([0-9a-f]{3}){1,2}$/i),
|
|
46
|
+
z.trim()
|
|
47
47
|
);
|
|
48
|
-
|
|
49
|
-
"
|
|
48
|
+
schemaRegistry.add(colorSchema, {
|
|
49
|
+
description: "A base schema for describing the format of colors"
|
|
50
|
+
});
|
|
51
|
+
var darkColorSchema = z._default(colorSchema, "#151718");
|
|
52
|
+
schemaRegistry.add(darkColorSchema, {
|
|
53
|
+
description: "The dark background color of the workspace"
|
|
54
|
+
});
|
|
55
|
+
var lightColorSchema = z._default(colorSchema, "#cbd5e1");
|
|
56
|
+
schemaRegistry.add(lightColorSchema, {
|
|
57
|
+
description: "The light background color of the workspace"
|
|
58
|
+
});
|
|
59
|
+
var brandColorSchema = z._default(colorSchema, "#1fb2a6");
|
|
60
|
+
schemaRegistry.add(brandColorSchema, {
|
|
61
|
+
description: "The primary brand specific color of the workspace"
|
|
62
|
+
});
|
|
63
|
+
var alternateColorSchema = z.optional(colorSchema);
|
|
64
|
+
schemaRegistry.add(alternateColorSchema, {
|
|
65
|
+
description: "The alternate brand specific color of the workspace"
|
|
66
|
+
});
|
|
67
|
+
var accentColorSchema = z.optional(colorSchema);
|
|
68
|
+
schemaRegistry.add(accentColorSchema, {
|
|
69
|
+
description: "The secondary brand specific color of the workspace"
|
|
70
|
+
});
|
|
71
|
+
var linkColorSchema = z._default(colorSchema, "#3fa6ff");
|
|
72
|
+
schemaRegistry.add(linkColorSchema, {
|
|
73
|
+
description: "The color used to display hyperlink text"
|
|
74
|
+
});
|
|
75
|
+
var helpColorSchema = z._default(colorSchema, "#818cf8");
|
|
76
|
+
schemaRegistry.add(helpColorSchema, {
|
|
77
|
+
description: "The second brand specific color of the workspace"
|
|
78
|
+
});
|
|
79
|
+
var successColorSchema = z._default(colorSchema, "#45b27e");
|
|
80
|
+
schemaRegistry.add(successColorSchema, {
|
|
81
|
+
description: "The success color of the workspace"
|
|
82
|
+
});
|
|
83
|
+
var infoColorSchema = z._default(colorSchema, "#38bdf8");
|
|
84
|
+
schemaRegistry.add(infoColorSchema, {
|
|
85
|
+
description: "The informational color of the workspace"
|
|
86
|
+
});
|
|
87
|
+
var warningColorSchema = z._default(colorSchema, "#f3d371");
|
|
88
|
+
schemaRegistry.add(warningColorSchema, {
|
|
89
|
+
description: "The warning color of the workspace"
|
|
90
|
+
});
|
|
91
|
+
var dangerColorSchema = z._default(colorSchema, "#d8314a");
|
|
92
|
+
schemaRegistry.add(dangerColorSchema, {
|
|
93
|
+
description: "The danger color of the workspace"
|
|
94
|
+
});
|
|
95
|
+
var fatalColorSchema = z.optional(colorSchema);
|
|
96
|
+
schemaRegistry.add(fatalColorSchema, {
|
|
97
|
+
description: "The fatal color of the workspace"
|
|
98
|
+
});
|
|
99
|
+
var positiveColorSchema = z._default(colorSchema, "#4ade80");
|
|
100
|
+
schemaRegistry.add(positiveColorSchema, {
|
|
101
|
+
description: "The positive number color of the workspace"
|
|
102
|
+
});
|
|
103
|
+
var negativeColorSchema = z._default(colorSchema, "#ef4444");
|
|
104
|
+
schemaRegistry.add(negativeColorSchema, {
|
|
105
|
+
description: "The negative number color of the workspace"
|
|
106
|
+
});
|
|
107
|
+
var gradientStopsSchema = z.optional(z.array(colorSchema));
|
|
108
|
+
schemaRegistry.add(gradientStopsSchema, {
|
|
109
|
+
description: "The color stops for the base gradient color pattern used in the workspace"
|
|
110
|
+
});
|
|
111
|
+
var darkColorsSchema = z.object({
|
|
112
|
+
foreground: lightColorSchema,
|
|
113
|
+
background: darkColorSchema,
|
|
114
|
+
brand: brandColorSchema,
|
|
115
|
+
alternate: alternateColorSchema,
|
|
116
|
+
accent: accentColorSchema,
|
|
117
|
+
link: linkColorSchema,
|
|
118
|
+
help: helpColorSchema,
|
|
119
|
+
success: successColorSchema,
|
|
120
|
+
info: infoColorSchema,
|
|
121
|
+
warning: warningColorSchema,
|
|
122
|
+
danger: dangerColorSchema,
|
|
123
|
+
fatal: fatalColorSchema,
|
|
124
|
+
positive: positiveColorSchema,
|
|
125
|
+
negative: negativeColorSchema,
|
|
126
|
+
gradient: gradientStopsSchema
|
|
127
|
+
});
|
|
128
|
+
var lightColorsSchema = z.object({
|
|
129
|
+
foreground: darkColorSchema,
|
|
130
|
+
background: lightColorSchema,
|
|
131
|
+
brand: brandColorSchema,
|
|
132
|
+
alternate: alternateColorSchema,
|
|
133
|
+
accent: accentColorSchema,
|
|
134
|
+
link: linkColorSchema,
|
|
135
|
+
help: helpColorSchema,
|
|
136
|
+
success: successColorSchema,
|
|
137
|
+
info: infoColorSchema,
|
|
138
|
+
warning: warningColorSchema,
|
|
139
|
+
danger: dangerColorSchema,
|
|
140
|
+
fatal: fatalColorSchema,
|
|
141
|
+
positive: positiveColorSchema,
|
|
142
|
+
negative: negativeColorSchema,
|
|
143
|
+
gradient: gradientStopsSchema
|
|
144
|
+
});
|
|
145
|
+
var multiColorsSchema = z.object({
|
|
146
|
+
dark: darkColorsSchema,
|
|
147
|
+
light: lightColorsSchema
|
|
148
|
+
});
|
|
149
|
+
var singleColorsSchema = z.object({
|
|
150
|
+
dark: darkColorSchema,
|
|
151
|
+
light: lightColorSchema,
|
|
152
|
+
brand: brandColorSchema,
|
|
153
|
+
alternate: alternateColorSchema,
|
|
154
|
+
accent: accentColorSchema,
|
|
155
|
+
link: linkColorSchema,
|
|
156
|
+
help: helpColorSchema,
|
|
157
|
+
success: successColorSchema,
|
|
158
|
+
info: infoColorSchema,
|
|
159
|
+
warning: warningColorSchema,
|
|
160
|
+
danger: dangerColorSchema,
|
|
161
|
+
fatal: fatalColorSchema,
|
|
162
|
+
positive: positiveColorSchema,
|
|
163
|
+
negative: negativeColorSchema,
|
|
164
|
+
gradient: gradientStopsSchema
|
|
165
|
+
});
|
|
166
|
+
var registryUrlConfigSchema = z.optional(z.url());
|
|
167
|
+
schemaRegistry.add(registryUrlConfigSchema, {
|
|
168
|
+
description: "A remote registry URL used to publish distributable packages"
|
|
169
|
+
});
|
|
170
|
+
var registrySchema = z._default(
|
|
171
|
+
z.object({
|
|
172
|
+
github: registryUrlConfigSchema,
|
|
173
|
+
npm: registryUrlConfigSchema,
|
|
174
|
+
cargo: registryUrlConfigSchema,
|
|
175
|
+
cyclone: registryUrlConfigSchema,
|
|
176
|
+
container: registryUrlConfigSchema
|
|
177
|
+
}),
|
|
178
|
+
{}
|
|
50
179
|
);
|
|
51
|
-
|
|
52
|
-
"
|
|
180
|
+
schemaRegistry.add(registrySchema, {
|
|
181
|
+
description: "A list of remote registry URLs used by Storm Software"
|
|
182
|
+
});
|
|
183
|
+
var colorsSchema = z.union([singleColorsSchema, multiColorsSchema]);
|
|
184
|
+
schemaRegistry.add(colorsSchema, {
|
|
185
|
+
description: "Colors used for various workspace elements"
|
|
186
|
+
});
|
|
187
|
+
var themeColorsSchema = z.record(
|
|
188
|
+
z.union([z.union([z.literal("base"), z.string()]), z.string()]),
|
|
189
|
+
colorsSchema
|
|
53
190
|
);
|
|
54
|
-
|
|
55
|
-
"
|
|
191
|
+
schemaRegistry.add(themeColorsSchema, {
|
|
192
|
+
description: "Storm theme config values used for styling various package elements"
|
|
193
|
+
});
|
|
194
|
+
var extendsSchema = z.optional(
|
|
195
|
+
z.union([z.string().check(z.trim()), z.array(z.string().check(z.trim()))])
|
|
56
196
|
);
|
|
57
|
-
|
|
58
|
-
"The
|
|
197
|
+
schemaRegistry.add(extendsSchema, {
|
|
198
|
+
description: "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
|
|
199
|
+
});
|
|
200
|
+
var workspaceBotNameSchema = z.string().check(z.trim());
|
|
201
|
+
schemaRegistry.add(workspaceBotNameSchema, {
|
|
202
|
+
description: "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
|
|
203
|
+
});
|
|
204
|
+
var workspaceBotEmailSchema = z.string().check(z.trim());
|
|
205
|
+
schemaRegistry.add(workspaceBotEmailSchema, {
|
|
206
|
+
description: "The email of the workspace bot"
|
|
207
|
+
});
|
|
208
|
+
var workspaceBotSchema = z.object({
|
|
209
|
+
name: workspaceBotNameSchema,
|
|
210
|
+
email: workspaceBotEmailSchema
|
|
211
|
+
});
|
|
212
|
+
schemaRegistry.add(workspaceBotSchema, {
|
|
213
|
+
description: "The workspace's bot user's config used to automated various operations tasks"
|
|
214
|
+
});
|
|
215
|
+
var workspaceReleaseBannerUrlSchema = z.optional(
|
|
216
|
+
z.string().check(z.trim(), z.url())
|
|
59
217
|
);
|
|
60
|
-
|
|
61
|
-
"
|
|
218
|
+
schemaRegistry.add(workspaceReleaseBannerUrlSchema, {
|
|
219
|
+
description: "A URL to a banner image used to display the workspace's release"
|
|
220
|
+
});
|
|
221
|
+
var workspaceReleaseBannerAltSchema = z._default(
|
|
222
|
+
z.string().check(z.trim()),
|
|
223
|
+
STORM_DEFAULT_BANNER_ALT
|
|
62
224
|
);
|
|
63
|
-
|
|
64
|
-
"The
|
|
225
|
+
schemaRegistry.add(workspaceReleaseBannerAltSchema, {
|
|
226
|
+
description: "The alt text for the workspace's release banner image"
|
|
227
|
+
});
|
|
228
|
+
var workspaceReleaseBannerSchema = z.object({
|
|
229
|
+
url: workspaceReleaseBannerUrlSchema,
|
|
230
|
+
alt: workspaceReleaseBannerAltSchema
|
|
231
|
+
});
|
|
232
|
+
schemaRegistry.add(workspaceReleaseBannerSchema, {
|
|
233
|
+
description: "The workspace's banner image used during the release process"
|
|
234
|
+
});
|
|
235
|
+
var workspaceReleaseHeaderSchema = z.optional(
|
|
236
|
+
z.string().check(z.trim())
|
|
65
237
|
);
|
|
66
|
-
|
|
67
|
-
"
|
|
238
|
+
schemaRegistry.add(workspaceReleaseHeaderSchema, {
|
|
239
|
+
description: "A header message appended to the start of the workspace's release notes"
|
|
240
|
+
});
|
|
241
|
+
var workspaceReleaseFooterSchema = z.optional(
|
|
242
|
+
z.string().check(z.trim())
|
|
68
243
|
);
|
|
69
|
-
|
|
70
|
-
"
|
|
244
|
+
schemaRegistry.add(workspaceReleaseFooterSchema, {
|
|
245
|
+
description: "A footer message appended to the end of the workspace's release notes"
|
|
246
|
+
});
|
|
247
|
+
var workspaceReleaseSchema = z.object({
|
|
248
|
+
banner: z.union([
|
|
249
|
+
workspaceReleaseBannerSchema,
|
|
250
|
+
z.string().check(z.trim(), z.url())
|
|
251
|
+
]),
|
|
252
|
+
header: workspaceReleaseHeaderSchema,
|
|
253
|
+
footer: workspaceReleaseFooterSchema
|
|
254
|
+
});
|
|
255
|
+
schemaRegistry.add(workspaceReleaseSchema, {
|
|
256
|
+
description: "The workspace's release config used during the release process"
|
|
257
|
+
});
|
|
258
|
+
var workspaceSocialsTwitterSchema = z.optional(
|
|
259
|
+
z.string().check(z.trim())
|
|
71
260
|
);
|
|
72
|
-
|
|
73
|
-
"
|
|
261
|
+
schemaRegistry.add(workspaceSocialsTwitterSchema, {
|
|
262
|
+
description: "A Twitter/X account associated with the organization/project"
|
|
263
|
+
});
|
|
264
|
+
var workspaceSocialsDiscordSchema = z.optional(
|
|
265
|
+
z.string().check(z.trim())
|
|
74
266
|
);
|
|
75
|
-
|
|
76
|
-
"
|
|
267
|
+
schemaRegistry.add(workspaceSocialsDiscordSchema, {
|
|
268
|
+
description: "A Discord account associated with the organization/project"
|
|
269
|
+
});
|
|
270
|
+
var workspaceSocialsTelegramSchema = z.optional(
|
|
271
|
+
z.string().check(z.trim())
|
|
77
272
|
);
|
|
78
|
-
|
|
79
|
-
"
|
|
273
|
+
schemaRegistry.add(workspaceSocialsTelegramSchema, {
|
|
274
|
+
description: "A Telegram account associated with the organization/project"
|
|
275
|
+
});
|
|
276
|
+
var workspaceSocialsSlackSchema = z.optional(
|
|
277
|
+
z.string().check(z.trim())
|
|
80
278
|
);
|
|
81
|
-
|
|
82
|
-
"
|
|
279
|
+
schemaRegistry.add(workspaceSocialsSlackSchema, {
|
|
280
|
+
description: "A Slack account associated with the organization/project"
|
|
281
|
+
});
|
|
282
|
+
var workspaceSocialsMediumSchema = z.optional(
|
|
283
|
+
z.string().check(z.trim())
|
|
83
284
|
);
|
|
84
|
-
|
|
85
|
-
"
|
|
285
|
+
schemaRegistry.add(workspaceSocialsMediumSchema, {
|
|
286
|
+
description: "A Medium account associated with the organization/project"
|
|
287
|
+
});
|
|
288
|
+
var workspaceSocialsGithubSchema = z.optional(
|
|
289
|
+
z.string().check(z.trim())
|
|
86
290
|
);
|
|
87
|
-
|
|
88
|
-
"
|
|
291
|
+
schemaRegistry.add(workspaceSocialsGithubSchema, {
|
|
292
|
+
description: "A GitHub account associated with the organization/project"
|
|
293
|
+
});
|
|
294
|
+
var workspaceSocialsSchema = z.object({
|
|
295
|
+
twitter: workspaceSocialsTwitterSchema,
|
|
296
|
+
discord: workspaceSocialsDiscordSchema,
|
|
297
|
+
telegram: workspaceSocialsTelegramSchema,
|
|
298
|
+
slack: workspaceSocialsSlackSchema,
|
|
299
|
+
medium: workspaceSocialsMediumSchema,
|
|
300
|
+
github: workspaceSocialsGithubSchema
|
|
301
|
+
});
|
|
302
|
+
schemaRegistry.add(workspaceSocialsSchema, {
|
|
303
|
+
description: "The workspace's account config used to store various social media links"
|
|
304
|
+
});
|
|
305
|
+
var workspaceDirectoryCacheSchema = z.optional(
|
|
306
|
+
z.string().check(z.trim())
|
|
89
307
|
);
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
accent: AccentColorSchema,
|
|
96
|
-
link: LinkColorSchema,
|
|
97
|
-
help: HelpColorSchema,
|
|
98
|
-
success: SuccessColorSchema,
|
|
99
|
-
info: InfoColorSchema,
|
|
100
|
-
warning: WarningColorSchema,
|
|
101
|
-
danger: DangerColorSchema,
|
|
102
|
-
fatal: FatalColorSchema,
|
|
103
|
-
positive: PositiveColorSchema,
|
|
104
|
-
negative: NegativeColorSchema,
|
|
105
|
-
gradient: GradientStopsSchema
|
|
106
|
-
});
|
|
107
|
-
var LightThemeColorConfigSchema = z.object({
|
|
108
|
-
foreground: DarkColorSchema,
|
|
109
|
-
background: LightColorSchema,
|
|
110
|
-
brand: BrandColorSchema,
|
|
111
|
-
alternate: AlternateColorSchema,
|
|
112
|
-
accent: AccentColorSchema,
|
|
113
|
-
link: LinkColorSchema,
|
|
114
|
-
help: HelpColorSchema,
|
|
115
|
-
success: SuccessColorSchema,
|
|
116
|
-
info: InfoColorSchema,
|
|
117
|
-
warning: WarningColorSchema,
|
|
118
|
-
danger: DangerColorSchema,
|
|
119
|
-
fatal: FatalColorSchema,
|
|
120
|
-
positive: PositiveColorSchema,
|
|
121
|
-
negative: NegativeColorSchema,
|
|
122
|
-
gradient: GradientStopsSchema
|
|
123
|
-
});
|
|
124
|
-
var MultiThemeColorConfigSchema = z.object({
|
|
125
|
-
dark: DarkThemeColorConfigSchema,
|
|
126
|
-
light: LightThemeColorConfigSchema
|
|
127
|
-
});
|
|
128
|
-
var SingleThemeColorConfigSchema = z.object({
|
|
129
|
-
dark: DarkColorSchema,
|
|
130
|
-
light: LightColorSchema,
|
|
131
|
-
brand: BrandColorSchema,
|
|
132
|
-
alternate: AlternateColorSchema,
|
|
133
|
-
accent: AccentColorSchema,
|
|
134
|
-
link: LinkColorSchema,
|
|
135
|
-
help: HelpColorSchema,
|
|
136
|
-
success: SuccessColorSchema,
|
|
137
|
-
info: InfoColorSchema,
|
|
138
|
-
warning: WarningColorSchema,
|
|
139
|
-
danger: DangerColorSchema,
|
|
140
|
-
fatal: FatalColorSchema,
|
|
141
|
-
positive: PositiveColorSchema,
|
|
142
|
-
negative: NegativeColorSchema,
|
|
143
|
-
gradient: GradientStopsSchema
|
|
144
|
-
});
|
|
145
|
-
var RegistryUrlConfigSchema = z.url().optional().describe("A remote registry URL used to publish distributable packages");
|
|
146
|
-
var RegistryConfigSchema = z.object({
|
|
147
|
-
github: RegistryUrlConfigSchema,
|
|
148
|
-
npm: RegistryUrlConfigSchema,
|
|
149
|
-
cargo: RegistryUrlConfigSchema,
|
|
150
|
-
cyclone: RegistryUrlConfigSchema,
|
|
151
|
-
container: RegistryUrlConfigSchema
|
|
152
|
-
}).default({}).describe("A list of remote registry URLs used by Storm Software");
|
|
153
|
-
var ColorConfigSchema = SingleThemeColorConfigSchema.or(
|
|
154
|
-
MultiThemeColorConfigSchema
|
|
155
|
-
).describe("Colors used for various workspace elements");
|
|
156
|
-
var ColorConfigMapSchema = z.record(
|
|
157
|
-
z.union([z.literal("base"), z.string()]),
|
|
158
|
-
ColorConfigSchema
|
|
308
|
+
schemaRegistry.add(workspaceDirectoryCacheSchema, {
|
|
309
|
+
description: "The directory used to store the environment's cached file data"
|
|
310
|
+
});
|
|
311
|
+
var workspaceDirectoryDataSchema = z.optional(
|
|
312
|
+
z.string().check(z.trim())
|
|
159
313
|
);
|
|
160
|
-
|
|
161
|
-
"The
|
|
314
|
+
schemaRegistry.add(workspaceDirectoryDataSchema, {
|
|
315
|
+
description: "The directory used to store the environment's data files"
|
|
316
|
+
});
|
|
317
|
+
var workspaceDirectoryConfigSchema = z.optional(
|
|
318
|
+
z.string().check(z.trim())
|
|
162
319
|
);
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
)
|
|
166
|
-
|
|
320
|
+
schemaRegistry.add(workspaceDirectoryConfigSchema, {
|
|
321
|
+
description: "The directory used to store the environment's configuration files"
|
|
322
|
+
});
|
|
323
|
+
var workspaceDirectoryTempSchema = z.optional(
|
|
324
|
+
z.string().check(z.trim())
|
|
167
325
|
);
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}).describe(
|
|
174
|
-
"The workspace's bot user's config used to automated various operations tasks"
|
|
326
|
+
schemaRegistry.add(workspaceDirectoryTempSchema, {
|
|
327
|
+
description: "The directory used to store the environment's temp files"
|
|
328
|
+
});
|
|
329
|
+
var workspaceDirectoryLogSchema = z.optional(
|
|
330
|
+
z.string().check(z.trim())
|
|
175
331
|
);
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
),
|
|
183
|
-
footer: z.string().trim().optional().describe(
|
|
184
|
-
"A footer message appended to the end of the workspace's release notes"
|
|
185
|
-
)
|
|
186
|
-
}).describe("The workspace's release config used during the release process");
|
|
187
|
-
var WorkspaceSocialsConfigSchema = z.object({
|
|
188
|
-
twitter: z.string().trim().default(STORM_DEFAULT_SOCIAL_TWITTER).describe("A Twitter/X account associated with the organization/project"),
|
|
189
|
-
discord: z.string().trim().default(STORM_DEFAULT_SOCIAL_DISCORD).describe("A Discord account associated with the organization/project"),
|
|
190
|
-
telegram: z.string().trim().default(STORM_DEFAULT_SOCIAL_TELEGRAM).describe("A Telegram account associated with the organization/project"),
|
|
191
|
-
slack: z.string().trim().default(STORM_DEFAULT_SOCIAL_SLACK).describe("A Slack account associated with the organization/project"),
|
|
192
|
-
medium: z.string().trim().default(STORM_DEFAULT_SOCIAL_MEDIUM).describe("A Medium account associated with the organization/project"),
|
|
193
|
-
github: z.string().trim().default(STORM_DEFAULT_SOCIAL_GITHUB).describe("A GitHub account associated with the organization/project")
|
|
194
|
-
}).describe(
|
|
195
|
-
"The workspace's account config used to store various social media links"
|
|
332
|
+
schemaRegistry.add(workspaceDirectoryLogSchema, {
|
|
333
|
+
description: "The directory used to store the environment's log files"
|
|
334
|
+
});
|
|
335
|
+
var workspaceDirectoryBuildSchema = z._default(
|
|
336
|
+
z.string().check(z.trim()),
|
|
337
|
+
"dist"
|
|
196
338
|
);
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
})
|
|
211
|
-
|
|
339
|
+
schemaRegistry.add(workspaceDirectoryBuildSchema, {
|
|
340
|
+
description: "The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
|
|
341
|
+
});
|
|
342
|
+
var workspaceDirectorySchema = z.object({
|
|
343
|
+
cache: workspaceDirectoryCacheSchema,
|
|
344
|
+
data: workspaceDirectoryDataSchema,
|
|
345
|
+
config: workspaceDirectoryConfigSchema,
|
|
346
|
+
temp: workspaceDirectoryTempSchema,
|
|
347
|
+
log: workspaceDirectoryLogSchema,
|
|
348
|
+
build: workspaceDirectoryBuildSchema
|
|
349
|
+
});
|
|
350
|
+
schemaRegistry.add(workspaceDirectorySchema, {
|
|
351
|
+
description: "Various directories used by the workspace to store data, cache, and configuration files"
|
|
352
|
+
});
|
|
353
|
+
var errorCodesFileSchema = z._default(
|
|
354
|
+
z.string().check(z.trim()),
|
|
355
|
+
STORM_DEFAULT_ERROR_CODES_FILE
|
|
212
356
|
);
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
357
|
+
schemaRegistry.add(errorCodesFileSchema, {
|
|
358
|
+
description: "The path to the workspace's error codes JSON file"
|
|
359
|
+
});
|
|
360
|
+
var errorUrlSchema = z.optional(z.url());
|
|
361
|
+
schemaRegistry.add(errorUrlSchema, {
|
|
362
|
+
description: "A URL to a page that looks up the workspace's error messages given a specific error code"
|
|
363
|
+
});
|
|
364
|
+
var errorSchema = z.object({
|
|
365
|
+
codesFile: errorCodesFileSchema,
|
|
366
|
+
url: errorUrlSchema
|
|
367
|
+
});
|
|
368
|
+
schemaRegistry.add(errorSchema, {
|
|
369
|
+
description: "The workspace's error config used when creating error details during a system error"
|
|
370
|
+
});
|
|
371
|
+
var organizationNameSchema = z.optional(
|
|
372
|
+
z.string().check(z.trim(), z.toLowerCase())
|
|
373
|
+
);
|
|
374
|
+
schemaRegistry.add(organizationNameSchema, {
|
|
375
|
+
description: "The name of the organization"
|
|
376
|
+
});
|
|
377
|
+
var organizationDescriptionSchema = z.optional(
|
|
378
|
+
z.string().check(z.trim())
|
|
379
|
+
);
|
|
380
|
+
schemaRegistry.add(organizationDescriptionSchema, {
|
|
381
|
+
description: "A description of the organization"
|
|
382
|
+
});
|
|
383
|
+
var organizationLogoSchema = z.optional(z.url());
|
|
384
|
+
schemaRegistry.add(organizationLogoSchema, {
|
|
385
|
+
description: "A URL to the organization's logo image"
|
|
386
|
+
});
|
|
387
|
+
var organizationIconSchema = z.optional(z.url());
|
|
388
|
+
schemaRegistry.add(organizationIconSchema, {
|
|
389
|
+
description: "A URL to the organization's icon image"
|
|
390
|
+
});
|
|
391
|
+
var organizationUrlSchema = z.optional(z.url());
|
|
392
|
+
schemaRegistry.add(organizationUrlSchema, {
|
|
393
|
+
description: "A URL to a page that provides more information about the organization"
|
|
394
|
+
});
|
|
395
|
+
var organizationSchema = z.object({
|
|
396
|
+
name: organizationNameSchema,
|
|
397
|
+
description: organizationDescriptionSchema,
|
|
398
|
+
logo: organizationLogoSchema,
|
|
399
|
+
icon: organizationIconSchema,
|
|
400
|
+
url: organizationUrlSchema
|
|
401
|
+
});
|
|
402
|
+
schemaRegistry.add(organizationSchema, {
|
|
403
|
+
description: "The workspace's organization details"
|
|
404
|
+
});
|
|
405
|
+
var schemaNameSchema = z._default(
|
|
406
|
+
z.string().check(z.trim(), z.toLowerCase()),
|
|
407
|
+
"https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
|
|
408
|
+
);
|
|
409
|
+
schemaRegistry.add(schemaNameSchema, {
|
|
410
|
+
description: "The URL or file path to the JSON schema file that describes the Storm configuration file"
|
|
411
|
+
});
|
|
412
|
+
var nameSchema = z.string().check(z.trim(), z.toLowerCase());
|
|
413
|
+
schemaRegistry.add(nameSchema, {
|
|
414
|
+
description: "The name of the workspace/project/service/package/scope using this configuration"
|
|
415
|
+
});
|
|
416
|
+
var namespaceSchema = z.string().check(z.trim(), z.toLowerCase());
|
|
417
|
+
schemaRegistry.add(namespaceSchema, {
|
|
418
|
+
description: "The namespace of the workspace/project/service/package/scope using this configuration"
|
|
419
|
+
});
|
|
420
|
+
var orgSchema = z.union([
|
|
421
|
+
organizationSchema,
|
|
422
|
+
z.string().check(z.trim(), z.toLowerCase())
|
|
423
|
+
]);
|
|
424
|
+
schemaRegistry.add(orgSchema, {
|
|
425
|
+
description: "The organization of the workspace. This can be a string or an object containing the organization's details"
|
|
426
|
+
});
|
|
427
|
+
var repositorySchema = z.string().check(z.trim(), z.toLowerCase());
|
|
428
|
+
schemaRegistry.add(repositorySchema, {
|
|
429
|
+
description: "The repo URL of the workspace (i.e. the GitHub repository URL)"
|
|
430
|
+
});
|
|
431
|
+
var licenseSchema = z._default(
|
|
432
|
+
z.string().check(z.trim()),
|
|
433
|
+
"Apache-2.0"
|
|
434
|
+
);
|
|
435
|
+
schemaRegistry.add(licenseSchema, {
|
|
436
|
+
description: "The license type of the package"
|
|
437
|
+
});
|
|
438
|
+
var homepageSchema = z.optional(z.url());
|
|
439
|
+
schemaRegistry.add(homepageSchema, {
|
|
440
|
+
description: "The homepage of the workspace"
|
|
441
|
+
});
|
|
442
|
+
var docsSchema = z.optional(z.url());
|
|
443
|
+
schemaRegistry.add(docsSchema, {
|
|
444
|
+
description: "The documentation site for the workspace"
|
|
445
|
+
});
|
|
446
|
+
var portalSchema = z.optional(z.url());
|
|
447
|
+
schemaRegistry.add(portalSchema, {
|
|
448
|
+
description: "The development portal site for the workspace"
|
|
449
|
+
});
|
|
450
|
+
var licensingSchema = z.optional(z.url());
|
|
451
|
+
schemaRegistry.add(licensingSchema, {
|
|
452
|
+
description: "The licensing site for the workspace"
|
|
453
|
+
});
|
|
454
|
+
var contactSchema = z.optional(z.url());
|
|
455
|
+
schemaRegistry.add(contactSchema, {
|
|
456
|
+
description: "The contact site for the workspace"
|
|
457
|
+
});
|
|
458
|
+
var supportSchema = z.optional(z.url());
|
|
459
|
+
schemaRegistry.add(supportSchema, {
|
|
460
|
+
description: "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
461
|
+
});
|
|
462
|
+
var branchSchema = z._default(
|
|
463
|
+
z.string().check(z.trim(), z.toLowerCase()),
|
|
464
|
+
"main"
|
|
465
|
+
);
|
|
466
|
+
schemaRegistry.add(branchSchema, {
|
|
467
|
+
description: "The branch of the workspace"
|
|
468
|
+
});
|
|
469
|
+
var preidSchema = z.optional(
|
|
470
|
+
z.string().check(z.trim(), z.toLowerCase())
|
|
471
|
+
);
|
|
472
|
+
schemaRegistry.add(preidSchema, {
|
|
473
|
+
description: "A tag specifying the version pre-release identifier"
|
|
474
|
+
});
|
|
475
|
+
var ownerSchema = z.optional(
|
|
476
|
+
z.string().check(z.trim(), z.toLowerCase())
|
|
477
|
+
);
|
|
478
|
+
schemaRegistry.add(ownerSchema, {
|
|
479
|
+
description: "The owner of the package"
|
|
480
|
+
});
|
|
481
|
+
var modeSchema = z._default(
|
|
482
|
+
z.enum(["development", "staging", "production"]).check(z.trim(), z.toLowerCase()),
|
|
483
|
+
"production"
|
|
484
|
+
);
|
|
485
|
+
schemaRegistry.add(modeSchema, {
|
|
486
|
+
description: "The current runtime environment mode for the package"
|
|
487
|
+
});
|
|
488
|
+
var workspaceRootSchema = z.string().check(z.trim(), z.toLowerCase());
|
|
489
|
+
schemaRegistry.add(workspaceRootSchema, {
|
|
490
|
+
description: "The root directory of the workspace"
|
|
491
|
+
});
|
|
492
|
+
var skipCacheSchema = z._default(z.boolean(), false);
|
|
493
|
+
schemaRegistry.add(skipCacheSchema, {
|
|
494
|
+
description: "Should all known types of workspace caching be skipped?"
|
|
495
|
+
});
|
|
496
|
+
var packageManagerSchema = z._default(
|
|
497
|
+
z.enum(["npm", "yarn", "pnpm", "bun"]),
|
|
498
|
+
"npm"
|
|
499
|
+
);
|
|
500
|
+
schemaRegistry.add(packageManagerSchema, {
|
|
501
|
+
description: "The JavaScript/TypeScript package manager used by the repository"
|
|
502
|
+
});
|
|
503
|
+
var timezoneSchema = z._default(
|
|
504
|
+
z.string().check(z.trim(), z.toLowerCase()),
|
|
505
|
+
"America/New_York"
|
|
506
|
+
);
|
|
507
|
+
schemaRegistry.add(timezoneSchema, {
|
|
508
|
+
description: "The default timezone of the workspace"
|
|
509
|
+
});
|
|
510
|
+
var localeSchema = z._default(
|
|
511
|
+
z.string().check(z.trim(), z.toLowerCase()),
|
|
512
|
+
"en-US"
|
|
513
|
+
);
|
|
514
|
+
schemaRegistry.add(localeSchema, {
|
|
515
|
+
description: "The default locale of the workspace"
|
|
516
|
+
});
|
|
517
|
+
var logLevelSchema = z._default(
|
|
518
|
+
z.enum([
|
|
269
519
|
"silent",
|
|
270
520
|
"fatal",
|
|
271
521
|
"error",
|
|
@@ -275,23 +525,65 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
275
525
|
"debug",
|
|
276
526
|
"trace",
|
|
277
527
|
"all"
|
|
278
|
-
])
|
|
279
|
-
|
|
280
|
-
),
|
|
281
|
-
skipConfigLogging: z.boolean().optional().describe(
|
|
282
|
-
"Should the logging of the current Storm Workspace configuration be skipped?"
|
|
283
|
-
),
|
|
284
|
-
registry: RegistryConfigSchema,
|
|
285
|
-
configFile: z.string().trim().nullable().default(null).describe(
|
|
286
|
-
"The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
|
|
287
|
-
),
|
|
288
|
-
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
|
|
289
|
-
"Storm theme config values used for styling various package elements"
|
|
290
|
-
),
|
|
291
|
-
extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
|
|
292
|
-
}).describe(
|
|
293
|
-
"Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
|
|
528
|
+
]),
|
|
529
|
+
"info"
|
|
294
530
|
);
|
|
531
|
+
schemaRegistry.add(logLevelSchema, {
|
|
532
|
+
description: "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
|
|
533
|
+
});
|
|
534
|
+
var skipConfigLoggingSchema = z._default(z.boolean(), true);
|
|
535
|
+
schemaRegistry.add(skipConfigLoggingSchema, {
|
|
536
|
+
description: "Should the logging of the current Storm Workspace configuration be skipped?"
|
|
537
|
+
});
|
|
538
|
+
var configFileSchema = z._default(
|
|
539
|
+
z.nullable(z.string().check(z.trim())),
|
|
540
|
+
null
|
|
541
|
+
);
|
|
542
|
+
schemaRegistry.add(configFileSchema, {
|
|
543
|
+
description: "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
|
|
544
|
+
});
|
|
545
|
+
var extensionsSchema = z._default(z.record(z.string(), z.any()), {});
|
|
546
|
+
schemaRegistry.add(extensionsSchema, {
|
|
547
|
+
description: "Configuration of each used extension"
|
|
548
|
+
});
|
|
549
|
+
var workspaceConfigSchema = z.object({
|
|
550
|
+
$schema: schemaNameSchema,
|
|
551
|
+
extends: extendsSchema,
|
|
552
|
+
name: nameSchema,
|
|
553
|
+
namespace: namespaceSchema,
|
|
554
|
+
organization: orgSchema,
|
|
555
|
+
repository: repositorySchema,
|
|
556
|
+
license: licenseSchema,
|
|
557
|
+
homepage: homepageSchema,
|
|
558
|
+
docs: docsSchema,
|
|
559
|
+
portal: portalSchema,
|
|
560
|
+
licensing: licensingSchema,
|
|
561
|
+
contact: contactSchema,
|
|
562
|
+
support: supportSchema,
|
|
563
|
+
branch: branchSchema,
|
|
564
|
+
preid: preidSchema,
|
|
565
|
+
owner: ownerSchema,
|
|
566
|
+
bot: workspaceBotSchema,
|
|
567
|
+
release: workspaceReleaseSchema,
|
|
568
|
+
socials: workspaceSocialsSchema,
|
|
569
|
+
error: errorSchema,
|
|
570
|
+
mode: modeSchema,
|
|
571
|
+
workspaceRoot: workspaceRootSchema,
|
|
572
|
+
skipCache: skipCacheSchema,
|
|
573
|
+
directories: workspaceDirectorySchema,
|
|
574
|
+
packageManager: packageManagerSchema,
|
|
575
|
+
timezone: timezoneSchema,
|
|
576
|
+
locale: localeSchema,
|
|
577
|
+
logLevel: logLevelSchema,
|
|
578
|
+
skipConfigLogging: skipConfigLoggingSchema,
|
|
579
|
+
registry: registrySchema,
|
|
580
|
+
configFile: configFileSchema,
|
|
581
|
+
colors: z.union([colorsSchema, themeColorsSchema]),
|
|
582
|
+
extensions: extensionsSchema
|
|
583
|
+
});
|
|
584
|
+
schemaRegistry.add(extensionsSchema, {
|
|
585
|
+
description: "Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
|
|
586
|
+
});
|
|
295
587
|
|
|
296
588
|
// ../config/src/types.ts
|
|
297
589
|
var COLOR_KEYS = [
|
|
@@ -503,7 +795,10 @@ var getConfigEnv = () => {
|
|
|
503
795
|
email: process.env[`${prefix}BOT_EMAIL`] || void 0
|
|
504
796
|
},
|
|
505
797
|
release: {
|
|
506
|
-
banner:
|
|
798
|
+
banner: {
|
|
799
|
+
url: process.env[`${prefix}RELEASE_BANNER_URL`] || void 0,
|
|
800
|
+
alt: process.env[`${prefix}RELEASE_BANNER_ALT`] || void 0
|
|
801
|
+
},
|
|
507
802
|
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
508
803
|
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
509
804
|
},
|
|
@@ -580,11 +875,11 @@ var getConfigEnv = () => {
|
|
|
580
875
|
);
|
|
581
876
|
config.colors = themeNames.length > 0 ? themeNames.reduce(
|
|
582
877
|
(ret, themeName) => {
|
|
583
|
-
ret[themeName] =
|
|
878
|
+
ret[themeName] = getThemeColorsEnv(prefix, themeName);
|
|
584
879
|
return ret;
|
|
585
880
|
},
|
|
586
881
|
{}
|
|
587
|
-
) :
|
|
882
|
+
) : getThemeColorsEnv(prefix);
|
|
588
883
|
if (config.docs === STORM_DEFAULT_DOCS) {
|
|
589
884
|
if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
590
885
|
config.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
@@ -611,11 +906,11 @@ var getConfigEnv = () => {
|
|
|
611
906
|
}
|
|
612
907
|
return config;
|
|
613
908
|
};
|
|
614
|
-
var
|
|
909
|
+
var getThemeColorsEnv = (prefix, theme) => {
|
|
615
910
|
const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
|
|
616
|
-
return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ?
|
|
911
|
+
return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorsEnv(prefix + themeName) : getSingleThemeColorsEnv(prefix + themeName);
|
|
617
912
|
};
|
|
618
|
-
var
|
|
913
|
+
var getSingleThemeColorsEnv = (prefix) => {
|
|
619
914
|
const gradient = [];
|
|
620
915
|
if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
|
|
621
916
|
gradient.push(
|
|
@@ -647,15 +942,13 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
647
942
|
gradient
|
|
648
943
|
};
|
|
649
944
|
};
|
|
650
|
-
var
|
|
945
|
+
var getMultiThemeColorsEnv = (prefix) => {
|
|
651
946
|
return {
|
|
652
|
-
light:
|
|
653
|
-
|
|
654
|
-
),
|
|
655
|
-
dark: getBaseThemeColorConfigEnv(`${prefix}_DARK_`)
|
|
947
|
+
light: getBaseThemeColorsEnv(`${prefix}_LIGHT_`),
|
|
948
|
+
dark: getBaseThemeColorsEnv(`${prefix}_DARK_`)
|
|
656
949
|
};
|
|
657
950
|
};
|
|
658
|
-
var
|
|
951
|
+
var getBaseThemeColorsEnv = (prefix) => {
|
|
659
952
|
const gradient = [];
|
|
660
953
|
if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
|
|
661
954
|
gradient.push(
|
|
@@ -734,7 +1027,16 @@ var setConfigEnv = (config) => {
|
|
|
734
1027
|
process.env[`${prefix}ERROR_URL`] = config.error.url;
|
|
735
1028
|
}
|
|
736
1029
|
if (config.release) {
|
|
737
|
-
|
|
1030
|
+
if (config.release.banner) {
|
|
1031
|
+
if (typeof config.release.banner === "string") {
|
|
1032
|
+
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
1033
|
+
process.env[`${prefix}RELEASE_BANNER_URL`] = config.release.banner;
|
|
1034
|
+
} else {
|
|
1035
|
+
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner.url;
|
|
1036
|
+
process.env[`${prefix}RELEASE_BANNER_URL`] = config.release.banner.url;
|
|
1037
|
+
process.env[`${prefix}RELEASE_BANNER_ALT`] = config.release.banner.alt;
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
738
1040
|
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
739
1041
|
process.env[`${prefix}RELEASE_FOOTER`] = config.release.footer;
|
|
740
1042
|
}
|
|
@@ -877,10 +1179,10 @@ var setConfigEnv = (config) => {
|
|
|
877
1179
|
}
|
|
878
1180
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
879
1181
|
for (const key of Object.keys(config.colors)) {
|
|
880
|
-
|
|
1182
|
+
setThemeColorsEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
|
|
881
1183
|
}
|
|
882
1184
|
} else {
|
|
883
|
-
|
|
1185
|
+
setThemeColorsEnv(
|
|
884
1186
|
`${prefix}COLOR_`,
|
|
885
1187
|
config.colors
|
|
886
1188
|
);
|
|
@@ -935,10 +1237,10 @@ var setConfigEnv = (config) => {
|
|
|
935
1237
|
}
|
|
936
1238
|
}
|
|
937
1239
|
};
|
|
938
|
-
var
|
|
939
|
-
return config?.light?.brand || config?.dark?.brand ?
|
|
1240
|
+
var setThemeColorsEnv = (prefix, config) => {
|
|
1241
|
+
return config?.light?.brand || config?.dark?.brand ? setMultiThemeColorsEnv(prefix, config) : setSingleThemeColorsEnv(prefix, config);
|
|
940
1242
|
};
|
|
941
|
-
var
|
|
1243
|
+
var setSingleThemeColorsEnv = (prefix, config) => {
|
|
942
1244
|
if (config.dark) {
|
|
943
1245
|
process.env[`${prefix}DARK`] = config.dark;
|
|
944
1246
|
}
|
|
@@ -987,13 +1289,13 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
|
987
1289
|
}
|
|
988
1290
|
}
|
|
989
1291
|
};
|
|
990
|
-
var
|
|
1292
|
+
var setMultiThemeColorsEnv = (prefix, config) => {
|
|
991
1293
|
return {
|
|
992
|
-
light:
|
|
993
|
-
dark:
|
|
1294
|
+
light: setBaseThemeColorsEnv(`${prefix}LIGHT_`, config.light),
|
|
1295
|
+
dark: setBaseThemeColorsEnv(`${prefix}DARK_`, config.dark)
|
|
994
1296
|
};
|
|
995
1297
|
};
|
|
996
|
-
var
|
|
1298
|
+
var setBaseThemeColorsEnv = (prefix, config) => {
|
|
997
1299
|
if (config.foreground) {
|
|
998
1300
|
process.env[`${prefix}FOREGROUND`] = config.foreground;
|
|
999
1301
|
}
|
|
@@ -1074,7 +1376,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1074
1376
|
);
|
|
1075
1377
|
try {
|
|
1076
1378
|
result = applyDefaultConfig(
|
|
1077
|
-
await
|
|
1379
|
+
await workspaceConfigSchema.parseAsync(configInput)
|
|
1078
1380
|
);
|
|
1079
1381
|
result.workspaceRoot ??= _workspaceRoot;
|
|
1080
1382
|
} catch (error) {
|