@storm-software/workspace-tools 1.71.0 → 1.72.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 +24 -0
- package/README.md +43 -7
- package/index.js +215 -140
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +141 -91
- package/src/executors/rolldown/executor.js +93 -67
- package/src/executors/tsup/executor.js +102 -72
- package/src/executors/tsup-browser/executor.js +102 -72
- package/src/executors/tsup-neutral/executor.js +102 -72
- package/src/executors/tsup-node/executor.js +102 -72
- package/src/executors/typia/executor.js +90 -64
- package/src/executors/unbuild/executor.js +93 -67
- package/src/generators/browser-library/generator.js +112 -68
- package/src/generators/config-schema/generator.js +86 -62
- package/src/generators/neutral-library/generator.js +112 -68
- package/src/generators/node-library/generator.js +112 -68
- package/src/generators/preset/files/README.md.template +4 -1
- package/src/generators/preset/files/docs/readme-templates/README.footer.md.template +34 -5
- package/src/generators/preset/files/docs/readme-templates/README.header.md.template +8 -3
- package/src/generators/preset/files/nx.json +5 -1
- package/src/generators/preset/generator.js +136 -91
- package/src/generators/preset/schema.d.ts +1 -0
- package/src/generators/preset/schema.json +10 -0
- package/src/generators/release-version/generator.js +88 -64
- package/src/utils/index.js +60 -40
|
@@ -70263,8 +70263,9 @@ var init_schema = __esm({
|
|
|
70263
70263
|
"packages/config/src/schema.ts"() {
|
|
70264
70264
|
init_lib();
|
|
70265
70265
|
ColorConfigSchema = z4.object({
|
|
70266
|
+
dark: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d232a").describe("The dark background color of the workspace"),
|
|
70267
|
+
light: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace"),
|
|
70266
70268
|
primary: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The primary color of the workspace"),
|
|
70267
|
-
background: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d232a").describe("The background color of the workspace"),
|
|
70268
70269
|
success: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#087f5b").describe("The success color of the workspace"),
|
|
70269
70270
|
info: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The informational color of the workspace"),
|
|
70270
70271
|
warning: z4.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace"),
|
|
@@ -70299,7 +70300,7 @@ var init_schema = __esm({
|
|
|
70299
70300
|
skipCache: z4.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
70300
70301
|
cacheDirectory: z4.string().trim().default("node_modules/.cache/storm").describe("The directory used to store the workspace's cached file data"),
|
|
70301
70302
|
buildDirectory: z4.string().trim().default("dist").describe("The build directory for the workspace"),
|
|
70302
|
-
|
|
70303
|
+
outputDirectory: z4.string().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
|
|
70303
70304
|
runtimeVersion: z4.string().trim().regex(
|
|
70304
70305
|
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
|
|
70305
70306
|
).default("1.0.0").describe("The global version of the Storm runtime"),
|
|
@@ -70362,7 +70363,8 @@ var init_get_default_config = __esm({
|
|
|
70362
70363
|
init_find_workspace_root();
|
|
70363
70364
|
DEFAULT_COLOR_CONFIG = {
|
|
70364
70365
|
primary: "#1fb2a6",
|
|
70365
|
-
|
|
70366
|
+
dark: "#1d232a",
|
|
70367
|
+
light: "#f4f4f5",
|
|
70366
70368
|
success: "#087f5b",
|
|
70367
70369
|
info: "#0ea5e9",
|
|
70368
70370
|
warning: "#fcc419",
|
|
@@ -72107,7 +72109,7 @@ var init_logger = __esm({
|
|
|
72107
72109
|
init_types2();
|
|
72108
72110
|
init_get_log_level();
|
|
72109
72111
|
init_chalk();
|
|
72110
|
-
getLogFn = (
|
|
72112
|
+
getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
72111
72113
|
let _chalk = getChalk();
|
|
72112
72114
|
const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
|
|
72113
72115
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
@@ -72141,7 +72143,7 @@ ${_chalk.bold.hex(config?.colors?.error ? config.colors.error : "#7d1a1a")(">")}
|
|
|
72141
72143
|
return (message) => {
|
|
72142
72144
|
console.warn(
|
|
72143
72145
|
`
|
|
72144
|
-
${_chalk.bold.hex(config?.colors?.warning ? config.colors.warning : "#fcc419")("> ")} ${_chalk.bold.bgHex(config?.colors?.warning ? config.colors.warning : "#fcc419").whiteBright("
|
|
72146
|
+
${_chalk.bold.hex(config?.colors?.warning ? config.colors.warning : "#fcc419")("> ")} ${_chalk.bold.bgHex(config?.colors?.warning ? config.colors.warning : "#fcc419").whiteBright(" \u26A0 Warn ")} ${_chalk.hex(
|
|
72145
72147
|
config?.colors?.warning ? config.colors.warning : "#fcc419"
|
|
72146
72148
|
)(message)}
|
|
72147
72149
|
`
|
|
@@ -72191,14 +72193,14 @@ ${_chalk.bold.hex(config?.colors?.primary ? config.colors.primary : "#1fb2a6")("
|
|
|
72191
72193
|
);
|
|
72192
72194
|
};
|
|
72193
72195
|
};
|
|
72194
|
-
writeFatal = (
|
|
72195
|
-
writeError = (
|
|
72196
|
-
writeWarning = (
|
|
72197
|
-
writeInfo = (
|
|
72198
|
-
writeSuccess = (
|
|
72199
|
-
writeDebug = (
|
|
72200
|
-
writeTrace = (
|
|
72201
|
-
writeSystem = (
|
|
72196
|
+
writeFatal = (message, config) => getLogFn(LogLevel.FATAL, config)(message);
|
|
72197
|
+
writeError = (message, config) => getLogFn(LogLevel.ERROR, config)(message);
|
|
72198
|
+
writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
|
|
72199
|
+
writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
|
|
72200
|
+
writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
|
|
72201
|
+
writeDebug = (message, config) => getLogFn(LogLevel.DEBUG, config)(message);
|
|
72202
|
+
writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
|
|
72203
|
+
writeSystem = (message, config) => getLogFn(LogLevel.ALL, config)(message);
|
|
72202
72204
|
getStopwatch = (name) => {
|
|
72203
72205
|
const start = process.hrtime();
|
|
72204
72206
|
return () => {
|
|
@@ -72222,40 +72224,43 @@ var init_process_handler = __esm({
|
|
|
72222
72224
|
"packages/config-tools/src/utilities/process-handler.ts"() {
|
|
72223
72225
|
init_logger();
|
|
72224
72226
|
exitWithError = (config) => {
|
|
72225
|
-
writeFatal(
|
|
72227
|
+
writeFatal("Exiting script with an error status...", config);
|
|
72226
72228
|
process.exit(1);
|
|
72227
72229
|
};
|
|
72228
72230
|
exitWithSuccess = (config) => {
|
|
72229
|
-
writeSuccess(
|
|
72231
|
+
writeSuccess("Script completed successfully. Exiting...", config);
|
|
72230
72232
|
process.exit(0);
|
|
72231
72233
|
};
|
|
72232
72234
|
handleProcess = (config) => {
|
|
72233
72235
|
writeTrace(
|
|
72234
|
-
|
|
72235
|
-
|
|
72236
|
+
`Using the following arguments to process the script: ${process.argv.join(", ")}`,
|
|
72237
|
+
config
|
|
72236
72238
|
);
|
|
72237
72239
|
process.on("unhandledRejection", (error) => {
|
|
72238
|
-
writeError(
|
|
72240
|
+
writeError(
|
|
72241
|
+
`An Unhandled Rejection occurred while running the program: ${error}`,
|
|
72242
|
+
config
|
|
72243
|
+
);
|
|
72239
72244
|
exitWithError(config);
|
|
72240
72245
|
});
|
|
72241
72246
|
process.on("uncaughtException", (error) => {
|
|
72242
72247
|
writeError(
|
|
72243
|
-
config,
|
|
72244
72248
|
`An Uncaught Exception occurred while running the program: ${error.message}
|
|
72245
|
-
Stacktrace: ${error.stack}
|
|
72249
|
+
Stacktrace: ${error.stack}`,
|
|
72250
|
+
config
|
|
72246
72251
|
);
|
|
72247
72252
|
exitWithError(config);
|
|
72248
72253
|
});
|
|
72249
72254
|
process.on("SIGTERM", (signal) => {
|
|
72250
|
-
writeError(
|
|
72255
|
+
writeError(`The program terminated with signal code: ${signal}`, config);
|
|
72251
72256
|
exitWithError(config);
|
|
72252
72257
|
});
|
|
72253
72258
|
process.on("SIGINT", (signal) => {
|
|
72254
|
-
writeError(
|
|
72259
|
+
writeError(`The program terminated with signal code: ${signal}`, config);
|
|
72255
72260
|
exitWithError(config);
|
|
72256
72261
|
});
|
|
72257
72262
|
process.on("SIGHUP", (signal) => {
|
|
72258
|
-
writeError(
|
|
72263
|
+
writeError(`The program terminated with signal code: ${signal}`, config);
|
|
72259
72264
|
exitWithError(config);
|
|
72260
72265
|
});
|
|
72261
72266
|
};
|
|
@@ -72395,7 +72400,9 @@ var init_get_env = __esm({
|
|
|
72395
72400
|
getExtensionEnv = (extensionName) => {
|
|
72396
72401
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
72397
72402
|
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
72398
|
-
const name = key.replace(prefix, "").split("_").map(
|
|
72403
|
+
const name = key.replace(prefix, "").split("_").map(
|
|
72404
|
+
(i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : ""
|
|
72405
|
+
).join("");
|
|
72399
72406
|
if (name) {
|
|
72400
72407
|
ret[name] = process.env[key];
|
|
72401
72408
|
}
|
|
@@ -72423,14 +72430,15 @@ var init_get_env = __esm({
|
|
|
72423
72430
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
72424
72431
|
cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
|
|
72425
72432
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
72426
|
-
|
|
72433
|
+
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
72427
72434
|
env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
72428
72435
|
ci: process.env[`${prefix}CI`] !== void 0 ? Boolean(
|
|
72429
72436
|
process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION
|
|
72430
72437
|
) : void 0,
|
|
72431
72438
|
colors: {
|
|
72432
72439
|
primary: process.env[`${prefix}COLOR_PRIMARY`],
|
|
72433
|
-
|
|
72440
|
+
dark: process.env[`${prefix}COLOR_DARK`],
|
|
72441
|
+
light: process.env[`${prefix}COLOR_LIGHT`],
|
|
72434
72442
|
success: process.env[`${prefix}COLOR_SUCCESS`],
|
|
72435
72443
|
info: process.env[`${prefix}COLOR_INFO`],
|
|
72436
72444
|
warning: process.env[`${prefix}COLOR_WARNING`],
|
|
@@ -72441,7 +72449,11 @@ var init_get_env = __esm({
|
|
|
72441
72449
|
branch: process.env[`${prefix}BRANCH`],
|
|
72442
72450
|
preid: process.env[`${prefix}PRE_ID`],
|
|
72443
72451
|
externalPackagePatterns: process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`] ? JSON.parse(process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`]) : [],
|
|
72444
|
-
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
72452
|
+
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
72453
|
+
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
72454
|
+
) ? getLogLevelLabel(
|
|
72455
|
+
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
72456
|
+
) : process.env[`${prefix}LOG_LEVEL`] : void 0
|
|
72445
72457
|
};
|
|
72446
72458
|
const serializedConfig = process.env[`${prefix}CONFIG`];
|
|
72447
72459
|
if (serializedConfig) {
|
|
@@ -72536,10 +72548,14 @@ var init_set_env = __esm({
|
|
|
72536
72548
|
process.env.NX_WORKSPACE_ROOT_PATH = correctPaths(config.workspaceRoot);
|
|
72537
72549
|
}
|
|
72538
72550
|
if (config.packageDirectory) {
|
|
72539
|
-
process.env[`${prefix}PACKAGE_DIRECTORY`] = correctPaths(
|
|
72551
|
+
process.env[`${prefix}PACKAGE_DIRECTORY`] = correctPaths(
|
|
72552
|
+
config.packageDirectory
|
|
72553
|
+
);
|
|
72540
72554
|
}
|
|
72541
72555
|
if (config.buildDirectory) {
|
|
72542
|
-
process.env[`${prefix}BUILD_DIRECTORY`] = correctPaths(
|
|
72556
|
+
process.env[`${prefix}BUILD_DIRECTORY`] = correctPaths(
|
|
72557
|
+
config.buildDirectory
|
|
72558
|
+
);
|
|
72543
72559
|
}
|
|
72544
72560
|
if (config.skipCache !== void 0) {
|
|
72545
72561
|
process.env[`${prefix}SKIP_CACHE`] = String(config.skipCache);
|
|
@@ -72549,13 +72565,17 @@ var init_set_env = __esm({
|
|
|
72549
72565
|
}
|
|
72550
72566
|
}
|
|
72551
72567
|
if (!config.skipCache && config.cacheDirectory) {
|
|
72552
|
-
process.env[`${prefix}CACHE_DIRECTORY`] = correctPaths(
|
|
72568
|
+
process.env[`${prefix}CACHE_DIRECTORY`] = correctPaths(
|
|
72569
|
+
config.cacheDirectory
|
|
72570
|
+
);
|
|
72553
72571
|
}
|
|
72554
72572
|
if (config.runtimeVersion) {
|
|
72555
72573
|
process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion;
|
|
72556
72574
|
}
|
|
72557
|
-
if (config.
|
|
72558
|
-
process.env[`${prefix}
|
|
72575
|
+
if (config.outputDirectory) {
|
|
72576
|
+
process.env[`${prefix}OUTPUT_DIRECTORY`] = correctPaths(
|
|
72577
|
+
config.outputDirectory
|
|
72578
|
+
);
|
|
72559
72579
|
}
|
|
72560
72580
|
if (config.env) {
|
|
72561
72581
|
process.env[`${prefix}ENV`] = config.env;
|
|
@@ -72570,8 +72590,11 @@ var init_set_env = __esm({
|
|
|
72570
72590
|
if (config.colors.primary) {
|
|
72571
72591
|
process.env[`${prefix}COLOR_PRIMARY`] = config.colors.primary;
|
|
72572
72592
|
}
|
|
72573
|
-
if (config.colors.
|
|
72574
|
-
process.env[`${prefix}
|
|
72593
|
+
if (config.colors.dark) {
|
|
72594
|
+
process.env[`${prefix}COLOR_DARK`] = config.colors.dark;
|
|
72595
|
+
}
|
|
72596
|
+
if (config.colors.light) {
|
|
72597
|
+
process.env[`${prefix}COLOR_LIGHT`] = config.colors.light;
|
|
72575
72598
|
}
|
|
72576
72599
|
if (config.colors.success) {
|
|
72577
72600
|
process.env[`${prefix}COLOR_SUCCESS`] = config.colors.success;
|
|
@@ -72652,10 +72675,7 @@ var init_create_storm_config = __esm({
|
|
|
72652
72675
|
if (schema && extensionName) {
|
|
72653
72676
|
result.extensions = {
|
|
72654
72677
|
...result.extensions,
|
|
72655
|
-
[extensionName]: createConfigExtension(
|
|
72656
|
-
extensionName,
|
|
72657
|
-
schema
|
|
72658
|
-
)
|
|
72678
|
+
[extensionName]: createConfigExtension(extensionName, schema)
|
|
72659
72679
|
};
|
|
72660
72680
|
}
|
|
72661
72681
|
_static_cache = result;
|
|
@@ -72682,8 +72702,8 @@ var init_create_storm_config = __esm({
|
|
|
72682
72702
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
72683
72703
|
if (!configFile) {
|
|
72684
72704
|
writeWarning(
|
|
72685
|
-
|
|
72686
|
-
|
|
72705
|
+
"No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.config.js` file to the root of your workspace if it is not.\n",
|
|
72706
|
+
{ logLevel: "all" }
|
|
72687
72707
|
);
|
|
72688
72708
|
}
|
|
72689
72709
|
config = StormConfigSchema.parse(
|
|
@@ -294453,34 +294473,34 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
|
294453
294473
|
let options = _options;
|
|
294454
294474
|
let config;
|
|
294455
294475
|
try {
|
|
294456
|
-
writeInfo2(
|
|
294476
|
+
writeInfo2(`\u26A1 Running the ${name} generator...
|
|
294457
294477
|
|
|
294458
|
-
|
|
294478
|
+
`, config);
|
|
294459
294479
|
const workspaceRoot = findWorkspaceRoot2();
|
|
294460
294480
|
if (!generatorOptions.skipReadingConfig) {
|
|
294461
294481
|
writeDebug2(
|
|
294462
|
-
config,
|
|
294463
294482
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
294464
|
-
- workspaceRoot: ${workspaceRoot}
|
|
294483
|
+
- workspaceRoot: ${workspaceRoot}`,
|
|
294484
|
+
config
|
|
294465
294485
|
);
|
|
294466
294486
|
config = await loadStormConfig2(workspaceRoot);
|
|
294467
294487
|
writeTrace2(
|
|
294468
|
-
config,
|
|
294469
294488
|
`Loaded Storm config into env:
|
|
294470
|
-
${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}
|
|
294489
|
+
${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`,
|
|
294490
|
+
config
|
|
294471
294491
|
);
|
|
294472
294492
|
}
|
|
294473
294493
|
if (generatorOptions?.hooks?.applyDefaultOptions) {
|
|
294474
|
-
writeDebug2(
|
|
294494
|
+
writeDebug2("Running the applyDefaultOptions hook...", config);
|
|
294475
294495
|
options = await Promise.resolve(
|
|
294476
294496
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
294477
294497
|
);
|
|
294478
|
-
writeDebug2(
|
|
294498
|
+
writeDebug2("Completed the applyDefaultOptions hook", config);
|
|
294479
294499
|
}
|
|
294480
294500
|
writeTrace2(
|
|
294481
|
-
config,
|
|
294482
294501
|
`Generator schema options \u2699\uFE0F
|
|
294483
|
-
${Object.keys(options ?? {}).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}
|
|
294502
|
+
${Object.keys(options ?? {}).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
294503
|
+
config
|
|
294484
294504
|
);
|
|
294485
294505
|
const tokenized = await applyWorkspaceTokens(
|
|
294486
294506
|
options,
|
|
@@ -294488,37 +294508,41 @@ ${Object.keys(options ?? {}).map((key) => ` - ${key}=${JSON.stringify(options[ke
|
|
|
294488
294508
|
applyWorkspaceBaseTokens
|
|
294489
294509
|
);
|
|
294490
294510
|
if (generatorOptions?.hooks?.preProcess) {
|
|
294491
|
-
writeDebug2(
|
|
294492
|
-
await Promise.resolve(
|
|
294493
|
-
|
|
294511
|
+
writeDebug2("Running the preProcess hook...", config);
|
|
294512
|
+
await Promise.resolve(
|
|
294513
|
+
generatorOptions.hooks.preProcess(tokenized, config)
|
|
294514
|
+
);
|
|
294515
|
+
writeDebug2("Completed the preProcess hook", config);
|
|
294494
294516
|
}
|
|
294495
|
-
const result = await Promise.resolve(
|
|
294517
|
+
const result = await Promise.resolve(
|
|
294518
|
+
generatorFn(tree, tokenized, config)
|
|
294519
|
+
);
|
|
294496
294520
|
if (result && (!result.success || result.error && result?.error?.message && typeof result?.error?.message === "string" && result?.error?.name && typeof result?.error?.name === "string")) {
|
|
294497
294521
|
throw new Error(`The ${name} generator failed to run`, {
|
|
294498
294522
|
cause: result?.error
|
|
294499
294523
|
});
|
|
294500
294524
|
}
|
|
294501
294525
|
if (generatorOptions?.hooks?.postProcess) {
|
|
294502
|
-
writeDebug2(
|
|
294526
|
+
writeDebug2("Running the postProcess hook...", config);
|
|
294503
294527
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
294504
|
-
writeDebug2(
|
|
294528
|
+
writeDebug2("Completed the postProcess hook", config);
|
|
294505
294529
|
}
|
|
294506
|
-
writeSuccess2(
|
|
294507
|
-
|
|
294530
|
+
writeSuccess2(`Completed running the ${name} task executor!
|
|
294531
|
+
`, config);
|
|
294508
294532
|
return {
|
|
294509
294533
|
...result,
|
|
294510
294534
|
success: true
|
|
294511
294535
|
};
|
|
294512
294536
|
} catch (error) {
|
|
294513
294537
|
writeFatal2(
|
|
294514
|
-
|
|
294515
|
-
|
|
294538
|
+
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
294539
|
+
config
|
|
294516
294540
|
);
|
|
294517
294541
|
writeError2(
|
|
294518
|
-
config,
|
|
294519
294542
|
`An exception was thrown in the generator's process
|
|
294520
294543
|
- Details: ${error.message}
|
|
294521
|
-
- Stacktrace: ${error.stack}
|
|
294544
|
+
- Stacktrace: ${error.stack}`,
|
|
294545
|
+
config
|
|
294522
294546
|
);
|
|
294523
294547
|
return {
|
|
294524
294548
|
success: false
|
|
@@ -294627,7 +294651,10 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
294627
294651
|
if (!options.importPath) {
|
|
294628
294652
|
options.importPath = options.name;
|
|
294629
294653
|
}
|
|
294630
|
-
const packageJsonPath = (0, import_devkit.joinPathFragments)(
|
|
294654
|
+
const packageJsonPath = (0, import_devkit.joinPathFragments)(
|
|
294655
|
+
options.projectRoot,
|
|
294656
|
+
"package.json"
|
|
294657
|
+
);
|
|
294631
294658
|
if (tree.exists(packageJsonPath)) {
|
|
294632
294659
|
(0, import_devkit.updateJson)(tree, packageJsonPath, (json) => {
|
|
294633
294660
|
if (!options.importPath) {
|
|
@@ -294684,7 +294711,11 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
294684
294711
|
}));
|
|
294685
294712
|
}
|
|
294686
294713
|
(0, import_js.addTsConfigPath)(tree, options.importPath, [
|
|
294687
|
-
(0, import_devkit.joinPathFragments)(
|
|
294714
|
+
(0, import_devkit.joinPathFragments)(
|
|
294715
|
+
options.projectRoot,
|
|
294716
|
+
"./src",
|
|
294717
|
+
`index.${options.js ? "js" : "ts"}`
|
|
294718
|
+
)
|
|
294688
294719
|
]);
|
|
294689
294720
|
(0, import_js.addTsConfigPath)(tree, (0, import_devkit.joinPathFragments)(options.importPath, "/*"), [
|
|
294690
294721
|
(0, import_devkit.joinPathFragments)(options.projectRoot, "./src", "/*")
|
|
@@ -294735,7 +294766,11 @@ async function addLint(tree, options) {
|
|
|
294735
294766
|
tsConfigPaths: [(0, import_devkit.joinPathFragments)(options.projectRoot, "tsconfig.json")],
|
|
294736
294767
|
unitTestRunner: options.unitTestRunner,
|
|
294737
294768
|
eslintFilePatterns: [
|
|
294738
|
-
mapLintPattern(
|
|
294769
|
+
mapLintPattern(
|
|
294770
|
+
options.projectRoot,
|
|
294771
|
+
options.js ? "js" : "ts",
|
|
294772
|
+
options.rootProject
|
|
294773
|
+
)
|
|
294739
294774
|
],
|
|
294740
294775
|
setParserOptionsProject: options.setParserOptionsProject,
|
|
294741
294776
|
rootProject: options.rootProject
|
|
@@ -294781,7 +294816,9 @@ async function addLint(tree, options) {
|
|
|
294781
294816
|
ruleOptions = {};
|
|
294782
294817
|
}
|
|
294783
294818
|
if (options.bundler === "esbuild") {
|
|
294784
|
-
ruleOptions.ignoredFiles = [
|
|
294819
|
+
ruleOptions.ignoredFiles = [
|
|
294820
|
+
"{projectRoot}/esbuild.config.{js,ts,mjs,mts}"
|
|
294821
|
+
];
|
|
294785
294822
|
o2.rules["@nx/dependency-checks"] = [ruleSeverity, ruleOptions];
|
|
294786
294823
|
}
|
|
294787
294824
|
return o2;
|
|
@@ -294805,7 +294842,10 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
294805
294842
|
...options?.tsConfigOptions ?? {},
|
|
294806
294843
|
compilerOptions: {
|
|
294807
294844
|
...options.rootProject ? import_js.tsConfigBaseOptions : {},
|
|
294808
|
-
outDir: (0, import_devkit.joinPathFragments)(
|
|
294845
|
+
outDir: (0, import_devkit.joinPathFragments)(
|
|
294846
|
+
(0, import_devkit.offsetFromRoot)(options.projectRoot),
|
|
294847
|
+
"dist/out-tsc"
|
|
294848
|
+
),
|
|
294809
294849
|
noEmit: true,
|
|
294810
294850
|
...options?.tsConfigOptions?.compilerOptions ?? {}
|
|
294811
294851
|
},
|
|
@@ -294823,7 +294863,11 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
294823
294863
|
"src/**/*.test.ts"
|
|
294824
294864
|
]
|
|
294825
294865
|
};
|
|
294826
|
-
(0, import_devkit.writeJson)(
|
|
294866
|
+
(0, import_devkit.writeJson)(
|
|
294867
|
+
tree,
|
|
294868
|
+
(0, import_devkit.joinPathFragments)(options.projectRoot, "tsconfig.json"),
|
|
294869
|
+
tsconfig
|
|
294870
|
+
);
|
|
294827
294871
|
}
|
|
294828
294872
|
async function normalizeOptions(tree, options) {
|
|
294829
294873
|
if (options.publishable) {
|
|
@@ -15,7 +15,10 @@
|
|
|
15
15
|
|
|
16
16
|
[](https://github.com/<%= namespace %>/<%= name %>) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)   
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
> [!IMPORTANT]
|
|
19
|
+
> This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be availible through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.
|
|
20
|
+
|
|
21
|
+
<br />
|
|
19
22
|
|
|
20
23
|
<!--#if GitHubActions-->
|
|
21
24
|
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Storm workspaces are built using <a href="https://nx.dev/" target="_blank">Nx</a>, a set of extensible dev tools for monorepos, which helps you develop like Google, Facebook, and Microsoft. Building on top of Nx, the Open System provides a set of tools and patterns that help you scale your monorepo to many teams while keeping the codebase maintainable.
|
|
4
4
|
|
|
5
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
6
|
+
<br />
|
|
7
|
+
|
|
5
8
|
## Roadmap
|
|
6
9
|
|
|
7
10
|
See the [open issues](https://github.com/<%= organization %>/<%= name %>/issues) for a list of proposed features (and known issues).
|
|
@@ -10,6 +13,9 @@ See the [open issues](https://github.com/<%= organization %>/<%= name %>/issues)
|
|
|
10
13
|
- [Top Bugs](https://github.com/<%= organization %>/<%= name %>/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Areactions-%2B1-desc) (Add your votes using the 👍 reaction)
|
|
11
14
|
- [Newest Bugs](https://github.com/<%= organization %>/<%= name %>/issues?q=is%3Aopen+is%3Aissue+label%3Abug)
|
|
12
15
|
|
|
16
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
17
|
+
<br />
|
|
18
|
+
|
|
13
19
|
## Support
|
|
14
20
|
|
|
15
21
|
Reach out to the maintainer at one of the following places:
|
|
@@ -18,16 +24,25 @@ Reach out to the maintainer at one of the following places:
|
|
|
18
24
|
- [GitHub discussions](https://github.com/<%= organization %>/<%= name %>/discussions)
|
|
19
25
|
- <support@stormsoftware.com>
|
|
20
26
|
|
|
27
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
28
|
+
<br />
|
|
29
|
+
|
|
21
30
|
## License
|
|
22
31
|
|
|
23
32
|
This project is licensed under the **Apache License 2.0**. Feel free to edit and distribute this template as you like.
|
|
24
33
|
|
|
25
34
|
See [LICENSE](LICENSE) for more information.
|
|
26
35
|
|
|
36
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
37
|
+
<br />
|
|
38
|
+
|
|
27
39
|
## Changelog
|
|
28
40
|
|
|
29
41
|
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). Every release, along with the migration instructions, is documented in the [CHANGELOG](CHANGELOG.md) file
|
|
30
42
|
|
|
43
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
44
|
+
<br />
|
|
45
|
+
|
|
31
46
|
## Contributing
|
|
32
47
|
|
|
33
48
|
First off, thanks for taking the time to contribute! Contributions are what makes the open-source community such an amazing place to learn, inspire, and create. Any contributions you make will benefit everybody else and are **greatly appreciated**.
|
|
@@ -43,6 +58,9 @@ Please adhere to this project's [code of conduct](.github/CODE_OF_CONDUCT.md).
|
|
|
43
58
|
|
|
44
59
|
You can use [markdownlint-cli](https://github.com/<%= organization %>/<%= name %>/markdownlint-cli) to check for common markdown style inconsistency.
|
|
45
60
|
|
|
61
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
62
|
+
<br />
|
|
63
|
+
|
|
46
64
|
## Contributors
|
|
47
65
|
|
|
48
66
|
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|
|
@@ -71,11 +89,14 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
71
89
|
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
72
90
|
|
|
73
91
|
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
|
|
74
|
-
|
|
92
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
75
93
|
<br />
|
|
94
|
+
|
|
95
|
+
<hr />
|
|
76
96
|
<br />
|
|
97
|
+
|
|
77
98
|
<div align="center">
|
|
78
|
-
<img src="https://pub-761b436209f44a4d886487c917806c08.r2.dev/logo-banner.png" width="100%"
|
|
99
|
+
<img src="https://pub-761b436209f44a4d886487c917806c08.r2.dev/logo-banner.png" width="100%" alt="Storm Software" />
|
|
79
100
|
</div>
|
|
80
101
|
<br />
|
|
81
102
|
|
|
@@ -84,11 +105,19 @@ This project follows the [all-contributors](https://github.com/all-contributors/
|
|
|
84
105
|
</div>
|
|
85
106
|
|
|
86
107
|
<div align="center">
|
|
87
|
-
<
|
|
108
|
+
<b>Fingerprint:</b> 1BD2 7192 7770 2549 F4C9 F238 E6AD C420 DA5C 4C2D
|
|
88
109
|
</div>
|
|
110
|
+
<br />
|
|
89
111
|
|
|
90
|
-
Storm Software is an open source software development organization and creator of Acidic, StormStack and StormCloud.
|
|
112
|
+
Storm Software is an open source software development organization and creator of Acidic, StormStack and StormCloud.
|
|
113
|
+
|
|
114
|
+
Our 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.
|
|
91
115
|
|
|
92
116
|
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!
|
|
93
117
|
|
|
94
|
-
<
|
|
118
|
+
<br />
|
|
119
|
+
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3>
|
|
120
|
+
|
|
121
|
+
<br />
|
|
122
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
123
|
+
<br />
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
<div align="center"><img src="https://pub-761b436209f44a4d886487c917806c08.r2.dev/logo-banner.png" width="100%"
|
|
1
|
+
<div align="center"><img src="https://pub-761b436209f44a4d886487c917806c08.r2.dev/logo-banner.png" width="100%" alt="Storm Software" /></div>
|
|
2
2
|
|
|
3
3
|
<br />
|
|
4
4
|
<div align="center">
|
|
5
|
+
<b>
|
|
5
6
|
<a href="https://stormsoftware.com" target="_blank">Website</a> | <a href="https://stormsoftware.com/contact" target="_blank">Contact</a> | <a href="https://github.com/<%= organization %>/<%= name %>" target="_blank">Repository</a> | <a href="https://stormstack.github.io/stormstack/" target="_blank">Documentation</a> | <a href="https://github.com/<%= organization %>/<%= name %>/issues/new?assignees=&labels=bug&template=bug-report.yml&title=Bug Report%3A+">Report a Bug</a> | <a href="https://github.com/<%= organization %>/<%= name %>/issues/new?assignees=&labels=enhancement&template=feature-request.yml&title=Feature Request%3A+">Request a Feature</a> | <a href="https://github.com/<%= organization %>/<%= name %>/issues/new?assignees=&labels=documentation&template=documentation.yml&title=Documentation Request%3A+">Request Documentation</a> | <a href="https://github.com/<%= organization %>/<%= name %>/discussions">Ask a Question</a>
|
|
7
|
+
</b>
|
|
6
8
|
</div>
|
|
7
|
-
|
|
8
9
|
<br />
|
|
10
|
+
|
|
9
11
|
This package is part of the <b>⚡<%= name %></b> monorepo. The <%= name %> packages include CLI utility applications, tools, and various libraries used to create modern, scalable web applications.
|
|
10
12
|
<br />
|
|
11
13
|
|
|
@@ -14,4 +16,7 @@ This package is part of the <b>⚡<%= name %></b> monorepo. The <%= name %> pack
|
|
|
14
16
|
[](https://prettier.io/)
|
|
15
17
|
[](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://docusaurus.io/) 
|
|
16
18
|
|
|
17
|
-
|
|
19
|
+
> [!IMPORTANT]
|
|
20
|
+
> This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be availible through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.
|
|
21
|
+
|
|
22
|
+
<br />
|