@storm-software/workspace-tools 1.17.0 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/README.md +42 -1
- package/executors.json +12 -1
- package/generators.json +1 -1
- package/index.js +7248 -645
- package/meta.json +1 -1
- package/package.json +3 -1
- package/src/executors/tsup/executor.js +300 -373
- package/src/executors/tsup/get-config.js +64 -201
- package/src/executors/tsup/schema.json +1 -0
- package/src/executors/tsup-neutral/schema.d.ts +8 -0
- package/src/executors/tsup-neutral/schema.json +19 -0
- package/src/executors/tsup-node/schema.d.ts +6 -0
- package/src/executors/tsup-node/schema.json +10 -0
- package/src/generators/node-library/generator.js +6832 -91
- package/src/generators/preset/generator.js +6984 -219
- package/src/utils/index.js +40 -0
package/src/utils/index.js
CHANGED
|
@@ -24,6 +24,8 @@ __export(utils_exports, {
|
|
|
24
24
|
eslintVersion: () => eslintVersion,
|
|
25
25
|
findCacheDirectory: () => findCacheDirectory,
|
|
26
26
|
findFileName: () => findFileName,
|
|
27
|
+
getFileBanner: () => getFileBanner,
|
|
28
|
+
getProjectConfigurations: () => getProjectConfigurations,
|
|
27
29
|
getWorkspaceRoot: () => getWorkspaceRoot,
|
|
28
30
|
lintStagedVersion: () => lintStagedVersion,
|
|
29
31
|
nodeVersion: () => nodeVersion,
|
|
@@ -155,6 +157,42 @@ function findCacheDirectory({
|
|
|
155
157
|
);
|
|
156
158
|
}
|
|
157
159
|
|
|
160
|
+
// packages/workspace-tools/src/utils/get-file-banner.ts
|
|
161
|
+
var getFileBanner = (name, commentStart = "//") => {
|
|
162
|
+
let padding = "";
|
|
163
|
+
while (name.length + padding.length < 18) {
|
|
164
|
+
padding += " ";
|
|
165
|
+
}
|
|
166
|
+
return `
|
|
167
|
+
|
|
168
|
+
${commentStart} -------------------------------------------------------------------
|
|
169
|
+
${commentStart}
|
|
170
|
+
${commentStart} ${padding}Storm Software
|
|
171
|
+
${commentStart} \u26A1 ${process.env.STORM_NAMESPACE} - ${name}
|
|
172
|
+
${commentStart}
|
|
173
|
+
${commentStart} This code was released as part of the ${process.env.STORM_NAMESPACE} project. ${process.env.STORM_NAMESPACE}
|
|
174
|
+
${commentStart} is maintained by Storm Software under the {${process.env.STORM_LICENSE ?? "Apache License 2.0"}, and is
|
|
175
|
+
${commentStart} free for commercial and private use. For more information, please visit
|
|
176
|
+
${commentStart} our licensing page.
|
|
177
|
+
${commentStart}
|
|
178
|
+
${commentStart} Website: ${process.env.STORM_HOMEPAGE ?? "https://stormsoftware.org"}
|
|
179
|
+
${commentStart} Repository: ${process.env.STORM_REPOSITORY ?? "https://github.com/storm-software/storm-stack"}
|
|
180
|
+
${commentStart} Documentation: https://stormsoftware.org/docs/storm-stack
|
|
181
|
+
${commentStart} Contact: https://stormsoftware.org/contact
|
|
182
|
+
${commentStart} Licensing: https://stormsoftware.org/licensing
|
|
183
|
+
${commentStart}
|
|
184
|
+
${commentStart} -------------------------------------------------------------------
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
`;
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
// packages/workspace-tools/src/utils/get-project-configurations.ts
|
|
191
|
+
var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
|
|
192
|
+
var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(
|
|
193
|
+
getWorkspaceRoot()
|
|
194
|
+
);
|
|
195
|
+
|
|
158
196
|
// packages/workspace-tools/src/utils/versions.ts
|
|
159
197
|
var tsupVersion = "^7.2.0";
|
|
160
198
|
var prettierPackageJsonVersion = "2.4.6";
|
|
@@ -249,6 +287,8 @@ var WorkspaceStorage = class {
|
|
|
249
287
|
eslintVersion,
|
|
250
288
|
findCacheDirectory,
|
|
251
289
|
findFileName,
|
|
290
|
+
getFileBanner,
|
|
291
|
+
getProjectConfigurations,
|
|
252
292
|
getWorkspaceRoot,
|
|
253
293
|
lintStagedVersion,
|
|
254
294
|
nodeVersion,
|