@storm-software/workspace-tools 1.62.18 → 1.62.20

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.
Files changed (101) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/declarations.d.ts +129 -0
  3. package/executors.json +35 -0
  4. package/generators.json +53 -0
  5. package/index.js +4 -2410
  6. package/meta.json +1 -1
  7. package/package.json +16 -2
  8. package/src/executors/npm-publish/schema.d.ts +8 -0
  9. package/src/executors/npm-publish/schema.json +26 -0
  10. package/src/executors/tsup/executor.js +4 -2410
  11. package/src/executors/tsup/schema.d.ts +48 -0
  12. package/src/executors/tsup/schema.json +223 -0
  13. package/src/executors/tsup-browser/executor.js +4 -2410
  14. package/src/executors/tsup-browser/schema.d.ts +9 -0
  15. package/src/executors/tsup-browser/schema.json +11 -0
  16. package/src/executors/tsup-neutral/executor.js +4 -2410
  17. package/src/executors/tsup-neutral/schema.d.ts +5 -0
  18. package/src/executors/tsup-neutral/schema.json +11 -0
  19. package/src/executors/tsup-node/executor.js +4 -2410
  20. package/src/executors/tsup-node/schema.d.ts +7 -0
  21. package/src/executors/tsup-node/schema.json +20 -0
  22. package/src/executors/typia/schema.d.ts +6 -0
  23. package/src/executors/typia/schema.json +38 -0
  24. package/src/generators/browser-library/files/README.md +58 -0
  25. package/src/generators/browser-library/files/jest.config.ts +3 -0
  26. package/src/generators/browser-library/files/src/index.ts.template +10 -0
  27. package/src/generators/browser-library/files/tsconfig.spec.json +13 -0
  28. package/src/generators/browser-library/schema.d.ts +22 -0
  29. package/src/generators/browser-library/schema.json +82 -0
  30. package/src/generators/config-schema/schema.d.ts +3 -0
  31. package/src/generators/config-schema/schema.json +20 -0
  32. package/src/generators/init/schema.d.ts +3 -0
  33. package/src/generators/init/schema.json +16 -0
  34. package/src/generators/neutral-library/files/README.md +58 -0
  35. package/src/generators/neutral-library/files/jest.config.ts +3 -0
  36. package/src/generators/neutral-library/files/src/index.ts.template +10 -0
  37. package/src/generators/neutral-library/files/tsconfig.spec.json +13 -0
  38. package/src/generators/neutral-library/schema.d.ts +6 -0
  39. package/src/generators/neutral-library/schema.json +82 -0
  40. package/src/generators/node-library/files/README.md +58 -0
  41. package/src/generators/node-library/files/jest.config.ts +3 -0
  42. package/src/generators/node-library/files/src/index.ts.template +10 -0
  43. package/src/generators/node-library/files/tsconfig.spec.json +13 -0
  44. package/src/generators/node-library/schema.d.ts +22 -0
  45. package/src/generators/node-library/schema.json +82 -0
  46. package/src/generators/preset/files/.all-contributorsrc.template +48 -0
  47. package/src/generators/preset/files/.editorconfig +454 -0
  48. package/src/generators/preset/files/.env.template +43 -0
  49. package/src/generators/preset/files/.gitattributes +52 -0
  50. package/src/generators/preset/files/.github/.nvmrc +1 -0
  51. package/src/generators/preset/files/.github/.whitesource +14 -0
  52. package/src/generators/preset/files/.github/CODEOWNERS +1 -0
  53. package/src/generators/preset/files/.github/CODE_OF_CONDUCT.md +125 -0
  54. package/src/generators/preset/files/.github/CONTRIBUTING.md.template +15 -0
  55. package/src/generators/preset/files/.github/FUNDING.yml +3 -0
  56. package/src/generators/preset/files/.github/ISSUE_TEMPLATE/bug-report.yml.template +102 -0
  57. package/src/generators/preset/files/.github/ISSUE_TEMPLATE/documentation.yml.template +56 -0
  58. package/src/generators/preset/files/.github/ISSUE_TEMPLATE/feature-request.yml.template +60 -0
  59. package/src/generators/preset/files/.github/PULL_REQUEST_TEMPLATE.md.template +39 -0
  60. package/src/generators/preset/files/.github/SECURITY.md +9 -0
  61. package/src/generators/preset/files/.github/actions/setup-workspace/action.yaml +41 -0
  62. package/src/generators/preset/files/.github/codecov.yml +29 -0
  63. package/src/generators/preset/files/.github/labels.yml +78 -0
  64. package/src/generators/preset/files/.github/renovate.json.template +51 -0
  65. package/src/generators/preset/files/.github/stale.yml +50 -0
  66. package/src/generators/preset/files/.github/workflows/build-release.yml.template +94 -0
  67. package/src/generators/preset/files/.github/workflows/code-review.yml +18 -0
  68. package/src/generators/preset/files/.github/workflows/codeql.yml +84 -0
  69. package/src/generators/preset/files/.github/workflows/git-guardian.yml +23 -0
  70. package/src/generators/preset/files/.github/workflows/greetings.yml +24 -0
  71. package/src/generators/preset/files/.github/workflows/labels.yml +31 -0
  72. package/src/generators/preset/files/.github/workflows/lock.yml +26 -0
  73. package/src/generators/preset/files/.log4brains.yml.template +5 -0
  74. package/src/generators/preset/files/.markdownlint.json +28 -0
  75. package/src/generators/preset/files/.verdaccio/config.yml.template +40 -0
  76. package/src/generators/preset/files/.vscode/README.md +32 -0
  77. package/src/generators/preset/files/.vscode/cspell.json +3 -0
  78. package/src/generators/preset/files/.vscode/extensions.json +14 -0
  79. package/src/generators/preset/files/.vscode/launch.json +37 -0
  80. package/src/generators/preset/files/.vscode/settings.json +316 -0
  81. package/src/generators/preset/files/.vscode/tasks.json +19 -0
  82. package/src/generators/preset/files/LICENSE +201 -0
  83. package/src/generators/preset/files/README.md.template +273 -0
  84. package/src/generators/preset/files/assets/diagrams/.gitkeep +0 -0
  85. package/src/generators/preset/files/assets/icons/dark/.gitkeep +0 -0
  86. package/src/generators/preset/files/assets/icons/light/.gitkeep +0 -0
  87. package/src/generators/preset/files/assets/logos/.gitkeep +0 -0
  88. package/src/generators/preset/files/biome.json +4 -0
  89. package/src/generators/preset/files/docs/api-reference/.gitkeep +0 -0
  90. package/src/generators/preset/files/docs/readme-templates/README.footer.md.template +94 -0
  91. package/src/generators/preset/files/docs/readme-templates/README.header.md.template +17 -0
  92. package/src/generators/preset/files/lefthook.json +6 -0
  93. package/src/generators/preset/files/nx.json +3 -0
  94. package/src/generators/preset/files/pnpm-workspace.yaml +6 -0
  95. package/src/generators/preset/files/socket.yaml +20 -0
  96. package/src/generators/preset/files/tsconfig.base.json.template +11 -0
  97. package/src/generators/preset/schema.d.ts +14 -0
  98. package/src/generators/preset/schema.json +103 -0
  99. package/src/generators/release-version/schema.d.ts +3 -0
  100. package/src/generators/release-version/schema.json +66 -0
  101. package/src/utils/index.js +4 -2410
