@storm-software/config-tools 1.74.0 → 1.76.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 CHANGED
@@ -1,3 +1,17 @@
1
+ ## 1.76.0 (2024-08-04)
2
+
3
+
4
+ ### Features
5
+
6
+ - **config:** Added the `docs` and `licensing` options to the Storm configuration ([c867efe1](https://github.com/storm-software/storm-ops/commit/c867efe1))
7
+
8
+ ## 1.75.0 (2024-08-03)
9
+
10
+
11
+ ### Features
12
+
13
+ - **eslint:** Ignore `prefer-nullish-coalescing` for strings ([dbae2a58](https://github.com/storm-software/storm-ops/commit/dbae2a58))
14
+
1
15
  ## 1.74.0 (2024-08-03)
2
16
 
3
17
 
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-1.73.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-1.75.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/index.cjs CHANGED
@@ -62936,6 +62936,11 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
62936
62936
  return result;
62937
62937
  }
62938
62938
 
62939
+ // packages/config/src/constants.ts
62940
+ var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
62941
+ var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
62942
+ var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
62943
+
62939
62944
  // node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs
62940
62945
  var util;
62941
62946
  (function(util2) {
@@ -66853,7 +66858,7 @@ var z2 = /* @__PURE__ */ Object.freeze({
66853
66858
  // packages/config/src/schema.ts
66854
66859
  var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0D1017").describe("The dark background color of the workspace");
66855
66860
  var LightColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
66856
- var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
66861
+ var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#3fc1b0").describe("The primary brand specific color of the workspace");
66857
66862
  var Brand2ColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7434DB").describe("The secondary brand specific color of the workspace");
66858
66863
  var Brand3ColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#00C2CE").describe("The tertiary brand specific color of the workspace");
66859
66864
  var AccentColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
@@ -66936,8 +66941,10 @@ var StormConfigSchema = z2.object({
66936
66941
  namespace: z2.string().trim().toLowerCase().optional().describe("The namespace of the package"),
66937
66942
  organization: z2.string().trim().default("storm-software").describe("The organization of the workspace"),
66938
66943
  repository: z2.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
66939
- license: z2.string().trim().default("Apache 2.0").describe("The root directory of the package"),
66940
- homepage: z2.string().trim().url().default("https://stormsoftware.com").describe("The homepage of the workspace"),
66944
+ license: z2.string().trim().default("Apache-2.0").describe("The license type of the package"),
66945
+ homepage: z2.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
66946
+ docs: z2.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
66947
+ licensing: z2.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
66941
66948
  branch: z2.string().trim().default("main").describe("The branch of the workspace"),
66942
66949
  preid: z2.string().optional().describe("A tag specifying the version pre-release identifier"),
66943
66950
  owner: z2.string().trim().default("@storm-software/development").describe("The owner of the package"),
@@ -67096,6 +67103,8 @@ var getDefaultConfig = (config = {}, root) => {
67096
67103
  repository,
67097
67104
  license: license ?? DEFAULT_STORM_CONFIG.license,
67098
67105
  homepage: homepage ?? DEFAULT_STORM_CONFIG.homepage,
67106
+ docs: `${homepage ?? DEFAULT_STORM_CONFIG.homepage}/docs`,
67107
+ licensing: `${homepage ?? DEFAULT_STORM_CONFIG.homepage}/licensing`,
67099
67108
  extensions: {
67100
67109
  ...config.extensions
67101
67110
  }
@@ -67556,6 +67565,8 @@ var getConfigEnv = () => {
67556
67565
  packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
67557
67566
  license: process.env[`${prefix}LICENSE`],
67558
67567
  homepage: process.env[`${prefix}HOMEPAGE`],
67568
+ docs: process.env[`${prefix}DOCS`],
67569
+ licensing: process.env[`${prefix}LICENSING`],
67559
67570
  timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
67560
67571
  locale: process.env[`${prefix}LOCALE`] ?? process.env.LOCALE,
67561
67572
  configFile: correctPaths(process.env[`${prefix}CONFIG_FILE`]),
@@ -67604,6 +67615,20 @@ var getConfigEnv = () => {
67604
67615
  },
67605
67616
  {}
67606
67617
  ) : getThemeColorConfigEnv(prefix);
67618
+ if (config.docs === STORM_DEFAULT_DOCS) {
67619
+ if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
67620
+ config.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
67621
+ } else {
67622
+ config.docs = `${config.homepage}/docs`;
67623
+ }
67624
+ }
67625
+ if (config.licensing === STORM_DEFAULT_LICENSING) {
67626
+ if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
67627
+ config.licensing = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
67628
+ } else {
67629
+ config.licensing = `${config.homepage}/docs`;
67630
+ }
67631
+ }
67607
67632
  const serializedConfig = process.env[`${prefix}CONFIG`];
67608
67633
  if (serializedConfig) {
67609
67634
  const parsed = JSON.parse(serializedConfig);
@@ -67713,6 +67738,12 @@ var setConfigEnv = (config) => {
67713
67738
  if (config.homepage) {
67714
67739
  process.env[`${prefix}HOMEPAGE`] = config.homepage;
67715
67740
  }
67741
+ if (config.docs) {
67742
+ process.env[`${prefix}DOCS`] = config.docs;
67743
+ }
67744
+ if (config.licensing) {
67745
+ process.env[`${prefix}LICENSING`] = config.licensing;
67746
+ }
67716
67747
  if (config.timezone) {
67717
67748
  process.env[`${prefix}TIMEZONE`] = config.timezone;
67718
67749
  process.env.TZ = config.timezone;
package/index.js CHANGED
@@ -62893,6 +62893,11 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
62893
62893
  return result;
62894
62894
  }
62895
62895
 
62896
+ // packages/config/src/constants.ts
62897
+ var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
62898
+ var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
62899
+ var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
62900
+
62896
62901
  // node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs
62897
62902
  var util;
62898
62903
  (function(util2) {
@@ -66810,7 +66815,7 @@ var z2 = /* @__PURE__ */ Object.freeze({
66810
66815
  // packages/config/src/schema.ts
66811
66816
  var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0D1017").describe("The dark background color of the workspace");
66812
66817
  var LightColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
66813
- var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
66818
+ var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#3fc1b0").describe("The primary brand specific color of the workspace");
66814
66819
  var Brand2ColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7434DB").describe("The secondary brand specific color of the workspace");
66815
66820
  var Brand3ColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#00C2CE").describe("The tertiary brand specific color of the workspace");
66816
66821
  var AccentColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
@@ -66893,8 +66898,10 @@ var StormConfigSchema = z2.object({
66893
66898
  namespace: z2.string().trim().toLowerCase().optional().describe("The namespace of the package"),
66894
66899
  organization: z2.string().trim().default("storm-software").describe("The organization of the workspace"),
66895
66900
  repository: z2.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
66896
- license: z2.string().trim().default("Apache 2.0").describe("The root directory of the package"),
66897
- homepage: z2.string().trim().url().default("https://stormsoftware.com").describe("The homepage of the workspace"),
66901
+ license: z2.string().trim().default("Apache-2.0").describe("The license type of the package"),
66902
+ homepage: z2.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
66903
+ docs: z2.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
66904
+ licensing: z2.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
66898
66905
  branch: z2.string().trim().default("main").describe("The branch of the workspace"),
66899
66906
  preid: z2.string().optional().describe("A tag specifying the version pre-release identifier"),
66900
66907
  owner: z2.string().trim().default("@storm-software/development").describe("The owner of the package"),
@@ -67053,6 +67060,8 @@ var getDefaultConfig = (config = {}, root) => {
67053
67060
  repository,
67054
67061
  license: license ?? DEFAULT_STORM_CONFIG.license,
67055
67062
  homepage: homepage ?? DEFAULT_STORM_CONFIG.homepage,
67063
+ docs: `${homepage ?? DEFAULT_STORM_CONFIG.homepage}/docs`,
67064
+ licensing: `${homepage ?? DEFAULT_STORM_CONFIG.homepage}/licensing`,
67056
67065
  extensions: {
67057
67066
  ...config.extensions
67058
67067
  }
@@ -67513,6 +67522,8 @@ var getConfigEnv = () => {
67513
67522
  packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
67514
67523
  license: process.env[`${prefix}LICENSE`],
67515
67524
  homepage: process.env[`${prefix}HOMEPAGE`],
67525
+ docs: process.env[`${prefix}DOCS`],
67526
+ licensing: process.env[`${prefix}LICENSING`],
67516
67527
  timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
67517
67528
  locale: process.env[`${prefix}LOCALE`] ?? process.env.LOCALE,
67518
67529
  configFile: correctPaths(process.env[`${prefix}CONFIG_FILE`]),
@@ -67561,6 +67572,20 @@ var getConfigEnv = () => {
67561
67572
  },
67562
67573
  {}
67563
67574
  ) : getThemeColorConfigEnv(prefix);
67575
+ if (config.docs === STORM_DEFAULT_DOCS) {
67576
+ if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
67577
+ config.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
67578
+ } else {
67579
+ config.docs = `${config.homepage}/docs`;
67580
+ }
67581
+ }
67582
+ if (config.licensing === STORM_DEFAULT_LICENSING) {
67583
+ if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
67584
+ config.licensing = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
67585
+ } else {
67586
+ config.licensing = `${config.homepage}/docs`;
67587
+ }
67588
+ }
67564
67589
  const serializedConfig = process.env[`${prefix}CONFIG`];
67565
67590
  if (serializedConfig) {
67566
67591
  const parsed = JSON.parse(serializedConfig);
@@ -67670,6 +67695,12 @@ var setConfigEnv = (config) => {
67670
67695
  if (config.homepage) {
67671
67696
  process.env[`${prefix}HOMEPAGE`] = config.homepage;
67672
67697
  }
67698
+ if (config.docs) {
67699
+ process.env[`${prefix}DOCS`] = config.docs;
67700
+ }
67701
+ if (config.licensing) {
67702
+ process.env[`${prefix}LICENSING`] = config.licensing;
67703
+ }
67673
67704
  if (config.timezone) {
67674
67705
  process.env[`${prefix}TIMEZONE`] = config.timezone;
67675
67706
  process.env.TZ = config.timezone;