@storm-software/workspace-tools 1.201.3 → 1.202.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/CHANGELOG.md +14 -0
- package/index.js +19 -95
- package/meta.json +70 -140
- package/package.json +1 -1
- package/src/base/base-executor.js +17 -4
- package/src/base/base-generator.js +17 -4
- package/src/base/index.js +18 -94
- package/src/base/typescript-library-generator.d.ts +1 -3
- package/src/base/typescript-library-generator.js +1 -90
- package/src/executors/cargo-build/executor.js +17 -4
- package/src/executors/cargo-check/executor.js +17 -4
- package/src/executors/cargo-clippy/executor.js +17 -4
- package/src/executors/cargo-doc/executor.js +17 -4
- package/src/executors/cargo-format/executor.js +17 -4
- package/src/executors/clean-package/executor.js +17 -4
- package/src/executors/rolldown/executor.js +17 -4
- package/src/executors/rollup/executor.js +17 -4
- package/src/executors/size-limit/executor.js +17 -4
- package/src/executors/tsup/executor.js +17 -4
- package/src/executors/tsup-browser/executor.js +17 -4
- package/src/executors/tsup-neutral/executor.js +17 -4
- package/src/executors/tsup-node/executor.js +17 -4
- package/src/executors/typia/executor.js +17 -4
- package/src/executors/unbuild/executor.js +17 -4
- package/src/generators/browser-library/generator.js +23 -97
- package/src/generators/config-schema/generator.js +17 -4
- package/src/generators/neutral-library/generator.js +19 -93
- package/src/generators/node-library/generator.js +19 -93
- package/src/generators/preset/generator.js +17 -4
- package/src/generators/release-version/generator.js +17 -4
- package/src/utils/index.js +17 -4
|
@@ -66386,7 +66386,12 @@ var init_schema = __esm({
|
|
|
66386
66386
|
extends: z3.string().trim().optional().describe(
|
|
66387
66387
|
"The path to a base JSON file to use as a configuration preset file"
|
|
66388
66388
|
),
|
|
66389
|
-
|
|
66389
|
+
isRoot: z3.boolean().optional().describe(
|
|
66390
|
+
"A flag indicating if the current configuration is the set in the root of the workspace"
|
|
66391
|
+
),
|
|
66392
|
+
name: z3.string().trim().toLowerCase().optional().describe(
|
|
66393
|
+
"The name of the service/package/scope using this configuration"
|
|
66394
|
+
),
|
|
66390
66395
|
namespace: z3.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
66391
66396
|
organization: z3.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
66392
66397
|
repository: z3.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
@@ -66396,7 +66401,7 @@ var init_schema = __esm({
|
|
|
66396
66401
|
licensing: z3.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
|
|
66397
66402
|
branch: z3.string().trim().default("main").describe("The branch of the workspace"),
|
|
66398
66403
|
preid: z3.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
66399
|
-
owner: z3.string().trim().default("@storm-software/
|
|
66404
|
+
owner: z3.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
66400
66405
|
worker: z3.string().trim().default("Stormie-Bot").describe(
|
|
66401
66406
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
66402
66407
|
),
|
|
@@ -66407,7 +66412,15 @@ var init_schema = __esm({
|
|
|
66407
66412
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
66408
66413
|
),
|
|
66409
66414
|
skipCache: z3.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
66410
|
-
cacheDirectory: z3.string().trim().
|
|
66415
|
+
cacheDirectory: z3.string().trim().optional().describe(
|
|
66416
|
+
"The directory used to store the environment's cached file data"
|
|
66417
|
+
),
|
|
66418
|
+
dataDirectory: z3.string().trim().optional().describe("The directory used to store the environment's data files"),
|
|
66419
|
+
configDirectory: z3.string().trim().optional().describe(
|
|
66420
|
+
"The directory used to store the environment's configuration files"
|
|
66421
|
+
),
|
|
66422
|
+
tempDirectory: z3.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
66423
|
+
logDirectory: z3.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
66411
66424
|
buildDirectory: z3.string().trim().default("dist").describe("The build directory for the workspace"),
|
|
66412
66425
|
outputDirectory: z3.string().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
|
|
66413
66426
|
runtimeVersion: z3.string().trim().regex(
|
|
@@ -66425,7 +66438,7 @@ var init_schema = __esm({
|
|
|
66425
66438
|
"debug",
|
|
66426
66439
|
"trace",
|
|
66427
66440
|
"all"
|
|
66428
|
-
]).default("
|
|
66441
|
+
]).default("info").describe(
|
|
66429
66442
|
"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`)."
|
|
66430
66443
|
),
|
|
66431
66444
|
cloudflareAccountId: z3.string().trim().toLowerCase().length(32).regex(/^([0-9a-fA-F]{32})$/i).nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
|
|
@@ -67785,7 +67798,7 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
67785
67798
|
type: "github",
|
|
67786
67799
|
url: "https://github.com/storm-software/storm-stack.git"
|
|
67787
67800
|
};
|
|
67788
|
-
let description = schema.description ?? "
|
|
67801
|
+
let description = schema.description ?? "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
67789
67802
|
if (tree.exists("package.json")) {
|
|
67790
67803
|
const packageJson = (0, import_devkit.readJson)(tree, "package.json");
|
|
67791
67804
|
if (packageJson?.repository) {
|
|
@@ -67894,96 +67907,9 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
67894
67907
|
exclude: ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
|
|
67895
67908
|
});
|
|
67896
67909
|
}
|
|
67897
|
-
const lintCallback = await addLint(tree, options);
|
|
67898
|
-
tasks.push(lintCallback);
|
|
67899
67910
|
await (0, import_devkit.formatFiles)(tree);
|
|
67900
67911
|
return null;
|
|
67901
67912
|
}
|
|
67902
|
-
async function addLint(tree, options) {
|
|
67903
|
-
const { lintProjectGenerator } = (0, import_devkit.ensurePackage)("@nx/eslint", nxVersion);
|
|
67904
|
-
const { mapLintPattern } = (
|
|
67905
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
67906
|
-
require("@nx/eslint/src/generators/lint-project/lint-project")
|
|
67907
|
-
);
|
|
67908
|
-
const projectConfiguration = (0, import_devkit.readProjectConfiguration)(tree, options.name);
|
|
67909
|
-
const task = lintProjectGenerator(tree, {
|
|
67910
|
-
project: options.name,
|
|
67911
|
-
linter: options.linter,
|
|
67912
|
-
skipFormat: true,
|
|
67913
|
-
tsConfigPaths: [(0, import_devkit.joinPathFragments)(options.projectRoot, "tsconfig.json")],
|
|
67914
|
-
unitTestRunner: options.unitTestRunner,
|
|
67915
|
-
eslintFilePatterns: [
|
|
67916
|
-
mapLintPattern(
|
|
67917
|
-
options.projectRoot,
|
|
67918
|
-
options.js ? "js" : "ts",
|
|
67919
|
-
options.rootProject
|
|
67920
|
-
)
|
|
67921
|
-
],
|
|
67922
|
-
setParserOptionsProject: options.setParserOptionsProject,
|
|
67923
|
-
rootProject: options.rootProject
|
|
67924
|
-
});
|
|
67925
|
-
const {
|
|
67926
|
-
addOverrideToLintConfig,
|
|
67927
|
-
lintConfigHasOverride,
|
|
67928
|
-
isEslintConfigSupported,
|
|
67929
|
-
updateOverrideInLintConfig
|
|
67930
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
67931
|
-
} = require("@nx/eslint/src/generators/utils/eslint-file");
|
|
67932
|
-
if (!isEslintConfigSupported(tree)) {
|
|
67933
|
-
return task;
|
|
67934
|
-
}
|
|
67935
|
-
addOverrideToLintConfig(tree, "", {
|
|
67936
|
-
files: ["*.json"],
|
|
67937
|
-
parser: "jsonc-eslint-parser",
|
|
67938
|
-
rules: {
|
|
67939
|
-
"@nx/dependency-checks": [
|
|
67940
|
-
"error",
|
|
67941
|
-
{
|
|
67942
|
-
"buildTargets": ["build"],
|
|
67943
|
-
"ignoredFiles": [
|
|
67944
|
-
"{projectRoot}/esbuild.config.{js,ts,mjs,mts}",
|
|
67945
|
-
"{projectRoot}/jest.config.ts"
|
|
67946
|
-
],
|
|
67947
|
-
"checkMissingDependencies": true,
|
|
67948
|
-
"checkObsoleteDependencies": true,
|
|
67949
|
-
"checkVersionMismatches": false
|
|
67950
|
-
}
|
|
67951
|
-
]
|
|
67952
|
-
}
|
|
67953
|
-
});
|
|
67954
|
-
if (lintConfigHasOverride(
|
|
67955
|
-
tree,
|
|
67956
|
-
projectConfiguration.root,
|
|
67957
|
-
(o) => Array.isArray(o.files) ? o.files.some((f2) => f2.match(/\.json$/)) : !!o.files?.match(/\.json$/),
|
|
67958
|
-
true
|
|
67959
|
-
)) {
|
|
67960
|
-
updateOverrideInLintConfig(
|
|
67961
|
-
tree,
|
|
67962
|
-
projectConfiguration.root,
|
|
67963
|
-
(o) => o.rules?.["@nx/dependency-checks"],
|
|
67964
|
-
(o) => {
|
|
67965
|
-
const value2 = o.rules["@nx/dependency-checks"];
|
|
67966
|
-
let ruleSeverity;
|
|
67967
|
-
let ruleOptions;
|
|
67968
|
-
if (Array.isArray(value2)) {
|
|
67969
|
-
ruleSeverity = value2[0];
|
|
67970
|
-
ruleOptions = value2[1];
|
|
67971
|
-
} else {
|
|
67972
|
-
ruleSeverity = value2 ?? "error";
|
|
67973
|
-
ruleOptions = {};
|
|
67974
|
-
}
|
|
67975
|
-
if (options.bundler === "esbuild") {
|
|
67976
|
-
ruleOptions.ignoredFiles = [
|
|
67977
|
-
"{projectRoot}/esbuild.config.{js,ts,mjs,mts}"
|
|
67978
|
-
];
|
|
67979
|
-
o.rules["@nx/dependency-checks"] = [ruleSeverity, ruleOptions];
|
|
67980
|
-
}
|
|
67981
|
-
return o;
|
|
67982
|
-
}
|
|
67983
|
-
);
|
|
67984
|
-
}
|
|
67985
|
-
return task;
|
|
67986
|
-
}
|
|
67987
67913
|
function getOutputPath(options) {
|
|
67988
67914
|
const parts = ["dist"];
|
|
67989
67915
|
if (options.projectRoot === ".") {
|
|
@@ -68085,12 +68011,12 @@ async function browserLibraryGeneratorFn(tree, schema) {
|
|
|
68085
68011
|
...schema,
|
|
68086
68012
|
platform: "browser",
|
|
68087
68013
|
devDependencies: {
|
|
68088
|
-
"@types/react": "^18.
|
|
68089
|
-
"@types/react-dom": "^18.
|
|
68014
|
+
"@types/react": "^18.3.6",
|
|
68015
|
+
"@types/react-dom": "^18.3.0"
|
|
68090
68016
|
},
|
|
68091
68017
|
peerDependencies: {
|
|
68092
|
-
react: "^18.
|
|
68093
|
-
"react-dom": "^18.
|
|
68018
|
+
react: "^18.3.0",
|
|
68019
|
+
"react-dom": "^18.3.0",
|
|
68094
68020
|
"react-native": "*"
|
|
68095
68021
|
},
|
|
68096
68022
|
peerDependenciesMeta: {
|
|
@@ -68101,7 +68027,7 @@ async function browserLibraryGeneratorFn(tree, schema) {
|
|
|
68101
68027
|
optional: true
|
|
68102
68028
|
}
|
|
68103
68029
|
},
|
|
68104
|
-
buildExecutor: "@storm-software/workspace-tools:
|
|
68030
|
+
buildExecutor: "@storm-software/workspace-tools:unbuild"
|
|
68105
68031
|
};
|
|
68106
68032
|
const options = await normalizeOptions(tree, tsLibraryGeneratorOptions);
|
|
68107
68033
|
const { className, name, propertyName } = (0, import_devkit2.names)(
|
|
@@ -4056,7 +4056,12 @@ var init_schema = __esm({
|
|
|
4056
4056
|
extends: z.string().trim().optional().describe(
|
|
4057
4057
|
"The path to a base JSON file to use as a configuration preset file"
|
|
4058
4058
|
),
|
|
4059
|
-
|
|
4059
|
+
isRoot: z.boolean().optional().describe(
|
|
4060
|
+
"A flag indicating if the current configuration is the set in the root of the workspace"
|
|
4061
|
+
),
|
|
4062
|
+
name: z.string().trim().toLowerCase().optional().describe(
|
|
4063
|
+
"The name of the service/package/scope using this configuration"
|
|
4064
|
+
),
|
|
4060
4065
|
namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
4061
4066
|
organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
4062
4067
|
repository: z.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
@@ -4066,7 +4071,7 @@ var init_schema = __esm({
|
|
|
4066
4071
|
licensing: z.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
|
|
4067
4072
|
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
4068
4073
|
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
4069
|
-
owner: z.string().trim().default("@storm-software/
|
|
4074
|
+
owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
4070
4075
|
worker: z.string().trim().default("Stormie-Bot").describe(
|
|
4071
4076
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
4072
4077
|
),
|
|
@@ -4077,7 +4082,15 @@ var init_schema = __esm({
|
|
|
4077
4082
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
4078
4083
|
),
|
|
4079
4084
|
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
4080
|
-
cacheDirectory: z.string().trim().
|
|
4085
|
+
cacheDirectory: z.string().trim().optional().describe(
|
|
4086
|
+
"The directory used to store the environment's cached file data"
|
|
4087
|
+
),
|
|
4088
|
+
dataDirectory: z.string().trim().optional().describe("The directory used to store the environment's data files"),
|
|
4089
|
+
configDirectory: z.string().trim().optional().describe(
|
|
4090
|
+
"The directory used to store the environment's configuration files"
|
|
4091
|
+
),
|
|
4092
|
+
tempDirectory: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
4093
|
+
logDirectory: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
4081
4094
|
buildDirectory: z.string().trim().default("dist").describe("The build directory for the workspace"),
|
|
4082
4095
|
outputDirectory: z.string().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
|
|
4083
4096
|
runtimeVersion: z.string().trim().regex(
|
|
@@ -4095,7 +4108,7 @@ var init_schema = __esm({
|
|
|
4095
4108
|
"debug",
|
|
4096
4109
|
"trace",
|
|
4097
4110
|
"all"
|
|
4098
|
-
]).default("
|
|
4111
|
+
]).default("info").describe(
|
|
4099
4112
|
"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`)."
|
|
4100
4113
|
),
|
|
4101
4114
|
cloudflareAccountId: z.string().trim().toLowerCase().length(32).regex(/^([0-9a-fA-F]{32})$/i).nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
|
|
@@ -66386,7 +66386,12 @@ var init_schema = __esm({
|
|
|
66386
66386
|
extends: z3.string().trim().optional().describe(
|
|
66387
66387
|
"The path to a base JSON file to use as a configuration preset file"
|
|
66388
66388
|
),
|
|
66389
|
-
|
|
66389
|
+
isRoot: z3.boolean().optional().describe(
|
|
66390
|
+
"A flag indicating if the current configuration is the set in the root of the workspace"
|
|
66391
|
+
),
|
|
66392
|
+
name: z3.string().trim().toLowerCase().optional().describe(
|
|
66393
|
+
"The name of the service/package/scope using this configuration"
|
|
66394
|
+
),
|
|
66390
66395
|
namespace: z3.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
66391
66396
|
organization: z3.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
66392
66397
|
repository: z3.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
@@ -66396,7 +66401,7 @@ var init_schema = __esm({
|
|
|
66396
66401
|
licensing: z3.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
|
|
66397
66402
|
branch: z3.string().trim().default("main").describe("The branch of the workspace"),
|
|
66398
66403
|
preid: z3.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
66399
|
-
owner: z3.string().trim().default("@storm-software/
|
|
66404
|
+
owner: z3.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
66400
66405
|
worker: z3.string().trim().default("Stormie-Bot").describe(
|
|
66401
66406
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
66402
66407
|
),
|
|
@@ -66407,7 +66412,15 @@ var init_schema = __esm({
|
|
|
66407
66412
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
66408
66413
|
),
|
|
66409
66414
|
skipCache: z3.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
66410
|
-
cacheDirectory: z3.string().trim().
|
|
66415
|
+
cacheDirectory: z3.string().trim().optional().describe(
|
|
66416
|
+
"The directory used to store the environment's cached file data"
|
|
66417
|
+
),
|
|
66418
|
+
dataDirectory: z3.string().trim().optional().describe("The directory used to store the environment's data files"),
|
|
66419
|
+
configDirectory: z3.string().trim().optional().describe(
|
|
66420
|
+
"The directory used to store the environment's configuration files"
|
|
66421
|
+
),
|
|
66422
|
+
tempDirectory: z3.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
66423
|
+
logDirectory: z3.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
66411
66424
|
buildDirectory: z3.string().trim().default("dist").describe("The build directory for the workspace"),
|
|
66412
66425
|
outputDirectory: z3.string().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
|
|
66413
66426
|
runtimeVersion: z3.string().trim().regex(
|
|
@@ -66425,7 +66438,7 @@ var init_schema = __esm({
|
|
|
66425
66438
|
"debug",
|
|
66426
66439
|
"trace",
|
|
66427
66440
|
"all"
|
|
66428
|
-
]).default("
|
|
66441
|
+
]).default("info").describe(
|
|
66429
66442
|
"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`)."
|
|
66430
66443
|
),
|
|
66431
66444
|
cloudflareAccountId: z3.string().trim().toLowerCase().length(32).regex(/^([0-9a-fA-F]{32})$/i).nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
|
|
@@ -67785,7 +67798,7 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
67785
67798
|
type: "github",
|
|
67786
67799
|
url: "https://github.com/storm-software/storm-stack.git"
|
|
67787
67800
|
};
|
|
67788
|
-
let description = schema.description ?? "
|
|
67801
|
+
let description = schema.description ?? "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
67789
67802
|
if (tree.exists("package.json")) {
|
|
67790
67803
|
const packageJson = (0, import_devkit.readJson)(tree, "package.json");
|
|
67791
67804
|
if (packageJson?.repository) {
|
|
@@ -67894,96 +67907,9 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
67894
67907
|
exclude: ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
|
|
67895
67908
|
});
|
|
67896
67909
|
}
|
|
67897
|
-
const lintCallback = await addLint(tree, options);
|
|
67898
|
-
tasks.push(lintCallback);
|
|
67899
67910
|
await (0, import_devkit.formatFiles)(tree);
|
|
67900
67911
|
return null;
|
|
67901
67912
|
}
|
|
67902
|
-
async function addLint(tree, options) {
|
|
67903
|
-
const { lintProjectGenerator } = (0, import_devkit.ensurePackage)("@nx/eslint", nxVersion);
|
|
67904
|
-
const { mapLintPattern } = (
|
|
67905
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
67906
|
-
require("@nx/eslint/src/generators/lint-project/lint-project")
|
|
67907
|
-
);
|
|
67908
|
-
const projectConfiguration = (0, import_devkit.readProjectConfiguration)(tree, options.name);
|
|
67909
|
-
const task = lintProjectGenerator(tree, {
|
|
67910
|
-
project: options.name,
|
|
67911
|
-
linter: options.linter,
|
|
67912
|
-
skipFormat: true,
|
|
67913
|
-
tsConfigPaths: [(0, import_devkit.joinPathFragments)(options.projectRoot, "tsconfig.json")],
|
|
67914
|
-
unitTestRunner: options.unitTestRunner,
|
|
67915
|
-
eslintFilePatterns: [
|
|
67916
|
-
mapLintPattern(
|
|
67917
|
-
options.projectRoot,
|
|
67918
|
-
options.js ? "js" : "ts",
|
|
67919
|
-
options.rootProject
|
|
67920
|
-
)
|
|
67921
|
-
],
|
|
67922
|
-
setParserOptionsProject: options.setParserOptionsProject,
|
|
67923
|
-
rootProject: options.rootProject
|
|
67924
|
-
});
|
|
67925
|
-
const {
|
|
67926
|
-
addOverrideToLintConfig,
|
|
67927
|
-
lintConfigHasOverride,
|
|
67928
|
-
isEslintConfigSupported,
|
|
67929
|
-
updateOverrideInLintConfig
|
|
67930
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
67931
|
-
} = require("@nx/eslint/src/generators/utils/eslint-file");
|
|
67932
|
-
if (!isEslintConfigSupported(tree)) {
|
|
67933
|
-
return task;
|
|
67934
|
-
}
|
|
67935
|
-
addOverrideToLintConfig(tree, "", {
|
|
67936
|
-
files: ["*.json"],
|
|
67937
|
-
parser: "jsonc-eslint-parser",
|
|
67938
|
-
rules: {
|
|
67939
|
-
"@nx/dependency-checks": [
|
|
67940
|
-
"error",
|
|
67941
|
-
{
|
|
67942
|
-
"buildTargets": ["build"],
|
|
67943
|
-
"ignoredFiles": [
|
|
67944
|
-
"{projectRoot}/esbuild.config.{js,ts,mjs,mts}",
|
|
67945
|
-
"{projectRoot}/jest.config.ts"
|
|
67946
|
-
],
|
|
67947
|
-
"checkMissingDependencies": true,
|
|
67948
|
-
"checkObsoleteDependencies": true,
|
|
67949
|
-
"checkVersionMismatches": false
|
|
67950
|
-
}
|
|
67951
|
-
]
|
|
67952
|
-
}
|
|
67953
|
-
});
|
|
67954
|
-
if (lintConfigHasOverride(
|
|
67955
|
-
tree,
|
|
67956
|
-
projectConfiguration.root,
|
|
67957
|
-
(o) => Array.isArray(o.files) ? o.files.some((f2) => f2.match(/\.json$/)) : !!o.files?.match(/\.json$/),
|
|
67958
|
-
true
|
|
67959
|
-
)) {
|
|
67960
|
-
updateOverrideInLintConfig(
|
|
67961
|
-
tree,
|
|
67962
|
-
projectConfiguration.root,
|
|
67963
|
-
(o) => o.rules?.["@nx/dependency-checks"],
|
|
67964
|
-
(o) => {
|
|
67965
|
-
const value2 = o.rules["@nx/dependency-checks"];
|
|
67966
|
-
let ruleSeverity;
|
|
67967
|
-
let ruleOptions;
|
|
67968
|
-
if (Array.isArray(value2)) {
|
|
67969
|
-
ruleSeverity = value2[0];
|
|
67970
|
-
ruleOptions = value2[1];
|
|
67971
|
-
} else {
|
|
67972
|
-
ruleSeverity = value2 ?? "error";
|
|
67973
|
-
ruleOptions = {};
|
|
67974
|
-
}
|
|
67975
|
-
if (options.bundler === "esbuild") {
|
|
67976
|
-
ruleOptions.ignoredFiles = [
|
|
67977
|
-
"{projectRoot}/esbuild.config.{js,ts,mjs,mts}"
|
|
67978
|
-
];
|
|
67979
|
-
o.rules["@nx/dependency-checks"] = [ruleSeverity, ruleOptions];
|
|
67980
|
-
}
|
|
67981
|
-
return o;
|
|
67982
|
-
}
|
|
67983
|
-
);
|
|
67984
|
-
}
|
|
67985
|
-
return task;
|
|
67986
|
-
}
|
|
67987
67913
|
function getOutputPath(options) {
|
|
67988
67914
|
const parts = ["dist"];
|
|
67989
67915
|
if (options.projectRoot === ".") {
|
|
@@ -68085,7 +68011,7 @@ async function neutralLibraryGeneratorFn(tree, schema) {
|
|
|
68085
68011
|
...schema,
|
|
68086
68012
|
platform: "neutral",
|
|
68087
68013
|
devDependencies: {},
|
|
68088
|
-
buildExecutor: "@storm-software/workspace-tools:
|
|
68014
|
+
buildExecutor: "@storm-software/workspace-tools:unbuild"
|
|
68089
68015
|
};
|
|
68090
68016
|
const options = await normalizeOptions(tree, tsLibraryGeneratorOptions);
|
|
68091
68017
|
const { className, name, propertyName } = (0, import_devkit2.names)(
|
|
@@ -66386,7 +66386,12 @@ var init_schema = __esm({
|
|
|
66386
66386
|
extends: z3.string().trim().optional().describe(
|
|
66387
66387
|
"The path to a base JSON file to use as a configuration preset file"
|
|
66388
66388
|
),
|
|
66389
|
-
|
|
66389
|
+
isRoot: z3.boolean().optional().describe(
|
|
66390
|
+
"A flag indicating if the current configuration is the set in the root of the workspace"
|
|
66391
|
+
),
|
|
66392
|
+
name: z3.string().trim().toLowerCase().optional().describe(
|
|
66393
|
+
"The name of the service/package/scope using this configuration"
|
|
66394
|
+
),
|
|
66390
66395
|
namespace: z3.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
66391
66396
|
organization: z3.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
66392
66397
|
repository: z3.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
@@ -66396,7 +66401,7 @@ var init_schema = __esm({
|
|
|
66396
66401
|
licensing: z3.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
|
|
66397
66402
|
branch: z3.string().trim().default("main").describe("The branch of the workspace"),
|
|
66398
66403
|
preid: z3.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
66399
|
-
owner: z3.string().trim().default("@storm-software/
|
|
66404
|
+
owner: z3.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
66400
66405
|
worker: z3.string().trim().default("Stormie-Bot").describe(
|
|
66401
66406
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
66402
66407
|
),
|
|
@@ -66407,7 +66412,15 @@ var init_schema = __esm({
|
|
|
66407
66412
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
66408
66413
|
),
|
|
66409
66414
|
skipCache: z3.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
66410
|
-
cacheDirectory: z3.string().trim().
|
|
66415
|
+
cacheDirectory: z3.string().trim().optional().describe(
|
|
66416
|
+
"The directory used to store the environment's cached file data"
|
|
66417
|
+
),
|
|
66418
|
+
dataDirectory: z3.string().trim().optional().describe("The directory used to store the environment's data files"),
|
|
66419
|
+
configDirectory: z3.string().trim().optional().describe(
|
|
66420
|
+
"The directory used to store the environment's configuration files"
|
|
66421
|
+
),
|
|
66422
|
+
tempDirectory: z3.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
66423
|
+
logDirectory: z3.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
66411
66424
|
buildDirectory: z3.string().trim().default("dist").describe("The build directory for the workspace"),
|
|
66412
66425
|
outputDirectory: z3.string().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
|
|
66413
66426
|
runtimeVersion: z3.string().trim().regex(
|
|
@@ -66425,7 +66438,7 @@ var init_schema = __esm({
|
|
|
66425
66438
|
"debug",
|
|
66426
66439
|
"trace",
|
|
66427
66440
|
"all"
|
|
66428
|
-
]).default("
|
|
66441
|
+
]).default("info").describe(
|
|
66429
66442
|
"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`)."
|
|
66430
66443
|
),
|
|
66431
66444
|
cloudflareAccountId: z3.string().trim().toLowerCase().length(32).regex(/^([0-9a-fA-F]{32})$/i).nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
|
|
@@ -67786,7 +67799,7 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
67786
67799
|
type: "github",
|
|
67787
67800
|
url: "https://github.com/storm-software/storm-stack.git"
|
|
67788
67801
|
};
|
|
67789
|
-
let description = schema.description ?? "
|
|
67802
|
+
let description = schema.description ?? "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
67790
67803
|
if (tree.exists("package.json")) {
|
|
67791
67804
|
const packageJson = (0, import_devkit.readJson)(tree, "package.json");
|
|
67792
67805
|
if (packageJson?.repository) {
|
|
@@ -67895,96 +67908,9 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
67895
67908
|
exclude: ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
|
|
67896
67909
|
});
|
|
67897
67910
|
}
|
|
67898
|
-
const lintCallback = await addLint(tree, options);
|
|
67899
|
-
tasks.push(lintCallback);
|
|
67900
67911
|
await (0, import_devkit.formatFiles)(tree);
|
|
67901
67912
|
return null;
|
|
67902
67913
|
}
|
|
67903
|
-
async function addLint(tree, options) {
|
|
67904
|
-
const { lintProjectGenerator } = (0, import_devkit.ensurePackage)("@nx/eslint", nxVersion);
|
|
67905
|
-
const { mapLintPattern } = (
|
|
67906
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
67907
|
-
require("@nx/eslint/src/generators/lint-project/lint-project")
|
|
67908
|
-
);
|
|
67909
|
-
const projectConfiguration = (0, import_devkit.readProjectConfiguration)(tree, options.name);
|
|
67910
|
-
const task = lintProjectGenerator(tree, {
|
|
67911
|
-
project: options.name,
|
|
67912
|
-
linter: options.linter,
|
|
67913
|
-
skipFormat: true,
|
|
67914
|
-
tsConfigPaths: [(0, import_devkit.joinPathFragments)(options.projectRoot, "tsconfig.json")],
|
|
67915
|
-
unitTestRunner: options.unitTestRunner,
|
|
67916
|
-
eslintFilePatterns: [
|
|
67917
|
-
mapLintPattern(
|
|
67918
|
-
options.projectRoot,
|
|
67919
|
-
options.js ? "js" : "ts",
|
|
67920
|
-
options.rootProject
|
|
67921
|
-
)
|
|
67922
|
-
],
|
|
67923
|
-
setParserOptionsProject: options.setParserOptionsProject,
|
|
67924
|
-
rootProject: options.rootProject
|
|
67925
|
-
});
|
|
67926
|
-
const {
|
|
67927
|
-
addOverrideToLintConfig,
|
|
67928
|
-
lintConfigHasOverride,
|
|
67929
|
-
isEslintConfigSupported,
|
|
67930
|
-
updateOverrideInLintConfig
|
|
67931
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
67932
|
-
} = require("@nx/eslint/src/generators/utils/eslint-file");
|
|
67933
|
-
if (!isEslintConfigSupported(tree)) {
|
|
67934
|
-
return task;
|
|
67935
|
-
}
|
|
67936
|
-
addOverrideToLintConfig(tree, "", {
|
|
67937
|
-
files: ["*.json"],
|
|
67938
|
-
parser: "jsonc-eslint-parser",
|
|
67939
|
-
rules: {
|
|
67940
|
-
"@nx/dependency-checks": [
|
|
67941
|
-
"error",
|
|
67942
|
-
{
|
|
67943
|
-
"buildTargets": ["build"],
|
|
67944
|
-
"ignoredFiles": [
|
|
67945
|
-
"{projectRoot}/esbuild.config.{js,ts,mjs,mts}",
|
|
67946
|
-
"{projectRoot}/jest.config.ts"
|
|
67947
|
-
],
|
|
67948
|
-
"checkMissingDependencies": true,
|
|
67949
|
-
"checkObsoleteDependencies": true,
|
|
67950
|
-
"checkVersionMismatches": false
|
|
67951
|
-
}
|
|
67952
|
-
]
|
|
67953
|
-
}
|
|
67954
|
-
});
|
|
67955
|
-
if (lintConfigHasOverride(
|
|
67956
|
-
tree,
|
|
67957
|
-
projectConfiguration.root,
|
|
67958
|
-
(o) => Array.isArray(o.files) ? o.files.some((f2) => f2.match(/\.json$/)) : !!o.files?.match(/\.json$/),
|
|
67959
|
-
true
|
|
67960
|
-
)) {
|
|
67961
|
-
updateOverrideInLintConfig(
|
|
67962
|
-
tree,
|
|
67963
|
-
projectConfiguration.root,
|
|
67964
|
-
(o) => o.rules?.["@nx/dependency-checks"],
|
|
67965
|
-
(o) => {
|
|
67966
|
-
const value2 = o.rules["@nx/dependency-checks"];
|
|
67967
|
-
let ruleSeverity;
|
|
67968
|
-
let ruleOptions;
|
|
67969
|
-
if (Array.isArray(value2)) {
|
|
67970
|
-
ruleSeverity = value2[0];
|
|
67971
|
-
ruleOptions = value2[1];
|
|
67972
|
-
} else {
|
|
67973
|
-
ruleSeverity = value2 ?? "error";
|
|
67974
|
-
ruleOptions = {};
|
|
67975
|
-
}
|
|
67976
|
-
if (options.bundler === "esbuild") {
|
|
67977
|
-
ruleOptions.ignoredFiles = [
|
|
67978
|
-
"{projectRoot}/esbuild.config.{js,ts,mjs,mts}"
|
|
67979
|
-
];
|
|
67980
|
-
o.rules["@nx/dependency-checks"] = [ruleSeverity, ruleOptions];
|
|
67981
|
-
}
|
|
67982
|
-
return o;
|
|
67983
|
-
}
|
|
67984
|
-
);
|
|
67985
|
-
}
|
|
67986
|
-
return task;
|
|
67987
|
-
}
|
|
67988
67914
|
function getOutputPath(options) {
|
|
67989
67915
|
const parts = ["dist"];
|
|
67990
67916
|
if (options.projectRoot === ".") {
|
|
@@ -68088,7 +68014,7 @@ async function nodeLibraryGeneratorFn(tree, schema) {
|
|
|
68088
68014
|
devDependencies: {
|
|
68089
68015
|
"@types/node": typesNodeVersion
|
|
68090
68016
|
},
|
|
68091
|
-
buildExecutor: "@storm-software/workspace-tools:
|
|
68017
|
+
buildExecutor: "@storm-software/workspace-tools:unbuild"
|
|
68092
68018
|
};
|
|
68093
68019
|
const options = await normalizeOptions(tree, tsLibraryGeneratorOptions);
|
|
68094
68020
|
const { className, name, propertyName } = (0, import_devkit2.names)(
|
|
@@ -66386,7 +66386,12 @@ var init_schema = __esm({
|
|
|
66386
66386
|
extends: z3.string().trim().optional().describe(
|
|
66387
66387
|
"The path to a base JSON file to use as a configuration preset file"
|
|
66388
66388
|
),
|
|
66389
|
-
|
|
66389
|
+
isRoot: z3.boolean().optional().describe(
|
|
66390
|
+
"A flag indicating if the current configuration is the set in the root of the workspace"
|
|
66391
|
+
),
|
|
66392
|
+
name: z3.string().trim().toLowerCase().optional().describe(
|
|
66393
|
+
"The name of the service/package/scope using this configuration"
|
|
66394
|
+
),
|
|
66390
66395
|
namespace: z3.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
66391
66396
|
organization: z3.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
66392
66397
|
repository: z3.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
@@ -66396,7 +66401,7 @@ var init_schema = __esm({
|
|
|
66396
66401
|
licensing: z3.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
|
|
66397
66402
|
branch: z3.string().trim().default("main").describe("The branch of the workspace"),
|
|
66398
66403
|
preid: z3.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
66399
|
-
owner: z3.string().trim().default("@storm-software/
|
|
66404
|
+
owner: z3.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
66400
66405
|
worker: z3.string().trim().default("Stormie-Bot").describe(
|
|
66401
66406
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
66402
66407
|
),
|
|
@@ -66407,7 +66412,15 @@ var init_schema = __esm({
|
|
|
66407
66412
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
66408
66413
|
),
|
|
66409
66414
|
skipCache: z3.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
66410
|
-
cacheDirectory: z3.string().trim().
|
|
66415
|
+
cacheDirectory: z3.string().trim().optional().describe(
|
|
66416
|
+
"The directory used to store the environment's cached file data"
|
|
66417
|
+
),
|
|
66418
|
+
dataDirectory: z3.string().trim().optional().describe("The directory used to store the environment's data files"),
|
|
66419
|
+
configDirectory: z3.string().trim().optional().describe(
|
|
66420
|
+
"The directory used to store the environment's configuration files"
|
|
66421
|
+
),
|
|
66422
|
+
tempDirectory: z3.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
66423
|
+
logDirectory: z3.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
66411
66424
|
buildDirectory: z3.string().trim().default("dist").describe("The build directory for the workspace"),
|
|
66412
66425
|
outputDirectory: z3.string().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
|
|
66413
66426
|
runtimeVersion: z3.string().trim().regex(
|
|
@@ -66425,7 +66438,7 @@ var init_schema = __esm({
|
|
|
66425
66438
|
"debug",
|
|
66426
66439
|
"trace",
|
|
66427
66440
|
"all"
|
|
66428
|
-
]).default("
|
|
66441
|
+
]).default("info").describe(
|
|
66429
66442
|
"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`)."
|
|
66430
66443
|
),
|
|
66431
66444
|
cloudflareAccountId: z3.string().trim().toLowerCase().length(32).regex(/^([0-9a-fA-F]{32})$/i).nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
|
|
@@ -68210,7 +68210,12 @@ var init_schema = __esm({
|
|
|
68210
68210
|
extends: z3.string().trim().optional().describe(
|
|
68211
68211
|
"The path to a base JSON file to use as a configuration preset file"
|
|
68212
68212
|
),
|
|
68213
|
-
|
|
68213
|
+
isRoot: z3.boolean().optional().describe(
|
|
68214
|
+
"A flag indicating if the current configuration is the set in the root of the workspace"
|
|
68215
|
+
),
|
|
68216
|
+
name: z3.string().trim().toLowerCase().optional().describe(
|
|
68217
|
+
"The name of the service/package/scope using this configuration"
|
|
68218
|
+
),
|
|
68214
68219
|
namespace: z3.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
68215
68220
|
organization: z3.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
68216
68221
|
repository: z3.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
@@ -68220,7 +68225,7 @@ var init_schema = __esm({
|
|
|
68220
68225
|
licensing: z3.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
|
|
68221
68226
|
branch: z3.string().trim().default("main").describe("The branch of the workspace"),
|
|
68222
68227
|
preid: z3.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
68223
|
-
owner: z3.string().trim().default("@storm-software/
|
|
68228
|
+
owner: z3.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
68224
68229
|
worker: z3.string().trim().default("Stormie-Bot").describe(
|
|
68225
68230
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
68226
68231
|
),
|
|
@@ -68231,7 +68236,15 @@ var init_schema = __esm({
|
|
|
68231
68236
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
68232
68237
|
),
|
|
68233
68238
|
skipCache: z3.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
68234
|
-
cacheDirectory: z3.string().trim().
|
|
68239
|
+
cacheDirectory: z3.string().trim().optional().describe(
|
|
68240
|
+
"The directory used to store the environment's cached file data"
|
|
68241
|
+
),
|
|
68242
|
+
dataDirectory: z3.string().trim().optional().describe("The directory used to store the environment's data files"),
|
|
68243
|
+
configDirectory: z3.string().trim().optional().describe(
|
|
68244
|
+
"The directory used to store the environment's configuration files"
|
|
68245
|
+
),
|
|
68246
|
+
tempDirectory: z3.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
68247
|
+
logDirectory: z3.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
68235
68248
|
buildDirectory: z3.string().trim().default("dist").describe("The build directory for the workspace"),
|
|
68236
68249
|
outputDirectory: z3.string().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
|
|
68237
68250
|
runtimeVersion: z3.string().trim().regex(
|
|
@@ -68249,7 +68262,7 @@ var init_schema = __esm({
|
|
|
68249
68262
|
"debug",
|
|
68250
68263
|
"trace",
|
|
68251
68264
|
"all"
|
|
68252
|
-
]).default("
|
|
68265
|
+
]).default("info").describe(
|
|
68253
68266
|
"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`)."
|
|
68254
68267
|
),
|
|
68255
68268
|
cloudflareAccountId: z3.string().trim().toLowerCase().length(32).regex(/^([0-9a-fA-F]{32})$/i).nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
|