@itwin/build-tools 3.0.0-extension.1 → 3.0.2
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 +106 -154
- package/LICENSE.md +1 -1
- package/bin/betools.js +1 -1
- package/mocha-reporter/index.js +1 -1
- package/package.json +7 -8
- package/scripts/docs.js +19 -13
- package/scripts/utils/addSourceDir.js +22 -0
- package/scripts/{rush → utils}/utils.js +0 -0
- package/scripts/utils/validateTags.js +2 -0
- package/scripts/rush/audit.js +0 -100
package/CHANGELOG.md
CHANGED
@@ -1,285 +1,341 @@
|
|
1
1
|
# Change Log - @itwin/build-tools
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Thu, 10 Mar 2022 21:18:13 GMT and should not be manually modified.
|
4
4
|
|
5
|
-
##
|
5
|
+
## 3.0.2
|
6
|
+
Thu, 10 Mar 2022 21:18:13 GMT
|
7
|
+
|
8
|
+
_Version update only_
|
9
|
+
|
10
|
+
## 3.0.1
|
11
|
+
Thu, 24 Feb 2022 15:26:55 GMT
|
12
|
+
|
13
|
+
### Updates
|
14
|
+
|
15
|
+
- Bumped Typedoc patch version
|
16
|
+
- Added packageRoot property to Typedoc output
|
17
|
+
|
18
|
+
## 3.0.0
|
19
|
+
Mon, 24 Jan 2022 14:00:52 GMT
|
20
|
+
|
21
|
+
### Updates
|
22
|
+
|
23
|
+
- Removed `test` and `test-tsnode` scripts from betools. Please use mocha directly instead.
|
24
|
+
- Upgrade target to ES2019
|
25
|
+
- Added returns as a valid tag
|
26
|
+
- rename to @itwin/build-tools
|
27
|
+
- Support for Node 16
|
28
|
+
- Remove TSLint support and .eslintrc.js file - please use `@itwin/eslint-plugin` instead
|
29
|
+
- Renamed an iModel's parent container to iTwin
|
30
|
+
- Support for TypeDoc v0.22.7. Fix various broken docs links.
|
31
|
+
- Incorporating iTwinUI-CSS and iTwinUI-React into iModel.js
|
32
|
+
|
33
|
+
## 2.19.28
|
34
|
+
Wed, 12 Jan 2022 14:52:38 GMT
|
35
|
+
|
36
|
+
_Version update only_
|
37
|
+
|
38
|
+
## 2.19.27
|
39
|
+
Wed, 05 Jan 2022 20:07:20 GMT
|
40
|
+
|
41
|
+
_Version update only_
|
42
|
+
|
43
|
+
## 2.19.26
|
44
|
+
Wed, 08 Dec 2021 20:54:52 GMT
|
45
|
+
|
46
|
+
_Version update only_
|
47
|
+
|
48
|
+
## 2.19.25
|
49
|
+
Fri, 03 Dec 2021 20:05:49 GMT
|
50
|
+
|
51
|
+
_Version update only_
|
52
|
+
|
53
|
+
## 2.19.24
|
54
|
+
Mon, 29 Nov 2021 18:44:31 GMT
|
55
|
+
|
56
|
+
_Version update only_
|
57
|
+
|
58
|
+
## 2.19.23
|
59
|
+
Mon, 22 Nov 2021 20:41:39 GMT
|
60
|
+
|
61
|
+
_Version update only_
|
62
|
+
|
63
|
+
## 2.19.22
|
64
|
+
Wed, 17 Nov 2021 01:23:26 GMT
|
65
|
+
|
66
|
+
_Version update only_
|
67
|
+
|
68
|
+
## 2.19.21
|
69
|
+
Wed, 10 Nov 2021 10:58:24 GMT
|
70
|
+
|
71
|
+
_Version update only_
|
72
|
+
|
73
|
+
## 2.19.20
|
74
|
+
Fri, 29 Oct 2021 16:14:22 GMT
|
75
|
+
|
76
|
+
_Version update only_
|
77
|
+
|
78
|
+
## 2.19.19
|
79
|
+
Mon, 25 Oct 2021 16:16:25 GMT
|
80
|
+
|
81
|
+
_Version update only_
|
82
|
+
|
83
|
+
## 2.19.18
|
84
|
+
Thu, 21 Oct 2021 20:59:44 GMT
|
85
|
+
|
86
|
+
_Version update only_
|
87
|
+
|
88
|
+
## 2.19.17
|
89
|
+
Thu, 14 Oct 2021 21:19:43 GMT
|
90
|
+
|
91
|
+
_Version update only_
|
92
|
+
|
93
|
+
## 2.19.16
|
94
|
+
Mon, 11 Oct 2021 17:37:46 GMT
|
95
|
+
|
96
|
+
_Version update only_
|
97
|
+
|
98
|
+
## 2.19.15
|
99
|
+
Fri, 08 Oct 2021 16:44:23 GMT
|
100
|
+
|
101
|
+
_Version update only_
|
6
102
|
|
103
|
+
## 2.19.14
|
104
|
+
Fri, 01 Oct 2021 13:07:03 GMT
|
105
|
+
|
106
|
+
_Version update only_
|
107
|
+
|
108
|
+
## 2.19.13
|
7
109
|
Tue, 21 Sep 2021 21:06:40 GMT
|
8
110
|
|
9
111
|
_Version update only_
|
10
112
|
|
11
113
|
## 2.19.12
|
12
|
-
|
13
114
|
Wed, 15 Sep 2021 18:06:46 GMT
|
14
115
|
|
15
116
|
_Version update only_
|
16
117
|
|
17
118
|
## 2.19.11
|
18
|
-
|
19
119
|
Thu, 09 Sep 2021 21:04:57 GMT
|
20
120
|
|
21
121
|
_Version update only_
|
22
122
|
|
23
123
|
## 2.19.10
|
24
|
-
|
25
124
|
Wed, 08 Sep 2021 14:36:01 GMT
|
26
125
|
|
27
126
|
_Version update only_
|
28
127
|
|
29
128
|
## 2.19.9
|
30
|
-
|
31
129
|
Wed, 25 Aug 2021 15:36:01 GMT
|
32
130
|
|
33
131
|
_Version update only_
|
34
132
|
|
35
133
|
## 2.19.8
|
36
|
-
|
37
134
|
Mon, 23 Aug 2021 13:23:13 GMT
|
38
135
|
|
39
136
|
_Version update only_
|
40
137
|
|
41
138
|
## 2.19.7
|
42
|
-
|
43
139
|
Fri, 20 Aug 2021 17:47:22 GMT
|
44
140
|
|
45
141
|
_Version update only_
|
46
142
|
|
47
143
|
## 2.19.6
|
48
|
-
|
49
144
|
Tue, 17 Aug 2021 20:34:28 GMT
|
50
145
|
|
51
146
|
_Version update only_
|
52
147
|
|
53
148
|
## 2.19.5
|
54
|
-
|
55
149
|
Fri, 13 Aug 2021 21:48:08 GMT
|
56
150
|
|
57
151
|
_Version update only_
|
58
152
|
|
59
153
|
## 2.19.4
|
60
|
-
|
61
154
|
Thu, 12 Aug 2021 13:09:26 GMT
|
62
155
|
|
63
156
|
_Version update only_
|
64
157
|
|
65
158
|
## 2.19.3
|
66
|
-
|
67
159
|
Wed, 04 Aug 2021 20:29:34 GMT
|
68
160
|
|
69
161
|
_Version update only_
|
70
162
|
|
71
163
|
## 2.19.2
|
72
|
-
|
73
164
|
Tue, 03 Aug 2021 18:26:23 GMT
|
74
165
|
|
75
166
|
_Version update only_
|
76
167
|
|
77
168
|
## 2.19.1
|
78
|
-
|
79
169
|
Thu, 29 Jul 2021 20:01:11 GMT
|
80
170
|
|
81
171
|
_Version update only_
|
82
172
|
|
83
173
|
## 2.19.0
|
84
|
-
|
85
174
|
Mon, 26 Jul 2021 12:21:25 GMT
|
86
175
|
|
87
176
|
_Version update only_
|
88
177
|
|
89
178
|
## 2.18.4
|
90
|
-
|
91
179
|
Tue, 10 Aug 2021 19:35:13 GMT
|
92
180
|
|
93
181
|
_Version update only_
|
94
182
|
|
95
183
|
## 2.18.3
|
96
|
-
|
97
184
|
Wed, 28 Jul 2021 17:16:30 GMT
|
98
185
|
|
99
186
|
_Version update only_
|
100
187
|
|
101
188
|
## 2.18.2
|
102
|
-
|
103
189
|
Mon, 26 Jul 2021 16:18:31 GMT
|
104
190
|
|
105
191
|
_Version update only_
|
106
192
|
|
107
193
|
## 2.18.1
|
108
|
-
|
109
194
|
Fri, 16 Jul 2021 17:45:09 GMT
|
110
195
|
|
111
196
|
_Version update only_
|
112
197
|
|
113
198
|
## 2.18.0
|
114
|
-
|
115
199
|
Fri, 09 Jul 2021 18:11:24 GMT
|
116
200
|
|
117
201
|
_Version update only_
|
118
202
|
|
119
203
|
## 2.17.3
|
120
|
-
|
121
204
|
Mon, 26 Jul 2021 16:08:36 GMT
|
122
205
|
|
123
206
|
_Version update only_
|
124
207
|
|
125
208
|
## 2.17.2
|
126
|
-
|
127
209
|
Thu, 08 Jul 2021 15:23:00 GMT
|
128
210
|
|
129
211
|
_Version update only_
|
130
212
|
|
131
213
|
## 2.17.1
|
132
|
-
|
133
214
|
Fri, 02 Jul 2021 15:38:30 GMT
|
134
215
|
|
135
216
|
_Version update only_
|
136
217
|
|
137
218
|
## 2.17.0
|
138
|
-
|
139
219
|
Mon, 28 Jun 2021 16:20:10 GMT
|
140
220
|
|
141
221
|
_Version update only_
|
142
222
|
|
143
223
|
## 2.16.10
|
144
|
-
|
145
224
|
Thu, 22 Jul 2021 20:23:44 GMT
|
146
225
|
|
147
226
|
_Version update only_
|
148
227
|
|
149
228
|
## 2.16.9
|
150
|
-
|
151
229
|
Tue, 06 Jul 2021 22:08:34 GMT
|
152
230
|
|
153
231
|
_Version update only_
|
154
232
|
|
155
233
|
## 2.16.8
|
156
|
-
|
157
234
|
Fri, 02 Jul 2021 17:40:46 GMT
|
158
235
|
|
159
236
|
_Version update only_
|
160
237
|
|
161
238
|
## 2.16.7
|
162
|
-
|
163
239
|
Mon, 28 Jun 2021 18:13:04 GMT
|
164
240
|
|
165
241
|
_Version update only_
|
166
242
|
|
167
243
|
## 2.16.6
|
168
|
-
|
169
244
|
Mon, 28 Jun 2021 13:12:55 GMT
|
170
245
|
|
171
246
|
_Version update only_
|
172
247
|
|
173
248
|
## 2.16.5
|
174
|
-
|
175
249
|
Fri, 25 Jun 2021 16:03:01 GMT
|
176
250
|
|
177
251
|
_Version update only_
|
178
252
|
|
179
253
|
## 2.16.4
|
180
|
-
|
181
254
|
Wed, 23 Jun 2021 17:09:07 GMT
|
182
255
|
|
183
256
|
_Version update only_
|
184
257
|
|
185
258
|
## 2.16.3
|
186
|
-
|
187
259
|
Wed, 16 Jun 2021 20:29:32 GMT
|
188
260
|
|
189
261
|
_Version update only_
|
190
262
|
|
191
263
|
## 2.16.2
|
192
|
-
|
193
264
|
Thu, 03 Jun 2021 18:08:11 GMT
|
194
265
|
|
195
266
|
_Version update only_
|
196
267
|
|
197
268
|
## 2.16.1
|
198
|
-
|
199
269
|
Thu, 27 May 2021 20:04:22 GMT
|
200
270
|
|
201
271
|
_Version update only_
|
202
272
|
|
203
273
|
## 2.16.0
|
204
|
-
|
205
274
|
Mon, 24 May 2021 15:58:39 GMT
|
206
275
|
|
207
276
|
_Version update only_
|
208
277
|
|
209
278
|
## 2.15.6
|
210
|
-
|
211
279
|
Wed, 26 May 2021 15:55:18 GMT
|
212
280
|
|
213
281
|
_Version update only_
|
214
282
|
|
215
283
|
## 2.15.5
|
216
|
-
|
217
284
|
Thu, 20 May 2021 15:06:26 GMT
|
218
285
|
|
219
286
|
_Version update only_
|
220
287
|
|
221
288
|
## 2.15.4
|
222
|
-
|
223
289
|
Tue, 18 May 2021 21:59:07 GMT
|
224
290
|
|
225
291
|
_Version update only_
|
226
292
|
|
227
293
|
## 2.15.3
|
228
|
-
|
229
294
|
Mon, 17 May 2021 13:31:37 GMT
|
230
295
|
|
231
296
|
_Version update only_
|
232
297
|
|
233
298
|
## 2.15.2
|
234
|
-
|
235
299
|
Wed, 12 May 2021 18:08:13 GMT
|
236
300
|
|
237
301
|
_Version update only_
|
238
302
|
|
239
303
|
## 2.15.1
|
240
|
-
|
241
304
|
Wed, 05 May 2021 13:18:31 GMT
|
242
305
|
|
243
306
|
_Version update only_
|
244
307
|
|
245
308
|
## 2.15.0
|
246
|
-
|
247
309
|
Fri, 30 Apr 2021 12:36:58 GMT
|
248
310
|
|
249
311
|
_Version update only_
|
250
312
|
|
251
313
|
## 2.14.4
|
252
|
-
|
253
314
|
Thu, 22 Apr 2021 21:07:33 GMT
|
254
315
|
|
255
316
|
_Version update only_
|
256
317
|
|
257
318
|
## 2.14.3
|
258
|
-
|
259
319
|
Thu, 15 Apr 2021 15:13:16 GMT
|
260
320
|
|
261
321
|
_Version update only_
|
262
322
|
|
263
323
|
## 2.14.2
|
264
|
-
|
265
324
|
Thu, 08 Apr 2021 14:30:09 GMT
|
266
325
|
|
267
326
|
_Version update only_
|
268
327
|
|
269
328
|
## 2.14.1
|
270
|
-
|
271
329
|
Mon, 05 Apr 2021 16:28:00 GMT
|
272
330
|
|
273
331
|
_Version update only_
|
274
332
|
|
275
333
|
## 2.14.0
|
276
|
-
|
277
334
|
Fri, 02 Apr 2021 13:18:42 GMT
|
278
335
|
|
279
336
|
_Version update only_
|
280
337
|
|
281
338
|
## 2.13.0
|
282
|
-
|
283
339
|
Tue, 09 Mar 2021 20:28:13 GMT
|
284
340
|
|
285
341
|
### Updates
|
@@ -288,25 +344,21 @@ Tue, 09 Mar 2021 20:28:13 GMT
|
|
288
344
|
- begin rename project from iModel.js to iTwin.js
|
289
345
|
|
290
346
|
## 2.12.3
|
291
|
-
|
292
347
|
Mon, 08 Mar 2021 15:32:00 GMT
|
293
348
|
|
294
349
|
_Version update only_
|
295
350
|
|
296
351
|
## 2.12.2
|
297
|
-
|
298
352
|
Wed, 03 Mar 2021 18:48:52 GMT
|
299
353
|
|
300
354
|
_Version update only_
|
301
355
|
|
302
356
|
## 2.12.1
|
303
|
-
|
304
357
|
Tue, 23 Feb 2021 20:54:45 GMT
|
305
358
|
|
306
359
|
_Version update only_
|
307
360
|
|
308
361
|
## 2.12.0
|
309
|
-
|
310
362
|
Thu, 18 Feb 2021 22:10:12 GMT
|
311
363
|
|
312
364
|
### Updates
|
@@ -314,193 +366,161 @@ Thu, 18 Feb 2021 22:10:12 GMT
|
|
314
366
|
- Update minimum tsutils version to ~3.17.1
|
315
367
|
|
316
368
|
## 2.11.2
|
317
|
-
|
318
369
|
Thu, 18 Feb 2021 02:50:59 GMT
|
319
370
|
|
320
371
|
_Version update only_
|
321
372
|
|
322
373
|
## 2.11.1
|
323
|
-
|
324
374
|
Thu, 04 Feb 2021 17:22:41 GMT
|
325
375
|
|
326
376
|
_Version update only_
|
327
377
|
|
328
378
|
## 2.11.0
|
329
|
-
|
330
379
|
Thu, 28 Jan 2021 13:39:27 GMT
|
331
380
|
|
332
381
|
_Version update only_
|
333
382
|
|
334
383
|
## 2.10.3
|
335
|
-
|
336
384
|
Fri, 08 Jan 2021 18:34:03 GMT
|
337
385
|
|
338
386
|
_Version update only_
|
339
387
|
|
340
388
|
## 2.10.2
|
341
|
-
|
342
389
|
Fri, 08 Jan 2021 14:52:02 GMT
|
343
390
|
|
344
391
|
_Version update only_
|
345
392
|
|
346
393
|
## 2.10.1
|
347
|
-
|
348
394
|
Tue, 22 Dec 2020 00:53:38 GMT
|
349
395
|
|
350
396
|
_Version update only_
|
351
397
|
|
352
398
|
## 2.10.0
|
353
|
-
|
354
399
|
Fri, 18 Dec 2020 18:24:01 GMT
|
355
400
|
|
356
401
|
_Version update only_
|
357
402
|
|
358
403
|
## 2.9.9
|
359
|
-
|
360
404
|
Sun, 13 Dec 2020 19:00:03 GMT
|
361
405
|
|
362
406
|
_Version update only_
|
363
407
|
|
364
408
|
## 2.9.8
|
365
|
-
|
366
409
|
Fri, 11 Dec 2020 02:57:36 GMT
|
367
410
|
|
368
411
|
_Version update only_
|
369
412
|
|
370
413
|
## 2.9.7
|
371
|
-
|
372
414
|
Wed, 09 Dec 2020 20:58:23 GMT
|
373
415
|
|
374
416
|
_Version update only_
|
375
417
|
|
376
418
|
## 2.9.6
|
377
|
-
|
378
419
|
Mon, 07 Dec 2020 18:40:48 GMT
|
379
420
|
|
380
421
|
_Version update only_
|
381
422
|
|
382
423
|
## 2.9.5
|
383
|
-
|
384
424
|
Sat, 05 Dec 2020 01:55:56 GMT
|
385
425
|
|
386
426
|
_Version update only_
|
387
427
|
|
388
428
|
## 2.9.4
|
389
|
-
|
390
429
|
Wed, 02 Dec 2020 20:55:40 GMT
|
391
430
|
|
392
431
|
_Version update only_
|
393
432
|
|
394
433
|
## 2.9.3
|
395
|
-
|
396
434
|
Mon, 23 Nov 2020 20:57:56 GMT
|
397
435
|
|
398
436
|
_Version update only_
|
399
437
|
|
400
438
|
## 2.9.2
|
401
|
-
|
402
439
|
Mon, 23 Nov 2020 15:33:50 GMT
|
403
440
|
|
404
441
|
_Version update only_
|
405
442
|
|
406
443
|
## 2.9.1
|
407
|
-
|
408
444
|
Thu, 19 Nov 2020 17:03:42 GMT
|
409
445
|
|
410
446
|
_Version update only_
|
411
447
|
|
412
448
|
## 2.9.0
|
413
|
-
|
414
449
|
Wed, 18 Nov 2020 16:01:50 GMT
|
415
450
|
|
416
451
|
_Version update only_
|
417
452
|
|
418
453
|
## 2.8.1
|
419
|
-
|
420
454
|
Tue, 03 Nov 2020 00:33:56 GMT
|
421
455
|
|
422
456
|
_Version update only_
|
423
457
|
|
424
458
|
## 2.8.0
|
425
|
-
|
426
459
|
Fri, 23 Oct 2020 17:04:02 GMT
|
427
460
|
|
428
461
|
_Version update only_
|
429
462
|
|
430
463
|
## 2.7.6
|
431
|
-
|
432
464
|
Wed, 11 Nov 2020 16:28:23 GMT
|
433
465
|
|
434
466
|
_Version update only_
|
435
467
|
|
436
468
|
## 2.7.5
|
437
|
-
|
438
469
|
Fri, 23 Oct 2020 16:23:50 GMT
|
439
470
|
|
440
471
|
_Version update only_
|
441
472
|
|
442
473
|
## 2.7.4
|
443
|
-
|
444
474
|
Mon, 19 Oct 2020 17:57:01 GMT
|
445
475
|
|
446
476
|
_Version update only_
|
447
477
|
|
448
478
|
## 2.7.3
|
449
|
-
|
450
479
|
Wed, 14 Oct 2020 17:00:58 GMT
|
451
480
|
|
452
481
|
_Version update only_
|
453
482
|
|
454
483
|
## 2.7.2
|
455
|
-
|
456
484
|
Tue, 13 Oct 2020 18:20:38 GMT
|
457
485
|
|
458
486
|
_Version update only_
|
459
487
|
|
460
488
|
## 2.7.1
|
461
|
-
|
462
489
|
Thu, 08 Oct 2020 13:04:35 GMT
|
463
490
|
|
464
491
|
_Version update only_
|
465
492
|
|
466
493
|
## 2.7.0
|
467
|
-
|
468
494
|
Fri, 02 Oct 2020 18:03:32 GMT
|
469
495
|
|
470
496
|
_Version update only_
|
471
497
|
|
472
498
|
## 2.6.5
|
473
|
-
|
474
499
|
Sat, 26 Sep 2020 16:06:34 GMT
|
475
500
|
|
476
501
|
_Version update only_
|
477
502
|
|
478
503
|
## 2.6.4
|
479
|
-
|
480
504
|
Tue, 22 Sep 2020 17:40:07 GMT
|
481
505
|
|
482
506
|
_Version update only_
|
483
507
|
|
484
508
|
## 2.6.3
|
485
|
-
|
486
509
|
Mon, 21 Sep 2020 14:47:09 GMT
|
487
510
|
|
488
511
|
_Version update only_
|
489
512
|
|
490
513
|
## 2.6.2
|
491
|
-
|
492
514
|
Mon, 21 Sep 2020 13:07:43 GMT
|
493
515
|
|
494
516
|
_Version update only_
|
495
517
|
|
496
518
|
## 2.6.1
|
497
|
-
|
498
519
|
Fri, 18 Sep 2020 13:15:08 GMT
|
499
520
|
|
500
521
|
_Version update only_
|
501
522
|
|
502
523
|
## 2.6.0
|
503
|
-
|
504
524
|
Thu, 17 Sep 2020 13:16:12 GMT
|
505
525
|
|
506
526
|
### Updates
|
@@ -509,31 +529,26 @@ Thu, 17 Sep 2020 13:16:12 GMT
|
|
509
529
|
- Addressed ESLint warnings in UI packages. Fixed react-set-state-usage rule. Allowing PascalCase for functions in UI packages for React function component names.
|
510
530
|
|
511
531
|
## 2.5.5
|
512
|
-
|
513
532
|
Wed, 02 Sep 2020 17:42:23 GMT
|
514
533
|
|
515
534
|
_Version update only_
|
516
535
|
|
517
536
|
## 2.5.4
|
518
|
-
|
519
537
|
Fri, 28 Aug 2020 15:34:15 GMT
|
520
538
|
|
521
539
|
_Version update only_
|
522
540
|
|
523
541
|
## 2.5.3
|
524
|
-
|
525
542
|
Wed, 26 Aug 2020 11:46:00 GMT
|
526
543
|
|
527
544
|
_Version update only_
|
528
545
|
|
529
546
|
## 2.5.2
|
530
|
-
|
531
547
|
Tue, 25 Aug 2020 22:09:08 GMT
|
532
548
|
|
533
549
|
_Version update only_
|
534
550
|
|
535
551
|
## 2.5.1
|
536
|
-
|
537
552
|
Mon, 24 Aug 2020 18:13:04 GMT
|
538
553
|
|
539
554
|
### Updates
|
@@ -541,7 +556,6 @@ Mon, 24 Aug 2020 18:13:04 GMT
|
|
541
556
|
- Fix issue with eslintrc config
|
542
557
|
|
543
558
|
## 2.5.0
|
544
|
-
|
545
559
|
Thu, 20 Aug 2020 20:57:09 GMT
|
546
560
|
|
547
561
|
### Updates
|
@@ -549,19 +563,16 @@ Thu, 20 Aug 2020 20:57:09 GMT
|
|
549
563
|
- Switch to ESLint
|
550
564
|
|
551
565
|
## 2.4.2
|
552
|
-
|
553
566
|
Fri, 14 Aug 2020 16:34:09 GMT
|
554
567
|
|
555
568
|
_Version update only_
|
556
569
|
|
557
570
|
## 2.4.1
|
558
|
-
|
559
571
|
Fri, 07 Aug 2020 19:57:43 GMT
|
560
572
|
|
561
573
|
_Version update only_
|
562
574
|
|
563
575
|
## 2.4.0
|
564
|
-
|
565
576
|
Tue, 28 Jul 2020 16:26:23 GMT
|
566
577
|
|
567
578
|
### Updates
|
@@ -569,43 +580,36 @@ Tue, 28 Jul 2020 16:26:23 GMT
|
|
569
580
|
- Trim trailing newlines. Align text with open tag.
|
570
581
|
|
571
582
|
## 2.3.3
|
572
|
-
|
573
583
|
Thu, 23 Jul 2020 12:57:15 GMT
|
574
584
|
|
575
585
|
_Version update only_
|
576
586
|
|
577
587
|
## 2.3.2
|
578
|
-
|
579
588
|
Tue, 14 Jul 2020 23:50:36 GMT
|
580
589
|
|
581
590
|
_Version update only_
|
582
591
|
|
583
592
|
## 2.3.1
|
584
|
-
|
585
593
|
Mon, 13 Jul 2020 18:50:13 GMT
|
586
594
|
|
587
595
|
_Version update only_
|
588
596
|
|
589
597
|
## 2.3.0
|
590
|
-
|
591
598
|
Fri, 10 Jul 2020 17:23:14 GMT
|
592
599
|
|
593
600
|
_Version update only_
|
594
601
|
|
595
602
|
## 2.2.1
|
596
|
-
|
597
603
|
Tue, 07 Jul 2020 14:44:52 GMT
|
598
604
|
|
599
605
|
_Version update only_
|
600
606
|
|
601
607
|
## 2.2.0
|
602
|
-
|
603
608
|
Fri, 19 Jun 2020 14:10:03 GMT
|
604
609
|
|
605
610
|
_Version update only_
|
606
611
|
|
607
612
|
## 2.1.0
|
608
|
-
|
609
613
|
Thu, 28 May 2020 22:48:59 GMT
|
610
614
|
|
611
615
|
### Updates
|
@@ -613,7 +617,6 @@ Thu, 28 May 2020 22:48:59 GMT
|
|
613
617
|
- Add inline sources to properly debug ts files
|
614
618
|
|
615
619
|
## 2.0.0
|
616
|
-
|
617
620
|
Wed, 06 May 2020 13:17:49 GMT
|
618
621
|
|
619
622
|
### Updates
|
@@ -628,25 +631,21 @@ Wed, 06 May 2020 13:17:49 GMT
|
|
628
631
|
- Add extract-api to betools cli
|
629
632
|
|
630
633
|
## 1.14.1
|
631
|
-
|
632
634
|
Wed, 22 Apr 2020 19:04:00 GMT
|
633
635
|
|
634
636
|
_Version update only_
|
635
637
|
|
636
638
|
## 1.14.0
|
637
|
-
|
638
639
|
Tue, 31 Mar 2020 15:44:19 GMT
|
639
640
|
|
640
641
|
_Version update only_
|
641
642
|
|
642
643
|
## 1.13.0
|
643
|
-
|
644
644
|
Wed, 04 Mar 2020 16:16:31 GMT
|
645
645
|
|
646
646
|
_Version update only_
|
647
647
|
|
648
648
|
## 1.12.0
|
649
|
-
|
650
649
|
Wed, 12 Feb 2020 17:45:49 GMT
|
651
650
|
|
652
651
|
### Updates
|
@@ -654,7 +653,6 @@ Wed, 12 Feb 2020 17:45:49 GMT
|
|
654
653
|
- Support for TypeDoc 0.16.8
|
655
654
|
|
656
655
|
## 1.11.0
|
657
|
-
|
658
656
|
Wed, 22 Jan 2020 19:24:11 GMT
|
659
657
|
|
660
658
|
### Updates
|
@@ -663,7 +661,6 @@ Wed, 22 Jan 2020 19:24:11 GMT
|
|
663
661
|
- Update tests to pass '--inspect' instead of '--debug' to Node to support Node 12.
|
664
662
|
|
665
663
|
## 1.10.0
|
666
|
-
|
667
664
|
Tue, 07 Jan 2020 19:44:01 GMT
|
668
665
|
|
669
666
|
### Updates
|
@@ -671,7 +668,6 @@ Tue, 07 Jan 2020 19:44:01 GMT
|
|
671
668
|
- Added tslint-react-set-state-usage to ThirdPartyNotices.md in tools/build
|
672
669
|
|
673
670
|
## 1.9.0
|
674
|
-
|
675
671
|
Tue, 10 Dec 2019 18:08:56 GMT
|
676
672
|
|
677
673
|
### Updates
|
@@ -683,7 +679,6 @@ Tue, 10 Dec 2019 18:08:56 GMT
|
|
683
679
|
- Replaced the noUnusedLocals tsc option with no-unused-variable lint rule.
|
684
680
|
|
685
681
|
## 1.8.0
|
686
|
-
|
687
682
|
Fri, 22 Nov 2019 14:03:34 GMT
|
688
683
|
|
689
684
|
### Updates
|
@@ -693,7 +688,6 @@ Fri, 22 Nov 2019 14:03:34 GMT
|
|
693
688
|
- Update API-extractor to 5.7.4 to consume a fix for Node 12.
|
694
689
|
|
695
690
|
## 1.7.0
|
696
|
-
|
697
691
|
Fri, 01 Nov 2019 13:28:37 GMT
|
698
692
|
|
699
693
|
### Updates
|
@@ -703,13 +697,11 @@ Fri, 01 Nov 2019 13:28:37 GMT
|
|
703
697
|
- Update cli to better match script functionality.
|
704
698
|
|
705
699
|
## 1.6.0
|
706
|
-
|
707
700
|
Wed, 09 Oct 2019 20:28:42 GMT
|
708
701
|
|
709
702
|
_Version update only_
|
710
703
|
|
711
704
|
## 1.5.0
|
712
|
-
|
713
705
|
Mon, 30 Sep 2019 22:28:48 GMT
|
714
706
|
|
715
707
|
### Updates
|
@@ -718,13 +710,11 @@ Mon, 30 Sep 2019 22:28:48 GMT
|
|
718
710
|
- Upgrade to TypeScript 3.6.2
|
719
711
|
|
720
712
|
## 1.4.0
|
721
|
-
|
722
713
|
Tue, 10 Sep 2019 12:09:49 GMT
|
723
714
|
|
724
715
|
_Version update only_
|
725
716
|
|
726
717
|
## 1.3.0
|
727
|
-
|
728
718
|
Tue, 13 Aug 2019 20:25:53 GMT
|
729
719
|
|
730
720
|
### Updates
|
@@ -732,7 +722,6 @@ Tue, 13 Aug 2019 20:25:53 GMT
|
|
732
722
|
- Update README and code cleanup
|
733
723
|
|
734
724
|
## 1.2.0
|
735
|
-
|
736
725
|
Wed, 24 Jul 2019 11:47:26 GMT
|
737
726
|
|
738
727
|
### Updates
|
@@ -741,16 +730,14 @@ Wed, 24 Jul 2019 11:47:26 GMT
|
|
741
730
|
- Closing STDIN no longer kills child processes created using simpleSpawn
|
742
731
|
|
743
732
|
## 1.1.0
|
744
|
-
|
745
733
|
Mon, 01 Jul 2019 19:04:29 GMT
|
746
734
|
|
747
735
|
### Updates
|
748
736
|
|
749
|
-
- Added
|
737
|
+
- Added *test* to list of excluded dirs during docs script
|
750
738
|
- Update to TypeScript 3.5
|
751
739
|
|
752
740
|
## 1.0.0
|
753
|
-
|
754
741
|
Mon, 03 Jun 2019 18:09:39 GMT
|
755
742
|
|
756
743
|
### Updates
|
@@ -762,7 +749,6 @@ Mon, 03 Jun 2019 18:09:39 GMT
|
|
762
749
|
- Update the standard configuration for extract-api to turn off ae-forgotten-export warnings.
|
763
750
|
|
764
751
|
## 0.191.0
|
765
|
-
|
766
752
|
Mon, 13 May 2019 15:52:05 GMT
|
767
753
|
|
768
754
|
### Updates
|
@@ -780,13 +766,11 @@ Mon, 13 May 2019 15:52:05 GMT
|
|
780
766
|
- Update the version of nyc to 14.0.0
|
781
767
|
|
782
768
|
## 0.190.0
|
783
|
-
|
784
769
|
Thu, 14 Mar 2019 14:26:49 GMT
|
785
770
|
|
786
771
|
_Version update only_
|
787
772
|
|
788
773
|
## 0.189.0
|
789
|
-
|
790
774
|
Wed, 06 Mar 2019 15:41:22 GMT
|
791
775
|
|
792
776
|
### Updates
|
@@ -801,43 +785,36 @@ Wed, 06 Mar 2019 15:41:22 GMT
|
|
801
785
|
- Upgrade to TypeScript 3.2.2
|
802
786
|
|
803
787
|
## 0.188.0
|
804
|
-
|
805
788
|
Wed, 16 Jan 2019 16:36:09 GMT
|
806
789
|
|
807
790
|
_Version update only_
|
808
791
|
|
809
792
|
## 0.187.0
|
810
|
-
|
811
793
|
Tue, 15 Jan 2019 15:18:59 GMT
|
812
794
|
|
813
795
|
_Version update only_
|
814
796
|
|
815
797
|
## 0.186.0
|
816
|
-
|
817
798
|
Mon, 14 Jan 2019 23:09:10 GMT
|
818
799
|
|
819
800
|
_Version update only_
|
820
801
|
|
821
802
|
## 0.185.0
|
822
|
-
|
823
803
|
Fri, 11 Jan 2019 18:29:00 GMT
|
824
804
|
|
825
805
|
_Version update only_
|
826
806
|
|
827
807
|
## 0.184.0
|
828
|
-
|
829
808
|
Thu, 10 Jan 2019 22:46:17 GMT
|
830
809
|
|
831
810
|
_Version update only_
|
832
811
|
|
833
812
|
## 0.183.0
|
834
|
-
|
835
813
|
Mon, 07 Jan 2019 21:49:21 GMT
|
836
814
|
|
837
815
|
_Version update only_
|
838
816
|
|
839
817
|
## 0.182.0
|
840
|
-
|
841
818
|
Mon, 07 Jan 2019 13:31:34 GMT
|
842
819
|
|
843
820
|
### Updates
|
@@ -846,7 +823,6 @@ Mon, 07 Jan 2019 13:31:34 GMT
|
|
846
823
|
- Move to Node 10
|
847
824
|
|
848
825
|
## 0.181.0
|
849
|
-
|
850
826
|
Fri, 04 Jan 2019 13:02:40 GMT
|
851
827
|
|
852
828
|
### Updates
|
@@ -854,49 +830,41 @@ Fri, 04 Jan 2019 13:02:40 GMT
|
|
854
830
|
- Move to Node 10
|
855
831
|
|
856
832
|
## 0.180.0
|
857
|
-
|
858
833
|
Wed, 02 Jan 2019 15:18:23 GMT
|
859
834
|
|
860
835
|
_Version update only_
|
861
836
|
|
862
837
|
## 0.179.0
|
863
|
-
|
864
838
|
Wed, 19 Dec 2018 18:26:14 GMT
|
865
839
|
|
866
840
|
_Version update only_
|
867
841
|
|
868
842
|
## 0.178.0
|
869
|
-
|
870
843
|
Thu, 13 Dec 2018 22:06:10 GMT
|
871
844
|
|
872
845
|
_Version update only_
|
873
846
|
|
874
847
|
## 0.177.0
|
875
|
-
|
876
848
|
Wed, 12 Dec 2018 17:21:31 GMT
|
877
849
|
|
878
850
|
_Version update only_
|
879
851
|
|
880
852
|
## 0.176.0
|
881
|
-
|
882
853
|
Mon, 10 Dec 2018 21:19:45 GMT
|
883
854
|
|
884
855
|
_Version update only_
|
885
856
|
|
886
857
|
## 0.175.0
|
887
|
-
|
888
858
|
Mon, 10 Dec 2018 17:08:55 GMT
|
889
859
|
|
890
860
|
_Version update only_
|
891
861
|
|
892
862
|
## 0.174.0
|
893
|
-
|
894
863
|
Mon, 10 Dec 2018 13:24:09 GMT
|
895
864
|
|
896
865
|
_Version update only_
|
897
866
|
|
898
867
|
## 0.173.0
|
899
|
-
|
900
868
|
Thu, 06 Dec 2018 22:03:29 GMT
|
901
869
|
|
902
870
|
### Updates
|
@@ -904,13 +872,11 @@ Thu, 06 Dec 2018 22:03:29 GMT
|
|
904
872
|
- Custom imodelJs noDirectImport lint rule implemented, noDuplicateImport lint rule turned on.
|
905
873
|
|
906
874
|
## 0.172.0
|
907
|
-
|
908
875
|
Tue, 04 Dec 2018 17:24:39 GMT
|
909
876
|
|
910
877
|
_Version update only_
|
911
878
|
|
912
879
|
## 0.171.0
|
913
|
-
|
914
880
|
Mon, 03 Dec 2018 18:52:58 GMT
|
915
881
|
|
916
882
|
### Updates
|
@@ -918,13 +884,11 @@ Mon, 03 Dec 2018 18:52:58 GMT
|
|
918
884
|
- Specify PromisedAssertion as a valid type to await on
|
919
885
|
|
920
886
|
## 0.170.0
|
921
|
-
|
922
887
|
Mon, 26 Nov 2018 19:38:42 GMT
|
923
888
|
|
924
889
|
_Version update only_
|
925
890
|
|
926
891
|
## 0.169.0
|
927
|
-
|
928
892
|
Tue, 20 Nov 2018 16:17:15 GMT
|
929
893
|
|
930
894
|
### Updates
|
@@ -932,13 +896,11 @@ Tue, 20 Nov 2018 16:17:15 GMT
|
|
932
896
|
- Turn on tslint no-floating-promises rule
|
933
897
|
|
934
898
|
## 0.168.0
|
935
|
-
|
936
899
|
Sat, 17 Nov 2018 14:20:11 GMT
|
937
900
|
|
938
901
|
_Version update only_
|
939
902
|
|
940
903
|
## 0.167.0
|
941
|
-
|
942
904
|
Fri, 16 Nov 2018 21:45:44 GMT
|
943
905
|
|
944
906
|
### Updates
|
@@ -948,19 +910,16 @@ Fri, 16 Nov 2018 21:45:44 GMT
|
|
948
910
|
- Turn on tslint no-return-await rule
|
949
911
|
|
950
912
|
## 0.166.0
|
951
|
-
|
952
913
|
Mon, 12 Nov 2018 16:42:10 GMT
|
953
914
|
|
954
915
|
_Version update only_
|
955
916
|
|
956
917
|
## 0.165.0
|
957
|
-
|
958
918
|
Mon, 12 Nov 2018 15:47:00 GMT
|
959
919
|
|
960
920
|
_Version update only_
|
961
921
|
|
962
922
|
## 0.164.0
|
963
|
-
|
964
923
|
Thu, 08 Nov 2018 17:59:20 GMT
|
965
924
|
|
966
925
|
### Updates
|
@@ -970,7 +929,6 @@ Thu, 08 Nov 2018 17:59:20 GMT
|
|
970
929
|
- Add "skipLibCheck" flag to avoid checking third-party declarations
|
971
930
|
|
972
931
|
## 0.163.0
|
973
|
-
|
974
932
|
Wed, 31 Oct 2018 20:55:37 GMT
|
975
933
|
|
976
934
|
### Updates
|
@@ -978,7 +936,6 @@ Wed, 31 Oct 2018 20:55:37 GMT
|
|
978
936
|
- Remove the cover script in favor of an nycrc configuration file.
|
979
937
|
|
980
938
|
## 0.162.0
|
981
|
-
|
982
939
|
Wed, 24 Oct 2018 19:20:06 GMT
|
983
940
|
|
984
941
|
### Updates
|
@@ -986,31 +943,26 @@ Wed, 24 Oct 2018 19:20:06 GMT
|
|
986
943
|
- Fail rush docs on invalid tags
|
987
944
|
|
988
945
|
## 0.161.0
|
989
|
-
|
990
946
|
Fri, 19 Oct 2018 13:04:14 GMT
|
991
947
|
|
992
948
|
_Version update only_
|
993
949
|
|
994
950
|
## 0.160.0
|
995
|
-
|
996
951
|
Wed, 17 Oct 2018 18:18:38 GMT
|
997
952
|
|
998
953
|
_Version update only_
|
999
954
|
|
1000
955
|
## 0.159.0
|
1001
|
-
|
1002
956
|
Tue, 16 Oct 2018 14:09:09 GMT
|
1003
957
|
|
1004
958
|
_Version update only_
|
1005
959
|
|
1006
960
|
## 0.158.0
|
1007
|
-
|
1008
961
|
Mon, 15 Oct 2018 19:36:09 GMT
|
1009
962
|
|
1010
963
|
_Version update only_
|
1011
964
|
|
1012
965
|
## 0.157.0
|
1013
|
-
|
1014
966
|
Sun, 14 Oct 2018 17:20:06 GMT
|
1015
967
|
|
1016
968
|
### Updates
|
@@ -1018,9 +970,9 @@ Sun, 14 Oct 2018 17:20:06 GMT
|
|
1018
970
|
- Fixing scripts for linux
|
1019
971
|
|
1020
972
|
## 0.156.0
|
1021
|
-
|
1022
973
|
Fri, 12 Oct 2018 23:00:10 GMT
|
1023
974
|
|
1024
975
|
### Updates
|
1025
976
|
|
1026
977
|
- Initial release
|
978
|
+
|
package/LICENSE.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# MIT License
|
2
2
|
|
3
|
-
Copyright © 2017-
|
3
|
+
Copyright © 2017-2022 Bentley Systems, Incorporated. All rights reserved.
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
6
6
|
|
package/bin/betools.js
CHANGED
@@ -107,7 +107,7 @@ function docsCommand(options) {
|
|
107
107
|
const baseUrlOpt = options.baseUrl ? ["--baseUrl", options.baseUrl] : [];
|
108
108
|
const includesOpt = options.includes ? ["--includes", options.includes] : [];
|
109
109
|
const excludesOpt = options.excludes ? ["--excludes", options.excludes] : [];
|
110
|
-
const excludesGlobOpt = options.
|
110
|
+
const excludesGlobOpt = options.excludeGlob ? ["--excludeGlob", options.excludeGlob] : [];
|
111
111
|
const indexFileOpt = options.tsIndexFile ? ["--tsIndexFile", options.tsIndexFile] : [];
|
112
112
|
const onlyJsonOpt = options.onlyJson ? ["--onlyJson"] : [];
|
113
113
|
exec(["node", path.resolve(__dirname, "../scripts/docs.js"),
|
package/mocha-reporter/index.js
CHANGED
@@ -13,7 +13,7 @@ if (debugLeaks)
|
|
13
13
|
require("wtfnode");
|
14
14
|
const path = require("path");
|
15
15
|
const fs = require("fs-extra");
|
16
|
-
const { logBuildWarning, logBuildError, failBuild } = require("../scripts/
|
16
|
+
const { logBuildWarning, logBuildError, failBuild } = require("../scripts/utils/utils");
|
17
17
|
const Base = require("mocha/lib/reporters/base");
|
18
18
|
const Spec = require("mocha/lib/reporters/spec");
|
19
19
|
const MochaJUnitReporter = require("mocha-junit-reporter");
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@itwin/build-tools",
|
3
|
-
"version": "3.0.
|
3
|
+
"version": "3.0.2",
|
4
4
|
"description": "Bentley build tools",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": {
|
@@ -22,7 +22,7 @@
|
|
22
22
|
"dependencies": {
|
23
23
|
"@microsoft/api-extractor": "7.7.3",
|
24
24
|
"chalk": "^3.0.0",
|
25
|
-
"
|
25
|
+
"cpx2": "^3.0.0",
|
26
26
|
"cross-spawn": "^7.0.1",
|
27
27
|
"fs-extra": "^8.1.0",
|
28
28
|
"glob": "^7.1.2",
|
@@ -31,16 +31,14 @@
|
|
31
31
|
"recursive-readdir": "^2.2.2",
|
32
32
|
"rimraf": "^3.0.2",
|
33
33
|
"tree-kill": "^1.2.0",
|
34
|
-
"
|
35
|
-
"typedoc": "^0.
|
36
|
-
"typedoc-plugin-external-module-name": "3.0.0",
|
37
|
-
"typedoc-plugin-internal-external": "2.1.1",
|
34
|
+
"typedoc": "^0.22.11",
|
35
|
+
"typedoc-plugin-merge-modules": "^3.0.2",
|
38
36
|
"typescript": "~4.4.0",
|
39
37
|
"wtfnode": "^0.9.1",
|
40
38
|
"yargs": "^16.0.0"
|
41
39
|
},
|
42
40
|
"devDependencies": {
|
43
|
-
"@itwin/eslint-plugin": "3.0.
|
41
|
+
"@itwin/eslint-plugin": "3.0.2",
|
44
42
|
"@types/node": "14.14.31",
|
45
43
|
"eslint": "^7.11.0"
|
46
44
|
},
|
@@ -61,5 +59,6 @@
|
|
61
59
|
"lint": "eslint -f visualstudio --config package.json --no-eslintrc \"./src/**/*.ts\" 1>&2",
|
62
60
|
"test": "",
|
63
61
|
"cover": ""
|
64
|
-
}
|
62
|
+
},
|
63
|
+
"readme": "# @itwin/build-tools\r\n\r\nCopyright © Bentley Systems, Incorporated. All rights reserved. See LICENSE.md for license terms and full copyright notice.\r\n\r\n## Description\r\n\r\nThe **@itwin/build-tools** is a package for developers to consolidate the steps for building TypeScript-based packages. The tools contained in this package are written in either Typescript or Javascript within the src/ directory, and compiled for use into the lib/ directory. As a developer package, this package has only dependencies, no devDependencies.\r\n\r\n### tsconfig-base\r\n\r\nLocation: tsconfig-base.json\\\r\nRequires build: no\r\n\r\nThis file contains common tsconfig settings across all iTwin.js packages. Packages should extend this file in their own tsconfig.json file, and then overwrite and set new properties as needed. Note that this file is different from the tsconfig.json file for this package, as that contains different settings for bentleyjs-tools only.\r\n\r\n### NPM Scripts\r\n\r\nLocation: scripts/\\\r\nRequires build: no\r\n\r\nThe following node scripts are delivered in this package's scripts folder in order to ease development of iTwin.js packages with npm scripts. These scripts may require that additional packages be installed as dependencies of your package.\r\n\r\nThe default behaviors of the scripts (without parameters) assume that the directory structure of your package mirrors the following:\r\n\r\n- root\r\n - source\r\n - test\r\n - assets\r\n - lib\r\n - package.json\r\n - tsconfig.json\r\n\r\nThe following is a list of some of the most commonly used scripts within this package:\r\n\r\n#### docs.js\r\n\r\nThis script runs a TypeDoc command, with specific parameters, to generate html TypeScript documentation as well as a json representation of the documentation to be consumed for other purposes. It includes the following parameters:\r\n\r\n- source - specify the TypeScript source directory\r\n- out - specify the directory of the html output\r\n- json - specify the directory and filename of the json output\r\n- baseUrl - specify a baseUrl to resolve modules\r\n- onlyJson - including this option will skip the html output and only output the json file\r\n- includes - directory of files to include in documentation (ex: for sample code)\r\n- excludes - name of directory, files, or file extensions to exclude.\r\n - A list can be provided using a `,` as a separator\r\n - Each of the provided to exclude is added to a glob pattern which checks all directories within the source.\r\n - i.e `--excludes=test,docs/*.md` will translate to `**/{test,docs/*.md}/**/*`\r\n\r\n#### extract.js\r\n\r\nThis is a script designed to extract sample code from test.ts files in a specific directory. The sample code should be surrounded by comments containing \"\\_\\_PUBLISH_EXTRACT_START\\_\\_\" and \"\\_\\_PUBLISH_EXTRACT_END\\_\\_\" directives.\r\n\r\n- extractDir - the path at which the sample code files are located\r\n- outDir - the path at which to output the selected code\r\n\r\n#### pseudolocalize.js\r\n\r\nThis script handles translating an English localization JSON file into a pseudoLocalization file.\r\n"
|
65
64
|
}
|
package/scripts/docs.js
CHANGED
@@ -8,10 +8,11 @@ process.env.NODE_ENV = "prod";
|
|
8
8
|
|
9
9
|
const paths = require("./config/paths");
|
10
10
|
const path = require("path");
|
11
|
-
const cpx = require("
|
11
|
+
const cpx = require("cpx2");
|
12
12
|
const fs = require("fs");
|
13
13
|
const { spawn, handleInterrupts } = require("./utils/simpleSpawn");
|
14
14
|
const { validateTags } = require("./utils/validateTags");
|
15
|
+
const { addSourceDir } = require("./utils/addSourceDir");
|
15
16
|
const argv = require("yargs").argv;
|
16
17
|
|
17
18
|
// Makes the script crash on unhandled rejections instead of silently
|
@@ -26,7 +27,6 @@ const out = (argv.out === undefined) ? paths.appDocs : argv.out;
|
|
26
27
|
const json = (argv.json === undefined) ? paths.appJsonDocs : argv.json;
|
27
28
|
|
28
29
|
const baseUrlOptions = (argv.baseUrl === undefined) ? [] : ["--baseUrl", argv.baseUrl];
|
29
|
-
console.log("Input: " + argv)
|
30
30
|
const includeOptions = (argv.includes === undefined) ? [] : ["--includes", argv.includes];
|
31
31
|
|
32
32
|
let excludeList = "**/node_modules/**/*,**/*test*/**/*";
|
@@ -35,6 +35,10 @@ if (argv.excludes !== undefined)
|
|
35
35
|
if (argv.excludeGlob !== undefined)
|
36
36
|
excludeList += "," + argv.excludeGlob;
|
37
37
|
|
38
|
+
excludeList = excludeList.replace(/,/g, ',--exclude,')
|
39
|
+
const excludeArray = excludeList.split(",");
|
40
|
+
excludeArray.unshift("--exclude");
|
41
|
+
|
38
42
|
let outputOptions = [
|
39
43
|
"--json", json
|
40
44
|
];
|
@@ -46,11 +50,14 @@ const readmeOption = (argv.readme === undefined) ? "none" : argv.readme;
|
|
46
50
|
|
47
51
|
const options = [
|
48
52
|
"--excludePrivate",
|
49
|
-
"--experimentalDecorators",
|
50
|
-
"--excludeExternals",
|
51
|
-
"--excludeNotExported",
|
52
|
-
"--ignoreCompilerErrors",
|
53
53
|
"--hideGenerator",
|
54
|
+
"--logLevel",
|
55
|
+
"Error"
|
56
|
+
];
|
57
|
+
|
58
|
+
const pluginOptions = [
|
59
|
+
"--plugin", "typedoc-plugin-merge-modules",
|
60
|
+
"--mergeModulesMergeMode", "module",
|
54
61
|
];
|
55
62
|
|
56
63
|
if (argv.name) options.push("--name", argv.name);
|
@@ -58,16 +65,12 @@ if (argv.name) options.push("--name", argv.name);
|
|
58
65
|
if (argv.theme) options.push("--theme", argv.theme);
|
59
66
|
|
60
67
|
const args = [
|
61
|
-
path.resolve(process.cwd(), source),
|
68
|
+
"--entryPointStrategy", "expand", path.resolve(process.cwd(), source),
|
62
69
|
...options,
|
63
|
-
|
70
|
+
...excludeArray,
|
64
71
|
...outputOptions,
|
65
|
-
"--mode", "modules",
|
66
72
|
"--readme", readmeOption,
|
67
|
-
|
68
|
-
"--plugin", "typedoc-plugin-external-module-name,typedoc-plugin-internal-external",
|
69
|
-
"--external-aliases", "alpha,internal",
|
70
|
-
"--internal-aliases", "UNUSED",
|
73
|
+
...pluginOptions,
|
71
74
|
...baseUrlOptions,
|
72
75
|
...includeOptions
|
73
76
|
];
|
@@ -86,6 +89,9 @@ spawn(require.resolve(".bin/typedoc"), args).then((code) => {
|
|
86
89
|
cpx.copySync(path.join(process.cwd(), 'CHANGELOG.json'), outputDir);
|
87
90
|
}
|
88
91
|
|
92
|
+
// Append the directory of the package to the output
|
93
|
+
addSourceDir(json, process.cwd());
|
94
|
+
|
89
95
|
if (code === 0) {
|
90
96
|
let tagErrors = validateTags(json);
|
91
97
|
if (tagErrors.toString()) {
|
@@ -0,0 +1,22 @@
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
5
|
+
|
6
|
+
const FS = require('fs-extra');
|
7
|
+
const rootPackageJson = require('../../../../package.json');
|
8
|
+
|
9
|
+
// Appends the directory of the package root to the Typedoc JSON output
|
10
|
+
function addSourceDir(file, directory) {
|
11
|
+
if (FS.existsSync(file) && FS.statSync(file).isFile()) {
|
12
|
+
const contents = FS.readFileSync(file, 'utf-8');
|
13
|
+
let packageRoot = directory.substring(directory.indexOf(rootPackageJson.name) + rootPackageJson.name.length + 1);
|
14
|
+
let jsonContents = JSON.parse(contents);
|
15
|
+
jsonContents['packageRoot'] = packageRoot.endsWith('src') ? packageRoot : `${packageRoot}\\${'src'}`;
|
16
|
+
FS.writeFileSync(file, Buffer.from(JSON.stringify(jsonContents, null, 2)));
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
module.exports = {
|
21
|
+
addSourceDir
|
22
|
+
};
|
File without changes
|
package/scripts/rush/audit.js
DELETED
@@ -1,100 +0,0 @@
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
2
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
3
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
5
|
-
|
6
|
-
const fs = require("fs");
|
7
|
-
const path = require("path");
|
8
|
-
const { spawn } = require("child_process");
|
9
|
-
const { logBuildError, logBuildWarning, failBuild, throwAfterTimeout } = require("./utils");
|
10
|
-
|
11
|
-
const rushCommonDir = path.join(__dirname, "../../../../common/");
|
12
|
-
|
13
|
-
(async () => {
|
14
|
-
const commonTempDir = path.join(rushCommonDir, "config/rush");
|
15
|
-
|
16
|
-
// Npm audit will occasionally take minutes to respond - we believe this is just the npm registry being terrible and slow.
|
17
|
-
// We don't want this to slow down our builds though - we'd rather fail fast and try again later. So we'll just timeout after 30 seconds.
|
18
|
-
let jsonOut = {};
|
19
|
-
try {
|
20
|
-
console.time("Audit time");
|
21
|
-
jsonOut = await Promise.race([runPnpmAuditAsync(commonTempDir), throwAfterTimeout(180000, "Timed out contacting npm registry.")]);
|
22
|
-
console.timeEnd("Audit time");
|
23
|
-
console.log();
|
24
|
-
} catch (error) {
|
25
|
-
// We want to stop failing the build on transient failures and instead fail only on high/critical vulnerabilities.
|
26
|
-
logBuildWarning(error);
|
27
|
-
process.exit();
|
28
|
-
}
|
29
|
-
|
30
|
-
if (jsonOut.error) {
|
31
|
-
console.error(jsonOut.error.summary);
|
32
|
-
logBuildWarning("Rush audit failed. This may be caused by a problem with the npm audit server.");
|
33
|
-
}
|
34
|
-
|
35
|
-
// A list of temporary advisories excluded from the High and Critical list.
|
36
|
-
// Warning this should only be used as a temporary measure to avoid build failures
|
37
|
-
// for development dependencies only.
|
38
|
-
// All security issues should be addressed asap.
|
39
|
-
const excludedAdvisories = [
|
40
|
-
"GHSA-8p5q-j9m2-g8wr", // https://github.com/advisories/GHSA-8p5q-j9m2-g8wr.
|
41
|
-
"GHSA-ww39-953v-wcq6", // https://github.com/advisories/GHSA-ww39-953v-wcq6.
|
42
|
-
"GHSA-8v27-2fg9-7h62", // https://github.com/advisories/GHSA-8v27-2fg9-7h62.
|
43
|
-
"GHSA-33f9-j839-rf8h", // https://github.com/advisories/GHSA-33f9-j839-rf8h.
|
44
|
-
"GHSA-c36v-fmgq-m8hx", // https://github.com/advisories/GHSA-c36v-fmgq-m8hx.
|
45
|
-
"GHSA-4jqc-8m5r-9rpr", // https://github.com/advisories/GHSA-4jqc-8m5r-9rpr.
|
46
|
-
"GHSA-whgm-jr23-g3j9", // https://github.com/advisories/GHSA-whgm-jr23-g3j9.
|
47
|
-
];
|
48
|
-
|
49
|
-
let shouldFailBuild = false;
|
50
|
-
for (const action of jsonOut.actions) {
|
51
|
-
for (const issue of action.resolves) {
|
52
|
-
const advisory = jsonOut.advisories[issue.id];
|
53
|
-
|
54
|
-
// TODO: This path no longer resolves to a specific package in the repo. Need to figure out the best way to handle it
|
55
|
-
const mpath = issue.path; // .replace("@rush-temp", "@bentley");
|
56
|
-
|
57
|
-
const severity = advisory.severity.toUpperCase();
|
58
|
-
const message = `${severity} Security Vulnerability: ${advisory.title} in ${advisory.module_name} (from ${mpath}). See ${advisory.url} for more info.`;
|
59
|
-
|
60
|
-
// For now, we'll only treat CRITICAL and HIGH vulnerabilities as errors in CI builds.
|
61
|
-
if (!excludedAdvisories.includes(advisory.github_advisory_id) && (severity === "HIGH" || severity === "CRITICAL")) {
|
62
|
-
logBuildError(message);
|
63
|
-
shouldFailBuild = true;
|
64
|
-
} else if (excludedAdvisories.includes(advisory.github_advisory_id) || severity === "MODERATE") // Only warn on MODERATE severity items
|
65
|
-
logBuildWarning(message);
|
66
|
-
}
|
67
|
-
}
|
68
|
-
|
69
|
-
// For some reason yarn audit can return the json without the vulnerabilities
|
70
|
-
if (undefined === jsonOut.metadata.vulnerabilities || shouldFailBuild)
|
71
|
-
failBuild();
|
72
|
-
|
73
|
-
process.exit();
|
74
|
-
})();
|
75
|
-
|
76
|
-
function runPnpmAuditAsync(cwd) {
|
77
|
-
return new Promise((resolve, reject) => {
|
78
|
-
// pnpm audit requires a package.json file so we temporarily create one and
|
79
|
-
// then delete it later
|
80
|
-
fs.writeFileSync(path.join(rushCommonDir, "config/rush/package.json"), JSON.stringify("{}", null, 2));
|
81
|
-
|
82
|
-
console.log("Running audit");
|
83
|
-
const pnpmPath = path.join(rushCommonDir, "temp/pnpm-local/node_modules/.bin/pnpm");
|
84
|
-
const child = spawn(pnpmPath, ["audit", "--json"], { cwd, shell: true });
|
85
|
-
|
86
|
-
let stdout = "";
|
87
|
-
child.stdout.on('data', (data) => {
|
88
|
-
stdout += data;
|
89
|
-
});
|
90
|
-
|
91
|
-
child.on('error', (data) => {
|
92
|
-
fs.unlinkSync(path.join(rushCommonDir, "config/rush/package.json"));
|
93
|
-
reject(data)
|
94
|
-
});
|
95
|
-
child.on('close', () => {
|
96
|
-
fs.unlinkSync(path.join(rushCommonDir, "config/rush/package.json"));
|
97
|
-
resolve(JSON.parse(stdout.trim()));
|
98
|
-
});
|
99
|
-
});
|
100
|
-
}
|