@storm-software/config 1.15.0 → 1.16.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/config",
3
- "version": "1.15.0",
3
+ "version": "1.16.1",
4
4
  "private": false,
5
5
  "description": "⚡The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
6
6
  "repository": {
@@ -23,7 +23,7 @@
23
23
  "types": "declarations.d.ts",
24
24
  "files": [
25
25
  "presets",
26
- "schema",
26
+ "schemas",
27
27
  "dist"
28
28
  ],
29
29
  "dependencies": {
@@ -0,0 +1,348 @@
1
+ {
2
+ "$ref": "#/definitions/StormConfiguration",
3
+ "definitions": {
4
+ "StormConfiguration": {
5
+ "type": "object",
6
+ "properties": {
7
+ "extends": {
8
+ "type": "string",
9
+ "description": "The path to a base JSON file to use as a configuration preset file"
10
+ },
11
+ "name": {
12
+ "type": "string",
13
+ "description": "The name of the package"
14
+ },
15
+ "namespace": {
16
+ "type": "string",
17
+ "description": "The namespace of the package"
18
+ },
19
+ "organization": {
20
+ "type": "string",
21
+ "default": "storm-software",
22
+ "description": "The organization of the workspace"
23
+ },
24
+ "repository": {
25
+ "type": "string",
26
+ "format": "uri",
27
+ "description": "The repo URL of the workspace (i.e. GitHub)"
28
+ },
29
+ "license": {
30
+ "type": "string",
31
+ "default": "Apache 2.0",
32
+ "description": "The root directory of the package"
33
+ },
34
+ "homepage": {
35
+ "type": "string",
36
+ "format": "uri",
37
+ "default": "https://stormsoftware.com",
38
+ "description": "The homepage of the workspace"
39
+ },
40
+ "branch": {
41
+ "type": "string",
42
+ "default": "main",
43
+ "description": "The branch of the workspace"
44
+ },
45
+ "preid": {
46
+ "type": "string",
47
+ "description": "A tag specifying the version pre-release identifier"
48
+ },
49
+ "owner": {
50
+ "type": "string",
51
+ "default": "@storm-software/development",
52
+ "description": "The owner of the package"
53
+ },
54
+ "worker": {
55
+ "type": "string",
56
+ "default": "Stormie-Bot",
57
+ "description": "The worker of the package (this is the bot that will be used to perform various tasks)"
58
+ },
59
+ "env": {
60
+ "type": "string",
61
+ "enum": ["development", "staging", "production"],
62
+ "default": "production",
63
+ "description": "The current runtime environment of the package"
64
+ },
65
+ "ci": {
66
+ "type": "boolean",
67
+ "default": true,
68
+ "description": "An indicator specifying if the current environment is a CI environment"
69
+ },
70
+ "workspaceRoot": {
71
+ "type": "string",
72
+ "description": "The root directory of the workspace"
73
+ },
74
+ "packageDirectory": {
75
+ "type": "string",
76
+ "description": "The root directory of the package"
77
+ },
78
+ "externalPackagePatterns": {
79
+ "type": "array",
80
+ "items": {
81
+ "type": "string"
82
+ },
83
+ "default": [],
84
+ "description": "The build will use these package patterns to determine if they should be external to the bundle"
85
+ },
86
+ "skipCache": {
87
+ "type": "boolean",
88
+ "default": false,
89
+ "description": "Should all known types of workspace caching be skipped?"
90
+ },
91
+ "cacheDirectory": {
92
+ "type": "string",
93
+ "default": "node_modules/.cache/storm",
94
+ "description": "The directory used to store the workspace's cached file data"
95
+ },
96
+ "buildDirectory": {
97
+ "type": "string",
98
+ "default": "dist",
99
+ "description": "The build directory for the workspace"
100
+ },
101
+ "outputDirectory": {
102
+ "type": "string",
103
+ "default": "node_modules/.storm",
104
+ "description": "The runtime directory of Storm"
105
+ },
106
+ "runtimeVersion": {
107
+ "type": "string",
108
+ "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",
109
+ "default": "1.0.0",
110
+ "description": "The global version of the Storm runtime"
111
+ },
112
+ "packageManager": {
113
+ "type": "string",
114
+ "enum": ["npm", "yarn", "pnpm", "bun"],
115
+ "default": "pnpm",
116
+ "description": "The package manager used by the repository"
117
+ },
118
+ "timezone": {
119
+ "type": "string",
120
+ "default": "America/New_York",
121
+ "description": "The default timezone of the workspace"
122
+ },
123
+ "locale": {
124
+ "type": "string",
125
+ "default": "en-US",
126
+ "description": "The default locale of the workspace"
127
+ },
128
+ "logLevel": {
129
+ "type": "string",
130
+ "enum": [
131
+ "silent",
132
+ "fatal",
133
+ "error",
134
+ "warn",
135
+ "info",
136
+ "debug",
137
+ "trace",
138
+ "all"
139
+ ],
140
+ "default": "debug",
141
+ "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`)."
142
+ },
143
+ "configFile": {
144
+ "anyOf": [
145
+ {
146
+ "type": "string"
147
+ },
148
+ {
149
+ "type": "null"
150
+ }
151
+ ],
152
+ "default": null,
153
+ "description": "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
154
+ },
155
+ "colors": {
156
+ "anyOf": [
157
+ {
158
+ "anyOf": [
159
+ {
160
+ "type": "object",
161
+ "properties": {
162
+ "dark": {
163
+ "type": "string",
164
+ "pattern": "^#([0-9a-f]{3}){1,2}$",
165
+ "minLength": 7,
166
+ "maxLength": 7,
167
+ "default": "#22272E",
168
+ "description": "The dark background color of the workspace"
169
+ },
170
+ "light": {
171
+ "type": "string",
172
+ "pattern": "^#([0-9a-f]{3}){1,2}$",
173
+ "minLength": 7,
174
+ "maxLength": 7,
175
+ "default": "#f4f4f5",
176
+ "description": "The light background color of the workspace"
177
+ },
178
+ "brand": {
179
+ "type": "string",
180
+ "pattern": "^#([0-9a-f]{3}){1,2}$",
181
+ "minLength": 7,
182
+ "maxLength": 7,
183
+ "default": "#1fb2a6",
184
+ "description": "The first brand specific color of the workspace"
185
+ },
186
+ "accent": {
187
+ "type": "string",
188
+ "pattern": "^#([0-9a-f]{3}){1,2}$",
189
+ "minLength": 7,
190
+ "maxLength": 7,
191
+ "default": "#8256D0",
192
+ "description": "The second brand specific color of the workspace"
193
+ },
194
+ "success": {
195
+ "type": "string",
196
+ "pattern": "^#([0-9a-f]{3}){1,2}$",
197
+ "minLength": 7,
198
+ "maxLength": 7,
199
+ "default": "#087f5b",
200
+ "description": "The success color of the workspace"
201
+ },
202
+ "info": {
203
+ "type": "string",
204
+ "pattern": "^#([0-9a-f]{3}){1,2}$",
205
+ "minLength": 7,
206
+ "maxLength": 7,
207
+ "default": "#316DCA",
208
+ "description": "The informational color of the workspace"
209
+ },
210
+ "warning": {
211
+ "type": "string",
212
+ "pattern": "^#([0-9a-f]{3}){1,2}$",
213
+ "minLength": 7,
214
+ "maxLength": 7,
215
+ "default": "#fcc419",
216
+ "description": "The warning color of the workspace"
217
+ },
218
+ "error": {
219
+ "type": "string",
220
+ "pattern": "^#([0-9a-f]{3}){1,2}$",
221
+ "minLength": 7,
222
+ "maxLength": 7,
223
+ "default": "#a40e26",
224
+ "description": "The error color of the workspace"
225
+ },
226
+ "fatal": {
227
+ "type": "string",
228
+ "pattern": "^#([0-9a-f]{3}){1,2}$",
229
+ "minLength": 7,
230
+ "maxLength": 7,
231
+ "description": "The fatal color of the workspace"
232
+ }
233
+ },
234
+ "additionalProperties": false
235
+ },
236
+ {
237
+ "type": "object",
238
+ "properties": {
239
+ "dark": {
240
+ "type": "object",
241
+ "properties": {
242
+ "foreground": {
243
+ "$ref": "#/definitions/StormConfiguration/properties/colors/anyOf/0/anyOf/0/properties/light"
244
+ },
245
+ "background": {
246
+ "$ref": "#/definitions/StormConfiguration/properties/colors/anyOf/0/anyOf/0/properties/dark"
247
+ },
248
+ "brand": {
249
+ "$ref": "#/definitions/StormConfiguration/properties/colors/anyOf/0/anyOf/0/properties/brand"
250
+ },
251
+ "accent": {
252
+ "$ref": "#/definitions/StormConfiguration/properties/colors/anyOf/0/anyOf/0/properties/accent"
253
+ },
254
+ "success": {
255
+ "$ref": "#/definitions/StormConfiguration/properties/colors/anyOf/0/anyOf/0/properties/success"
256
+ },
257
+ "info": {
258
+ "$ref": "#/definitions/StormConfiguration/properties/colors/anyOf/0/anyOf/0/properties/info"
259
+ },
260
+ "warning": {
261
+ "$ref": "#/definitions/StormConfiguration/properties/colors/anyOf/0/anyOf/0/properties/warning"
262
+ },
263
+ "error": {
264
+ "$ref": "#/definitions/StormConfiguration/properties/colors/anyOf/0/anyOf/0/properties/error"
265
+ },
266
+ "fatal": {
267
+ "$ref": "#/definitions/StormConfiguration/properties/colors/anyOf/0/anyOf/0/properties/fatal"
268
+ }
269
+ },
270
+ "additionalProperties": false
271
+ },
272
+ "light": {
273
+ "type": "object",
274
+ "properties": {
275
+ "foreground": {
276
+ "$ref": "#/definitions/StormConfiguration/properties/colors/anyOf/0/anyOf/0/properties/dark"
277
+ },
278
+ "background": {
279
+ "$ref": "#/definitions/StormConfiguration/properties/colors/anyOf/0/anyOf/0/properties/light"
280
+ },
281
+ "brand": {
282
+ "$ref": "#/definitions/StormConfiguration/properties/colors/anyOf/0/anyOf/0/properties/brand"
283
+ },
284
+ "accent": {
285
+ "$ref": "#/definitions/StormConfiguration/properties/colors/anyOf/0/anyOf/0/properties/accent"
286
+ },
287
+ "success": {
288
+ "$ref": "#/definitions/StormConfiguration/properties/colors/anyOf/0/anyOf/0/properties/success"
289
+ },
290
+ "info": {
291
+ "$ref": "#/definitions/StormConfiguration/properties/colors/anyOf/0/anyOf/0/properties/info"
292
+ },
293
+ "warning": {
294
+ "$ref": "#/definitions/StormConfiguration/properties/colors/anyOf/0/anyOf/0/properties/warning"
295
+ },
296
+ "error": {
297
+ "$ref": "#/definitions/StormConfiguration/properties/colors/anyOf/0/anyOf/0/properties/error"
298
+ },
299
+ "fatal": {
300
+ "$ref": "#/definitions/StormConfiguration/properties/colors/anyOf/0/anyOf/0/properties/fatal"
301
+ }
302
+ },
303
+ "additionalProperties": false
304
+ }
305
+ },
306
+ "required": ["dark", "light"],
307
+ "additionalProperties": false
308
+ }
309
+ ],
310
+ "description": "Colors used for various workspace elements"
311
+ },
312
+ {
313
+ "anyOf": [
314
+ {
315
+ "type": "object",
316
+ "properties": {
317
+ "base": {
318
+ "$ref": "#/definitions/StormConfiguration/properties/colors/anyOf/0"
319
+ }
320
+ },
321
+ "required": ["base"],
322
+ "additionalProperties": false
323
+ },
324
+ {
325
+ "type": "object",
326
+ "additionalProperties": {
327
+ "$ref": "#/definitions/StormConfiguration/properties/colors/anyOf/0"
328
+ }
329
+ }
330
+ ]
331
+ }
332
+ ],
333
+ "description": "Storm theme config values used for styling various package elements"
334
+ },
335
+ "extensions": {
336
+ "type": "object",
337
+ "additionalProperties": {},
338
+ "default": {},
339
+ "description": "Configuration of each used extension"
340
+ }
341
+ },
342
+ "required": ["colors"],
343
+ "additionalProperties": false,
344
+ "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."
345
+ }
346
+ },
347
+ "$schema": "http://json-schema.org/draft-07/schema#"
348
+ }