@storm-software/workspace-tools 1.277.30 → 1.277.31
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 -2
- package/dist/executors.js +15 -15
- package/dist/executors.mjs +22 -22
- package/dist/generators.js +10 -10
- package/dist/generators.mjs +9 -9
- package/dist/index.js +48 -48
- package/dist/index.mjs +62 -62
- package/dist/src/base/index.js +8 -8
- package/dist/src/base/index.mjs +11 -11
- package/dist/src/executors/cargo-build/executor.js +3 -3
- package/dist/src/executors/cargo-build/executor.mjs +2 -2
- package/dist/src/executors/cargo-check/executor.js +3 -3
- package/dist/src/executors/cargo-check/executor.mjs +2 -2
- package/dist/src/executors/cargo-clippy/executor.js +3 -3
- package/dist/src/executors/cargo-clippy/executor.mjs +2 -2
- package/dist/src/executors/cargo-doc/executor.js +3 -3
- package/dist/src/executors/cargo-doc/executor.mjs +2 -2
- package/dist/src/executors/cargo-format/executor.js +3 -3
- package/dist/src/executors/cargo-format/executor.mjs +2 -2
- package/dist/src/executors/npm-publish/executor.js +1 -1
- package/dist/src/executors/npm-publish/executor.mjs +1 -1
- package/dist/src/generators/browser-library/generator.js +2 -2
- package/dist/src/generators/browser-library/generator.mjs +2 -2
- package/dist/src/generators/neutral-library/generator.js +2 -2
- package/dist/src/generators/neutral-library/generator.mjs +2 -2
- package/dist/src/generators/node-library/generator.js +4 -4
- package/dist/src/generators/node-library/generator.mjs +3 -3
- package/dist/src/generators/preset/generator.js +3 -3
- package/dist/src/generators/preset/generator.mjs +2 -2
- package/dist/src/generators/release-version/generator.js +3 -3
- package/dist/src/generators/release-version/generator.mjs +2 -2
- package/dist/src/plugins/rust/cargo-toml.js +3 -3
- package/dist/src/plugins/rust/cargo-toml.mjs +2 -2
- package/dist/src/plugins/rust/index.js +3 -3
- package/dist/src/plugins/rust/index.mjs +2 -2
- package/dist/src/utils/index.js +10 -10
- package/dist/src/utils/index.mjs +22 -22
- package/dist/src/utils/package-helpers.js +1 -1
- package/dist/src/utils/package-helpers.mjs +1 -1
- package/package.json +5 -5
- package/dist/chunk-36NLUQF5.mjs +0 -41
- package/dist/chunk-3CLZGETU.js +0 -913
- package/dist/chunk-3EGPC5BZ.mjs +0 -32
- package/dist/chunk-7LBU537S.mjs +0 -253
- package/dist/chunk-AWQW74DN.mjs +0 -82
- package/dist/chunk-B3D27MSZ.mjs +0 -32
- package/dist/chunk-CI2X75PQ.js +0 -250
- package/dist/chunk-EFVRHTH3.js +0 -41
- package/dist/chunk-L5J57I6V.js +0 -32
- package/dist/chunk-OECJG4M5.js +0 -32
- package/dist/chunk-ONVPEM3D.mjs +0 -377
- package/dist/chunk-QHAPAO2Z.js +0 -377
- package/dist/chunk-R7Q3ZOQ6.mjs +0 -32
- package/dist/chunk-RC3EGPJE.js +0 -32
- package/dist/chunk-RKKY5ZGW.mjs +0 -31
- package/dist/chunk-SXGMKPF6.js +0 -31
- package/dist/chunk-SY2PSJNN.mjs +0 -913
- package/dist/chunk-TD6Z3Z72.js +0 -79
package/dist/chunk-3EGPC5BZ.mjs
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
withRunExecutor
|
|
3
|
-
} from "./chunk-V5564COA.mjs";
|
|
4
|
-
import {
|
|
5
|
-
buildCargoCommand,
|
|
6
|
-
cargoCommand
|
|
7
|
-
} from "./chunk-6LP3KKXE.mjs";
|
|
8
|
-
|
|
9
|
-
// src/executors/cargo-clippy/executor.ts
|
|
10
|
-
async function cargoClippyExecutor(options, context) {
|
|
11
|
-
const command = buildCargoCommand("clippy", options, context);
|
|
12
|
-
return await cargoCommand(...command);
|
|
13
|
-
}
|
|
14
|
-
var executor_default = withRunExecutor(
|
|
15
|
-
"Cargo - Clippy",
|
|
16
|
-
cargoClippyExecutor,
|
|
17
|
-
{
|
|
18
|
-
skipReadingConfig: false,
|
|
19
|
-
hooks: {
|
|
20
|
-
applyDefaultOptions: (options) => {
|
|
21
|
-
options.toolchain ??= "stable";
|
|
22
|
-
options.fix ??= false;
|
|
23
|
-
return options;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
export {
|
|
30
|
-
cargoClippyExecutor,
|
|
31
|
-
executor_default
|
|
32
|
-
};
|
package/dist/chunk-7LBU537S.mjs
DELETED
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
withRunGenerator
|
|
3
|
-
} from "./chunk-PGIUP33N.mjs";
|
|
4
|
-
import {
|
|
5
|
-
nodeVersion,
|
|
6
|
-
pnpmVersion
|
|
7
|
-
} from "./chunk-EK75QNMS.mjs";
|
|
8
|
-
import {
|
|
9
|
-
__dirname
|
|
10
|
-
} from "./chunk-5EK4H7VB.mjs";
|
|
11
|
-
|
|
12
|
-
// src/generators/preset/generator.ts
|
|
13
|
-
import {
|
|
14
|
-
addDependenciesToPackageJson,
|
|
15
|
-
addProjectConfiguration,
|
|
16
|
-
formatFiles,
|
|
17
|
-
generateFiles,
|
|
18
|
-
joinPathFragments,
|
|
19
|
-
updateJson
|
|
20
|
-
} from "@nx/devkit";
|
|
21
|
-
import * as path from "node:path";
|
|
22
|
-
async function presetGeneratorFn(tree, options) {
|
|
23
|
-
const projectRoot = ".";
|
|
24
|
-
options.description ??= `\u26A1The ${options.namespace ? options.namespace : options.name} monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.`;
|
|
25
|
-
options.namespace ??= options.organization;
|
|
26
|
-
addProjectConfiguration(tree, `@${options.namespace}/${options.name}`, {
|
|
27
|
-
root: projectRoot,
|
|
28
|
-
projectType: "application",
|
|
29
|
-
targets: {
|
|
30
|
-
"local-registry": {
|
|
31
|
-
executor: "@nx/js:verdaccio",
|
|
32
|
-
options: {
|
|
33
|
-
port: 4873,
|
|
34
|
-
config: ".verdaccio/config.yml",
|
|
35
|
-
storage: "tmp/local-registry/storage"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
updateJson(tree, "package.json", (json) => {
|
|
41
|
-
json.scripts = json.scripts || {};
|
|
42
|
-
json.version = "0.0.0";
|
|
43
|
-
json.triggerEmptyDevReleaseByIncrementingThisNumber = 0;
|
|
44
|
-
json.private = true;
|
|
45
|
-
json.keywords ??= [
|
|
46
|
-
options.name,
|
|
47
|
-
options.namespace,
|
|
48
|
-
"storm",
|
|
49
|
-
"storm-stack",
|
|
50
|
-
"storm-ops",
|
|
51
|
-
"rust",
|
|
52
|
-
"nx",
|
|
53
|
-
"graphql",
|
|
54
|
-
"sullivanpj",
|
|
55
|
-
"monorepo"
|
|
56
|
-
];
|
|
57
|
-
json.homepage ??= "https://stormsoftware.com";
|
|
58
|
-
json.bugs ??= {
|
|
59
|
-
url: `https://github.com/${options.organization}/${options.name}/issues`,
|
|
60
|
-
email: "support@stormsoftware.com"
|
|
61
|
-
};
|
|
62
|
-
json.license = "Apache-2.0";
|
|
63
|
-
json.author ??= {
|
|
64
|
-
name: "Storm Software",
|
|
65
|
-
email: "contact@stormsoftware.com",
|
|
66
|
-
url: "https://stormsoftware.com"
|
|
67
|
-
};
|
|
68
|
-
json.maintainers ??= [
|
|
69
|
-
{
|
|
70
|
-
name: "Storm Software",
|
|
71
|
-
email: "contact@stormsoftware.com",
|
|
72
|
-
url: "https://stormsoftware.com"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
name: "Pat Sullivan",
|
|
76
|
-
email: "admin@stormsoftware.com",
|
|
77
|
-
url: "https://patsullivan.org"
|
|
78
|
-
}
|
|
79
|
-
];
|
|
80
|
-
json.funding ??= {
|
|
81
|
-
type: "github",
|
|
82
|
-
url: "https://github.com/sponsors/storm-software"
|
|
83
|
-
};
|
|
84
|
-
json.namespace ??= `@${options.namespace}`;
|
|
85
|
-
json.description ??= options.description;
|
|
86
|
-
options.repositoryUrl ??= `https://github.com/${options.organization}/${options.name}`;
|
|
87
|
-
json.repository ??= {
|
|
88
|
-
type: "github",
|
|
89
|
-
url: `${options.repositoryUrl}.git`
|
|
90
|
-
};
|
|
91
|
-
json.packageManager ??= "pnpm@10.3.0";
|
|
92
|
-
json.engines ??= {
|
|
93
|
-
node: ">=20.11.0",
|
|
94
|
-
pnpm: ">=10.3.0"
|
|
95
|
-
};
|
|
96
|
-
json.prettier = "@storm-software/prettier/config.json";
|
|
97
|
-
json.nx ??= {
|
|
98
|
-
includedScripts: [
|
|
99
|
-
"lint-sherif",
|
|
100
|
-
"lint-knip",
|
|
101
|
-
"lint-ls",
|
|
102
|
-
"lint",
|
|
103
|
-
"format",
|
|
104
|
-
"format-sherif",
|
|
105
|
-
"format-readme",
|
|
106
|
-
"format-prettier",
|
|
107
|
-
"format-toml",
|
|
108
|
-
"commit",
|
|
109
|
-
"release"
|
|
110
|
-
]
|
|
111
|
-
};
|
|
112
|
-
json.scripts.adr = "pnpm log4brains adr new";
|
|
113
|
-
json.scripts["adr-preview"] = "pnpm log4brains preview";
|
|
114
|
-
json.scripts.prepare = "pnpm add lefthook -w && pnpm lefthook install";
|
|
115
|
-
json.scripts.preinstall = "npx -y only-allow pnpm";
|
|
116
|
-
json.scripts["install-csb"] = "corepack enable && pnpm install --no-frozen-lockfile";
|
|
117
|
-
json.scripts.clean = "rimraf dist && rimraf --glob packages/**/dist && rimraf --glob tools/**/dist && rimraf --glob docs/**/dist && rimraf --glob apps/**/dist && rimraf --glob libs/**/dist";
|
|
118
|
-
json.scripts.nuke = "nx clear-cache && rimraf .nx/cache && rimraf .nx/workspace-data && pnpm clean && rimraf pnpm-lock.yaml && rimraf --glob packages/**/node_modules && rimraf --glob tools/**/node_modules && rimraf node_modules";
|
|
119
|
-
json.scripts.prebuild = "pnpm clean";
|
|
120
|
-
json.scripts.build = "nx affected -t build --parallel=5";
|
|
121
|
-
json.scripts["build-all"] = "nx run-many -t build --all --parallel=5";
|
|
122
|
-
json.scripts["build-prod"] = "nx run-many -t build --all --prod --parallel=5";
|
|
123
|
-
json.scripts["build-tools"] = "nx run-many -t build --projects=tools/* --parallel=5";
|
|
124
|
-
json.scripts["build-docs"] = "nx run-many -t build --projects=docs/* --parallel=5";
|
|
125
|
-
if (!options.includeApps) {
|
|
126
|
-
json.scripts["build-packages"] = "nx run-many -t build --projects=packages/* --parallel=5";
|
|
127
|
-
} else {
|
|
128
|
-
json.scripts["build-apps"] = "nx run-many -t build --projects=apps/* --parallel=5";
|
|
129
|
-
json.scripts["build-libs"] = "nx run-many -t build --projects=libs/* --parallel=5";
|
|
130
|
-
json.scripts["build-storybook"] = "storybook build -s public";
|
|
131
|
-
}
|
|
132
|
-
json.scripts.nx = "nx";
|
|
133
|
-
json.scripts.graph = "nx graph";
|
|
134
|
-
json.scripts.lint = "pnpm storm-lint all --skip-cspell --skip-alex";
|
|
135
|
-
if (options.includeApps) {
|
|
136
|
-
json.scripts.start = "nx serve";
|
|
137
|
-
json.scripts.storybook = "pnpm storybook dev -p 6006";
|
|
138
|
-
}
|
|
139
|
-
json.scripts.help = "nx help";
|
|
140
|
-
json.scripts["dep-graph"] = "nx dep-graph";
|
|
141
|
-
json.scripts["local-registry"] = `nx local-registry @${options.namespace}/${options.name}`;
|
|
142
|
-
json.scripts.e2e = "nx e2e";
|
|
143
|
-
if (options.includeApps) {
|
|
144
|
-
json.scripts.test = "nx test && pnpm test-storybook";
|
|
145
|
-
json.scripts["test-storybook"] = "pnpm test-storybook";
|
|
146
|
-
} else {
|
|
147
|
-
json.scripts.test = "nx test";
|
|
148
|
-
}
|
|
149
|
-
json.scripts.lint = "pnpm storm-lint all --skip-cspell --skip-alex";
|
|
150
|
-
json.scripts.commit = "pnpm storm-git commit";
|
|
151
|
-
json.scripts["api-extractor"] = 'pnpm storm-docs api-extractor --outputPath="docs/api-reference" --clean';
|
|
152
|
-
json.scripts.release = "pnpm storm-git release";
|
|
153
|
-
json.scripts.format = "nx format:write";
|
|
154
|
-
json.scripts["format-sherif"] = "pnpm exec sherif -f -i typescript -i react -i react-dom";
|
|
155
|
-
json.scripts["format-toml"] = 'pnpm exec taplo format --config="./node_modules/@storm-software/linting-tools/taplo/config.toml" --cache-path="./node_modules/.cache/storm/taplo"';
|
|
156
|
-
json.scripts["format-readme"] = 'pnpm storm-git readme --templates="tools/readme-templates"';
|
|
157
|
-
json.scripts["format-prettier"] = "pnpm exec prettier --write --ignore-unknown --no-error-on-unmatched-pattern --cache && git update-index";
|
|
158
|
-
json.scripts.lint = "pnpm storm-lint all --skip-cspell";
|
|
159
|
-
json.scripts["lint-knip"] = "pnpm exec knip";
|
|
160
|
-
json.scripts["lint-sherif"] = "pnpm exec sherif -i typescript -i react -i react-dom";
|
|
161
|
-
json.scripts["lint-ls"] = 'pnpm exec ls-lint --config="./node_modules/@storm-software/linting-tools/ls-lint/ls-lint.yml"';
|
|
162
|
-
json.packageManager ??= `pnpm@${pnpmVersion}`;
|
|
163
|
-
json.engines = {
|
|
164
|
-
node: `>=${nodeVersion}`,
|
|
165
|
-
pnpm: `>=${pnpmVersion}`
|
|
166
|
-
};
|
|
167
|
-
return json;
|
|
168
|
-
});
|
|
169
|
-
generateFiles(tree, path.join(__dirname, "files"), projectRoot, {
|
|
170
|
-
...options,
|
|
171
|
-
pnpmVersion,
|
|
172
|
-
nodeVersion
|
|
173
|
-
});
|
|
174
|
-
await formatFiles(tree);
|
|
175
|
-
let dependencies = {
|
|
176
|
-
"@ls-lint/ls-lint": "2.2.3",
|
|
177
|
-
"@ltd/j-toml": "1.38.0",
|
|
178
|
-
"@nx/devkit": "^20.2.2",
|
|
179
|
-
"@nx/eslint-plugin": "^20.2.2",
|
|
180
|
-
"@nx/js": "^20.2.2",
|
|
181
|
-
"@nx/workspace": "^20.2.2",
|
|
182
|
-
"@storm-software/config": "latest",
|
|
183
|
-
"@storm-software/git-tools": "latest",
|
|
184
|
-
"@storm-software/linting-tools": "latest",
|
|
185
|
-
"@storm-software/testing-tools": "latest",
|
|
186
|
-
"@storm-software/workspace-tools": "latest",
|
|
187
|
-
"@storm-software/eslint": "latest",
|
|
188
|
-
"@storm-software/cspell": "latest",
|
|
189
|
-
"@storm-software/prettier": "latest",
|
|
190
|
-
"@taplo/cli": "0.7.0",
|
|
191
|
-
"@types/node": "^20.14.10",
|
|
192
|
-
copyfiles: "2.4.1",
|
|
193
|
-
eslint: "9.5.0",
|
|
194
|
-
jest: "29.7.0",
|
|
195
|
-
"jest-environment-node": "29.7.0",
|
|
196
|
-
knip: "5.25.2",
|
|
197
|
-
lefthook: "1.6.18",
|
|
198
|
-
nx: "^20.2.2",
|
|
199
|
-
prettier: "3.3.2",
|
|
200
|
-
"prettier-plugin-prisma": "5.0.0",
|
|
201
|
-
rimraf: "5.0.7",
|
|
202
|
-
sherif: "0.10.0",
|
|
203
|
-
"ts-jest": "29.1.5",
|
|
204
|
-
"ts-node": "10.9.2",
|
|
205
|
-
tslib: "2.6.3",
|
|
206
|
-
typescript: "5.5.3",
|
|
207
|
-
verdaccio: "5.31.1"
|
|
208
|
-
};
|
|
209
|
-
if (options.includeApps) {
|
|
210
|
-
dependencies = {
|
|
211
|
-
...dependencies,
|
|
212
|
-
react: "latest",
|
|
213
|
-
"react-dom": "latest",
|
|
214
|
-
storybook: "latest",
|
|
215
|
-
"@storybook/addons": "latest",
|
|
216
|
-
"@nx/react": "latest",
|
|
217
|
-
"@nx/next": "latest",
|
|
218
|
-
"@nx/node": "latest",
|
|
219
|
-
"@nx/storybook": "latest",
|
|
220
|
-
"jest-environment-jsdom": "29.7.0"
|
|
221
|
-
};
|
|
222
|
-
}
|
|
223
|
-
if (options.includeRust) {
|
|
224
|
-
dependencies = {
|
|
225
|
-
...dependencies,
|
|
226
|
-
"@monodon/rust": "1.4.0"
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
|
-
if (options.nxCloud) {
|
|
230
|
-
dependencies = {
|
|
231
|
-
...dependencies,
|
|
232
|
-
"nx-cloud": "latest"
|
|
233
|
-
};
|
|
234
|
-
}
|
|
235
|
-
await Promise.resolve(
|
|
236
|
-
addDependenciesToPackageJson(
|
|
237
|
-
tree,
|
|
238
|
-
dependencies,
|
|
239
|
-
{},
|
|
240
|
-
joinPathFragments(projectRoot, "package.json")
|
|
241
|
-
)
|
|
242
|
-
);
|
|
243
|
-
return null;
|
|
244
|
-
}
|
|
245
|
-
var generator_default = withRunGenerator(
|
|
246
|
-
"Storm Workspace Preset Generator",
|
|
247
|
-
presetGeneratorFn
|
|
248
|
-
);
|
|
249
|
-
|
|
250
|
-
export {
|
|
251
|
-
presetGeneratorFn,
|
|
252
|
-
generator_default
|
|
253
|
-
};
|
package/dist/chunk-AWQW74DN.mjs
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
normalizeOptions,
|
|
3
|
-
typeScriptLibraryGeneratorFn
|
|
4
|
-
} from "./chunk-CNBBZVVG.mjs";
|
|
5
|
-
import {
|
|
6
|
-
withRunGenerator
|
|
7
|
-
} from "./chunk-PGIUP33N.mjs";
|
|
8
|
-
import {
|
|
9
|
-
typesNodeVersion
|
|
10
|
-
} from "./chunk-EK75QNMS.mjs";
|
|
11
|
-
import {
|
|
12
|
-
joinPaths
|
|
13
|
-
} from "./chunk-U7JFVMCK.mjs";
|
|
14
|
-
import {
|
|
15
|
-
__dirname
|
|
16
|
-
} from "./chunk-5EK4H7VB.mjs";
|
|
17
|
-
|
|
18
|
-
// src/generators/node-library/generator.ts
|
|
19
|
-
import {
|
|
20
|
-
formatFiles,
|
|
21
|
-
generateFiles,
|
|
22
|
-
names,
|
|
23
|
-
offsetFromRoot
|
|
24
|
-
} from "@nx/devkit";
|
|
25
|
-
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
26
|
-
const filesDir = joinPaths(
|
|
27
|
-
__dirname,
|
|
28
|
-
"src",
|
|
29
|
-
"generators",
|
|
30
|
-
"node-library",
|
|
31
|
-
"files"
|
|
32
|
-
);
|
|
33
|
-
const tsLibraryGeneratorOptions = {
|
|
34
|
-
platform: "node",
|
|
35
|
-
devDependencies: {
|
|
36
|
-
"@types/node": typesNodeVersion
|
|
37
|
-
},
|
|
38
|
-
buildExecutor: "@storm-software/workspace-tools:unbuild",
|
|
39
|
-
...schema,
|
|
40
|
-
directory: schema.directory,
|
|
41
|
-
description: schema.description
|
|
42
|
-
};
|
|
43
|
-
const options = await normalizeOptions(tree, tsLibraryGeneratorOptions);
|
|
44
|
-
const { className, name, propertyName } = names(options.name);
|
|
45
|
-
generateFiles(tree, filesDir, options.projectRoot, {
|
|
46
|
-
...schema,
|
|
47
|
-
dot: ".",
|
|
48
|
-
className,
|
|
49
|
-
name,
|
|
50
|
-
namespace: process.env.STORM_NAMESPACE ?? "storm-software",
|
|
51
|
-
description: schema.description ?? "",
|
|
52
|
-
propertyName,
|
|
53
|
-
js: !!options.js,
|
|
54
|
-
cliCommand: "nx",
|
|
55
|
-
strict: void 0,
|
|
56
|
-
tmpl: "",
|
|
57
|
-
offsetFromRoot: offsetFromRoot(options.projectRoot),
|
|
58
|
-
buildable: options.bundler && options.bundler !== "none",
|
|
59
|
-
hasUnitTestRunner: options.unitTestRunner !== "none"
|
|
60
|
-
});
|
|
61
|
-
await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config);
|
|
62
|
-
await formatFiles(tree);
|
|
63
|
-
return null;
|
|
64
|
-
}
|
|
65
|
-
var generator_default = withRunGenerator(
|
|
66
|
-
"TypeScript Library Creator (NodeJs Platform)",
|
|
67
|
-
nodeLibraryGeneratorFn,
|
|
68
|
-
{
|
|
69
|
-
hooks: {
|
|
70
|
-
applyDefaultOptions: (options) => {
|
|
71
|
-
options.description ??= "A library used by Storm Software to support NodeJs applications";
|
|
72
|
-
options.platform ??= "node";
|
|
73
|
-
return options;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
);
|
|
78
|
-
|
|
79
|
-
export {
|
|
80
|
-
nodeLibraryGeneratorFn,
|
|
81
|
-
generator_default
|
|
82
|
-
};
|
package/dist/chunk-B3D27MSZ.mjs
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
withRunExecutor
|
|
3
|
-
} from "./chunk-V5564COA.mjs";
|
|
4
|
-
import {
|
|
5
|
-
buildCargoCommand,
|
|
6
|
-
cargoCommand
|
|
7
|
-
} from "./chunk-6LP3KKXE.mjs";
|
|
8
|
-
|
|
9
|
-
// src/executors/cargo-format/executor.ts
|
|
10
|
-
async function cargoFormatExecutor(options, context) {
|
|
11
|
-
const command = buildCargoCommand("fmt", options, context);
|
|
12
|
-
return await cargoCommand(...command);
|
|
13
|
-
}
|
|
14
|
-
var executor_default = withRunExecutor(
|
|
15
|
-
"Cargo - Format",
|
|
16
|
-
cargoFormatExecutor,
|
|
17
|
-
{
|
|
18
|
-
skipReadingConfig: false,
|
|
19
|
-
hooks: {
|
|
20
|
-
applyDefaultOptions: (options) => {
|
|
21
|
-
options.outputPath ??= "dist/{projectRoot}/target";
|
|
22
|
-
options.toolchain ??= "stable";
|
|
23
|
-
return options;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
export {
|
|
30
|
-
cargoFormatExecutor,
|
|
31
|
-
executor_default
|
|
32
|
-
};
|
package/dist/chunk-CI2X75PQ.js
DELETED
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }
|
|
2
|
-
|
|
3
|
-
var _chunkQEU3B4T6js = require('./chunk-QEU3B4T6.js');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
|
|
8
|
-
|
|
9
|
-
// src/generators/preset/generator.ts
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
var _devkit = require('@nx/devkit');
|
|
18
|
-
var _path = require('path'); var path = _interopRequireWildcard(_path);
|
|
19
|
-
async function presetGeneratorFn(tree, options) {
|
|
20
|
-
const projectRoot = ".";
|
|
21
|
-
options.description ??= `\u26A1The ${options.namespace ? options.namespace : options.name} monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.`;
|
|
22
|
-
options.namespace ??= options.organization;
|
|
23
|
-
_devkit.addProjectConfiguration.call(void 0, tree, `@${options.namespace}/${options.name}`, {
|
|
24
|
-
root: projectRoot,
|
|
25
|
-
projectType: "application",
|
|
26
|
-
targets: {
|
|
27
|
-
"local-registry": {
|
|
28
|
-
executor: "@nx/js:verdaccio",
|
|
29
|
-
options: {
|
|
30
|
-
port: 4873,
|
|
31
|
-
config: ".verdaccio/config.yml",
|
|
32
|
-
storage: "tmp/local-registry/storage"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
_devkit.updateJson.call(void 0, tree, "package.json", (json) => {
|
|
38
|
-
json.scripts = json.scripts || {};
|
|
39
|
-
json.version = "0.0.0";
|
|
40
|
-
json.triggerEmptyDevReleaseByIncrementingThisNumber = 0;
|
|
41
|
-
json.private = true;
|
|
42
|
-
json.keywords ??= [
|
|
43
|
-
options.name,
|
|
44
|
-
options.namespace,
|
|
45
|
-
"storm",
|
|
46
|
-
"storm-stack",
|
|
47
|
-
"storm-ops",
|
|
48
|
-
"rust",
|
|
49
|
-
"nx",
|
|
50
|
-
"graphql",
|
|
51
|
-
"sullivanpj",
|
|
52
|
-
"monorepo"
|
|
53
|
-
];
|
|
54
|
-
json.homepage ??= "https://stormsoftware.com";
|
|
55
|
-
json.bugs ??= {
|
|
56
|
-
url: `https://github.com/${options.organization}/${options.name}/issues`,
|
|
57
|
-
email: "support@stormsoftware.com"
|
|
58
|
-
};
|
|
59
|
-
json.license = "Apache-2.0";
|
|
60
|
-
json.author ??= {
|
|
61
|
-
name: "Storm Software",
|
|
62
|
-
email: "contact@stormsoftware.com",
|
|
63
|
-
url: "https://stormsoftware.com"
|
|
64
|
-
};
|
|
65
|
-
json.maintainers ??= [
|
|
66
|
-
{
|
|
67
|
-
name: "Storm Software",
|
|
68
|
-
email: "contact@stormsoftware.com",
|
|
69
|
-
url: "https://stormsoftware.com"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
name: "Pat Sullivan",
|
|
73
|
-
email: "admin@stormsoftware.com",
|
|
74
|
-
url: "https://patsullivan.org"
|
|
75
|
-
}
|
|
76
|
-
];
|
|
77
|
-
json.funding ??= {
|
|
78
|
-
type: "github",
|
|
79
|
-
url: "https://github.com/sponsors/storm-software"
|
|
80
|
-
};
|
|
81
|
-
json.namespace ??= `@${options.namespace}`;
|
|
82
|
-
json.description ??= options.description;
|
|
83
|
-
options.repositoryUrl ??= `https://github.com/${options.organization}/${options.name}`;
|
|
84
|
-
json.repository ??= {
|
|
85
|
-
type: "github",
|
|
86
|
-
url: `${options.repositoryUrl}.git`
|
|
87
|
-
};
|
|
88
|
-
json.packageManager ??= "pnpm@10.3.0";
|
|
89
|
-
json.engines ??= {
|
|
90
|
-
node: ">=20.11.0",
|
|
91
|
-
pnpm: ">=10.3.0"
|
|
92
|
-
};
|
|
93
|
-
json.prettier = "@storm-software/prettier/config.json";
|
|
94
|
-
json.nx ??= {
|
|
95
|
-
includedScripts: [
|
|
96
|
-
"lint-sherif",
|
|
97
|
-
"lint-knip",
|
|
98
|
-
"lint-ls",
|
|
99
|
-
"lint",
|
|
100
|
-
"format",
|
|
101
|
-
"format-sherif",
|
|
102
|
-
"format-readme",
|
|
103
|
-
"format-prettier",
|
|
104
|
-
"format-toml",
|
|
105
|
-
"commit",
|
|
106
|
-
"release"
|
|
107
|
-
]
|
|
108
|
-
};
|
|
109
|
-
json.scripts.adr = "pnpm log4brains adr new";
|
|
110
|
-
json.scripts["adr-preview"] = "pnpm log4brains preview";
|
|
111
|
-
json.scripts.prepare = "pnpm add lefthook -w && pnpm lefthook install";
|
|
112
|
-
json.scripts.preinstall = "npx -y only-allow pnpm";
|
|
113
|
-
json.scripts["install-csb"] = "corepack enable && pnpm install --no-frozen-lockfile";
|
|
114
|
-
json.scripts.clean = "rimraf dist && rimraf --glob packages/**/dist && rimraf --glob tools/**/dist && rimraf --glob docs/**/dist && rimraf --glob apps/**/dist && rimraf --glob libs/**/dist";
|
|
115
|
-
json.scripts.nuke = "nx clear-cache && rimraf .nx/cache && rimraf .nx/workspace-data && pnpm clean && rimraf pnpm-lock.yaml && rimraf --glob packages/**/node_modules && rimraf --glob tools/**/node_modules && rimraf node_modules";
|
|
116
|
-
json.scripts.prebuild = "pnpm clean";
|
|
117
|
-
json.scripts.build = "nx affected -t build --parallel=5";
|
|
118
|
-
json.scripts["build-all"] = "nx run-many -t build --all --parallel=5";
|
|
119
|
-
json.scripts["build-prod"] = "nx run-many -t build --all --prod --parallel=5";
|
|
120
|
-
json.scripts["build-tools"] = "nx run-many -t build --projects=tools/* --parallel=5";
|
|
121
|
-
json.scripts["build-docs"] = "nx run-many -t build --projects=docs/* --parallel=5";
|
|
122
|
-
if (!options.includeApps) {
|
|
123
|
-
json.scripts["build-packages"] = "nx run-many -t build --projects=packages/* --parallel=5";
|
|
124
|
-
} else {
|
|
125
|
-
json.scripts["build-apps"] = "nx run-many -t build --projects=apps/* --parallel=5";
|
|
126
|
-
json.scripts["build-libs"] = "nx run-many -t build --projects=libs/* --parallel=5";
|
|
127
|
-
json.scripts["build-storybook"] = "storybook build -s public";
|
|
128
|
-
}
|
|
129
|
-
json.scripts.nx = "nx";
|
|
130
|
-
json.scripts.graph = "nx graph";
|
|
131
|
-
json.scripts.lint = "pnpm storm-lint all --skip-cspell --skip-alex";
|
|
132
|
-
if (options.includeApps) {
|
|
133
|
-
json.scripts.start = "nx serve";
|
|
134
|
-
json.scripts.storybook = "pnpm storybook dev -p 6006";
|
|
135
|
-
}
|
|
136
|
-
json.scripts.help = "nx help";
|
|
137
|
-
json.scripts["dep-graph"] = "nx dep-graph";
|
|
138
|
-
json.scripts["local-registry"] = `nx local-registry @${options.namespace}/${options.name}`;
|
|
139
|
-
json.scripts.e2e = "nx e2e";
|
|
140
|
-
if (options.includeApps) {
|
|
141
|
-
json.scripts.test = "nx test && pnpm test-storybook";
|
|
142
|
-
json.scripts["test-storybook"] = "pnpm test-storybook";
|
|
143
|
-
} else {
|
|
144
|
-
json.scripts.test = "nx test";
|
|
145
|
-
}
|
|
146
|
-
json.scripts.lint = "pnpm storm-lint all --skip-cspell --skip-alex";
|
|
147
|
-
json.scripts.commit = "pnpm storm-git commit";
|
|
148
|
-
json.scripts["api-extractor"] = 'pnpm storm-docs api-extractor --outputPath="docs/api-reference" --clean';
|
|
149
|
-
json.scripts.release = "pnpm storm-git release";
|
|
150
|
-
json.scripts.format = "nx format:write";
|
|
151
|
-
json.scripts["format-sherif"] = "pnpm exec sherif -f -i typescript -i react -i react-dom";
|
|
152
|
-
json.scripts["format-toml"] = 'pnpm exec taplo format --config="./node_modules/@storm-software/linting-tools/taplo/config.toml" --cache-path="./node_modules/.cache/storm/taplo"';
|
|
153
|
-
json.scripts["format-readme"] = 'pnpm storm-git readme --templates="tools/readme-templates"';
|
|
154
|
-
json.scripts["format-prettier"] = "pnpm exec prettier --write --ignore-unknown --no-error-on-unmatched-pattern --cache && git update-index";
|
|
155
|
-
json.scripts.lint = "pnpm storm-lint all --skip-cspell";
|
|
156
|
-
json.scripts["lint-knip"] = "pnpm exec knip";
|
|
157
|
-
json.scripts["lint-sherif"] = "pnpm exec sherif -i typescript -i react -i react-dom";
|
|
158
|
-
json.scripts["lint-ls"] = 'pnpm exec ls-lint --config="./node_modules/@storm-software/linting-tools/ls-lint/ls-lint.yml"';
|
|
159
|
-
json.packageManager ??= `pnpm@${_chunkHI4G4OOGjs.pnpmVersion}`;
|
|
160
|
-
json.engines = {
|
|
161
|
-
node: `>=${_chunkHI4G4OOGjs.nodeVersion}`,
|
|
162
|
-
pnpm: `>=${_chunkHI4G4OOGjs.pnpmVersion}`
|
|
163
|
-
};
|
|
164
|
-
return json;
|
|
165
|
-
});
|
|
166
|
-
_devkit.generateFiles.call(void 0, tree, path.join(__dirname, "files"), projectRoot, {
|
|
167
|
-
...options,
|
|
168
|
-
pnpmVersion: _chunkHI4G4OOGjs.pnpmVersion,
|
|
169
|
-
nodeVersion: _chunkHI4G4OOGjs.nodeVersion
|
|
170
|
-
});
|
|
171
|
-
await _devkit.formatFiles.call(void 0, tree);
|
|
172
|
-
let dependencies = {
|
|
173
|
-
"@ls-lint/ls-lint": "2.2.3",
|
|
174
|
-
"@ltd/j-toml": "1.38.0",
|
|
175
|
-
"@nx/devkit": "^20.2.2",
|
|
176
|
-
"@nx/eslint-plugin": "^20.2.2",
|
|
177
|
-
"@nx/js": "^20.2.2",
|
|
178
|
-
"@nx/workspace": "^20.2.2",
|
|
179
|
-
"@storm-software/config": "latest",
|
|
180
|
-
"@storm-software/git-tools": "latest",
|
|
181
|
-
"@storm-software/linting-tools": "latest",
|
|
182
|
-
"@storm-software/testing-tools": "latest",
|
|
183
|
-
"@storm-software/workspace-tools": "latest",
|
|
184
|
-
"@storm-software/eslint": "latest",
|
|
185
|
-
"@storm-software/cspell": "latest",
|
|
186
|
-
"@storm-software/prettier": "latest",
|
|
187
|
-
"@taplo/cli": "0.7.0",
|
|
188
|
-
"@types/node": "^20.14.10",
|
|
189
|
-
copyfiles: "2.4.1",
|
|
190
|
-
eslint: "9.5.0",
|
|
191
|
-
jest: "29.7.0",
|
|
192
|
-
"jest-environment-node": "29.7.0",
|
|
193
|
-
knip: "5.25.2",
|
|
194
|
-
lefthook: "1.6.18",
|
|
195
|
-
nx: "^20.2.2",
|
|
196
|
-
prettier: "3.3.2",
|
|
197
|
-
"prettier-plugin-prisma": "5.0.0",
|
|
198
|
-
rimraf: "5.0.7",
|
|
199
|
-
sherif: "0.10.0",
|
|
200
|
-
"ts-jest": "29.1.5",
|
|
201
|
-
"ts-node": "10.9.2",
|
|
202
|
-
tslib: "2.6.3",
|
|
203
|
-
typescript: "5.5.3",
|
|
204
|
-
verdaccio: "5.31.1"
|
|
205
|
-
};
|
|
206
|
-
if (options.includeApps) {
|
|
207
|
-
dependencies = {
|
|
208
|
-
...dependencies,
|
|
209
|
-
react: "latest",
|
|
210
|
-
"react-dom": "latest",
|
|
211
|
-
storybook: "latest",
|
|
212
|
-
"@storybook/addons": "latest",
|
|
213
|
-
"@nx/react": "latest",
|
|
214
|
-
"@nx/next": "latest",
|
|
215
|
-
"@nx/node": "latest",
|
|
216
|
-
"@nx/storybook": "latest",
|
|
217
|
-
"jest-environment-jsdom": "29.7.0"
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
if (options.includeRust) {
|
|
221
|
-
dependencies = {
|
|
222
|
-
...dependencies,
|
|
223
|
-
"@monodon/rust": "1.4.0"
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
if (options.nxCloud) {
|
|
227
|
-
dependencies = {
|
|
228
|
-
...dependencies,
|
|
229
|
-
"nx-cloud": "latest"
|
|
230
|
-
};
|
|
231
|
-
}
|
|
232
|
-
await Promise.resolve(
|
|
233
|
-
_devkit.addDependenciesToPackageJson.call(void 0,
|
|
234
|
-
tree,
|
|
235
|
-
dependencies,
|
|
236
|
-
{},
|
|
237
|
-
_devkit.joinPathFragments.call(void 0, projectRoot, "package.json")
|
|
238
|
-
)
|
|
239
|
-
);
|
|
240
|
-
return null;
|
|
241
|
-
}
|
|
242
|
-
var generator_default = _chunkQEU3B4T6js.withRunGenerator.call(void 0,
|
|
243
|
-
"Storm Workspace Preset Generator",
|
|
244
|
-
presetGeneratorFn
|
|
245
|
-
);
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
exports.presetGeneratorFn = presetGeneratorFn; exports.generator_default = generator_default;
|
package/dist/chunk-EFVRHTH3.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunk6XYAQUU3js = require('./chunk-6XYAQUU3.js');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
|
|
8
|
-
|
|
9
|
-
// src/executors/cargo-doc/executor.ts
|
|
10
|
-
async function cargoDocExecutor(options, context) {
|
|
11
|
-
const opts = { ...options };
|
|
12
|
-
opts["no-deps"] = opts.noDeps;
|
|
13
|
-
delete opts.noDeps;
|
|
14
|
-
const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "doc", options, context);
|
|
15
|
-
return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
|
|
16
|
-
}
|
|
17
|
-
var executor_default = _chunk6XYAQUU3js.withRunExecutor.call(void 0,
|
|
18
|
-
"Cargo - Doc",
|
|
19
|
-
cargoDocExecutor,
|
|
20
|
-
{
|
|
21
|
-
skipReadingConfig: false,
|
|
22
|
-
hooks: {
|
|
23
|
-
applyDefaultOptions: (options) => {
|
|
24
|
-
options.outputPath ??= "dist/{projectRoot}/docs";
|
|
25
|
-
options.toolchain ??= "stable";
|
|
26
|
-
options.release ??= options.profile ? false : true;
|
|
27
|
-
options.allFeatures ??= true;
|
|
28
|
-
options.lib ??= true;
|
|
29
|
-
options.bins ??= true;
|
|
30
|
-
options.examples ??= true;
|
|
31
|
-
options.noDeps ??= false;
|
|
32
|
-
return options;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
exports.cargoDocExecutor = cargoDocExecutor; exports.executor_default = executor_default;
|