@xyd-js/sources 0.1.1-xyd.5 → 0.1.1-xyd.86

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 CHANGED
@@ -1,5 +1,683 @@
1
1
  # @xyd-js/sources
2
2
 
3
+ ## 0.1.1-xyd.86
4
+
5
+ ### Patch Changes
6
+
7
+ - update all packages
8
+ - Updated dependencies
9
+ - @xyd-js/uniform@0.1.0-xyd.98
10
+
11
+ ## 0.1.1-xyd.85
12
+
13
+ ### Patch Changes
14
+
15
+ - update all packages
16
+ - Updated dependencies
17
+ - @xyd-js/uniform@0.1.0-xyd.97
18
+
19
+ ## 0.1.1-xyd.84
20
+
21
+ ### Patch Changes
22
+
23
+ - update all packages
24
+ - Updated dependencies
25
+ - @xyd-js/uniform@0.1.0-xyd.96
26
+
27
+ ## 0.1.1-xyd.83
28
+
29
+ ### Patch Changes
30
+
31
+ - update all packages
32
+ - Updated dependencies
33
+ - @xyd-js/uniform@0.1.0-xyd.95
34
+
35
+ ## 0.1.1-xyd.82
36
+
37
+ ### Patch Changes
38
+
39
+ - update all packages
40
+ - Updated dependencies
41
+ - @xyd-js/uniform@0.1.0-xyd.94
42
+
43
+ ## 0.1.1-xyd.81
44
+
45
+ ### Patch Changes
46
+
47
+ - update all packages
48
+ - Updated dependencies
49
+ - @xyd-js/uniform@0.1.0-xyd.93
50
+
51
+ ## 0.1.1-xyd.80
52
+
53
+ ### Patch Changes
54
+
55
+ - update all packages
56
+ - Updated dependencies
57
+ - @xyd-js/uniform@0.1.0-xyd.92
58
+
59
+ ## 0.1.1-xyd.79
60
+
61
+ ### Patch Changes
62
+
63
+ - update all packages
64
+ - Updated dependencies
65
+ - @xyd-js/uniform@0.1.0-xyd.91
66
+
67
+ ## 0.1.1-xyd.78
68
+
69
+ ### Patch Changes
70
+
71
+ - update all packages
72
+ - Updated dependencies
73
+ - @xyd-js/uniform@0.1.0-xyd.90
74
+
75
+ ## 0.1.1-xyd.77
76
+
77
+ ### Patch Changes
78
+
79
+ - update all packages
80
+ - Updated dependencies
81
+ - @xyd-js/uniform@0.1.0-xyd.89
82
+
83
+ ## 0.1.1-xyd.76
84
+
85
+ ### Patch Changes
86
+
87
+ - update all packages
88
+ - Updated dependencies
89
+ - @xyd-js/uniform@0.1.0-xyd.88
90
+
91
+ ## 0.1.1-xyd.75
92
+
93
+ ### Patch Changes
94
+
95
+ - update all packages
96
+ - Updated dependencies
97
+ - @xyd-js/uniform@0.1.0-xyd.87
98
+
99
+ ## 0.1.1-xyd.74
100
+
101
+ ### Patch Changes
102
+
103
+ - update all packages
104
+ - Updated dependencies
105
+ - @xyd-js/uniform@0.1.0-xyd.86
106
+
107
+ ## 0.1.1-xyd.73
108
+
109
+ ### Patch Changes
110
+
111
+ - update all packages
112
+ - Updated dependencies
113
+ - @xyd-js/uniform@0.1.0-xyd.85
114
+
115
+ ## 0.1.1-xyd.72
116
+
117
+ ### Patch Changes
118
+
119
+ - update all packages
120
+ - Updated dependencies
121
+ - @xyd-js/uniform@0.1.0-xyd.84
122
+
123
+ ## 0.1.1-xyd.71
124
+
125
+ ### Patch Changes
126
+
127
+ - update all packages
128
+ - Updated dependencies
129
+ - @xyd-js/uniform@0.1.0-xyd.83
130
+
131
+ ## 0.1.1-xyd.70
132
+
133
+ ### Patch Changes
134
+
135
+ - update all packages
136
+ - Updated dependencies
137
+ - @xyd-js/uniform@0.1.0-xyd.82
138
+
139
+ ## 0.1.1-xyd.69
140
+
141
+ ### Patch Changes
142
+
143
+ - update all packages
144
+ - update all packages
145
+ - Updated dependencies
146
+ - Updated dependencies
147
+ - @xyd-js/uniform@0.1.0-xyd.81
148
+
149
+ ## 0.1.1-xyd.68
150
+
151
+ ### Patch Changes
152
+
153
+ - update all packages
154
+ - Updated dependencies
155
+ - @xyd-js/uniform@0.1.0-xyd.80
156
+
157
+ ## 0.1.1-xyd.67
158
+
159
+ ### Patch Changes
160
+
161
+ - update all packages
162
+ - Updated dependencies
163
+ - @xyd-js/uniform@0.1.0-xyd.79
164
+
165
+ ## 0.1.1-xyd.66
166
+
167
+ ### Patch Changes
168
+
169
+ - update all packages
170
+ - Updated dependencies
171
+ - @xyd-js/uniform@0.1.0-xyd.78
172
+
173
+ ## 0.1.1-xyd.65
174
+
175
+ ### Patch Changes
176
+
177
+ - update all packages
178
+ - Updated dependencies
179
+ - @xyd-js/uniform@0.1.0-xyd.77
180
+
181
+ ## 0.1.1-xyd.64
182
+
183
+ ### Patch Changes
184
+
185
+ - update all packages
186
+ - Updated dependencies
187
+ - @xyd-js/uniform@0.1.0-xyd.76
188
+
189
+ ## 0.1.1-xyd.63
190
+
191
+ ### Patch Changes
192
+
193
+ - update all packages
194
+ - Updated dependencies
195
+ - @xyd-js/uniform@0.1.0-xyd.75
196
+
197
+ ## 0.1.1-xyd.62
198
+
199
+ ### Patch Changes
200
+
201
+ - update all packages
202
+ - update all packages
203
+ - Updated dependencies
204
+ - Updated dependencies
205
+ - @xyd-js/uniform@0.1.0-xyd.74
206
+
207
+ ## 0.1.1-xyd.61
208
+
209
+ ### Patch Changes
210
+
211
+ - update all packages
212
+ - Updated dependencies
213
+ - @xyd-js/uniform@0.1.0-xyd.73
214
+
215
+ ## 0.1.1-xyd.60
216
+
217
+ ### Patch Changes
218
+
219
+ - update all packages
220
+ - Updated dependencies
221
+ - @xyd-js/uniform@0.1.0-xyd.72
222
+
223
+ ## 0.1.1-xyd.59
224
+
225
+ ### Patch Changes
226
+
227
+ - update all packages
228
+ - Updated dependencies
229
+ - @xyd-js/uniform@0.1.0-xyd.71
230
+
231
+ ## 0.1.1-xyd.58
232
+
233
+ ### Patch Changes
234
+
235
+ - update all packages
236
+ - Updated dependencies
237
+ - @xyd-js/uniform@0.1.0-xyd.70
238
+
239
+ ## 0.1.1-xyd.57
240
+
241
+ ### Patch Changes
242
+
243
+ - update all packages
244
+ - Updated dependencies
245
+ - @xyd-js/uniform@0.1.0-xyd.69
246
+
247
+ ## 0.1.1-xyd.56
248
+
249
+ ### Patch Changes
250
+
251
+ - update all packages
252
+ - update all packages
253
+ - Updated dependencies
254
+ - Updated dependencies
255
+ - @xyd-js/uniform@0.1.0-xyd.68
256
+
257
+ ## 0.1.1-xyd.55
258
+
259
+ ### Patch Changes
260
+
261
+ - update all packages
262
+ - Updated dependencies
263
+ - @xyd-js/uniform@0.1.0-xyd.67
264
+
265
+ ## 0.1.1-xyd.54
266
+
267
+ ### Patch Changes
268
+
269
+ - update all packages
270
+ - Updated dependencies
271
+ - @xyd-js/uniform@0.1.0-xyd.66
272
+
273
+ ## 0.1.1-xyd.53
274
+
275
+ ### Patch Changes
276
+
277
+ - update all packages
278
+ - Updated dependencies
279
+ - @xyd-js/uniform@0.1.0-xyd.65
280
+
281
+ ## 0.1.1-xyd.52
282
+
283
+ ### Patch Changes
284
+
285
+ - update all packages
286
+ - Updated dependencies
287
+ - @xyd-js/uniform@0.1.0-xyd.64
288
+
289
+ ## 0.1.1-xyd.51
290
+
291
+ ### Patch Changes
292
+
293
+ - update all packages
294
+ - Updated dependencies
295
+ - @xyd-js/uniform@0.1.0-xyd.63
296
+
297
+ ## 0.1.1-xyd.50
298
+
299
+ ### Patch Changes
300
+
301
+ - update all packages
302
+ - Updated dependencies
303
+ - @xyd-js/uniform@0.1.0-xyd.62
304
+
305
+ ## 0.1.1-xyd.49
306
+
307
+ ### Patch Changes
308
+
309
+ - update all packages
310
+ - Updated dependencies
311
+ - @xyd-js/uniform@0.1.0-xyd.61
312
+
313
+ ## 0.1.1-xyd.48
314
+
315
+ ### Patch Changes
316
+
317
+ - update all packages
318
+ - Updated dependencies
319
+ - @xyd-js/uniform@0.1.0-xyd.60
320
+
321
+ ## 0.1.1-xyd.47
322
+
323
+ ### Patch Changes
324
+
325
+ - update all packages
326
+ - Updated dependencies
327
+ - @xyd-js/uniform@0.1.0-xyd.59
328
+
329
+ ## 0.1.1-xyd.46
330
+
331
+ ### Patch Changes
332
+
333
+ - update all packages
334
+ - Updated dependencies
335
+ - @xyd-js/uniform@0.1.0-xyd.58
336
+
337
+ ## 0.1.1-xyd.45
338
+
339
+ ### Patch Changes
340
+
341
+ - update all packages
342
+ - update all packages
343
+ - update all packages
344
+ - update all packages
345
+ - update all packages
346
+ - update all packages
347
+ - Updated dependencies
348
+ - Updated dependencies
349
+ - Updated dependencies
350
+ - Updated dependencies
351
+ - Updated dependencies
352
+ - Updated dependencies
353
+ - @xyd-js/uniform@0.1.0-xyd.57
354
+
355
+ ## 0.1.1-xyd.44
356
+
357
+ ### Patch Changes
358
+
359
+ - update all packages
360
+ - Updated dependencies
361
+ - @xyd-js/uniform@0.1.0-xyd.56
362
+
363
+ ## 0.1.1-xyd.43
364
+
365
+ ### Patch Changes
366
+
367
+ - update all packages
368
+ - Updated dependencies
369
+ - @xyd-js/uniform@0.1.0-xyd.55
370
+
371
+ ## 0.1.1-xyd.42
372
+
373
+ ### Patch Changes
374
+
375
+ - update all packages
376
+ - Updated dependencies
377
+ - @xyd-js/uniform@0.1.0-xyd.54
378
+
379
+ ## 0.1.1-xyd.41
380
+
381
+ ### Patch Changes
382
+
383
+ - update all packages
384
+ - Updated dependencies
385
+ - @xyd-js/uniform@0.1.0-xyd.53
386
+
387
+ ## 0.1.1-xyd.40
388
+
389
+ ### Patch Changes
390
+
391
+ - update all packages
392
+ - Updated dependencies
393
+ - @xyd-js/uniform@0.1.0-xyd.52
394
+
395
+ ## 0.1.1-xyd.39
396
+
397
+ ### Patch Changes
398
+
399
+ - update all packages
400
+ - Updated dependencies
401
+ - @xyd-js/uniform@0.1.0-xyd.51
402
+
403
+ ## 0.1.1-xyd.38
404
+
405
+ ### Patch Changes
406
+
407
+ - update all packages
408
+ - Updated dependencies
409
+ - @xyd-js/uniform@0.1.0-xyd.50
410
+
411
+ ## 0.1.1-xyd.37
412
+
413
+ ### Patch Changes
414
+
415
+ - update all packages
416
+ - Updated dependencies
417
+ - @xyd-js/uniform@0.1.0-xyd.49
418
+
419
+ ## 0.1.1-xyd.36
420
+
421
+ ### Patch Changes
422
+
423
+ - update all packages
424
+ - Updated dependencies
425
+ - @xyd-js/uniform@0.1.0-xyd.48
426
+
427
+ ## 0.1.1-xyd.35
428
+
429
+ ### Patch Changes
430
+
431
+ - update all packages
432
+ - Updated dependencies
433
+ - @xyd-js/uniform@0.1.0-xyd.47
434
+
435
+ ## 0.1.1-xyd.34
436
+
437
+ ### Patch Changes
438
+
439
+ - update all packages
440
+ - Updated dependencies
441
+ - @xyd-js/uniform@0.1.0-xyd.46
442
+
443
+ ## 0.1.1-xyd.33
444
+
445
+ ### Patch Changes
446
+
447
+ - update all packages
448
+ - Updated dependencies
449
+ - @xyd-js/uniform@0.1.0-xyd.45
450
+
451
+ ## 0.1.1-xyd.32
452
+
453
+ ### Patch Changes
454
+
455
+ - update all packages
456
+ - Updated dependencies
457
+ - @xyd-js/uniform@0.1.0-xyd.44
458
+
459
+ ## 0.1.1-xyd.31
460
+
461
+ ### Patch Changes
462
+
463
+ - update all packages
464
+ - Updated dependencies
465
+ - @xyd-js/uniform@0.1.0-xyd.43
466
+
467
+ ## 0.1.1-xyd.30
468
+
469
+ ### Patch Changes
470
+
471
+ - update all packages
472
+ - Updated dependencies
473
+ - @xyd-js/uniform@0.1.0-xyd.42
474
+
475
+ ## 0.1.1-xyd.29
476
+
477
+ ### Patch Changes
478
+
479
+ - update all packages
480
+ - Updated dependencies
481
+ - @xyd-js/uniform@0.1.0-xyd.41
482
+
483
+ ## 0.1.1-xyd.28
484
+
485
+ ### Patch Changes
486
+
487
+ - update all packages
488
+ - Updated dependencies
489
+ - @xyd-js/uniform@0.1.0-xyd.40
490
+
491
+ ## 0.1.1-xyd.27
492
+
493
+ ### Patch Changes
494
+
495
+ - update all packages
496
+ - Updated dependencies
497
+ - @xyd-js/uniform@0.1.0-xyd.39
498
+
499
+ ## 0.1.1-xyd.26
500
+
501
+ ### Patch Changes
502
+
503
+ - update all packages
504
+ - Updated dependencies
505
+ - @xyd-js/uniform@0.1.0-xyd.38
506
+
507
+ ## 0.1.1-xyd.25
508
+
509
+ ### Patch Changes
510
+
511
+ - update all packages
512
+ - Updated dependencies
513
+ - @xyd-js/uniform@0.1.0-xyd.37
514
+
515
+ ## 0.1.1-xyd.24
516
+
517
+ ### Patch Changes
518
+
519
+ - update all packages
520
+ - Updated dependencies
521
+ - @xyd-js/uniform@0.1.0-xyd.36
522
+
523
+ ## 0.1.1-xyd.23
524
+
525
+ ### Patch Changes
526
+
527
+ - update all packages
528
+ - Updated dependencies
529
+ - @xyd-js/uniform@0.1.0-xyd.35
530
+
531
+ ## 0.1.1-xyd.22
532
+
533
+ ### Patch Changes
534
+
535
+ - update all packages
536
+ - Updated dependencies
537
+ - @xyd-js/uniform@0.1.0-xyd.34
538
+
539
+ ## 0.1.1-xyd.21
540
+
541
+ ### Patch Changes
542
+
543
+ - update all packages
544
+ - update all packages
545
+ - Updated dependencies
546
+ - Updated dependencies
547
+ - @xyd-js/uniform@0.1.0-xyd.33
548
+
549
+ ## 0.1.1-xyd.20
550
+
551
+ ### Patch Changes
552
+
553
+ - update all packages
554
+ - Updated dependencies
555
+ - @xyd-js/uniform@0.1.0-xyd.32
556
+
557
+ ## 0.1.1-xyd.19
558
+
559
+ ### Patch Changes
560
+
561
+ - update all packages
562
+ - update all packages
563
+ - Updated dependencies
564
+ - Updated dependencies
565
+ - @xyd-js/uniform@0.1.0-xyd.31
566
+
567
+ ## 0.1.1-xyd.18
568
+
569
+ ### Patch Changes
570
+
571
+ - update all packages
572
+ - update all packages
573
+ - Updated dependencies
574
+ - Updated dependencies
575
+ - @xyd-js/uniform@0.1.0-xyd.30
576
+
577
+ ## 0.1.1-xyd.17
578
+
579
+ ### Patch Changes
580
+
581
+ - update all packages
582
+ - update all packages
583
+ - Updated dependencies
584
+ - Updated dependencies
585
+ - @xyd-js/uniform@0.1.0-xyd.29
586
+
587
+ ## 0.1.1-xyd.16
588
+
589
+ ### Patch Changes
590
+
591
+ - update all packages
592
+ - update all packages
593
+ - Updated dependencies
594
+ - Updated dependencies
595
+ - @xyd-js/uniform@0.1.0-xyd.28
596
+
597
+ ## 0.1.1-xyd.15
598
+
599
+ ### Patch Changes
600
+
601
+ - update all packages
602
+ - update all packages
603
+ - Updated dependencies
604
+ - Updated dependencies
605
+ - @xyd-js/uniform@0.1.0-xyd.27
606
+
607
+ ## 0.1.1-xyd.14
608
+
609
+ ### Patch Changes
610
+
611
+ - update all packages
612
+ - update all packages
613
+ - Updated dependencies
614
+ - Updated dependencies
615
+ - @xyd-js/uniform@0.1.0-xyd.26
616
+
617
+ ## 0.1.1-xyd.13
618
+
619
+ ### Patch Changes
620
+
621
+ - update all packages
622
+ - Updated dependencies
623
+ - @xyd-js/uniform@0.1.0-xyd.25
624
+
625
+ ## 0.1.1-xyd.12
626
+
627
+ ### Patch Changes
628
+
629
+ - update all packages
630
+ - Updated dependencies
631
+ - @xyd-js/uniform@0.1.0-xyd.24
632
+
633
+ ## 0.1.1-xyd.11
634
+
635
+ ### Patch Changes
636
+
637
+ - update all packages
638
+ - Updated dependencies
639
+ - @xyd-js/uniform@0.1.0-xyd.23
640
+
641
+ ## 0.1.1-xyd.10
642
+
643
+ ### Patch Changes
644
+
645
+ - update
646
+ - Updated dependencies
647
+ - @xyd-js/uniform@0.1.0-xyd.22
648
+
649
+ ## 0.1.1-xyd.9
650
+
651
+ ### Patch Changes
652
+
653
+ - update
654
+ - Updated dependencies
655
+ - @xyd-js/uniform@0.1.0-xyd.21
656
+
657
+ ## 0.1.1-xyd.8
658
+
659
+ ### Patch Changes
660
+
661
+ - update
662
+ - Updated dependencies
663
+ - @xyd-js/uniform@0.1.0-xyd.20
664
+
665
+ ## 0.1.1-xyd.7
666
+
667
+ ### Patch Changes
668
+
669
+ - update
670
+ - Updated dependencies
671
+ - @xyd-js/uniform@0.1.0-xyd.19
672
+
673
+ ## 0.1.1-xyd.6
674
+
675
+ ### Patch Changes
676
+
677
+ - update
678
+ - Updated dependencies
679
+ - @xyd-js/uniform@0.1.0-xyd.18
680
+
3
681
  ## 0.1.1-xyd.5
