@storm-software/workspace-tools 1.56.14 → 1.59.11
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 +257 -0
- package/README.md +55 -1
- package/config/nx.json +75 -24
- package/generators.json +12 -3
- package/index.js +8075 -8386
- package/meta.json +1 -1
- package/package.json +8 -5
- package/src/base/index.js +7360 -10331
- package/src/executors/design-tokens/executor.js +3661 -8559
- package/src/executors/npm-publish/executor.js +6876 -11776
- package/src/executors/tsup/executor.js +3973 -8365
- package/src/executors/tsup-browser/executor.js +14970 -19362
- package/src/executors/tsup-neutral/executor.js +14970 -19362
- package/src/executors/tsup-node/executor.js +14970 -19362
- package/src/executors/typia/executor.js +6775 -11691
- package/src/generators/browser-library/generator.js +7358 -10330
- package/src/generators/config-schema/generator.js +1847 -6735
- package/src/generators/init/init.js +173 -152
- package/src/generators/neutral-library/generator.js +7358 -10330
- package/src/generators/node-library/generator.js +7360 -10334
- package/src/generators/preset/files/.github/actions/setup-workspace/action.yaml +1 -1
- package/src/generators/preset/generator.js +1788 -6685
- package/src/generators/preset/schema.d.ts +1 -1
- package/src/generators/release-version/generator.js +28540 -0
- package/src/generators/release-version/schema.d.ts +3 -0
- package/src/generators/release-version/schema.json +66 -0
- package/src/utils/index.js +57281 -67216
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,260 @@
|
|
|
1
|
+
## 1.59.11 (2024-02-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### 🩹 Fixes
|
|
5
|
+
|
|
6
|
+
- **storm-ops:** Update the chalk version to v4.1.2 ([0d50334a](https://github.com/storm-software/storm-ops/commit/0d50334a))
|
|
7
|
+
|
|
8
|
+
- **storm-ops:** Resolve issue with the pnpm version ([f124fd94](https://github.com/storm-software/storm-ops/commit/f124fd94))
|
|
9
|
+
|
|
10
|
+
- **workspace-tools:** Update path the logger utilities are imported from ([b04ad48e](https://github.com/storm-software/storm-ops/commit/b04ad48e))
|
|
11
|
+
|
|
12
|
+
- **config-tools:** Update package type to a module to resolve import issues ([4a9649c9](https://github.com/storm-software/storm-ops/commit/4a9649c9))
|
|
13
|
+
|
|
14
|
+
- **workspace-tools:** Update the method of importing `config-tools` utilities ([13d66ff0](https://github.com/storm-software/storm-ops/commit/13d66ff0))
|
|
15
|
+
|
|
16
|
+
- **workspace-tools:** Update imports of `config-tools` to requires ([392fabb7](https://github.com/storm-software/storm-ops/commit/392fabb7))
|
|
17
|
+
|
|
18
|
+
- **workspace-tools:** Add the `cosmiconfig` dependency ([e6eeb681](https://github.com/storm-software/storm-ops/commit/e6eeb681))
|
|
19
|
+
|
|
20
|
+
- **workspace-tools:** Add `zod` as external depencency ([05b66136](https://github.com/storm-software/storm-ops/commit/05b66136))
|
|
21
|
+
|
|
22
|
+
- **workspace-tools:** Added config packages as depencdencies ([ca5c3665](https://github.com/storm-software/storm-ops/commit/ca5c3665))
|
|
23
|
+
|
|
24
|
+
- **workspace-tools:** Update method of referencing the internal packages ([b3f127c4](https://github.com/storm-software/storm-ops/commit/b3f127c4))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### ❤️ Thank You
|
|
28
|
+
|
|
29
|
+
- Patrick Sullivan
|
|
30
|
+
|
|
31
|
+
## 1.59.10 (2024-02-17)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### 🩹 Fixes
|
|
35
|
+
|
|
36
|
+
- **storm-ops:** Update the chalk version to v4.1.2 ([0d50334a](https://github.com/storm-software/storm-ops/commit/0d50334a))
|
|
37
|
+
|
|
38
|
+
- **storm-ops:** Resolve issue with the pnpm version ([f124fd94](https://github.com/storm-software/storm-ops/commit/f124fd94))
|
|
39
|
+
|
|
40
|
+
- **workspace-tools:** Update path the logger utilities are imported from ([b04ad48e](https://github.com/storm-software/storm-ops/commit/b04ad48e))
|
|
41
|
+
|
|
42
|
+
- **config-tools:** Update package type to a module to resolve import issues ([4a9649c9](https://github.com/storm-software/storm-ops/commit/4a9649c9))
|
|
43
|
+
|
|
44
|
+
- **workspace-tools:** Update the method of importing `config-tools` utilities ([13d66ff0](https://github.com/storm-software/storm-ops/commit/13d66ff0))
|
|
45
|
+
|
|
46
|
+
- **workspace-tools:** Update imports of `config-tools` to requires ([392fabb7](https://github.com/storm-software/storm-ops/commit/392fabb7))
|
|
47
|
+
|
|
48
|
+
- **workspace-tools:** Add the `cosmiconfig` dependency ([e6eeb681](https://github.com/storm-software/storm-ops/commit/e6eeb681))
|
|
49
|
+
|
|
50
|
+
- **workspace-tools:** Add `zod` as external depencency ([05b66136](https://github.com/storm-software/storm-ops/commit/05b66136))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### ❤️ Thank You
|
|
54
|
+
|
|
55
|
+
- Patrick Sullivan
|
|
56
|
+
|
|
57
|
+
## 1.59.9 (2024-02-15)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### 🩹 Fixes
|
|
61
|
+
|
|
62
|
+
- **storm-ops:** Update the chalk version to v4.1.2 ([0d50334a](https://github.com/storm-software/storm-ops/commit/0d50334a))
|
|
63
|
+
|
|
64
|
+
- **storm-ops:** Resolve issue with the pnpm version ([f124fd94](https://github.com/storm-software/storm-ops/commit/f124fd94))
|
|
65
|
+
|
|
66
|
+
- **workspace-tools:** Update path the logger utilities are imported from ([b04ad48e](https://github.com/storm-software/storm-ops/commit/b04ad48e))
|
|
67
|
+
|
|
68
|
+
- **config-tools:** Update package type to a module to resolve import issues ([4a9649c9](https://github.com/storm-software/storm-ops/commit/4a9649c9))
|
|
69
|
+
|
|
70
|
+
- **workspace-tools:** Update the method of importing `config-tools` utilities ([13d66ff0](https://github.com/storm-software/storm-ops/commit/13d66ff0))
|
|
71
|
+
|
|
72
|
+
- **workspace-tools:** Update imports of `config-tools` to requires ([392fabb7](https://github.com/storm-software/storm-ops/commit/392fabb7))
|
|
73
|
+
|
|
74
|
+
- **workspace-tools:** Add the `cosmiconfig` dependency ([e6eeb681](https://github.com/storm-software/storm-ops/commit/e6eeb681))
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
### ❤️ Thank You
|
|
78
|
+
|
|
79
|
+
- Patrick Sullivan
|
|
80
|
+
|
|
81
|
+
## 1.59.8 (2024-02-15)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
### 🩹 Fixes
|
|
85
|
+
|
|
86
|
+
- **storm-ops:** Update the chalk version to v4.1.2 ([0d50334a](https://github.com/storm-software/storm-ops/commit/0d50334a))
|
|
87
|
+
|
|
88
|
+
- **storm-ops:** Resolve issue with the pnpm version ([f124fd94](https://github.com/storm-software/storm-ops/commit/f124fd94))
|
|
89
|
+
|
|
90
|
+
- **workspace-tools:** Update path the logger utilities are imported from ([b04ad48e](https://github.com/storm-software/storm-ops/commit/b04ad48e))
|
|
91
|
+
|
|
92
|
+
- **config-tools:** Update package type to a module to resolve import issues ([4a9649c9](https://github.com/storm-software/storm-ops/commit/4a9649c9))
|
|
93
|
+
|
|
94
|
+
- **workspace-tools:** Update the method of importing `config-tools` utilities ([13d66ff0](https://github.com/storm-software/storm-ops/commit/13d66ff0))
|
|
95
|
+
|
|
96
|
+
- **workspace-tools:** Update imports of `config-tools` to requires ([392fabb7](https://github.com/storm-software/storm-ops/commit/392fabb7))
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
### ❤️ Thank You
|
|
100
|
+
|
|
101
|
+
- Patrick Sullivan
|
|
102
|
+
|
|
103
|
+
## 1.59.7 (2024-02-15)
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### 🩹 Fixes
|
|
107
|
+
|
|
108
|
+
- **storm-ops:** Update the chalk version to v4.1.2 ([0d50334a](https://github.com/storm-software/storm-ops/commit/0d50334a))
|
|
109
|
+
|
|
110
|
+
- **storm-ops:** Resolve issue with the pnpm version ([f124fd94](https://github.com/storm-software/storm-ops/commit/f124fd94))
|
|
111
|
+
|
|
112
|
+
- **workspace-tools:** Update path the logger utilities are imported from ([b04ad48e](https://github.com/storm-software/storm-ops/commit/b04ad48e))
|
|
113
|
+
|
|
114
|
+
- **config-tools:** Update package type to a module to resolve import issues ([4a9649c9](https://github.com/storm-software/storm-ops/commit/4a9649c9))
|
|
115
|
+
|
|
116
|
+
- **workspace-tools:** Update the method of importing `config-tools` utilities ([13d66ff0](https://github.com/storm-software/storm-ops/commit/13d66ff0))
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
### ❤️ Thank You
|
|
120
|
+
|
|
121
|
+
- Patrick Sullivan
|
|
122
|
+
|
|
123
|
+
## 1.59.6 (2024-02-15)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
### 🩹 Fixes
|
|
127
|
+
|
|
128
|
+
- **storm-ops:** Update the chalk version to v4.1.2 ([0d50334a](https://github.com/storm-software/storm-ops/commit/0d50334a))
|
|
129
|
+
|
|
130
|
+
- **storm-ops:** Resolve issue with the pnpm version ([f124fd94](https://github.com/storm-software/storm-ops/commit/f124fd94))
|
|
131
|
+
|
|
132
|
+
- **workspace-tools:** Update path the logger utilities are imported from ([b04ad48e](https://github.com/storm-software/storm-ops/commit/b04ad48e))
|
|
133
|
+
|
|
134
|
+
- **config-tools:** Update package type to a module to resolve import issues ([4a9649c9](https://github.com/storm-software/storm-ops/commit/4a9649c9))
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
### ❤️ Thank You
|
|
138
|
+
|
|
139
|
+
- Patrick Sullivan
|
|
140
|
+
|
|
141
|
+
## 1.59.5 (2024-02-15)
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
### 🩹 Fixes
|
|
145
|
+
|
|
146
|
+
- **storm-ops:** Update the chalk version to v4.1.2 ([0d50334a](https://github.com/storm-software/storm-ops/commit/0d50334a))
|
|
147
|
+
|
|
148
|
+
- **storm-ops:** Resolve issue with the pnpm version ([f124fd94](https://github.com/storm-software/storm-ops/commit/f124fd94))
|
|
149
|
+
|
|
150
|
+
- **workspace-tools:** Update path the logger utilities are imported from ([b04ad48e](https://github.com/storm-software/storm-ops/commit/b04ad48e))
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
### ❤️ Thank You
|
|
154
|
+
|
|
155
|
+
- Patrick Sullivan
|
|
156
|
+
|
|
157
|
+
## 1.59.4 (2024-02-15)
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
### 🩹 Fixes
|
|
161
|
+
|
|
162
|
+
- **storm-ops:** Update the chalk version to v4.1.2 ([0d50334a](https://github.com/storm-software/storm-ops/commit/0d50334a))
|
|
163
|
+
|
|
164
|
+
- **storm-ops:** Resolve issue with the pnpm version ([f124fd94](https://github.com/storm-software/storm-ops/commit/f124fd94))
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
### ❤️ Thank You
|
|
168
|
+
|
|
169
|
+
- Patrick Sullivan
|
|
170
|
+
|
|
171
|
+
## 1.59.3 (2024-02-15)
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
### 🩹 Fixes
|
|
175
|
+
|
|
176
|
+
- **storm-ops:** Update the chalk version to v4.1.2 ([0d50334a](https://github.com/storm-software/storm-ops/commit/0d50334a))
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
### ❤️ Thank You
|
|
180
|
+
|
|
181
|
+
- Patrick Sullivan
|
|
182
|
+
|
|
183
|
+
## 1.59.2 (2024-02-15)
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
### 🚀 Features
|
|
187
|
+
|
|
188
|
+
- **git-tools:** Completed release process changes and updated dependencies ([ebd33d5c](https://github.com/storm-software/storm-ops/commit/ebd33d5c))
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
### 🩹 Fixes
|
|
192
|
+
|
|
193
|
+
- **storm-ops:** Update chalk dependency for all modules ([d8a55c49](https://github.com/storm-software/storm-ops/commit/d8a55c49))
|
|
194
|
+
|
|
195
|
+
- **storm-ops:** Downgrade dependencies to work with cjs task runners ([bece51de](https://github.com/storm-software/storm-ops/commit/bece51de))
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
### ❤️ Thank You
|
|
199
|
+
|
|
200
|
+
- Patrick Sullivan
|
|
201
|
+
|
|
202
|
+
## 1.59.1 (2024-02-15)
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
### 🚀 Features
|
|
206
|
+
|
|
207
|
+
- **git-tools:** Completed release process changes and updated dependencies ([ebd33d5c](https://github.com/storm-software/storm-ops/commit/ebd33d5c))
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
### 🩹 Fixes
|
|
211
|
+
|
|
212
|
+
- **storm-ops:** Update chalk dependency for all modules ([d8a55c49](https://github.com/storm-software/storm-ops/commit/d8a55c49))
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
### ❤️ Thank You
|
|
216
|
+
|
|
217
|
+
- Patrick Sullivan
|
|
218
|
+
|
|
219
|
+
## 1.59.0 (2024-02-15)
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
### 🚀 Features
|
|
223
|
+
|
|
224
|
+
- **git-tools:** Completed release process changes and updated dependencies ([ebd33d5c](https://github.com/storm-software/storm-ops/commit/ebd33d5c))
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
### ❤️ Thank You
|
|
228
|
+
|
|
229
|
+
- Patrick Sullivan
|
|
230
|
+
|
|
231
|
+
## 1.58.0 (2024-02-15)
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
### 🚀 Features
|
|
235
|
+
|
|
236
|
+
- **changelog:** Added the `changelog` package to handle file creation during release ([d050648d](https://github.com/storm-software/storm-ops/commit/d050648d))
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
### 🩹 Fixes
|
|
240
|
+
|
|
241
|
+
- **workspace-tools:** Point the `nx.json` to the Storm ChangeLogRenderer class ([f6620cef](https://github.com/storm-software/storm-ops/commit/f6620cef))
|
|
242
|
+
|
|
243
|
+
- **git-tools:** Update parameters passed to nx release functions ([1108f889](https://github.com/storm-software/storm-ops/commit/1108f889))
|
|
244
|
+
|
|
245
|
+
- **workspace-tools:** Update path used on release version processing ([7902c063](https://github.com/storm-software/storm-ops/commit/7902c063))
|
|
246
|
+
|
|
247
|
+
- **workspace-tools:** Update `git` property in the `nx.json` configuration ([50eb3b3b](https://github.com/storm-software/storm-ops/commit/50eb3b3b))
|
|
248
|
+
|
|
249
|
+
- **workspace-tools:** Remove the root workspace project from release configuration ([572d12c2](https://github.com/storm-software/storm-ops/commit/572d12c2))
|
|
250
|
+
|
|
251
|
+
- **workspace-tools:** Included updated plugin config in `nx.json` file ([477a67d5](https://github.com/storm-software/storm-ops/commit/477a67d5))
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
### ❤️ Thank You
|
|
255
|
+
|
|
256
|
+
- Patrick Sullivan
|
|
257
|
+
|
|
1
258
|
|
|
2
259
|
|
|
3
260
|
|
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
16
16
|
|
|
17
17
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer</h3><br />
|
|
18
18
|
|
|
19
|
-
[](https://prettier.io/)
|
|
20
20
|
[](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://docusaurus.io/) 
|
|
21
21
|
|
|
22
22
|
> [!IMPORTANT]
|
|
@@ -118,6 +118,7 @@ The following executor options are available:
|
|
|
118
118
|
| minify | `boolean` | Should the build process minify the output files? | |
|
|
119
119
|
| verbose | `boolean` | Should write extra log outputs with details from the executor. | |
|
|
120
120
|
| skipNativeModulesPlugin | `boolean` | Should we skip adding the Native Node Modules ESBuild plugin. | |
|
|
121
|
+
| useJsxModule | `boolean` | Should the build process use the \`jsx\` module for JSX support? | |
|
|
121
122
|
| shims | `boolean` | Should the build process add shims for node.js modules that are not available in the browser? | |
|
|
122
123
|
| define | `object` | Define global constants that can be used in the source code. The value will be converted into a stringified JSON. | |
|
|
123
124
|
| env | `object` | Define environment variables that can be used in the source code. The value will be converted into a stringified JSON. | |
|
|
@@ -258,6 +259,34 @@ The following executor options are available:
|
|
|
258
259
|
|
|
259
260
|
|
|
260
261
|
|
|
262
|
+
## Npm Publish executor
|
|
263
|
+
|
|
264
|
+
Publish a package to the NPM registry
|
|
265
|
+
|
|
266
|
+
### Example
|
|
267
|
+
|
|
268
|
+
This executor can be used by executing the following in a command line utility:
|
|
269
|
+
|
|
270
|
+
```cmd
|
|
271
|
+
nx run my-project:npm-publish
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
**Please note:** _The npm-publish executor should be included in the desired projects's `project.json` file._
|
|
275
|
+
|
|
276
|
+
### Options
|
|
277
|
+
|
|
278
|
+
The following executor options are available:
|
|
279
|
+
|
|
280
|
+
| Option | Type | Description | Default |
|
|
281
|
+
| --------- | ------ | ------------- | --------- |
|
|
282
|
+
| packageRoot | `string` | The root directory of the directory (containing a manifest file at its root) to publish. Defaults to the project root. | |
|
|
283
|
+
| registry | `string` | The registry to publish the package to. | |
|
|
284
|
+
| tag | `string` | The distribution tag to apply to the published package. | |
|
|
285
|
+
| dryRun | `boolean` | Whether to run the command without actually publishing the package to the registry. | |
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
261
290
|
<!-- markdownlint-restore -->
|
|
262
291
|
<!-- prettier-ignore-end -->
|
|
263
292
|
|
|
@@ -477,6 +506,31 @@ The following executor options are available:
|
|
|
477
506
|
|
|
478
507
|
|
|
479
508
|
|
|
509
|
+
## Storm Release Version Generator
|
|
510
|
+
|
|
511
|
+
The release version generator used in Storm Workspaces
|
|
512
|
+
|
|
513
|
+
### Options
|
|
514
|
+
|
|
515
|
+
The following executor options are available:
|
|
516
|
+
|
|
517
|
+
| Option | Type | Description | Default |
|
|
518
|
+
| --------- | ------ | ------------- | --------- |
|
|
519
|
+
| **projects \*** | `object[]` | The ProjectGraphProjectNodes being versioned in the current execution. | |
|
|
520
|
+
| **projectGraph \*** | `object` | ProjectGraph instance | |
|
|
521
|
+
| specifier | `string` | Exact version or semver keyword to apply to the selected release group. Overrides specifierSource. | |
|
|
522
|
+
| **releaseGroup \*** | `object` | The resolved release group configuration, including name, relevant to all projects in the current execution. | |
|
|
523
|
+
| specifierSource | "prompt" \| "conventional-commits" | Which approach to use to determine the semver specifier used to bump the version of the project. | "conventional-commits" |
|
|
524
|
+
| preid | `string` | The optional prerelease identifier to apply to the version, in the case that specifier has been set to prerelease. | |
|
|
525
|
+
| packageRoot | `string` | The root directory of the directory (containing a manifest file at its root) to publish. Defaults to the project root | |
|
|
526
|
+
| currentVersionResolver | "registry" \| "disk" \| "git-tag" | Which approach to use to determine the current version of the project. | "disk" |
|
|
527
|
+
| currentVersionResolverMetadata | `object` | Additional metadata to pass to the current version resolver. | `[object Object]` |
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
**Please note:** _Option names followed by \* above are required, and must be provided to run the executor._
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
|
|
480
534
|
<!-- markdownlint-restore -->
|
|
481
535
|
<!-- prettier-ignore-end -->
|
|
482
536
|
|
package/config/nx.json
CHANGED
|
@@ -8,7 +8,13 @@
|
|
|
8
8
|
"default": {
|
|
9
9
|
"runner": "nx/tasks-runners/default",
|
|
10
10
|
"options": {
|
|
11
|
-
"cacheableOperations": [
|
|
11
|
+
"cacheableOperations": [
|
|
12
|
+
"build",
|
|
13
|
+
"lint",
|
|
14
|
+
"format",
|
|
15
|
+
"test",
|
|
16
|
+
"e2e"
|
|
17
|
+
],
|
|
12
18
|
"parallel": 4,
|
|
13
19
|
"cacheDirectory": "node_modules/.cache/nx"
|
|
14
20
|
}
|
|
@@ -18,9 +24,7 @@
|
|
|
18
24
|
"namedInputs": {
|
|
19
25
|
"globalBuildAffectingConfig": [
|
|
20
26
|
"{workspaceRoot}/tsconfig.base.json",
|
|
21
|
-
"{workspaceRoot}/package.json"
|
|
22
|
-
"{workspaceRoot}/storm.json",
|
|
23
|
-
"{workspaceRoot}/storm.config.js"
|
|
27
|
+
"{workspaceRoot}/package.json"
|
|
24
28
|
],
|
|
25
29
|
"globalNonBuildAffectingConfig": [
|
|
26
30
|
"{workspaceRoot}/**/biome.json",
|
|
@@ -29,6 +33,7 @@
|
|
|
29
33
|
"{workspaceRoot}/.eslintrc.json",
|
|
30
34
|
"{workspaceRoot}/.all-contributorsrc",
|
|
31
35
|
"{workspaceRoot}/.markdownlint.json",
|
|
36
|
+
"{workspaceRoot}/.whitesource",
|
|
32
37
|
"{workspaceRoot}/socket.yaml",
|
|
33
38
|
"{workspaceRoot}/jest.config.ts"
|
|
34
39
|
],
|
|
@@ -49,14 +54,26 @@
|
|
|
49
54
|
"!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
|
|
50
55
|
"!{projectRoot}/tsconfig.storybook.json"
|
|
51
56
|
],
|
|
52
|
-
"sharedGlobals": [
|
|
57
|
+
"sharedGlobals": [
|
|
58
|
+
"{workspaceRoot}/nx.json",
|
|
59
|
+
"{workspaceRoot}/babel.config.json",
|
|
60
|
+
"{workspaceRoot}/storm.json",
|
|
61
|
+
"{workspaceRoot}/storm.config.js"
|
|
62
|
+
]
|
|
53
63
|
},
|
|
54
64
|
"targetDefaults": {
|
|
55
65
|
"build": {
|
|
56
66
|
"cache": true,
|
|
57
|
-
"inputs": [
|
|
58
|
-
|
|
59
|
-
|
|
67
|
+
"inputs": [
|
|
68
|
+
"default",
|
|
69
|
+
"^production"
|
|
70
|
+
],
|
|
71
|
+
"outputs": [
|
|
72
|
+
"{options.outputPath}"
|
|
73
|
+
],
|
|
74
|
+
"dependsOn": [
|
|
75
|
+
"^build"
|
|
76
|
+
],
|
|
60
77
|
"options": {
|
|
61
78
|
"main": "{projectRoot}/src/index.ts",
|
|
62
79
|
"outputPath": "dist/{projectRoot}",
|
|
@@ -78,18 +95,29 @@
|
|
|
78
95
|
"lint": {
|
|
79
96
|
"cache": true,
|
|
80
97
|
"executor": "nx:run-commands",
|
|
81
|
-
"outputs": [
|
|
98
|
+
"outputs": [
|
|
99
|
+
"{options.outputFile}"
|
|
100
|
+
],
|
|
82
101
|
"options": {
|
|
83
102
|
"command": "npx biome lint --apply --no-errors-on-unmatched --files-ignore-unknown=true {projectRoot}",
|
|
84
103
|
"color": true
|
|
85
104
|
},
|
|
86
|
-
"inputs": [
|
|
105
|
+
"inputs": [
|
|
106
|
+
"default",
|
|
107
|
+
"{workspaceRoot}/**/biome.json"
|
|
108
|
+
]
|
|
87
109
|
},
|
|
88
110
|
"test": {
|
|
89
111
|
"cache": true,
|
|
90
|
-
"inputs": [
|
|
112
|
+
"inputs": [
|
|
113
|
+
"default",
|
|
114
|
+
"^production",
|
|
115
|
+
"{workspaceRoot}/jest.preset.js"
|
|
116
|
+
],
|
|
91
117
|
"executor": "@nx/jest:jest",
|
|
92
|
-
"outputs": [
|
|
118
|
+
"outputs": [
|
|
119
|
+
"{workspaceRoot}/coverage/{projectRoot}"
|
|
120
|
+
],
|
|
93
121
|
"options": {
|
|
94
122
|
"jestConfig": "{projectRoot}/jest.config.ts",
|
|
95
123
|
"passWithNoTests": true
|
|
@@ -106,8 +134,13 @@
|
|
|
106
134
|
},
|
|
107
135
|
"nx-release-publish": {
|
|
108
136
|
"cache": false,
|
|
109
|
-
"inputs": [
|
|
110
|
-
|
|
137
|
+
"inputs": [
|
|
138
|
+
"default",
|
|
139
|
+
"^production"
|
|
140
|
+
],
|
|
141
|
+
"dependsOn": [
|
|
142
|
+
"^build"
|
|
143
|
+
],
|
|
111
144
|
"executor": "@storm-software/workspace-tools:npm-publish",
|
|
112
145
|
"options": {
|
|
113
146
|
"packageRoot": "dist/{projectRoot}",
|
|
@@ -116,30 +149,48 @@
|
|
|
116
149
|
}
|
|
117
150
|
},
|
|
118
151
|
"release": {
|
|
119
|
-
"projects":
|
|
152
|
+
"projects": [
|
|
153
|
+
"packages/*"
|
|
154
|
+
],
|
|
120
155
|
"projectsRelationship": "independent",
|
|
121
156
|
"releaseTagPattern": "{projectName}-v{version}",
|
|
122
157
|
"changelog": {
|
|
158
|
+
"automaticFromRef": true,
|
|
123
159
|
"workspaceChangelog": false,
|
|
124
160
|
"projectChangelogs": {
|
|
161
|
+
"renderer": "@storm-software/changelog",
|
|
125
162
|
"createRelease": "github",
|
|
126
|
-
"
|
|
163
|
+
"git": {
|
|
164
|
+
"commit": true
|
|
165
|
+
}
|
|
127
166
|
}
|
|
128
167
|
},
|
|
129
168
|
"version": {
|
|
130
|
-
"
|
|
169
|
+
"generator": "@storm-software/workspace-tools:release-version",
|
|
131
170
|
"generatorOptions": {
|
|
171
|
+
"packageRoot": "{projectRoot}",
|
|
132
172
|
"currentVersionResolver": "git-tag",
|
|
133
|
-
"specifierSource": "conventional-commits"
|
|
173
|
+
"specifierSource": "conventional-commits",
|
|
174
|
+
"git": {
|
|
175
|
+
"stageChanges": true
|
|
176
|
+
}
|
|
134
177
|
}
|
|
135
|
-
},
|
|
136
|
-
"git": {
|
|
137
|
-
"commit": true
|
|
138
178
|
}
|
|
139
179
|
},
|
|
180
|
+
"plugins": [
|
|
181
|
+
"@nx/plugin",
|
|
182
|
+
"@nx/js",
|
|
183
|
+
"@nx/jest",
|
|
184
|
+
{
|
|
185
|
+
"plugin": "@storm-software/workspace-tools",
|
|
186
|
+
"options": {
|
|
187
|
+
"targetName": "nx-release-publish"
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
],
|
|
140
191
|
"pluginsConfig": {
|
|
141
|
-
"@
|
|
142
|
-
"analyzeSourceFiles":
|
|
192
|
+
"@nx/js": {
|
|
193
|
+
"analyzeSourceFiles": true
|
|
143
194
|
}
|
|
144
195
|
}
|
|
145
|
-
}
|
|
196
|
+
}
|
package/generators.json
CHANGED
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
"factory": "./src/generators/init/init#stormInitGenerator",
|
|
5
5
|
"schema": "./src/generators/init/schema.json",
|
|
6
6
|
"description": "Initialize the `@storm-software/workspace-tools` plugin.",
|
|
7
|
-
"aliases": [
|
|
7
|
+
"aliases": [
|
|
8
|
+
"ng-add"
|
|
9
|
+
],
|
|
8
10
|
"internal": true
|
|
9
11
|
},
|
|
10
12
|
"preset": {
|
|
@@ -16,7 +18,9 @@
|
|
|
16
18
|
"node-library": {
|
|
17
19
|
"factory": "./src/generators/node-library/generator",
|
|
18
20
|
"schema": "./src/generators/node-library/schema.json",
|
|
19
|
-
"aliases": [
|
|
21
|
+
"aliases": [
|
|
22
|
+
"node-lib"
|
|
23
|
+
],
|
|
20
24
|
"x-type": "library",
|
|
21
25
|
"description": "Create a new NodeJs TypeScript library package in the Storm workspace"
|
|
22
26
|
},
|
|
@@ -39,6 +43,11 @@
|
|
|
39
43
|
"factory": "./src/generators/design-tokens/generator",
|
|
40
44
|
"schema": "./src/generators/design-tokens/schema.json",
|
|
41
45
|
"description": "Generate design tokens code using a Token Studio export"
|
|
46
|
+
},
|
|
47
|
+
"release-version": {
|
|
48
|
+
"factory": "./src/generators/release-version/generator",
|
|
49
|
+
"schema": "./src/generators/release-version/schema.json",
|
|
50
|
+
"description": "The release version generator used in Storm Workspaces"
|
|
42
51
|
}
|
|
43
52
|
}
|
|
44
|
-
}
|
|
53
|
+
}
|