@itwin/build-tools 3.0.0-extension.0 → 3.0.1
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 +101 -154
- package/LICENSE.md +1 -1
- package/bin/betools.js +1 -1
- package/mocha-reporter/index.js +1 -1
- package/package.json +8 -9
- 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,336 @@
|
|
1
1
|
# Change Log - @itwin/build-tools
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Thu, 24 Feb 2022 15:26:55 GMT and should not be manually modified.
|
4
4
|
|
5
|
-
##
|
5
|
+
## 3.0.1
|
6
|
+
Thu, 24 Feb 2022 15:26:55 GMT
|
7
|
+
|
8
|
+
### Updates
|
9
|
+
|
10
|
+
- Bumped Typedoc patch version
|
11
|
+
- Added packageRoot property to Typedoc output
|
12
|
+
|
13
|
+
## 3.0.0
|
14
|
+
Mon, 24 Jan 2022 14:00:52 GMT
|
15
|
+
|
16
|
+
### Updates
|
17
|
+
|
18
|
+
- Removed `test` and `test-tsnode` scripts from betools. Please use mocha directly instead.
|
19
|
+
- Upgrade target to ES2019
|
20
|
+
- Added returns as a valid tag
|
21
|
+
- rename to @itwin/build-tools
|
22
|
+
- Support for Node 16
|
23
|
+
- Remove TSLint support and .eslintrc.js file - please use `@itwin/eslint-plugin` instead
|
24
|
+
- Renamed an iModel's parent container to iTwin
|
25
|
+
- Support for TypeDoc v0.22.7. Fix various broken docs links.
|
26
|
+
- Incorporating iTwinUI-CSS and iTwinUI-React into iModel.js
|
27
|
+
|
28
|
+
## 2.19.28
|
29
|
+
Wed, 12 Jan 2022 14:52:38 GMT
|
30
|
+
|
31
|
+
_Version update only_
|
32
|
+
|
33
|
+
## 2.19.27
|
34
|
+
Wed, 05 Jan 2022 20:07:20 GMT
|
35
|
+
|
36
|
+
_Version update only_
|
37
|
+
|
38
|
+
## 2.19.26
|
39
|
+
Wed, 08 Dec 2021 20:54:52 GMT
|
40
|
+
|
41
|
+
_Version update only_
|
42
|
+
|
43
|
+
## 2.19.25
|
44
|
+
Fri, 03 Dec 2021 20:05:49 GMT
|
45
|
+
|
46
|
+
_Version update only_
|
47
|
+
|
48
|
+
## 2.19.24
|
49
|
+
Mon, 29 Nov 2021 18:44:31 GMT
|
50
|
+
|
51
|
+
_Version update only_
|
52
|
+
|
53
|
+
## 2.19.23
|
54
|
+
Mon, 22 Nov 2021 20:41:39 GMT
|
55
|
+
|
56
|
+
_Version update only_
|
6
57
|
|
58
|
+
## 2.19.22
|
59
|
+
Wed, 17 Nov 2021 01:23:26 GMT
|
60
|
+
|
61
|
+
_Version update only_
|
62
|
+
|
63
|
+
## 2.19.21
|
64
|
+
Wed, 10 Nov 2021 10:58:24 GMT
|
65
|
+
|
66
|
+
_Version update only_
|
67
|
+
|
68
|
+
## 2.19.20
|
69
|
+
Fri, 29 Oct 2021 16:14:22 GMT
|
70
|
+
|
71
|
+
_Version update only_
|
72
|
+
|
73
|
+
## 2.19.19
|
74
|
+
Mon, 25 Oct 2021 16:16:25 GMT
|
75
|
+
|
76
|
+
_Version update only_
|
77
|
+
|
78
|
+
## 2.19.18
|
79
|
+
Thu, 21 Oct 2021 20:59:44 GMT
|
80
|
+
|
81
|
+
_Version update only_
|
82
|
+
|
83
|
+
## 2.19.17
|
84
|
+
Thu, 14 Oct 2021 21:19:43 GMT
|
85
|
+
|
86
|
+
_Version update only_
|
87
|
+
|
88
|
+
## 2.19.16
|
89
|
+
Mon, 11 Oct 2021 17:37:46 GMT
|
90
|
+
|
91
|
+
_Version update only_
|
92
|
+
|
93
|
+
## 2.19.15
|
94
|
+
Fri, 08 Oct 2021 16:44:23 GMT
|
95
|
+
|
96
|
+
_Version update only_
|
97
|
+
|
98
|
+
## 2.19.14
|
99
|
+
Fri, 01 Oct 2021 13:07:03 GMT
|
100
|
+
|
101
|
+
_Version update only_
|
102
|
+
|
103
|
+
## 2.19.13
|
7
104
|
Tue, 21 Sep 2021 21:06:40 GMT
|
8
105
|
|
9
106
|
_Version update only_
|
10
107
|
|
11
108
|
## 2.19.12
|
12
|
-
|
13
109
|
Wed, 15 Sep 2021 18:06:46 GMT
|
14
110
|
|
15
111
|
_Version update only_
|
16
112
|
|
17
113
|
## 2.19.11
|
18
|
-
|
19
114
|
Thu, 09 Sep 2021 21:04:57 GMT
|
20
115
|
|
21
116
|
_Version update only_
|
22
117
|
|
23
118
|
## 2.19.10
|
24
|
-
|
25
119
|
Wed, 08 Sep 2021 14:36:01 GMT
|
26
120
|
|
27
121
|
_Version update only_
|
28
122
|
|
29
123
|
## 2.19.9
|
30
|
-
|
31
124
|
Wed, 25 Aug 2021 15:36:01 GMT
|
32
125
|
|
33
126
|
_Version update only_
|
34
127
|
|
35
128
|
## 2.19.8
|
36
|
-
|
37
129
|
Mon, 23 Aug 2021 13:23:13 GMT
|
38
130
|
|
39
131
|
_Version update only_
|
40
132
|
|
41
133
|
## 2.19.7
|
42
|
-
|
43
134
|
Fri, 20 Aug 2021 17:47:22 GMT
|
44
135
|
|
45
136
|
_Version update only_
|
46
137
|
|
47
138
|
## 2.19.6
|
48
|
-
|
49
139
|
Tue, 17 Aug 2021 20:34:28 GMT
|
50
140
|
|
51
141
|
_Version update only_
|
52
142
|
|
53
143
|
## 2.19.5
|
54
|
-
|
55
144
|
Fri, 13 Aug 2021 21:48:08 GMT
|
56
145
|
|
57
146
|
_Version update only_
|
58
147
|
|
59
148
|
## 2.19.4
|
60
|
-
|
61
149
|
Thu, 12 Aug 2021 13:09:26 GMT
|
62
150
|
|
63
151
|
_Version update only_
|
64
152
|
|
65
153
|
## 2.19.3
|
66
|
-
|
67
154
|
Wed, 04 Aug 2021 20:29:34 GMT
|
68
155
|
|
69
156
|
_Version update only_
|
70
157
|
|
71
158
|
## 2.19.2
|
72
|
-
|
73
159
|
Tue, 03 Aug 2021 18:26:23 GMT
|
74
160
|
|
75
161
|
_Version update only_
|
76
162
|
|
77
163
|
## 2.19.1
|
78
|
-
|
79
164
|
Thu, 29 Jul 2021 20:01:11 GMT
|
80
165
|
|
81
166
|
_Version update only_
|
82
167
|
|
83
168
|
## 2.19.0
|
84
|
-
|
85
169
|
Mon, 26 Jul 2021 12:21:25 GMT
|
86
170
|
|
87
171
|
_Version update only_
|
88
172
|
|
89
173
|
## 2.18.4
|
90
|
-
|
91
174
|
Tue, 10 Aug 2021 19:35:13 GMT
|
92
175
|
|
93
176
|
_Version update only_
|
94
177
|
|
95
178
|
## 2.18.3
|
96
|
-
|
97
179
|
Wed, 28 Jul 2021 17:16:30 GMT
|
98
180
|
|
99
181
|
_Version update only_
|
100
182
|
|
101
183
|
## 2.18.2
|
102
|
-
|
103
184
|
Mon, 26 Jul 2021 16:18:31 GMT
|
104
185
|
|
105
186
|
_Version update only_
|
106
187
|
|
107
188
|
## 2.18.1
|
108
|
-
|
109
189
|
Fri, 16 Jul 2021 17:45:09 GMT
|
110
190
|
|
111
191
|
_Version update only_
|
112
192
|
|
113
193
|
## 2.18.0
|
114
|
-
|
115
194
|
Fri, 09 Jul 2021 18:11:24 GMT
|
116
195
|
|
117
196
|
_Version update only_
|
118
197
|
|
119
198
|
## 2.17.3
|
120
|
-
|
121
199
|
Mon, 26 Jul 2021 16:08:36 GMT
|
122
200
|
|
123
201
|
_Version update only_
|
124
202
|
|
125
203
|
## 2.17.2
|
126
|
-
|
127
204
|
Thu, 08 Jul 2021 15:23:00 GMT
|
128
205
|
|
129
206
|
_Version update only_
|
130
207
|
|
131
208
|
## 2.17.1
|
132
|
-
|
133
209
|
Fri, 02 Jul 2021 15:38:30 GMT
|
134
210
|
|
135
211
|
_Version update only_
|
136
212
|
|
137
213
|
## 2.17.0
|
138
|
-
|
139
214
|
Mon, 28 Jun 2021 16:20:10 GMT
|
140
215
|
|
141
216
|
_Version update only_
|
142
217
|
|
143
218
|
## 2.16.10
|
144
|
-
|
145
219
|
Thu, 22 Jul 2021 20:23:44 GMT
|
146
220
|
|
147
221
|
_Version update only_
|
148
222
|
|
149
223
|
## 2.16.9
|
150
|
-
|
151
224
|
Tue, 06 Jul 2021 22:08:34 GMT
|
152
225
|
|
153
226
|
_Version update only_
|
154
227
|
|
155
228
|
## 2.16.8
|
156
|
-
|
157
229
|
Fri, 02 Jul 2021 17:40:46 GMT
|
158
230
|
|
159
231
|
_Version update only_
|
160
232
|
|
161
233
|
## 2.16.7
|
162
|
-
|
163
234
|
Mon, 28 Jun 2021 18:13:04 GMT
|
164
235
|
|
165
236
|
_Version update only_
|
166
237
|
|
167
238
|
## 2.16.6
|
168
|
-
|
169
239
|
Mon, 28 Jun 2021 13:12:55 GMT
|
170
240
|
|
171
241
|
_Version update only_
|
172
242
|
|
173
243
|
## 2.16.5
|
174
|
-
|
175
244
|
Fri, 25 Jun 2021 16:03:01 GMT
|
176
245
|
|
177
246
|
_Version update only_
|
178
247
|
|
179
248
|
## 2.16.4
|
180
|
-
|
181
249
|
Wed, 23 Jun 2021 17:09:07 GMT
|
182
250
|
|
183
251
|
_Version update only_
|
184
252
|
|
185
253
|
## 2.16.3
|
186
|
-
|
187
254
|
Wed, 16 Jun 2021 20:29:32 GMT
|
188
255
|
|
189
256
|
_Version update only_
|
190
257
|
|
191
258
|
## 2.16.2
|
192
|
-
|
193
259
|
Thu, 03 Jun 2021 18:08:11 GMT
|
194
260
|
|
195
261
|
_Version update only_
|
196
262
|
|
197
263
|
## 2.16.1
|
198
|
-
|
199
264
|
Thu, 27 May 2021 20:04:22 GMT
|
200
265
|
|
201
266
|
_Version update only_
|
202
267
|
|
203
268
|
## 2.16.0
|
204
|
-
|
205
269
|
Mon, 24 May 2021 15:58:39 GMT
|
206
270
|
|
207
271
|
_Version update only_
|
208
272
|
|
209
273
|
## 2.15.6
|
210
|
-
|
211
274
|
Wed, 26 May 2021 15:55:18 GMT
|
212
275
|
|
213
276
|
_Version update only_
|
214
277
|
|
215
278
|
## 2.15.5
|
216
|
-
|
217
279
|
Thu, 20 May 2021 15:06:26 GMT
|
218
280
|
|
219
281
|
_Version update only_
|
220
282
|
|
221
283
|
## 2.15.4
|
222
|
-
|
223
284
|
Tue, 18 May 2021 21:59:07 GMT
|
224
285
|
|
225
286
|
_Version update only_
|
226
287
|
|
227
288
|
## 2.15.3
|
228
|
-
|
229
289
|
Mon, 17 May 2021 13:31:37 GMT
|
230
290
|
|
231
291
|
_Version update only_
|
232
292
|
|
233
293
|
## 2.15.2
|
234
|
-
|
235
294
|
Wed, 12 May 2021 18:08:13 GMT
|
236
295
|
|
237
296
|
_Version update only_
|
238
297
|
|
239
298
|
## 2.15.1
|
240
|
-
|
241
299
|
Wed, 05 May 2021 13:18:31 GMT
|
242
300
|
|
243
301
|
_Version update only_
|
244
302
|
|
245
303
|
## 2.15.0
|
246
|
-
|
247
304
|
Fri, 30 Apr 2021 12:36:58 GMT
|
248
305
|
|
249
306
|
_Version update only_
|
250
307
|
|
251
308
|
## 2.14.4
|
252
|
-
|
253
309
|
Thu, 22 Apr 2021 21:07:33 GMT
|
254
310
|
|
255
311
|
_Version update only_
|
256
312
|
|
257
313
|
## 2.14.3
|
258
|
-
|
259
314
|
Thu, 15 Apr 2021 15:13:16 GMT
|
260
315
|
|
261
316
|
_Version update only_
|
262
317
|
|
263
318
|
## 2.14.2
|
264
|
-
|
265
319
|
Thu, 08 Apr 2021 14:30:09 GMT
|
266
320
|
|
267
321
|
_Version update only_
|
268
322
|
|
269
323
|
## 2.14.1
|
270
|
-
|
271
324
|
Mon, 05 Apr 2021 16:28:00 GMT
|
272
325
|
|
273
326
|
_Version update only_
|
274
327
|
|
275
328
|
## 2.14.0
|
276
|
-
|
277
329
|
Fri, 02 Apr 2021 13:18:42 GMT
|
278
330
|
|
279
331
|
_Version update only_
|
280
332
|
|
281
333
|
## 2.13.0
|
282
|
-
|
283
334
|
Tue, 09 Mar 2021 20:28:13 GMT
|
284
335
|
|
285
336
|
### Updates
|
@@ -288,25 +339,21 @@ Tue, 09 Mar 2021 20:28:13 GMT
|
|
288
339
|
- begin rename project from iModel.js to iTwin.js
|
289
340
|
|
290
341
|
## 2.12.3
|
291
|
-
|
292
342
|
Mon, 08 Mar 2021 15:32:00 GMT
|
293
343
|
|
294
344
|
_Version update only_
|
295
345
|
|
296
346
|
## 2.12.2
|
297
|
-
|
298
347
|
Wed, 03 Mar 2021 18:48:52 GMT
|
299
348
|
|
300
349
|
_Version update only_
|
301
350
|
|
302
351
|
## 2.12.1
|
303
|
-
|
304
352
|
Tue, 23 Feb 2021 20:54:45 GMT
|
305
353
|
|
306
354
|
_Version update only_
|
307
355
|
|
308
356
|
## 2.12.0
|
309
|
-
|
310
357
|
Thu, 18 Feb 2021 22:10:12 GMT
|
311
358
|
|
312
359
|
### Updates
|
@@ -314,193 +361,161 @@ Thu, 18 Feb 2021 22:10:12 GMT
|
|
314
361
|
- Update minimum tsutils version to ~3.17.1
|
315
362
|
|
316
363
|
## 2.11.2
|
317
|
-
|
318
364
|
Thu, 18 Feb 2021 02:50:59 GMT
|
319
365
|
|
320
366
|
_Version update only_
|
321
367
|
|
322
368
|
## 2.11.1
|
323
|
-
|
324
369
|
Thu, 04 Feb 2021 17:22:41 GMT
|
325
370
|
|
326
371
|
_Version update only_
|
327
372
|
|
328
373
|
## 2.11.0
|
329
|
-
|
330
374
|
Thu, 28 Jan 2021 13:39:27 GMT
|
331
375
|
|
332
376
|
_Version update only_
|
333
377
|
|
334
378
|
## 2.10.3
|
335
|
-
|
336
379
|
Fri, 08 Jan 2021 18:34:03 GMT
|
337
380
|
|
338
381
|
_Version update only_
|
339
382
|
|
340
383
|
## 2.10.2
|
341
|
-
|
342
384
|
Fri, 08 Jan 2021 14:52:02 GMT
|
343
385
|
|
344
386
|
_Version update only_
|
345
387
|
|
346
388
|
## 2.10.1
|
347
|
-
|
348
389
|
Tue, 22 Dec 2020 00:53:38 GMT
|
349
390
|
|
350
391
|
_Version update only_
|
351
392
|
|
352
393
|
## 2.10.0
|
353
|
-
|
354
394
|
Fri, 18 Dec 2020 18:24:01 GMT
|
355
395
|
|
356
396
|
_Version update only_
|
357
397
|
|
358
398
|
## 2.9.9
|
359
|
-
|
360
399
|
Sun, 13 Dec 2020 19:00:03 GMT
|
361
400
|
|
362
401
|
_Version update only_
|
363
402
|
|
364
403
|
## 2.9.8
|
365
|
-
|
366
404
|
Fri, 11 Dec 2020 02:57:36 GMT
|
367
405
|
|
368
406
|
_Version update only_
|
369
407
|
|
370
408
|
## 2.9.7
|
371
|
-
|
372
409
|
Wed, 09 Dec 2020 20:58:23 GMT
|
373
410
|
|
374
411
|
_Version update only_
|
375
412
|
|
376
413
|
## 2.9.6
|
377
|
-
|
378
414
|
Mon, 07 Dec 2020 18:40:48 GMT
|
379
415
|
|
380
416
|
_Version update only_
|
381
417
|
|
382
418
|
## 2.9.5
|
383
|
-
|
384
419
|
Sat, 05 Dec 2020 01:55:56 GMT
|
385
420
|
|
386
421
|
_Version update only_
|
387
422
|
|
388
423
|
## 2.9.4
|
389
|
-
|
390
424
|
Wed, 02 Dec 2020 20:55:40 GMT
|
391
425
|
|
392
426
|
_Version update only_
|
393
427
|
|
394
428
|
## 2.9.3
|
395
|
-
|
396
429
|
Mon, 23 Nov 2020 20:57:56 GMT
|
397
430
|
|
398
431
|
_Version update only_
|
399
432
|
|
400
433
|
## 2.9.2
|
401
|
-
|
402
434
|
Mon, 23 Nov 2020 15:33:50 GMT
|
403
435
|
|
404
436
|
_Version update only_
|
405
437
|
|
406
438
|
## 2.9.1
|
407
|
-
|
408
439
|
Thu, 19 Nov 2020 17:03:42 GMT
|
409
440
|
|
410
441
|
_Version update only_
|
411
442
|
|
412
443
|
## 2.9.0
|
413
|
-
|
414
444
|
Wed, 18 Nov 2020 16:01:50 GMT
|
415
445
|
|
416
446
|
_Version update only_
|
417
447
|
|
418
448
|
## 2.8.1
|
419
|
-
|
420
449
|
Tue, 03 Nov 2020 00:33:56 GMT
|
421
450
|
|
422
451
|
_Version update only_
|
423
452
|
|
424
453
|
## 2.8.0
|
425
|
-
|
426
454
|
Fri, 23 Oct 2020 17:04:02 GMT
|
427
455
|
|
428
456
|
_Version update only_
|
429
457
|
|
430
458
|
## 2.7.6
|
431
|
-
|
432
459
|
Wed, 11 Nov 2020 16:28:23 GMT
|
433
460
|
|
434
461
|
_Version update only_
|
435
462
|
|
436
463
|
## 2.7.5
|
437
|
-
|
438
464
|
Fri, 23 Oct 2020 16:23:50 GMT
|
439
465
|
|
440
466
|
_Version update only_
|
441
467
|
|
442
468
|
## 2.7.4
|
443
|
-
|
444
469
|
Mon, 19 Oct 2020 17:57:01 GMT
|
445
470
|
|
446
471
|
_Version update only_
|
447
472
|
|
448
473
|
## 2.7.3
|
449
|
-
|
450
474
|
Wed, 14 Oct 2020 17:00:58 GMT
|
451
475
|
|
452
476
|
_Version update only_
|
453
477
|
|
454
478
|
## 2.7.2
|
455
|
-
|
456
479
|
Tue, 13 Oct 2020 18:20:38 GMT
|
457
480
|
|
458
481
|
_Version update only_
|
459
482
|
|
460
483
|
## 2.7.1
|
461
|
-
|
462
484
|
Thu, 08 Oct 2020 13:04:35 GMT
|
463
485
|
|
464
486
|
_Version update only_
|
465
487
|
|
466
488
|
## 2.7.0
|
467
|
-
|
468
489
|
Fri, 02 Oct 2020 18:03:32 GMT
|
469
490
|
|
470
491
|
_Version update only_
|
471
492
|
|
472
493
|
## 2.6.5
|
473
|
-
|
474
494
|
Sat, 26 Sep 2020 16:06:34 GMT
|
475
495
|
|
476
496
|
_Version update only_
|
477
497
|
|
478
498
|
## 2.6.4
|
479
|
-
|
480
499
|
Tue, 22 Sep 2020 17:40:07 GMT
|
481
500
|
|
482
501
|
_Version update only_
|
483
502
|
|
484
503
|
## 2.6.3
|
485
|
-
|
486
504
|
Mon, 21 Sep 2020 14:47:09 GMT
|
487
505
|
|
488
506
|
_Version update only_
|
489
507
|
|
490
508
|
## 2.6.2
|
491
|
-
|
492
509
|
Mon, 21 Sep 2020 13:07:43 GMT
|
493
510
|
|
494
511
|
_Version update only_
|
495
512
|
|
496
513
|
## 2.6.1
|
497
|
-
|
498
514
|
Fri, 18 Sep 2020 13:15:08 GMT
|
499
515
|
|
500
516
|
_Version update only_
|
501
517
|
|
502
518
|
## 2.6.0
|
503
|
-
|
504
519
|
Thu, 17 Sep 2020 13:16:12 GMT
|
505
520
|
|
506
521
|
### Updates
|
@@ -509,31 +524,26 @@ Thu, 17 Sep 2020 13:16:12 GMT
|
|
509
524
|
- 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
525
|
|
511
526
|
## 2.5.5
|
512
|
-
|
513
527
|
Wed, 02 Sep 2020 17:42:23 GMT
|
514
528
|
|
515
529
|
_Version update only_
|
516
530
|
|
517
531
|
## 2.5.4
|
518
|
-
|
519
532
|
Fri, 28 Aug 2020 15:34:15 GMT
|
520
533
|
|
521
534
|
_Version update only_
|
522
535
|
|
523
536
|
## 2.5.3
|
524
|
-
|
525
537
|
Wed, 26 Aug 2020 11:46:00 GMT
|
526
538
|
|
527
539
|
_Version update only_
|
528
540
|
|
529
541
|
## 2.5.2
|
530
|
-
|
531
542
|
Tue, 25 Aug 2020 22:09:08 GMT
|
532
543
|
|
533
544
|
_Version update only_
|
534
545
|
|
535
546
|
## 2.5.1
|
536
|
-
|
537
547
|
Mon, 24 Aug 2020 18:13:04 GMT
|
538
548
|
|
539
549
|
### Updates
|
@@ -541,7 +551,6 @@ Mon, 24 Aug 2020 18:13:04 GMT
|
|
541
551
|
- Fix issue with eslintrc config
|
542
552
|
|
543
553
|
## 2.5.0
|
544
|
-
|
545
554
|
Thu, 20 Aug 2020 20:57:09 GMT
|
546
555
|
|
547
556
|
### Updates
|
@@ -549,19 +558,16 @@ Thu, 20 Aug 2020 20:57:09 GMT
|
|
549
558
|
- Switch to ESLint
|
550
559
|
|
551
560
|
## 2.4.2
|
552
|
-
|
553
561
|
Fri, 14 Aug 2020 16:34:09 GMT
|
554
562
|
|
555
563
|
_Version update only_
|
556
564
|
|
557
565
|
## 2.4.1
|
558
|
-
|
559
566
|
Fri, 07 Aug 2020 19:57:43 GMT
|
560
567
|
|
561
568
|
_Version update only_
|
562
569
|
|
563
570
|
## 2.4.0
|
564
|
-
|
565
571
|
Tue, 28 Jul 2020 16:26:23 GMT
|
566
572
|
|
567
573
|
### Updates
|
@@ -569,43 +575,36 @@ Tue, 28 Jul 2020 16:26:23 GMT
|
|
569
575
|
- Trim trailing newlines. Align text with open tag.
|
570
576
|
|
571
577
|
## 2.3.3
|
572
|
-
|
573
578
|
Thu, 23 Jul 2020 12:57:15 GMT
|
574
579
|
|
575
580
|
_Version update only_
|
576
581
|
|
577
582
|
## 2.3.2
|
578
|
-
|
579
583
|
Tue, 14 Jul 2020 23:50:36 GMT
|
580
584
|
|
581
585
|
_Version update only_
|
582
586
|
|
583
587
|
## 2.3.1
|
584
|
-
|
585
588
|
Mon, 13 Jul 2020 18:50:13 GMT
|
586
589
|
|
587
590
|
_Version update only_
|
588
591
|
|
589
592
|
## 2.3.0
|
590
|
-
|
591
593
|
Fri, 10 Jul 2020 17:23:14 GMT
|
592
594
|
|
593
595
|
_Version update only_
|
594
596
|
|
595
597
|
## 2.2.1
|
596
|
-
|
597
598
|
Tue, 07 Jul 2020 14:44:52 GMT
|
598
599
|
|
599
600
|
_Version update only_
|
600
601
|
|
601
602
|
## 2.2.0
|
602
|
-
|
603
603
|
Fri, 19 Jun 2020 14:10:03 GMT
|
604
604
|
|
605
605
|
_Version update only_
|
606
606
|
|
607
607
|
## 2.1.0
|
608
|
-
|
609
608
|
Thu, 28 May 2020 22:48:59 GMT
|
610
609
|
|
611
610
|
### Updates
|
@@ -613,7 +612,6 @@ Thu, 28 May 2020 22:48:59 GMT
|
|
613
612
|
- Add inline sources to properly debug ts files
|
614
613
|
|
615
614
|
## 2.0.0
|
616
|
-
|
617
615
|
Wed, 06 May 2020 13:17:49 GMT
|
618
616
|
|
619
617
|
### Updates
|
@@ -628,25 +626,21 @@ Wed, 06 May 2020 13:17:49 GMT
|
|
628
626
|
- Add extract-api to betools cli
|
629
627
|
|
630
628
|
## 1.14.1
|
631
|
-
|
632
629
|
Wed, 22 Apr 2020 19:04:00 GMT
|
633
630
|
|
634
631
|
_Version update only_
|
635
632
|
|
636
633
|
## 1.14.0
|
637
|
-
|
638
634
|
Tue, 31 Mar 2020 15:44:19 GMT
|
639
635
|
|
640
636
|
_Version update only_
|
641
637
|
|
642
638
|
## 1.13.0
|
643
|
-
|
644
639
|
Wed, 04 Mar 2020 16:16:31 GMT
|
645
640
|
|
646
641
|
_Version update only_
|
647
642
|
|
648
643
|
## 1.12.0
|
649
|
-
|
650
644
|
Wed, 12 Feb 2020 17:45:49 GMT
|
651
645
|
|
652
646
|
### Updates
|
@@ -654,7 +648,6 @@ Wed, 12 Feb 2020 17:45:49 GMT
|
|
654
648
|
- Support for TypeDoc 0.16.8
|
655
649
|
|
656
650
|
## 1.11.0
|
657
|
-
|
658
651
|
Wed, 22 Jan 2020 19:24:11 GMT
|
659
652
|
|
660
653
|
### Updates
|
@@ -663,7 +656,6 @@ Wed, 22 Jan 2020 19:24:11 GMT
|
|
663
656
|
- Update tests to pass '--inspect' instead of '--debug' to Node to support Node 12.
|
664
657
|
|
665
658
|
## 1.10.0
|
666
|
-
|
667
659
|
Tue, 07 Jan 2020 19:44:01 GMT
|
668
660
|
|
669
661
|
### Updates
|
@@ -671,7 +663,6 @@ Tue, 07 Jan 2020 19:44:01 GMT
|
|
671
663
|
- Added tslint-react-set-state-usage to ThirdPartyNotices.md in tools/build
|
672
664
|
|
673
665
|
## 1.9.0
|
674
|
-
|
675
666
|
Tue, 10 Dec 2019 18:08:56 GMT
|
676
667
|
|
677
668
|
### Updates
|
@@ -683,7 +674,6 @@ Tue, 10 Dec 2019 18:08:56 GMT
|
|
683
674
|
- Replaced the noUnusedLocals tsc option with no-unused-variable lint rule.
|
684
675
|
|
685
676
|
## 1.8.0
|
686
|
-
|
687
677
|
Fri, 22 Nov 2019 14:03:34 GMT
|
688
678
|
|
689
679
|
### Updates
|
@@ -693,7 +683,6 @@ Fri, 22 Nov 2019 14:03:34 GMT
|
|
693
683
|
- Update API-extractor to 5.7.4 to consume a fix for Node 12.
|
694
684
|
|
695
685
|
## 1.7.0
|
696
|
-
|
697
686
|
Fri, 01 Nov 2019 13:28:37 GMT
|
698
687
|
|
699
688
|
### Updates
|
@@ -703,13 +692,11 @@ Fri, 01 Nov 2019 13:28:37 GMT
|
|
703
692
|
- Update cli to better match script functionality.
|
704
693
|
|
705
694
|
## 1.6.0
|
706
|
-
|
707
695
|
Wed, 09 Oct 2019 20:28:42 GMT
|
708
696
|
|
709
697
|
_Version update only_
|
710
698
|
|
711
699
|
## 1.5.0
|
712
|
-
|
713
700
|
Mon, 30 Sep 2019 22:28:48 GMT
|
714
701
|
|
715
702
|
### Updates
|
@@ -718,13 +705,11 @@ Mon, 30 Sep 2019 22:28:48 GMT
|
|
718
705
|
- Upgrade to TypeScript 3.6.2
|
719
706
|
|
720
707
|
## 1.4.0
|
721
|
-
|
722
708
|
Tue, 10 Sep 2019 12:09:49 GMT
|
723
709
|
|
724
710
|
_Version update only_
|
725
711
|
|
726
712
|
## 1.3.0
|
727
|
-
|
728
713
|
Tue, 13 Aug 2019 20:25:53 GMT
|
729
714
|
|
730
715
|
### Updates
|
@@ -732,7 +717,6 @@ Tue, 13 Aug 2019 20:25:53 GMT
|
|
732
717
|
- Update README and code cleanup
|
733
718
|
|
734
719
|
## 1.2.0
|
735
|
-
|
736
720
|
Wed, 24 Jul 2019 11:47:26 GMT
|
737
721
|
|
738
722
|
### Updates
|
@@ -741,16 +725,14 @@ Wed, 24 Jul 2019 11:47:26 GMT
|
|
741
725
|
- Closing STDIN no longer kills child processes created using simpleSpawn
|
742
726
|
|
743
727
|
## 1.1.0
|
744
|
-
|
745
728
|
Mon, 01 Jul 2019 19:04:29 GMT
|
746
729
|
|
747
730
|
### Updates
|
748
731
|
|
749
|
-
- Added
|
732
|
+
- Added *test* to list of excluded dirs during docs script
|
750
733
|
- Update to TypeScript 3.5
|
751
734
|
|
752
735
|
## 1.0.0
|
753
|
-
|
754
736
|
Mon, 03 Jun 2019 18:09:39 GMT
|
755
737
|
|
756
738
|
### Updates
|
@@ -762,7 +744,6 @@ Mon, 03 Jun 2019 18:09:39 GMT
|
|
762
744
|
- Update the standard configuration for extract-api to turn off ae-forgotten-export warnings.
|
763
745
|
|
764
746
|
## 0.191.0
|
765
|
-
|
766
747
|
Mon, 13 May 2019 15:52:05 GMT
|
767
748
|
|
768
749
|
### Updates
|
@@ -780,13 +761,11 @@ Mon, 13 May 2019 15:52:05 GMT
|
|
780
761
|
- Update the version of nyc to 14.0.0
|
781
762
|
|
782
763
|
## 0.190.0
|
783
|
-
|
784
764
|
Thu, 14 Mar 2019 14:26:49 GMT
|
785
765
|
|
786
766
|
_Version update only_
|
787
767
|
|
788
768
|
## 0.189.0
|
789
|
-
|
790
769
|
Wed, 06 Mar 2019 15:41:22 GMT
|
791
770
|
|
792
771
|
### Updates
|
@@ -801,43 +780,36 @@ Wed, 06 Mar 2019 15:41:22 GMT
|
|
801
780
|
- Upgrade to TypeScript 3.2.2
|
802
781
|
|
803
782
|
## 0.188.0
|
804
|
-
|
805
783
|
Wed, 16 Jan 2019 16:36:09 GMT
|
806
784
|
|
807
785
|
_Version update only_
|
808
786
|
|
809
787
|
## 0.187.0
|
810
|
-
|
811
788
|
Tue, 15 Jan 2019 15:18:59 GMT
|
812
789
|
|
813
790
|
_Version update only_
|
814
791
|
|
815
792
|
## 0.186.0
|
816
|
-
|
817
793
|
Mon, 14 Jan 2019 23:09:10 GMT
|
818
794
|
|
819
795
|
_Version update only_
|
820
796
|
|
821
797
|
## 0.185.0
|
822
|
-
|
823
798
|
Fri, 11 Jan 2019 18:29:00 GMT
|
824
799
|
|
825
800
|
_Version update only_
|
826
801
|
|
827
802
|
## 0.184.0
|
828
|
-
|
829
803
|
Thu, 10 Jan 2019 22:46:17 GMT
|
830
804
|
|
831
805
|
_Version update only_
|
832
806
|
|
833
807
|
## 0.183.0
|
834
|
-
|
835
808
|
Mon, 07 Jan 2019 21:49:21 GMT
|
836
809
|
|
837
810
|
_Version update only_
|
838
811
|
|
839
812
|
## 0.182.0
|
840
|
-
|
841
813
|
Mon, 07 Jan 2019 13:31:34 GMT
|
842
814
|
|
843
815
|
### Updates
|
@@ -846,7 +818,6 @@ Mon, 07 Jan 2019 13:31:34 GMT
|
|
846
818
|
- Move to Node 10
|
847
819
|
|
848
820
|
## 0.181.0
|
849
|
-
|
850
821
|
Fri, 04 Jan 2019 13:02:40 GMT
|
851
822
|
|
852
823
|
### Updates
|
@@ -854,49 +825,41 @@ Fri, 04 Jan 2019 13:02:40 GMT
|
|
854
825
|
- Move to Node 10
|
855
826
|
|
856
827
|
## 0.180.0
|
857
|
-
|
858
828
|
Wed, 02 Jan 2019 15:18:23 GMT
|
859
829
|
|
860
830
|
_Version update only_
|
861
831
|
|
862
832
|
## 0.179.0
|
863
|
-
|
864
833
|
Wed, 19 Dec 2018 18:26:14 GMT
|
865
834
|
|
866
835
|
_Version update only_
|
867
836
|
|
868
837
|
## 0.178.0
|
869
|
-
|
870
838
|
Thu, 13 Dec 2018 22:06:10 GMT
|
871
839
|
|
872
840
|
_Version update only_
|
873
841
|
|
874
842
|
## 0.177.0
|
875
|
-
|
876
843
|
Wed, 12 Dec 2018 17:21:31 GMT
|
877
844
|
|
878
845
|
_Version update only_
|
879
846
|
|
880
847
|
## 0.176.0
|
881
|
-
|
882
848
|
Mon, 10 Dec 2018 21:19:45 GMT
|
883
849
|
|
884
850
|
_Version update only_
|
885
851
|
|
886
852
|
## 0.175.0
|
887
|
-
|
888
853
|
Mon, 10 Dec 2018 17:08:55 GMT
|
889
854
|
|
890
855
|
_Version update only_
|
891
856
|
|
892
857
|
## 0.174.0
|
893
|
-
|
894
858
|
Mon, 10 Dec 2018 13:24:09 GMT
|
895
859
|
|
896
860
|
_Version update only_
|
897
861
|
|
898
862
|
## 0.173.0
|
899
|
-
|
900
863
|
Thu, 06 Dec 2018 22:03:29 GMT
|
901
864
|
|
902
865
|
### Updates
|
@@ -904,13 +867,11 @@ Thu, 06 Dec 2018 22:03:29 GMT
|
|
904
867
|
- Custom imodelJs noDirectImport lint rule implemented, noDuplicateImport lint rule turned on.
|
905
868
|
|
906
869
|
## 0.172.0
|
907
|
-
|
908
870
|
Tue, 04 Dec 2018 17:24:39 GMT
|
909
871
|
|
910
872
|
_Version update only_
|
911
873
|
|
912
874
|
## 0.171.0
|
913
|
-
|
914
875
|
Mon, 03 Dec 2018 18:52:58 GMT
|
915
876
|
|
916
877
|
### Updates
|
@@ -918,13 +879,11 @@ Mon, 03 Dec 2018 18:52:58 GMT
|
|
918
879
|
- Specify PromisedAssertion as a valid type to await on
|
919
880
|
|
920
881
|
## 0.170.0
|
921
|
-
|
922
882
|
Mon, 26 Nov 2018 19:38:42 GMT
|
923
883
|
|
924
884
|
_Version update only_
|
925
885
|
|
926
886
|
## 0.169.0
|
927
|
-
|
928
887
|
Tue, 20 Nov 2018 16:17:15 GMT
|
929
888
|
|
930
889
|
### Updates
|
@@ -932,13 +891,11 @@ Tue, 20 Nov 2018 16:17:15 GMT
|
|
932
891
|
- Turn on tslint no-floating-promises rule
|
933
892
|
|
934
893
|
## 0.168.0
|
935
|
-
|
936
894
|
Sat, 17 Nov 2018 14:20:11 GMT
|
937
895
|
|
938
896
|
_Version update only_
|
939
897
|
|
940
898
|
## 0.167.0
|
941
|
-
|
942
899
|
Fri, 16 Nov 2018 21:45:44 GMT
|
943
900
|
|
944
901
|
### Updates
|
@@ -948,19 +905,16 @@ Fri, 16 Nov 2018 21:45:44 GMT
|
|
948
905
|
- Turn on tslint no-return-await rule
|
949
906
|
|
950
907
|
## 0.166.0
|
951
|
-
|
952
908
|
Mon, 12 Nov 2018 16:42:10 GMT
|
953
909
|
|
954
910
|
_Version update only_
|
955
911
|
|
956
912
|
## 0.165.0
|
957
|
-
|
958
913
|
Mon, 12 Nov 2018 15:47:00 GMT
|
959
914
|
|
960
915
|
_Version update only_
|
961
916
|
|
962
917
|
## 0.164.0
|
963
|
-
|
964
918
|
Thu, 08 Nov 2018 17:59:20 GMT
|
965
919
|
|
966
920
|
### Updates
|
@@ -970,7 +924,6 @@ Thu, 08 Nov 2018 17:59:20 GMT
|
|
970
924
|
- Add "skipLibCheck" flag to avoid checking third-party declarations
|
971
925
|
|
972
926
|
## 0.163.0
|
973
|
-
|
974
927
|
Wed, 31 Oct 2018 20:55:37 GMT
|
975
928
|
|
976
929
|
### Updates
|
@@ -978,7 +931,6 @@ Wed, 31 Oct 2018 20:55:37 GMT
|
|
978
931
|
- Remove the cover script in favor of an nycrc configuration file.
|
979
932
|
|
980
933
|
## 0.162.0
|
981
|
-
|
982
934
|
Wed, 24 Oct 2018 19:20:06 GMT
|
983
935
|
|
984
936
|
### Updates
|
@@ -986,31 +938,26 @@ Wed, 24 Oct 2018 19:20:06 GMT
|
|
986
938
|
- Fail rush docs on invalid tags
|
987
939
|
|
988
940
|
## 0.161.0
|
989
|
-
|
990
941
|
Fri, 19 Oct 2018 13:04:14 GMT
|
991
942
|
|
992
943
|
_Version update only_
|
993
944
|
|
994
945
|
## 0.160.0
|
995
|
-
|
996
946
|
Wed, 17 Oct 2018 18:18:38 GMT
|
997
947
|
|
998
948
|
_Version update only_
|
999
949
|
|
1000
950
|
## 0.159.0
|
1001
|
-
|
1002
951
|
Tue, 16 Oct 2018 14:09:09 GMT
|
1003
952
|
|
1004
953
|
_Version update only_
|
1005
954
|
|
1006
955
|
## 0.158.0
|
1007
|
-
|
1008
956
|
Mon, 15 Oct 2018 19:36:09 GMT
|
1009
957
|
|
1010
958
|
_Version update only_
|
1011
959
|
|
1012
960
|
## 0.157.0
|
1013
|
-
|
1014
961
|
Sun, 14 Oct 2018 17:20:06 GMT
|
1015
962
|
|
1016
963
|
### Updates
|
@@ -1018,9 +965,9 @@ Sun, 14 Oct 2018 17:20:06 GMT
|
|
1018
965
|
- Fixing scripts for linux
|
1019
966
|
|
1020
967
|
## 0.156.0
|
1021
|
-
|
1022
968
|
Fri, 12 Oct 2018 23:00:10 GMT
|
1023
969
|
|
1024
970
|
### Updates
|
1025
971
|
|
1026
972
|
- Initial release
|
973
|
+
|
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,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "@itwin/build-tools",
|
3
|
-
"version": "3.0.
|
3
|
+
"version": "3.0.1",
|
4
4
|
"description": "Bentley build tools",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": {
|
7
7
|
"type": "git",
|
8
|
-
"url": "https://github.com/
|
8
|
+
"url": "https://github.com/iTwin/itwinjs-core/tree/master/tools/build"
|
9
9
|
},
|
10
10
|
"bin": {
|
11
11
|
"betools": "bin/betools.js"
|
@@ -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.1",
|
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
|
-
}
|