4
682
 
5
683
  ### Patch Changes
@@ -22,14 +22,12 @@ export interface Settings {
22
22
  plugins?: Plugins
23
23
 
24
24
  /**
25
- * @unsafe
26
25
  *
27
26
  * Redirects configuration
28
27
  */
29
28
  redirects?: Redirects[]
30
29
 
31
30
  /**
32
- * @unsafe
33
31
  * SEO configuration
34
32
  */
35
33
  seo?: SEO
@@ -575,7 +573,6 @@ export interface Engine {
575
573
  paths?: EnginePaths
576
574
 
577
575
  /**
578
- * @unsafe
579
576
  *
580
577
  * Uniform configuration
581
578
  *
@@ -1,4 +1,4 @@
1
- import {describe, it} from 'vitest'
1
+ import {describe, expect, it} from 'vitest'
2
2
 
3
3
  import type {Test} from "./types";
4
4
  import {testSourcesToUniform} from "./utils";
@@ -8,6 +8,8 @@ const FORCE_SAVE = TEST_DEBUG || process.env.FORCE_SAFE === "true";
8
8
  const SAVE_UNIFORM = TEST_DEBUG || process.env.SAVE_UNIFORM === "true";
9
9
  const SAVE_TYPEDOC = TEST_DEBUG || process.env.SAVE_UNIFORM === "true";
10
10
 
11
+ // TODO: tests in the future
12
+
11
13
  const tests: Test[] = [
12
14
  // {
13
15
  // id: "1.settings",
@@ -22,19 +24,19 @@ const tests: Test[] = [
22
24
  // saveTypedoc: SAVE_TYPEDOC,
23
25
  // multiOutput: true
24
26
  // },
25
- {
26
- id: "1.settings",
27
- file: "-1.typescript",
28
- description: "TypeScript: example",
29
- miniUniformRoot: "Metadata",
30
- entryPoints: [
31
- "src/settings2.ts"
32
- ],
33
- forceSave: FORCE_SAVE,
34
- saveUniform: SAVE_UNIFORM,
35
- saveTypedoc: SAVE_TYPEDOC,
36
- multiOutput: true
37
- },
27
+ // {
28
+ // id: "1.settings",
29
+ // file: "-1.typescript",
30
+ // description: "TypeScript: example",
31
+ // miniUniformRoot: "Metadata",
32
+ // entryPoints: [
33
+ // "src/settings2.ts"
34
+ // ],
35
+ // forceSave: FORCE_SAVE,
36
+ // saveUniform: SAVE_UNIFORM,
37
+ // saveTypedoc: SAVE_TYPEDOC,
38
+ // multiOutput: true
39
+ // },
38
40
 
39
41
  // {
40
42
  // id: "1.flat-interface",
@@ -146,10 +148,16 @@ const tests: Test[] = [
146
148
  // },
147
149
  ]
148
150
 
149
- describe("sourcesToUniform", () => {
150
- tests.forEach((test) => {
151
- it(`[${test.id} (${test.file})]: ${test.description}`, async () => {
152
- await testSourcesToUniform(test);
153
- });
154
- });
155
- });
151
+ // describe("sourcesToUniform", () => {
152
+ // tests.forEach((test) => {
153
+ // it(`[${test.id} (${test.file})]: ${test.description}`, async () => {
154
+ // await testSourcesToUniform(test);
155
+ // });
156
+ // });
157
+ // });
158
+
159
+ describe("sourcesToUniform TODO", () => {
160
+ it("TODO", async () => {
161
+ expect(true).toBe(true)
162
+ })
163
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyd-js/sources",
3
- "version": "0.1.1-xyd.5",
3
+ "version": "0.1.1-xyd.86",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",
@@ -17,12 +17,13 @@
17
17
  }
18
18
  },
19
19
  "dependencies": {
20
- "@types/react": "^19.0.0",
20
+ "typescript": "^5.8.3",
21
+ "@types/react": "^19.1.0",
21
22
  "react-docgen": "^7.1.1",
22
23
  "typedoc": "^0.28.1"
23
24
  },
24
25
  "peerDependencies": {
25
- "@xyd-js/uniform": "0.1.0-xyd.17"
26
+ "@xyd-js/uniform": "0.1.0-xyd.98"
26
27
  },
27
28
  "devDependencies": {
28
29
  "@vitest/coverage-v8": "^1.3.1",
@@ -2,94 +2,105 @@ import { describe, it, expect, beforeAll, afterAll } from 'vitest';
2
2
  import { SignatureTextLoader, MultiSignatureLoader } from '../SignatureText';
3
3
  import * as path from 'node:path';
4
4
  import * as fs from 'node:fs';
5
- import { sourcesToUniform, sourcesToUniformV2 } from '..';
5
+ import { sourcesToUniformV2 } from '..';
6
6
  import { uniformToReactUniform } from '../../react/uniformToReactUniform';
7
7
  import { TypeDocReferenceContext } from '@xyd-js/uniform';
8
8
  import { Reference } from '@xyd-js/uniform';
9
9
 
10
- describe('SignatureText', () => {
11
- const fixturesBasePath = path.resolve("packages/ts/__fixtures__")
12
-
13
- const testFilePath = path.join(fixturesBasePath, 'test-file.ts');
14
- const outputFilePath = path.join(fixturesBasePath, 'references-output.json');
15
- const outputFilePathReact = path.join(fixturesBasePath, 'references-output-react.json');
16
- const outputFilePathProject = path.join(fixturesBasePath, 'references-output-project.json');
17
-
18
- // Create a temporary test file
19
- beforeAll(() => {
20
- const testContent = `
21
- export class TestClass {
22
- constructor() {}
10
+ describe('SignatureText TODO', () => {
11
+ it("TODO", async () => {
12
+ expect(true).toBe(true)
13
+ })
14
+ })
15
+
16
+ // describe('SignatureText', () => {
17
+ // const fixturesBasePath = path.resolve(__dirname, "../__fixtures__")
18
+
19
+ // const testFilePath = path.join(fixturesBasePath, 'test-file.ts');
20
+ // const outputFilePath = path.join(fixturesBasePath, 'references-output.json');
21
+ // const outputFilePathReact = path.join(fixturesBasePath, 'references-output-react.json');
22
+ // const outputFilePathProject = path.join(fixturesBasePath, 'references-output-project.json');
23
+
24
+ // // Create a temporary test file
25
+ // beforeAll(() => {
26
+ // const testContent = `
27
+ // export class TestClass {
28
+ // constructor() {}
23
29
 
24
- public testMethod(param: string): void {
25
- console.log(param);
26
- }
27
- }
28
- `;
29
- fs.writeFileSync(testFilePath, testContent);
30
- });
31
-
32
- // Clean up after tests
33
- afterAll(() => {
34
- if (fs.existsSync(testFilePath)) {
35
- fs.unlinkSync(testFilePath);
36
- }
37
- });
38
-
39
- describe('sourcesToUniform', () => {
40
- // it('should return a reference to the test class', async () => {
41
- // const basePath = path.resolve(fixturesBasePath, "packages2")
42
-
43
- // const references = await sourcesToUniformV2(basePath,
44
- // [
45
- // path.resolve(basePath, "package-a"),
46
- // // path.resolve(basePath, "package-b"),
47
- // ]
48
- // );
49
-
50
- // fs.writeFileSync(outputFilePath, JSON.stringify(references, null, 2));
51
- // // Save references to a file for inspection
52
- // console.log(`References saved to: ${outputFilePath}`);
53
- // });
54
-
55
- it('should return a reference to react component', async () => {
56
- const packagePath = path.resolve(fixturesBasePath, "react/react-a")
57
-
58
- const resp = await sourcesToUniformV2(packagePath,
59
- [
60
- "src/TestBasic.tsx",
61
- ]
62
- );
63
- if (!resp || !resp.references || !resp.projectJson) {
64
- throw new Error("Failed to generate documentation.")
65
- }
66
-
67
- const references = resp.references as Reference<TypeDocReferenceContext>[]
68
- const reactUniform = uniformToReactUniform(references, resp.projectJson)
69
-
70
- fs.writeFileSync(outputFilePath, JSON.stringify(resp?.references, null, 2));
71
- fs.writeFileSync(outputFilePathProject, JSON.stringify(resp?.projectJson, null, 2));
72
-
73
- fs.writeFileSync(outputFilePathReact, JSON.stringify(reactUniform, null, 2));
74
-
75
- // Save references to a file for inspection
76
- console.log(`References saved to: ${outputFilePath}`);
77
- console.log(`React Uniform saved to: ${outputFilePathReact}`);
78
- });
79
-
80
- it('should return a reference to react component', async () => {
81
- return
82
- const packagePath = path.resolve(fixturesBasePath, "packages3")
83
-
84
- const resp = await sourcesToUniformV2(packagePath,
85
- [
86
- path.join(packagePath, "package-a"),
87
- ]
88
- );
89
-
90
- fs.writeFileSync(outputFilePath, JSON.stringify(resp?.references, null, 2));
91
- fs.writeFileSync(outputFilePathProject, JSON.stringify(resp?.projectJson, null, 2));
92
- });
93
- });
94
-
95
- });
30
+ // public testMethod(param: string): void {
31
+ // console.log(param);
32
+ // }
33
+ // }
34
+ // `;
35
+ // fs.writeFileSync(testFilePath, testContent);
36
+ // });
37
+
38
+ // // Clean up after tests
39
+ // afterAll(() => {
40
+ // if (fs.existsSync(testFilePath)) {
41
+ // fs.unlinkSync(testFilePath);
42
+ // }
43
+ // });
44
+
45
+ // describe('sourcesToUniform', () => {
46
+ // expect(true).toBe(true)
47
+ // // TODO: finish
48
+ // return
49
+ // // it('should return a reference to the test class', async () => {
50
+ // // const basePath = path.resolve(fixturesBasePath, "packages2")
51
+
52
+ // // const references = await sourcesToUniformV2(basePath,
53
+ // // [
54
+ // // path.resolve(basePath, "package-a"),
55
+ // // // path.resolve(basePath, "package-b"),
56
+ // // ]
57
+ // // );
58
+
59
+ // // fs.writeFileSync(outputFilePath, JSON.stringify(references, null, 2));
60
+ // // // Save references to a file for inspection
61
+ // // console.log(`References saved to: ${outputFilePath}`);
62
+ // // });
63
+
64
+ // it('should return a reference to react component', async () => {
65
+ // const packagePath = path.resolve(fixturesBasePath, "react/react-a")
66
+
67
+ // const resp = await sourcesToUniformV2(packagePath,
68
+ // [
69
+ // "src/TestBasic.tsx",
70
+ // ]
71
+ // );
72
+ // if (!resp || !resp.references || !resp.projectJson) {
73
+ // throw new Error("Failed to generate documentation.")
74
+ // }
75
+
76
+ // const references = resp.references as Reference<TypeDocReferenceContext>[]
77
+ // const reactUniform = uniformToReactUniform(references, resp.projectJson)
78
+
79
+ // fs.writeFileSync(outputFilePath, JSON.stringify(resp?.references, null, 2));
80
+ // fs.writeFileSync(outputFilePathProject, JSON.stringify(resp?.projectJson, null, 2));
81
+
82
+ // fs.writeFileSync(outputFilePathReact, JSON.stringify(reactUniform, null, 2));
83
+
84
+ // // Save references to a file for inspection
85
+ // console.log(`References saved to: ${outputFilePath}`);
86
+ // console.log(`React Uniform saved to: ${outputFilePathReact}`);
87
+ // });
88
+
89
+ // it('should return a reference to react component', async () => {
90
+ // expect(true).toBe(true)
91
+ // // TODO: finish
92
+ // return
93
+ // const packagePath = path.resolve(fixturesBasePath, "packages3")
94
+
95
+ // const resp = await sourcesToUniformV2(packagePath,
96
+ // [
97
+ // path.join(packagePath, "package-a"),
98
+ // ]
99
+ // );
100
+
101
+ // fs.writeFileSync(outputFilePath, JSON.stringify(resp?.references, null, 2));
102
+ // fs.writeFileSync(outputFilePathProject, JSON.stringify(resp?.projectJson, null, 2));
103
+ // });
104
+ // });
105
+
106
+ // });