@storm-software/k8s-tools 0.34.1 → 0.35.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.
- package/CHANGELOG.md +15 -0
- package/README.md +1 -1
- package/dist/{chunk-3FCME2FS.mjs → chunk-2FO2YMCU.mjs} +550 -248
- package/dist/{chunk-KU6MH4UF.js → chunk-2HX3PTJZ.js} +3 -3
- package/dist/{chunk-DB4FPULK.mjs → chunk-34DSHAFO.mjs} +1 -1
- package/dist/{chunk-BHZBTBM6.js → chunk-65PVMD3D.js} +4 -4
- package/dist/{chunk-QDXEIRJV.js → chunk-ENUPAJDC.js} +6 -6
- package/dist/{chunk-RL3QMIU4.mjs → chunk-G4YBLQT3.mjs} +2 -2
- package/dist/{chunk-7CVGLDYX.js → chunk-GHMQRIFB.js} +25 -25
- package/dist/{chunk-DU26E6TO.js → chunk-GIBAF5XB.js} +2 -2
- package/dist/{chunk-ZALELCO3.mjs → chunk-GNJWDJDM.mjs} +2 -2
- package/dist/{chunk-YFYE4UFJ.js → chunk-HM4ZAY7F.js} +4 -4
- package/dist/{chunk-QO6CAV2A.js → chunk-HOSWW7JC.js} +19 -19
- package/dist/{chunk-BF225HO4.mjs → chunk-JIUECHUZ.mjs} +2 -2
- package/dist/{chunk-AH4F7JLD.js → chunk-M35UNJM7.js} +550 -248
- package/dist/{chunk-FR7P26YN.mjs → chunk-NOK3A7PN.mjs} +1 -1
- package/dist/{chunk-YQ5GWKM5.mjs → chunk-PDN74IUT.mjs} +2 -2
- package/dist/{chunk-CH5LNYVN.mjs → chunk-W7CSZXVE.mjs} +2 -2
- package/dist/executors.js +5 -5
- package/dist/executors.mjs +4 -4
- package/dist/generators.js +6 -6
- package/dist/generators.mjs +5 -5
- package/dist/index.js +9 -9
- package/dist/index.mjs +8 -8
- package/dist/src/executors/container-publish/executor.js +4 -4
- package/dist/src/executors/container-publish/executor.mjs +3 -3
- package/dist/src/executors/helm-package/executor.js +4 -4
- package/dist/src/executors/helm-package/executor.mjs +3 -3
- package/dist/src/generators/helm-chart/generator.js +5 -5
- package/dist/src/generators/helm-chart/generator.mjs +4 -4
- package/dist/src/generators/helm-dependency/generator.js +5 -5
- package/dist/src/generators/helm-dependency/generator.mjs +4 -4
- package/dist/src/plugins/docker/index.js +3 -3
- package/dist/src/plugins/docker/index.mjs +2 -2
- package/package.json +5 -5
|
@@ -515,7 +515,7 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
|
|
|
515
515
|
}
|
|
516
516
|
|
|
517
517
|
// ../config/src/schema.ts
|
|
518
|
-
import * as z from "zod";
|
|
518
|
+
import * as z from "zod/mini";
|
|
519
519
|
|
|
520
520
|
// ../config/src/constants.ts
|
|
521
521
|
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
@@ -523,12 +523,8 @@ var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
|
523
523
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
524
524
|
var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
|
|
525
525
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
526
|
-
var STORM_DEFAULT_SOCIAL_TWITTER = "StormSoftwareHQ";
|
|
527
526
|
var STORM_DEFAULT_SOCIAL_DISCORD = "https://discord.gg/MQ6YVzakM5";
|
|
528
|
-
var STORM_DEFAULT_SOCIAL_TELEGRAM = "https://t.me/storm_software";
|
|
529
527
|
var STORM_DEFAULT_SOCIAL_SLACK = "https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA";
|
|
530
|
-
var STORM_DEFAULT_SOCIAL_MEDIUM = "https://medium.com/storm-software";
|
|
531
|
-
var STORM_DEFAULT_SOCIAL_GITHUB = "https://github.com/storm-software";
|
|
532
528
|
var STORM_DEFAULT_RELEASE_FOOTER = `
|
|
533
529
|
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.
|
|
534
530
|
|
|
@@ -537,233 +533,487 @@ Join us on [Discord](${STORM_DEFAULT_SOCIAL_DISCORD}) to chat with the team, rec
|
|
|
537
533
|
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!
|
|
538
534
|
`;
|
|
539
535
|
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
536
|
+
var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
|
|
540
537
|
|
|
541
538
|
// ../config/src/schema.ts
|
|
542
|
-
var
|
|
543
|
-
var
|
|
544
|
-
|
|
539
|
+
var schemaRegistry = z.registry();
|
|
540
|
+
var colorSchema = z.string().check(
|
|
541
|
+
z.length(7),
|
|
542
|
+
z.toLowerCase(),
|
|
543
|
+
z.regex(/^#([0-9a-f]{3}){1,2}$/i),
|
|
544
|
+
z.trim()
|
|
545
545
|
);
|
|
546
|
-
|
|
547
|
-
"
|
|
546
|
+
schemaRegistry.add(colorSchema, {
|
|
547
|
+
description: "A base schema for describing the format of colors"
|
|
548
|
+
});
|
|
549
|
+
var darkColorSchema = z._default(colorSchema, "#151718");
|
|
550
|
+
schemaRegistry.add(darkColorSchema, {
|
|
551
|
+
description: "The dark background color of the workspace"
|
|
552
|
+
});
|
|
553
|
+
var lightColorSchema = z._default(colorSchema, "#cbd5e1");
|
|
554
|
+
schemaRegistry.add(lightColorSchema, {
|
|
555
|
+
description: "The light background color of the workspace"
|
|
556
|
+
});
|
|
557
|
+
var brandColorSchema = z._default(colorSchema, "#1fb2a6");
|
|
558
|
+
schemaRegistry.add(brandColorSchema, {
|
|
559
|
+
description: "The primary brand specific color of the workspace"
|
|
560
|
+
});
|
|
561
|
+
var alternateColorSchema = z.optional(colorSchema);
|
|
562
|
+
schemaRegistry.add(alternateColorSchema, {
|
|
563
|
+
description: "The alternate brand specific color of the workspace"
|
|
564
|
+
});
|
|
565
|
+
var accentColorSchema = z.optional(colorSchema);
|
|
566
|
+
schemaRegistry.add(accentColorSchema, {
|
|
567
|
+
description: "The secondary brand specific color of the workspace"
|
|
568
|
+
});
|
|
569
|
+
var linkColorSchema = z._default(colorSchema, "#3fa6ff");
|
|
570
|
+
schemaRegistry.add(linkColorSchema, {
|
|
571
|
+
description: "The color used to display hyperlink text"
|
|
572
|
+
});
|
|
573
|
+
var helpColorSchema = z._default(colorSchema, "#818cf8");
|
|
574
|
+
schemaRegistry.add(helpColorSchema, {
|
|
575
|
+
description: "The second brand specific color of the workspace"
|
|
576
|
+
});
|
|
577
|
+
var successColorSchema = z._default(colorSchema, "#45b27e");
|
|
578
|
+
schemaRegistry.add(successColorSchema, {
|
|
579
|
+
description: "The success color of the workspace"
|
|
580
|
+
});
|
|
581
|
+
var infoColorSchema = z._default(colorSchema, "#38bdf8");
|
|
582
|
+
schemaRegistry.add(infoColorSchema, {
|
|
583
|
+
description: "The informational color of the workspace"
|
|
584
|
+
});
|
|
585
|
+
var warningColorSchema = z._default(colorSchema, "#f3d371");
|
|
586
|
+
schemaRegistry.add(warningColorSchema, {
|
|
587
|
+
description: "The warning color of the workspace"
|
|
588
|
+
});
|
|
589
|
+
var dangerColorSchema = z._default(colorSchema, "#d8314a");
|
|
590
|
+
schemaRegistry.add(dangerColorSchema, {
|
|
591
|
+
description: "The danger color of the workspace"
|
|
592
|
+
});
|
|
593
|
+
var fatalColorSchema = z.optional(colorSchema);
|
|
594
|
+
schemaRegistry.add(fatalColorSchema, {
|
|
595
|
+
description: "The fatal color of the workspace"
|
|
596
|
+
});
|
|
597
|
+
var positiveColorSchema = z._default(colorSchema, "#4ade80");
|
|
598
|
+
schemaRegistry.add(positiveColorSchema, {
|
|
599
|
+
description: "The positive number color of the workspace"
|
|
600
|
+
});
|
|
601
|
+
var negativeColorSchema = z._default(colorSchema, "#ef4444");
|
|
602
|
+
schemaRegistry.add(negativeColorSchema, {
|
|
603
|
+
description: "The negative number color of the workspace"
|
|
604
|
+
});
|
|
605
|
+
var gradientStopsSchema = z.optional(z.array(colorSchema));
|
|
606
|
+
schemaRegistry.add(gradientStopsSchema, {
|
|
607
|
+
description: "The color stops for the base gradient color pattern used in the workspace"
|
|
608
|
+
});
|
|
609
|
+
var darkColorsSchema = z.object({
|
|
610
|
+
foreground: lightColorSchema,
|
|
611
|
+
background: darkColorSchema,
|
|
612
|
+
brand: brandColorSchema,
|
|
613
|
+
alternate: alternateColorSchema,
|
|
614
|
+
accent: accentColorSchema,
|
|
615
|
+
link: linkColorSchema,
|
|
616
|
+
help: helpColorSchema,
|
|
617
|
+
success: successColorSchema,
|
|
618
|
+
info: infoColorSchema,
|
|
619
|
+
warning: warningColorSchema,
|
|
620
|
+
danger: dangerColorSchema,
|
|
621
|
+
fatal: fatalColorSchema,
|
|
622
|
+
positive: positiveColorSchema,
|
|
623
|
+
negative: negativeColorSchema,
|
|
624
|
+
gradient: gradientStopsSchema
|
|
625
|
+
});
|
|
626
|
+
var lightColorsSchema = z.object({
|
|
627
|
+
foreground: darkColorSchema,
|
|
628
|
+
background: lightColorSchema,
|
|
629
|
+
brand: brandColorSchema,
|
|
630
|
+
alternate: alternateColorSchema,
|
|
631
|
+
accent: accentColorSchema,
|
|
632
|
+
link: linkColorSchema,
|
|
633
|
+
help: helpColorSchema,
|
|
634
|
+
success: successColorSchema,
|
|
635
|
+
info: infoColorSchema,
|
|
636
|
+
warning: warningColorSchema,
|
|
637
|
+
danger: dangerColorSchema,
|
|
638
|
+
fatal: fatalColorSchema,
|
|
639
|
+
positive: positiveColorSchema,
|
|
640
|
+
negative: negativeColorSchema,
|
|
641
|
+
gradient: gradientStopsSchema
|
|
642
|
+
});
|
|
643
|
+
var multiColorsSchema = z.object({
|
|
644
|
+
dark: darkColorsSchema,
|
|
645
|
+
light: lightColorsSchema
|
|
646
|
+
});
|
|
647
|
+
var singleColorsSchema = z.object({
|
|
648
|
+
dark: darkColorSchema,
|
|
649
|
+
light: lightColorSchema,
|
|
650
|
+
brand: brandColorSchema,
|
|
651
|
+
alternate: alternateColorSchema,
|
|
652
|
+
accent: accentColorSchema,
|
|
653
|
+
link: linkColorSchema,
|
|
654
|
+
help: helpColorSchema,
|
|
655
|
+
success: successColorSchema,
|
|
656
|
+
info: infoColorSchema,
|
|
657
|
+
warning: warningColorSchema,
|
|
658
|
+
danger: dangerColorSchema,
|
|
659
|
+
fatal: fatalColorSchema,
|
|
660
|
+
positive: positiveColorSchema,
|
|
661
|
+
negative: negativeColorSchema,
|
|
662
|
+
gradient: gradientStopsSchema
|
|
663
|
+
});
|
|
664
|
+
var registryUrlConfigSchema = z.optional(z.url());
|
|
665
|
+
schemaRegistry.add(registryUrlConfigSchema, {
|
|
666
|
+
description: "A remote registry URL used to publish distributable packages"
|
|
667
|
+
});
|
|
668
|
+
var registrySchema = z._default(
|
|
669
|
+
z.object({
|
|
670
|
+
github: registryUrlConfigSchema,
|
|
671
|
+
npm: registryUrlConfigSchema,
|
|
672
|
+
cargo: registryUrlConfigSchema,
|
|
673
|
+
cyclone: registryUrlConfigSchema,
|
|
674
|
+
container: registryUrlConfigSchema
|
|
675
|
+
}),
|
|
676
|
+
{}
|
|
677
|
+
);
|
|
678
|
+
schemaRegistry.add(registrySchema, {
|
|
679
|
+
description: "A list of remote registry URLs used by Storm Software"
|
|
680
|
+
});
|
|
681
|
+
var colorsSchema = z.union([singleColorsSchema, multiColorsSchema]);
|
|
682
|
+
schemaRegistry.add(colorsSchema, {
|
|
683
|
+
description: "Colors used for various workspace elements"
|
|
684
|
+
});
|
|
685
|
+
var themeColorsSchema = z.record(
|
|
686
|
+
z.union([z.union([z.literal("base"), z.string()]), z.string()]),
|
|
687
|
+
colorsSchema
|
|
688
|
+
);
|
|
689
|
+
schemaRegistry.add(themeColorsSchema, {
|
|
690
|
+
description: "Storm theme config values used for styling various package elements"
|
|
691
|
+
});
|
|
692
|
+
var extendsSchema = z.optional(
|
|
693
|
+
z.union([z.string().check(z.trim()), z.array(z.string().check(z.trim()))])
|
|
548
694
|
);
|
|
549
|
-
|
|
550
|
-
"The
|
|
695
|
+
schemaRegistry.add(extendsSchema, {
|
|
696
|
+
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."
|
|
697
|
+
});
|
|
698
|
+
var workspaceBotNameSchema = z.string().check(z.trim());
|
|
699
|
+
schemaRegistry.add(workspaceBotNameSchema, {
|
|
700
|
+
description: "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
|
|
701
|
+
});
|
|
702
|
+
var workspaceBotEmailSchema = z.string().check(z.trim());
|
|
703
|
+
schemaRegistry.add(workspaceBotEmailSchema, {
|
|
704
|
+
description: "The email of the workspace bot"
|
|
705
|
+
});
|
|
706
|
+
var workspaceBotSchema = z.object({
|
|
707
|
+
name: workspaceBotNameSchema,
|
|
708
|
+
email: workspaceBotEmailSchema
|
|
709
|
+
});
|
|
710
|
+
schemaRegistry.add(workspaceBotSchema, {
|
|
711
|
+
description: "The workspace's bot user's config used to automated various operations tasks"
|
|
712
|
+
});
|
|
713
|
+
var workspaceReleaseBannerUrlSchema = z.optional(
|
|
714
|
+
z.string().check(z.trim(), z.url())
|
|
715
|
+
);
|
|
716
|
+
schemaRegistry.add(workspaceReleaseBannerUrlSchema, {
|
|
717
|
+
description: "A URL to a banner image used to display the workspace's release"
|
|
718
|
+
});
|
|
719
|
+
var workspaceReleaseBannerAltSchema = z._default(
|
|
720
|
+
z.string().check(z.trim()),
|
|
721
|
+
STORM_DEFAULT_BANNER_ALT
|
|
722
|
+
);
|
|
723
|
+
schemaRegistry.add(workspaceReleaseBannerAltSchema, {
|
|
724
|
+
description: "The alt text for the workspace's release banner image"
|
|
725
|
+
});
|
|
726
|
+
var workspaceReleaseBannerSchema = z.object({
|
|
727
|
+
url: workspaceReleaseBannerUrlSchema,
|
|
728
|
+
alt: workspaceReleaseBannerAltSchema
|
|
729
|
+
});
|
|
730
|
+
schemaRegistry.add(workspaceReleaseBannerSchema, {
|
|
731
|
+
description: "The workspace's banner image used during the release process"
|
|
732
|
+
});
|
|
733
|
+
var workspaceReleaseHeaderSchema = z.optional(
|
|
734
|
+
z.string().check(z.trim())
|
|
735
|
+
);
|
|
736
|
+
schemaRegistry.add(workspaceReleaseHeaderSchema, {
|
|
737
|
+
description: "A header message appended to the start of the workspace's release notes"
|
|
738
|
+
});
|
|
739
|
+
var workspaceReleaseFooterSchema = z.optional(
|
|
740
|
+
z.string().check(z.trim())
|
|
741
|
+
);
|
|
742
|
+
schemaRegistry.add(workspaceReleaseFooterSchema, {
|
|
743
|
+
description: "A footer message appended to the end of the workspace's release notes"
|
|
744
|
+
});
|
|
745
|
+
var workspaceReleaseSchema = z.object({
|
|
746
|
+
banner: z.union([
|
|
747
|
+
workspaceReleaseBannerSchema,
|
|
748
|
+
z.string().check(z.trim(), z.url())
|
|
749
|
+
]),
|
|
750
|
+
header: workspaceReleaseHeaderSchema,
|
|
751
|
+
footer: workspaceReleaseFooterSchema
|
|
752
|
+
});
|
|
753
|
+
schemaRegistry.add(workspaceReleaseSchema, {
|
|
754
|
+
description: "The workspace's release config used during the release process"
|
|
755
|
+
});
|
|
756
|
+
var workspaceSocialsTwitterSchema = z.optional(
|
|
757
|
+
z.string().check(z.trim())
|
|
758
|
+
);
|
|
759
|
+
schemaRegistry.add(workspaceSocialsTwitterSchema, {
|
|
760
|
+
description: "A Twitter/X account associated with the organization/project"
|
|
761
|
+
});
|
|
762
|
+
var workspaceSocialsDiscordSchema = z.optional(
|
|
763
|
+
z.string().check(z.trim())
|
|
764
|
+
);
|
|
765
|
+
schemaRegistry.add(workspaceSocialsDiscordSchema, {
|
|
766
|
+
description: "A Discord account associated with the organization/project"
|
|
767
|
+
});
|
|
768
|
+
var workspaceSocialsTelegramSchema = z.optional(
|
|
769
|
+
z.string().check(z.trim())
|
|
770
|
+
);
|
|
771
|
+
schemaRegistry.add(workspaceSocialsTelegramSchema, {
|
|
772
|
+
description: "A Telegram account associated with the organization/project"
|
|
773
|
+
});
|
|
774
|
+
var workspaceSocialsSlackSchema = z.optional(
|
|
775
|
+
z.string().check(z.trim())
|
|
776
|
+
);
|
|
777
|
+
schemaRegistry.add(workspaceSocialsSlackSchema, {
|
|
778
|
+
description: "A Slack account associated with the organization/project"
|
|
779
|
+
});
|
|
780
|
+
var workspaceSocialsMediumSchema = z.optional(
|
|
781
|
+
z.string().check(z.trim())
|
|
782
|
+
);
|
|
783
|
+
schemaRegistry.add(workspaceSocialsMediumSchema, {
|
|
784
|
+
description: "A Medium account associated with the organization/project"
|
|
785
|
+
});
|
|
786
|
+
var workspaceSocialsGithubSchema = z.optional(
|
|
787
|
+
z.string().check(z.trim())
|
|
551
788
|
);
|
|
552
|
-
|
|
553
|
-
"
|
|
789
|
+
schemaRegistry.add(workspaceSocialsGithubSchema, {
|
|
790
|
+
description: "A GitHub account associated with the organization/project"
|
|
791
|
+
});
|
|
792
|
+
var workspaceSocialsSchema = z.object({
|
|
793
|
+
twitter: workspaceSocialsTwitterSchema,
|
|
794
|
+
discord: workspaceSocialsDiscordSchema,
|
|
795
|
+
telegram: workspaceSocialsTelegramSchema,
|
|
796
|
+
slack: workspaceSocialsSlackSchema,
|
|
797
|
+
medium: workspaceSocialsMediumSchema,
|
|
798
|
+
github: workspaceSocialsGithubSchema
|
|
799
|
+
});
|
|
800
|
+
schemaRegistry.add(workspaceSocialsSchema, {
|
|
801
|
+
description: "The workspace's account config used to store various social media links"
|
|
802
|
+
});
|
|
803
|
+
var workspaceDirectoryCacheSchema = z.optional(
|
|
804
|
+
z.string().check(z.trim())
|
|
554
805
|
);
|
|
555
|
-
|
|
556
|
-
"The
|
|
806
|
+
schemaRegistry.add(workspaceDirectoryCacheSchema, {
|
|
807
|
+
description: "The directory used to store the environment's cached file data"
|
|
808
|
+
});
|
|
809
|
+
var workspaceDirectoryDataSchema = z.optional(
|
|
810
|
+
z.string().check(z.trim())
|
|
557
811
|
);
|
|
558
|
-
|
|
559
|
-
"The
|
|
812
|
+
schemaRegistry.add(workspaceDirectoryDataSchema, {
|
|
813
|
+
description: "The directory used to store the environment's data files"
|
|
814
|
+
});
|
|
815
|
+
var workspaceDirectoryConfigSchema = z.optional(
|
|
816
|
+
z.string().check(z.trim())
|
|
560
817
|
);
|
|
561
|
-
|
|
562
|
-
"The
|
|
818
|
+
schemaRegistry.add(workspaceDirectoryConfigSchema, {
|
|
819
|
+
description: "The directory used to store the environment's configuration files"
|
|
820
|
+
});
|
|
821
|
+
var workspaceDirectoryTempSchema = z.optional(
|
|
822
|
+
z.string().check(z.trim())
|
|
563
823
|
);
|
|
564
|
-
|
|
565
|
-
"The
|
|
824
|
+
schemaRegistry.add(workspaceDirectoryTempSchema, {
|
|
825
|
+
description: "The directory used to store the environment's temp files"
|
|
826
|
+
});
|
|
827
|
+
var workspaceDirectoryLogSchema = z.optional(
|
|
828
|
+
z.string().check(z.trim())
|
|
566
829
|
);
|
|
567
|
-
|
|
568
|
-
"The
|
|
830
|
+
schemaRegistry.add(workspaceDirectoryLogSchema, {
|
|
831
|
+
description: "The directory used to store the environment's log files"
|
|
832
|
+
});
|
|
833
|
+
var workspaceDirectoryBuildSchema = z._default(
|
|
834
|
+
z.string().check(z.trim()),
|
|
835
|
+
"dist"
|
|
569
836
|
);
|
|
570
|
-
|
|
571
|
-
"The
|
|
837
|
+
schemaRegistry.add(workspaceDirectoryBuildSchema, {
|
|
838
|
+
description: "The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
|
|
839
|
+
});
|
|
840
|
+
var workspaceDirectorySchema = z.object({
|
|
841
|
+
cache: workspaceDirectoryCacheSchema,
|
|
842
|
+
data: workspaceDirectoryDataSchema,
|
|
843
|
+
config: workspaceDirectoryConfigSchema,
|
|
844
|
+
temp: workspaceDirectoryTempSchema,
|
|
845
|
+
log: workspaceDirectoryLogSchema,
|
|
846
|
+
build: workspaceDirectoryBuildSchema
|
|
847
|
+
});
|
|
848
|
+
schemaRegistry.add(workspaceDirectorySchema, {
|
|
849
|
+
description: "Various directories used by the workspace to store data, cache, and configuration files"
|
|
850
|
+
});
|
|
851
|
+
var errorCodesFileSchema = z._default(
|
|
852
|
+
z.string().check(z.trim()),
|
|
853
|
+
STORM_DEFAULT_ERROR_CODES_FILE
|
|
572
854
|
);
|
|
573
|
-
|
|
574
|
-
"The
|
|
855
|
+
schemaRegistry.add(errorCodesFileSchema, {
|
|
856
|
+
description: "The path to the workspace's error codes JSON file"
|
|
857
|
+
});
|
|
858
|
+
var errorUrlSchema = z.optional(z.url());
|
|
859
|
+
schemaRegistry.add(errorUrlSchema, {
|
|
860
|
+
description: "A URL to a page that looks up the workspace's error messages given a specific error code"
|
|
861
|
+
});
|
|
862
|
+
var errorSchema = z.object({
|
|
863
|
+
codesFile: errorCodesFileSchema,
|
|
864
|
+
url: errorUrlSchema
|
|
865
|
+
});
|
|
866
|
+
schemaRegistry.add(errorSchema, {
|
|
867
|
+
description: "The workspace's error config used when creating error details during a system error"
|
|
868
|
+
});
|
|
869
|
+
var organizationNameSchema = z.optional(
|
|
870
|
+
z.string().check(z.trim(), z.toLowerCase())
|
|
575
871
|
);
|
|
576
|
-
|
|
577
|
-
"The
|
|
872
|
+
schemaRegistry.add(organizationNameSchema, {
|
|
873
|
+
description: "The name of the organization"
|
|
874
|
+
});
|
|
875
|
+
var organizationDescriptionSchema = z.optional(
|
|
876
|
+
z.string().check(z.trim())
|
|
578
877
|
);
|
|
579
|
-
|
|
580
|
-
"
|
|
878
|
+
schemaRegistry.add(organizationDescriptionSchema, {
|
|
879
|
+
description: "A description of the organization"
|
|
880
|
+
});
|
|
881
|
+
var organizationLogoSchema = z.optional(z.url());
|
|
882
|
+
schemaRegistry.add(organizationLogoSchema, {
|
|
883
|
+
description: "A URL to the organization's logo image"
|
|
884
|
+
});
|
|
885
|
+
var organizationIconSchema = z.optional(z.url());
|
|
886
|
+
schemaRegistry.add(organizationIconSchema, {
|
|
887
|
+
description: "A URL to the organization's icon image"
|
|
888
|
+
});
|
|
889
|
+
var organizationUrlSchema = z.optional(z.url());
|
|
890
|
+
schemaRegistry.add(organizationUrlSchema, {
|
|
891
|
+
description: "A URL to a page that provides more information about the organization"
|
|
892
|
+
});
|
|
893
|
+
var organizationSchema = z.object({
|
|
894
|
+
name: organizationNameSchema,
|
|
895
|
+
description: organizationDescriptionSchema,
|
|
896
|
+
logo: organizationLogoSchema,
|
|
897
|
+
icon: organizationIconSchema,
|
|
898
|
+
url: organizationUrlSchema
|
|
899
|
+
});
|
|
900
|
+
schemaRegistry.add(organizationSchema, {
|
|
901
|
+
description: "The workspace's organization details"
|
|
902
|
+
});
|
|
903
|
+
var schemaNameSchema = z._default(
|
|
904
|
+
z.string().check(z.trim(), z.toLowerCase()),
|
|
905
|
+
"https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
|
|
581
906
|
);
|
|
582
|
-
|
|
583
|
-
"The
|
|
907
|
+
schemaRegistry.add(schemaNameSchema, {
|
|
908
|
+
description: "The URL or file path to the JSON schema file that describes the Storm configuration file"
|
|
909
|
+
});
|
|
910
|
+
var nameSchema = z.string().check(z.trim(), z.toLowerCase());
|
|
911
|
+
schemaRegistry.add(nameSchema, {
|
|
912
|
+
description: "The name of the workspace/project/service/package/scope using this configuration"
|
|
913
|
+
});
|
|
914
|
+
var namespaceSchema = z.string().check(z.trim(), z.toLowerCase());
|
|
915
|
+
schemaRegistry.add(namespaceSchema, {
|
|
916
|
+
description: "The namespace of the workspace/project/service/package/scope using this configuration"
|
|
917
|
+
});
|
|
918
|
+
var orgSchema = z.union([
|
|
919
|
+
organizationSchema,
|
|
920
|
+
z.string().check(z.trim(), z.toLowerCase())
|
|
921
|
+
]);
|
|
922
|
+
schemaRegistry.add(orgSchema, {
|
|
923
|
+
description: "The organization of the workspace. This can be a string or an object containing the organization's details"
|
|
924
|
+
});
|
|
925
|
+
var repositorySchema = z.string().check(z.trim(), z.toLowerCase());
|
|
926
|
+
schemaRegistry.add(repositorySchema, {
|
|
927
|
+
description: "The repo URL of the workspace (i.e. the GitHub repository URL)"
|
|
928
|
+
});
|
|
929
|
+
var licenseSchema = z._default(
|
|
930
|
+
z.string().check(z.trim()),
|
|
931
|
+
"Apache-2.0"
|
|
584
932
|
);
|
|
585
|
-
|
|
586
|
-
"The
|
|
933
|
+
schemaRegistry.add(licenseSchema, {
|
|
934
|
+
description: "The license type of the package"
|
|
935
|
+
});
|
|
936
|
+
var homepageSchema = z.optional(z.url());
|
|
937
|
+
schemaRegistry.add(homepageSchema, {
|
|
938
|
+
description: "The homepage of the workspace"
|
|
939
|
+
});
|
|
940
|
+
var docsSchema = z.optional(z.url());
|
|
941
|
+
schemaRegistry.add(docsSchema, {
|
|
942
|
+
description: "The documentation site for the workspace"
|
|
943
|
+
});
|
|
944
|
+
var portalSchema = z.optional(z.url());
|
|
945
|
+
schemaRegistry.add(portalSchema, {
|
|
946
|
+
description: "The development portal site for the workspace"
|
|
947
|
+
});
|
|
948
|
+
var licensingSchema = z.optional(z.url());
|
|
949
|
+
schemaRegistry.add(licensingSchema, {
|
|
950
|
+
description: "The licensing site for the workspace"
|
|
951
|
+
});
|
|
952
|
+
var contactSchema = z.optional(z.url());
|
|
953
|
+
schemaRegistry.add(contactSchema, {
|
|
954
|
+
description: "The contact site for the workspace"
|
|
955
|
+
});
|
|
956
|
+
var supportSchema = z.optional(z.url());
|
|
957
|
+
schemaRegistry.add(supportSchema, {
|
|
958
|
+
description: "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
959
|
+
});
|
|
960
|
+
var branchSchema = z._default(
|
|
961
|
+
z.string().check(z.trim(), z.toLowerCase()),
|
|
962
|
+
"main"
|
|
587
963
|
);
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
accent: AccentColorSchema,
|
|
594
|
-
link: LinkColorSchema,
|
|
595
|
-
help: HelpColorSchema,
|
|
596
|
-
success: SuccessColorSchema,
|
|
597
|
-
info: InfoColorSchema,
|
|
598
|
-
warning: WarningColorSchema,
|
|
599
|
-
danger: DangerColorSchema,
|
|
600
|
-
fatal: FatalColorSchema,
|
|
601
|
-
positive: PositiveColorSchema,
|
|
602
|
-
negative: NegativeColorSchema,
|
|
603
|
-
gradient: GradientStopsSchema
|
|
604
|
-
});
|
|
605
|
-
var LightThemeColorConfigSchema = z.object({
|
|
606
|
-
foreground: DarkColorSchema,
|
|
607
|
-
background: LightColorSchema,
|
|
608
|
-
brand: BrandColorSchema,
|
|
609
|
-
alternate: AlternateColorSchema,
|
|
610
|
-
accent: AccentColorSchema,
|
|
611
|
-
link: LinkColorSchema,
|
|
612
|
-
help: HelpColorSchema,
|
|
613
|
-
success: SuccessColorSchema,
|
|
614
|
-
info: InfoColorSchema,
|
|
615
|
-
warning: WarningColorSchema,
|
|
616
|
-
danger: DangerColorSchema,
|
|
617
|
-
fatal: FatalColorSchema,
|
|
618
|
-
positive: PositiveColorSchema,
|
|
619
|
-
negative: NegativeColorSchema,
|
|
620
|
-
gradient: GradientStopsSchema
|
|
621
|
-
});
|
|
622
|
-
var MultiThemeColorConfigSchema = z.object({
|
|
623
|
-
dark: DarkThemeColorConfigSchema,
|
|
624
|
-
light: LightThemeColorConfigSchema
|
|
625
|
-
});
|
|
626
|
-
var SingleThemeColorConfigSchema = z.object({
|
|
627
|
-
dark: DarkColorSchema,
|
|
628
|
-
light: LightColorSchema,
|
|
629
|
-
brand: BrandColorSchema,
|
|
630
|
-
alternate: AlternateColorSchema,
|
|
631
|
-
accent: AccentColorSchema,
|
|
632
|
-
link: LinkColorSchema,
|
|
633
|
-
help: HelpColorSchema,
|
|
634
|
-
success: SuccessColorSchema,
|
|
635
|
-
info: InfoColorSchema,
|
|
636
|
-
warning: WarningColorSchema,
|
|
637
|
-
danger: DangerColorSchema,
|
|
638
|
-
fatal: FatalColorSchema,
|
|
639
|
-
positive: PositiveColorSchema,
|
|
640
|
-
negative: NegativeColorSchema,
|
|
641
|
-
gradient: GradientStopsSchema
|
|
642
|
-
});
|
|
643
|
-
var RegistryUrlConfigSchema = z.url().optional().describe("A remote registry URL used to publish distributable packages");
|
|
644
|
-
var RegistryConfigSchema = z.object({
|
|
645
|
-
github: RegistryUrlConfigSchema,
|
|
646
|
-
npm: RegistryUrlConfigSchema,
|
|
647
|
-
cargo: RegistryUrlConfigSchema,
|
|
648
|
-
cyclone: RegistryUrlConfigSchema,
|
|
649
|
-
container: RegistryUrlConfigSchema
|
|
650
|
-
}).default({}).describe("A list of remote registry URLs used by Storm Software");
|
|
651
|
-
var ColorConfigSchema = SingleThemeColorConfigSchema.or(
|
|
652
|
-
MultiThemeColorConfigSchema
|
|
653
|
-
).describe("Colors used for various workspace elements");
|
|
654
|
-
var ColorConfigMapSchema = z.record(
|
|
655
|
-
z.union([z.literal("base"), z.string()]),
|
|
656
|
-
ColorConfigSchema
|
|
964
|
+
schemaRegistry.add(branchSchema, {
|
|
965
|
+
description: "The branch of the workspace"
|
|
966
|
+
});
|
|
967
|
+
var preidSchema = z.optional(
|
|
968
|
+
z.string().check(z.trim(), z.toLowerCase())
|
|
657
969
|
);
|
|
658
|
-
|
|
659
|
-
"
|
|
970
|
+
schemaRegistry.add(preidSchema, {
|
|
971
|
+
description: "A tag specifying the version pre-release identifier"
|
|
972
|
+
});
|
|
973
|
+
var ownerSchema = z.optional(
|
|
974
|
+
z.string().check(z.trim(), z.toLowerCase())
|
|
660
975
|
);
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
)
|
|
664
|
-
|
|
976
|
+
schemaRegistry.add(ownerSchema, {
|
|
977
|
+
description: "The owner of the package"
|
|
978
|
+
});
|
|
979
|
+
var modeSchema = z._default(
|
|
980
|
+
z.enum(["development", "staging", "production"]).check(z.trim(), z.toLowerCase()),
|
|
981
|
+
"production"
|
|
665
982
|
);
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
983
|
+
schemaRegistry.add(modeSchema, {
|
|
984
|
+
description: "The current runtime environment mode for the package"
|
|
985
|
+
});
|
|
986
|
+
var workspaceRootSchema = z.string().check(z.trim(), z.toLowerCase());
|
|
987
|
+
schemaRegistry.add(workspaceRootSchema, {
|
|
988
|
+
description: "The root directory of the workspace"
|
|
989
|
+
});
|
|
990
|
+
var skipCacheSchema = z._default(z.boolean(), false);
|
|
991
|
+
schemaRegistry.add(skipCacheSchema, {
|
|
992
|
+
description: "Should all known types of workspace caching be skipped?"
|
|
993
|
+
});
|
|
994
|
+
var packageManagerSchema = z._default(
|
|
995
|
+
z.enum(["npm", "yarn", "pnpm", "bun"]),
|
|
996
|
+
"npm"
|
|
673
997
|
);
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
),
|
|
681
|
-
footer: z.string().trim().optional().describe(
|
|
682
|
-
"A footer message appended to the end of the workspace's release notes"
|
|
683
|
-
)
|
|
684
|
-
}).describe("The workspace's release config used during the release process");
|
|
685
|
-
var WorkspaceSocialsConfigSchema = z.object({
|
|
686
|
-
twitter: z.string().trim().default(STORM_DEFAULT_SOCIAL_TWITTER).describe("A Twitter/X account associated with the organization/project"),
|
|
687
|
-
discord: z.string().trim().default(STORM_DEFAULT_SOCIAL_DISCORD).describe("A Discord account associated with the organization/project"),
|
|
688
|
-
telegram: z.string().trim().default(STORM_DEFAULT_SOCIAL_TELEGRAM).describe("A Telegram account associated with the organization/project"),
|
|
689
|
-
slack: z.string().trim().default(STORM_DEFAULT_SOCIAL_SLACK).describe("A Slack account associated with the organization/project"),
|
|
690
|
-
medium: z.string().trim().default(STORM_DEFAULT_SOCIAL_MEDIUM).describe("A Medium account associated with the organization/project"),
|
|
691
|
-
github: z.string().trim().default(STORM_DEFAULT_SOCIAL_GITHUB).describe("A GitHub account associated with the organization/project")
|
|
692
|
-
}).describe(
|
|
693
|
-
"The workspace's account config used to store various social media links"
|
|
998
|
+
schemaRegistry.add(packageManagerSchema, {
|
|
999
|
+
description: "The JavaScript/TypeScript package manager used by the repository"
|
|
1000
|
+
});
|
|
1001
|
+
var timezoneSchema = z._default(
|
|
1002
|
+
z.string().check(z.trim(), z.toLowerCase()),
|
|
1003
|
+
"America/New_York"
|
|
694
1004
|
);
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
"The directory used to store the environment's configuration files"
|
|
702
|
-
),
|
|
703
|
-
temp: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
704
|
-
log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
705
|
-
build: z.string().trim().default("dist").describe(
|
|
706
|
-
"The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
|
|
707
|
-
)
|
|
708
|
-
}).describe(
|
|
709
|
-
"Various directories used by the workspace to store data, cache, and configuration files"
|
|
1005
|
+
schemaRegistry.add(timezoneSchema, {
|
|
1006
|
+
description: "The default timezone of the workspace"
|
|
1007
|
+
});
|
|
1008
|
+
var localeSchema = z._default(
|
|
1009
|
+
z.string().check(z.trim(), z.toLowerCase()),
|
|
1010
|
+
"en-US"
|
|
710
1011
|
);
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
}).describe("The workspace's error config used during the error process");
|
|
717
|
-
var organizationConfigSchema = z.object({
|
|
718
|
-
name: z.string().trim().describe("The name of the organization"),
|
|
719
|
-
description: z.string().trim().optional().describe("A description of the organization"),
|
|
720
|
-
logo: z.url().optional().describe("A URL to the organization's logo image"),
|
|
721
|
-
icon: z.url().optional().describe("A URL to the organization's icon image"),
|
|
722
|
-
url: z.url().optional().describe(
|
|
723
|
-
"A URL to a page that provides more information about the organization"
|
|
724
|
-
)
|
|
725
|
-
}).describe("The workspace's organization details");
|
|
726
|
-
var stormWorkspaceConfigSchema = z.object({
|
|
727
|
-
$schema: z.string().trim().default(
|
|
728
|
-
"https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
|
|
729
|
-
).describe(
|
|
730
|
-
"The URL or file path to the JSON schema file that describes the Storm configuration file"
|
|
731
|
-
),
|
|
732
|
-
extends: ExtendsSchema.optional(),
|
|
733
|
-
name: z.string().trim().toLowerCase().optional().describe(
|
|
734
|
-
"The name of the service/package/scope using this configuration"
|
|
735
|
-
),
|
|
736
|
-
namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
737
|
-
organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
|
|
738
|
-
"The organization of the workspace. This can be a string or an object containing the organization's details"
|
|
739
|
-
),
|
|
740
|
-
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
741
|
-
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
742
|
-
homepage: z.url().optional().describe("The homepage of the workspace"),
|
|
743
|
-
docs: z.url().optional().describe("The documentation site for the workspace"),
|
|
744
|
-
portal: z.url().optional().describe("The development portal site for the workspace"),
|
|
745
|
-
licensing: z.url().optional().describe("The licensing site for the workspace"),
|
|
746
|
-
contact: z.url().optional().describe("The contact site for the workspace"),
|
|
747
|
-
support: z.url().optional().describe(
|
|
748
|
-
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
749
|
-
),
|
|
750
|
-
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
751
|
-
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
752
|
-
owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
753
|
-
bot: WorkspaceBotConfigSchema,
|
|
754
|
-
release: WorkspaceReleaseConfigSchema,
|
|
755
|
-
socials: WorkspaceSocialsConfigSchema,
|
|
756
|
-
error: errorConfigSchema,
|
|
757
|
-
mode: z.string().trim().default("production").describe("The current runtime environment mode for the package"),
|
|
758
|
-
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
759
|
-
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
760
|
-
directories: WorkspaceDirectoryConfigSchema,
|
|
761
|
-
packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
|
|
762
|
-
"The JavaScript/TypeScript package manager used by the repository"
|
|
763
|
-
),
|
|
764
|
-
timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
765
|
-
locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
766
|
-
logLevel: z.enum([
|
|
1012
|
+
schemaRegistry.add(localeSchema, {
|
|
1013
|
+
description: "The default locale of the workspace"
|
|
1014
|
+
});
|
|
1015
|
+
var logLevelSchema = z._default(
|
|
1016
|
+
z.enum([
|
|
767
1017
|
"silent",
|
|
768
1018
|
"fatal",
|
|
769
1019
|
"error",
|
|
@@ -773,23 +1023,65 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
773
1023
|
"debug",
|
|
774
1024
|
"trace",
|
|
775
1025
|
"all"
|
|
776
|
-
])
|
|
777
|
-
|
|
778
|
-
),
|
|
779
|
-
skipConfigLogging: z.boolean().optional().describe(
|
|
780
|
-
"Should the logging of the current Storm Workspace configuration be skipped?"
|
|
781
|
-
),
|
|
782
|
-
registry: RegistryConfigSchema,
|
|
783
|
-
configFile: z.string().trim().nullable().default(null).describe(
|
|
784
|
-
"The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
|
|
785
|
-
),
|
|
786
|
-
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
|
|
787
|
-
"Storm theme config values used for styling various package elements"
|
|
788
|
-
),
|
|
789
|
-
extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
|
|
790
|
-
}).describe(
|
|
791
|
-
"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."
|
|
1026
|
+
]),
|
|
1027
|
+
"info"
|
|
792
1028
|
);
|
|
1029
|
+
schemaRegistry.add(logLevelSchema, {
|
|
1030
|
+
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`)."
|
|
1031
|
+
});
|
|
1032
|
+
var skipConfigLoggingSchema = z._default(z.boolean(), true);
|
|
1033
|
+
schemaRegistry.add(skipConfigLoggingSchema, {
|
|
1034
|
+
description: "Should the logging of the current Storm Workspace configuration be skipped?"
|
|
1035
|
+
});
|
|
1036
|
+
var configFileSchema = z._default(
|
|
1037
|
+
z.nullable(z.string().check(z.trim())),
|
|
1038
|
+
null
|
|
1039
|
+
);
|
|
1040
|
+
schemaRegistry.add(configFileSchema, {
|
|
1041
|
+
description: "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
|
|
1042
|
+
});
|
|
1043
|
+
var extensionsSchema = z._default(z.record(z.string(), z.any()), {});
|
|
1044
|
+
schemaRegistry.add(extensionsSchema, {
|
|
1045
|
+
description: "Configuration of each used extension"
|
|
1046
|
+
});
|
|
1047
|
+
var workspaceConfigSchema = z.object({
|
|
1048
|
+
$schema: schemaNameSchema,
|
|
1049
|
+
extends: extendsSchema,
|
|
1050
|
+
name: nameSchema,
|
|
1051
|
+
namespace: namespaceSchema,
|
|
1052
|
+
organization: orgSchema,
|
|
1053
|
+
repository: repositorySchema,
|
|
1054
|
+
license: licenseSchema,
|
|
1055
|
+
homepage: homepageSchema,
|
|
1056
|
+
docs: docsSchema,
|
|
1057
|
+
portal: portalSchema,
|
|
1058
|
+
licensing: licensingSchema,
|
|
1059
|
+
contact: contactSchema,
|
|
1060
|
+
support: supportSchema,
|
|
1061
|
+
branch: branchSchema,
|
|
1062
|
+
preid: preidSchema,
|
|
1063
|
+
owner: ownerSchema,
|
|
1064
|
+
bot: workspaceBotSchema,
|
|
1065
|
+
release: workspaceReleaseSchema,
|
|
1066
|
+
socials: workspaceSocialsSchema,
|
|
1067
|
+
error: errorSchema,
|
|
1068
|
+
mode: modeSchema,
|
|
1069
|
+
workspaceRoot: workspaceRootSchema,
|
|
1070
|
+
skipCache: skipCacheSchema,
|
|
1071
|
+
directories: workspaceDirectorySchema,
|
|
1072
|
+
packageManager: packageManagerSchema,
|
|
1073
|
+
timezone: timezoneSchema,
|
|
1074
|
+
locale: localeSchema,
|
|
1075
|
+
logLevel: logLevelSchema,
|
|
1076
|
+
skipConfigLogging: skipConfigLoggingSchema,
|
|
1077
|
+
registry: registrySchema,
|
|
1078
|
+
configFile: configFileSchema,
|
|
1079
|
+
colors: z.union([colorsSchema, themeColorsSchema]),
|
|
1080
|
+
extensions: extensionsSchema
|
|
1081
|
+
});
|
|
1082
|
+
schemaRegistry.add(extensionsSchema, {
|
|
1083
|
+
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."
|
|
1084
|
+
});
|
|
793
1085
|
|
|
794
1086
|
// ../config-tools/src/create-storm-config.ts
|
|
795
1087
|
import defu2 from "defu";
|
|
@@ -1005,7 +1297,10 @@ var getConfigEnv = () => {
|
|
|
1005
1297
|
email: process.env[`${prefix}BOT_EMAIL`] || void 0
|
|
1006
1298
|
},
|
|
1007
1299
|
release: {
|
|
1008
|
-
banner:
|
|
1300
|
+
banner: {
|
|
1301
|
+
url: process.env[`${prefix}RELEASE_BANNER_URL`] || void 0,
|
|
1302
|
+
alt: process.env[`${prefix}RELEASE_BANNER_ALT`] || void 0
|
|
1303
|
+
},
|
|
1009
1304
|
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
1010
1305
|
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
1011
1306
|
},
|
|
@@ -1082,11 +1377,11 @@ var getConfigEnv = () => {
|
|
|
1082
1377
|
);
|
|
1083
1378
|
config.colors = themeNames.length > 0 ? themeNames.reduce(
|
|
1084
1379
|
(ret, themeName) => {
|
|
1085
|
-
ret[themeName] =
|
|
1380
|
+
ret[themeName] = getThemeColorsEnv(prefix, themeName);
|
|
1086
1381
|
return ret;
|
|
1087
1382
|
},
|
|
1088
1383
|
{}
|
|
1089
|
-
) :
|
|
1384
|
+
) : getThemeColorsEnv(prefix);
|
|
1090
1385
|
if (config.docs === STORM_DEFAULT_DOCS) {
|
|
1091
1386
|
if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
1092
1387
|
config.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
@@ -1113,11 +1408,11 @@ var getConfigEnv = () => {
|
|
|
1113
1408
|
}
|
|
1114
1409
|
return config;
|
|
1115
1410
|
};
|
|
1116
|
-
var
|
|
1411
|
+
var getThemeColorsEnv = (prefix, theme) => {
|
|
1117
1412
|
const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
|
|
1118
|
-
return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ?
|
|
1413
|
+
return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorsEnv(prefix + themeName) : getSingleThemeColorsEnv(prefix + themeName);
|
|
1119
1414
|
};
|
|
1120
|
-
var
|
|
1415
|
+
var getSingleThemeColorsEnv = (prefix) => {
|
|
1121
1416
|
const gradient = [];
|
|
1122
1417
|
if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
|
|
1123
1418
|
gradient.push(
|
|
@@ -1149,15 +1444,13 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
1149
1444
|
gradient
|
|
1150
1445
|
};
|
|
1151
1446
|
};
|
|
1152
|
-
var
|
|
1447
|
+
var getMultiThemeColorsEnv = (prefix) => {
|
|
1153
1448
|
return {
|
|
1154
|
-
light:
|
|
1155
|
-
|
|
1156
|
-
),
|
|
1157
|
-
dark: getBaseThemeColorConfigEnv(`${prefix}_DARK_`)
|
|
1449
|
+
light: getBaseThemeColorsEnv(`${prefix}_LIGHT_`),
|
|
1450
|
+
dark: getBaseThemeColorsEnv(`${prefix}_DARK_`)
|
|
1158
1451
|
};
|
|
1159
1452
|
};
|
|
1160
|
-
var
|
|
1453
|
+
var getBaseThemeColorsEnv = (prefix) => {
|
|
1161
1454
|
const gradient = [];
|
|
1162
1455
|
if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
|
|
1163
1456
|
gradient.push(
|
|
@@ -1236,7 +1529,16 @@ var setConfigEnv = (config) => {
|
|
|
1236
1529
|
process.env[`${prefix}ERROR_URL`] = config.error.url;
|
|
1237
1530
|
}
|
|
1238
1531
|
if (config.release) {
|
|
1239
|
-
|
|
1532
|
+
if (config.release.banner) {
|
|
1533
|
+
if (typeof config.release.banner === "string") {
|
|
1534
|
+
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
1535
|
+
process.env[`${prefix}RELEASE_BANNER_URL`] = config.release.banner;
|
|
1536
|
+
} else {
|
|
1537
|
+
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner.url;
|
|
1538
|
+
process.env[`${prefix}RELEASE_BANNER_URL`] = config.release.banner.url;
|
|
1539
|
+
process.env[`${prefix}RELEASE_BANNER_ALT`] = config.release.banner.alt;
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1240
1542
|
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
1241
1543
|
process.env[`${prefix}RELEASE_FOOTER`] = config.release.footer;
|
|
1242
1544
|
}
|
|
@@ -1379,10 +1681,10 @@ var setConfigEnv = (config) => {
|
|
|
1379
1681
|
}
|
|
1380
1682
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
1381
1683
|
for (const key of Object.keys(config.colors)) {
|
|
1382
|
-
|
|
1684
|
+
setThemeColorsEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
|
|
1383
1685
|
}
|
|
1384
1686
|
} else {
|
|
1385
|
-
|
|
1687
|
+
setThemeColorsEnv(
|
|
1386
1688
|
`${prefix}COLOR_`,
|
|
1387
1689
|
config.colors
|
|
1388
1690
|
);
|
|
@@ -1437,10 +1739,10 @@ var setConfigEnv = (config) => {
|
|
|
1437
1739
|
}
|
|
1438
1740
|
}
|
|
1439
1741
|
};
|
|
1440
|
-
var
|
|
1441
|
-
return config?.light?.brand || config?.dark?.brand ?
|
|
1742
|
+
var setThemeColorsEnv = (prefix, config) => {
|
|
1743
|
+
return config?.light?.brand || config?.dark?.brand ? setMultiThemeColorsEnv(prefix, config) : setSingleThemeColorsEnv(prefix, config);
|
|
1442
1744
|
};
|
|
1443
|
-
var
|
|
1745
|
+
var setSingleThemeColorsEnv = (prefix, config) => {
|
|
1444
1746
|
if (config.dark) {
|
|
1445
1747
|
process.env[`${prefix}DARK`] = config.dark;
|
|
1446
1748
|
}
|
|
@@ -1489,13 +1791,13 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
|
1489
1791
|
}
|
|
1490
1792
|
}
|
|
1491
1793
|
};
|
|
1492
|
-
var
|
|
1794
|
+
var setMultiThemeColorsEnv = (prefix, config) => {
|
|
1493
1795
|
return {
|
|
1494
|
-
light:
|
|
1495
|
-
dark:
|
|
1796
|
+
light: setBaseThemeColorsEnv(`${prefix}LIGHT_`, config.light),
|
|
1797
|
+
dark: setBaseThemeColorsEnv(`${prefix}DARK_`, config.dark)
|
|
1496
1798
|
};
|
|
1497
1799
|
};
|
|
1498
|
-
var
|
|
1800
|
+
var setBaseThemeColorsEnv = (prefix, config) => {
|
|
1499
1801
|
if (config.foreground) {
|
|
1500
1802
|
process.env[`${prefix}FOREGROUND`] = config.foreground;
|
|
1501
1803
|
}
|
|
@@ -1576,7 +1878,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1576
1878
|
);
|
|
1577
1879
|
try {
|
|
1578
1880
|
result = applyDefaultConfig(
|
|
1579
|
-
await
|
|
1881
|
+
await workspaceConfigSchema.parseAsync(configInput)
|
|
1580
1882
|
);
|
|
1581
1883
|
result.workspaceRoot ??= _workspaceRoot;
|
|
1582
1884
|
} catch (error) {
|