@@ -0,0 +1,48 @@
1
+ import type { EsBuildExecutorOptions } from "@nx/esbuild/src/executors/esbuild/schema.d.ts";
2
+ import type { Options } from "tsup";
3
+ import type { GetConfigParams } from "../../types";
4
+
5
+ export type Platform = "browser" | "neutral" | "node" | "worker";
6
+
7
+ export type TsupExecutorSchema = Omit<
8
+ EsBuildExecutorOptions,
9
+ | "main"
10
+ | "outputFileName"
11
+ | "metafile"
12
+ | "generatePackageJson"
13
+ | "sourcemap"
14
+ | "minify"
15
+ | "format"
16
+ | "target"
17
+ | "thirdParty"
18
+ | "skipTypeCheck"
19
+ | "esbuildOptions"
20
+ | "esbuildConfig"
21
+ | "platform"
22
+ > & {
23
+ entry: string;
24
+ options?: Options;
25
+ clean?: boolean;
26
+ debug?: boolean;
27
+ banner?: string;
28
+ verbose?: boolean;
29
+ define?: Record<string, string | undefined | null>;
30
+ env?: Record<string, string | undefined | null>;
31
+ apiReport?: boolean;
32
+ docModel?: boolean;
33
+ tsdocMetadata?: boolean;
34
+ includeSrc?: boolean;
35
+ platform?: Platform;
36
+ plugins?: any[];
37
+ shims?: boolean;
38
+ splitting?: boolean;
39
+ treeshake?: boolean;
40
+ generatePackageJson?: boolean;
41
+ emitOnAll?: boolean;
42
+ getConfig: (params: GetConfigParams) => Options;
43
+ format?: string[];
44
+ metafile?: boolean;
45
+ minify?: boolean;
46
+ skipNativeModulesPlugin?: boolean;
47
+ useJsxModule?: boolean;
48
+ };
@@ -0,0 +1,223 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "tsup",
4
+ "version": 2,
5
+ "title": "Tsup Builder",
6
+ "description": "Run a build on the project using ESBuild with a patched tsup configuration",
7
+ "type": "object",
8
+ "properties": {
9
+ "entry": {
10
+ "type": "string",
11
+ "description": "The path to the entry file, relative to project.",
12
+ "alias": "main",
13
+ "default": "{sourceRoot}/index.ts"
14
+ },
15
+ "outputPath": {
16
+ "type": "string",
17
+ "description": "The output path of the generated files.",
18
+ "x-completion-type": "directory",
19
+ "x-priority": "important",
20
+ "default": "dist/{projectRoot}"
21
+ },
22
+ "tsConfig": {
23
+ "type": "string",
24
+ "description": "The path to the `tsconfig.json` file.",
25
+ "x-completion-type": "file",
26
+ "x-completion-glob": "tsconfig*.json",
27
+ "x-priority": "important",
28
+ "default": "{projectRoot}/tsconfig.json"
29
+ },
30
+ "additionalEntryPoints": {
31
+ "type": "array",
32
+ "description": "List of additional entry points.",
33
+ "items": {
34
+ "type": "string"
35
+ },
36
+ "default": []
37
+ },
38
+ "external": {
39
+ "type": "array",
40
+ "description": "Mark one or more module as external. Can use * wildcards, such as *.png.",
41
+ "items": {
42
+ "type": "string"
43
+ }
44
+ },
45
+ "bundle": {
46
+ "type": "boolean",
47
+ "description": "Whether to bundle the main entry point and additional entry points. Set to false to keep individual output files.",
48
+ "default": true
49
+ },
50
+ "watch": {
51
+ "type": "boolean",
52
+ "description": "Enable re-building when files change.",
53
+ "default": false
54
+ },
55
+ "assets": {
56
+ "type": "array",
57
+ "description": "List of static assets.",
58
+ "default": [],
59
+ "items": {
60
+ "$ref": "#/definitions/assetPattern"
61
+ }
62
+ },
63
+ "clean": {
64
+ "type": "boolean",
65
+ "description": "Remove previous output before build.",
66
+ "alias": "deleteOutputPath",
67
+ "default": true
68
+ },
69
+ "includeSrc": {
70
+ "type": "boolean",
71
+ "description": "Should the source files be added to the distribution folder in an `src` directory.",
72
+ "default": false
73
+ },
74
+ "metafile": {
75
+ "type": "boolean",
76
+ "description": "Should a meta file be created for the build package",
77
+ "default": true
78
+ },
79
+ "emitOnAll": {
80
+ "type": "boolean",
81
+ "description": "Should each file contained in the package be emitted individually.",
82
+ "default": false
83
+ },
84
+ "generatePackageJson": {
85
+ "type": "boolean",
86
+ "description": "Should a package.json file be generated in the output folder or should the existing one be copied in.",
87
+ "default": true
88
+ },
89
+ "splitting": {
90
+ "type": "boolean",
91
+ "description": "Should the build process preform *code-splitting*?",
92
+ "default": true
93
+ },
94
+ "treeshake": {
95
+ "type": "boolean",
96
+ "description": "Should the build process *tree-shake* to remove unused code?",
97
+ "default": true
98
+ },
99
+ "format": {
100
+ "type": "array",
101
+ "description": "The output format for the generated JavaScript files. There are currently three possible values that can be configured: iife, cjs, and esm.",
102
+ "default": ["cjs", "esm"],
103
+ "items": {
104
+ "type": "string"
105
+ }
106
+ },
107
+ "debug": {
108
+ "type": "boolean",
109
+ "description": "Should output be unminified with source mappings.",
110
+ "default": false
111
+ },
112
+ "platform": {
113
+ "type": "string",
114
+ "description": "Platform target for outputs.",
115
+ "enum": ["browser", "neutral", "node", "worker"],
116
+ "default": "neutral"
117
+ },
118
+ "banner": {
119
+ "type": "string",
120
+ "description": "A short heading added to the top of each typescript file added in the output folder's `src` directory.",
121
+ "default": "This code was developed by Storm Software (<https://stormsoftware.org>) and is licensed under the Apache License 2.0."
122
+ },
123
+ "minify": {
124
+ "type": "boolean",
125
+ "description": "Should the build process minify the output files?",
126
+ "default": false
127
+ },
128
+ "verbose": {
129
+ "type": "boolean",
130
+ "description": "Should write extra log outputs with details from the executor.",
131
+ "default": false
132
+ },
133
+ "skipNativeModulesPlugin": {
134
+ "type": "boolean",
135
+ "description": "Should we skip adding the Native Node Modules ESBuild plugin.",
136
+ "default": false
137
+ },
138
+ "useJsxModule": {
139
+ "type": "boolean",
140
+ "description": "Should the build process use the `jsx` module for JSX support?",
141
+ "default": false
142
+ },
143
+ "shims": {
144
+ "type": "boolean",
145
+ "description": "Should the build process add shims for node.js modules that are not available in the browser?"
146
+ },
147
+ "define": {
148
+ "type": "object",
149
+ "description": "Define global constants that can be used in the source code. The value will be converted into a stringified JSON.",
150
+ "additionalProperties": true
151
+ },
152
+ "env": {
153
+ "type": "object",
154
+ "description": "Define environment variables that can be used in the source code. The value will be converted into a stringified JSON.",
155
+ "additionalProperties": true
156
+ },
157
+ "apiReport": {
158
+ "type": "boolean",
159
+ "description": "Should API Extractor generate an API Report file.",
160
+ "default": true
161
+ },
162
+ "docModel": {
163
+ "type": "boolean",
164
+ "description": "Should API Extractor generate an Doc Model markdown file.",
165
+ "default": true
166
+ },
167
+ "tsdocMetadata": {
168
+ "type": "boolean",
169
+ "description": "Should API Extractor generate an TSDoc Metadata file.",
170
+ "default": true
171
+ },
172
+ "options": {
173
+ "type": "object",
174
+ "description": "Additional options to pass to tsup. See <https://paka.dev/npm/tsup@7.2.0/api#d35d54aca71eb26e>.",
175
+ "additionalProperties": true,
176
+ "x-priority": "important"
177
+ },
178
+ "plugins": {
179
+ "type": "array",
180
+ "description": "List of ESBuild plugins to use during processing",
181
+ "default": [],
182
+ "items": {
183
+ "type": "object"
184
+ }
185
+ }
186
+ },
187
+ "required": ["tsConfig", "platform", "banner"],
188
+ "definitions": {
189
+ "assetPattern": {
190
+ "oneOf": [
191
+ {
192
+ "type": "object",
193
+ "properties": {
194
+ "glob": {
195
+ "type": "string",
196
+ "description": "The pattern to match."
197
+ },
198
+ "input": {
199
+ "type": "string",
200
+ "description": "The input directory path in which to apply `glob`. Defaults to the project root."
201
+ },
202
+ "output": {
203
+ "type": "string",
204
+ "description": "Relative path within the output folder."
205
+ },
206
+ "ignore": {
207
+ "description": "An array of globs to ignore.",
208
+ "type": "array",
209
+ "items": {
210
+ "type": "string"
211
+ }
212
+ }
213
+ },
214
+ "additionalProperties": false,
215
+ "required": ["glob", "input", "output"]
216
+ },
217
+ {
218
+ "type": "string"
219
+ }
220
+ ]
221
+ }
222
+ }
223
+ }