5etools-utils 0.16.0 → 0.16.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.
Files changed (51) hide show
  1. package/README.md +13 -13
  2. package/bin/clean-html.js +0 -0
  3. package/bin/lint-js-changed.js +0 -0
  4. package/bin/test-edition-sources.js +0 -0
  5. package/bin/test-file-contents.js +0 -0
  6. package/bin/test-file-locations.js +0 -0
  7. package/bin/test-file-names.js +0 -0
  8. package/bin/test-file-props.js +0 -0
  9. package/bin/test-img-file-extensions.js +0 -0
  10. package/bin/test-img-file-sizes.js +0 -0
  11. package/bin/test-img-source-names-brew.js +0 -0
  12. package/bin/test-img-source-names-ua.js +0 -0
  13. package/bin/test-json-brew.js +0 -0
  14. package/bin/test-json-ua.js +0 -0
  15. package/package.json +1 -1
  16. package/schema/brew/books.json +2 -1
  17. package/schema/brew/fluff-homecrafts.json +15 -0
  18. package/schema/brew/homebrew.json +9 -3
  19. package/schema/brew/homecrafts.json +597 -0
  20. package/schema/brew/util-copy.json +4 -2
  21. package/schema/brew/util.json +29 -27
  22. package/schema/brew-fast/books.json +2 -1
  23. package/schema/brew-fast/fluff-homecrafts.json +15 -0
  24. package/schema/brew-fast/homebrew.json +9 -3
  25. package/schema/brew-fast/homecrafts.json +597 -0
  26. package/schema/brew-fast/util-copy.json +4 -2
  27. package/schema/brew-fast/util.json +29 -27
  28. package/schema/site/books.json +2 -1
  29. package/schema/site/fluff-homecrafts.json +15 -0
  30. package/schema/site/homebrew.json +7 -4
  31. package/schema/site/homecrafts.json +570 -0
  32. package/schema/site/util-copy.json +4 -2
  33. package/schema/site/util.json +29 -27
  34. package/schema/site-fast/books.json +2 -1
  35. package/schema/site-fast/fluff-homecrafts.json +15 -0
  36. package/schema/site-fast/homebrew.json +7 -4
  37. package/schema/site-fast/homecrafts.json +570 -0
  38. package/schema/site-fast/util-copy.json +4 -2
  39. package/schema/site-fast/util.json +29 -27
  40. package/schema/ua/books.json +2 -1
  41. package/schema/ua/fluff-homecrafts.json +15 -0
  42. package/schema/ua/homebrew.json +9 -3
  43. package/schema/ua/homecrafts.json +570 -0
  44. package/schema/ua/util-copy.json +4 -2
  45. package/schema/ua/util.json +29 -27
  46. package/schema/ua-fast/books.json +2 -1
  47. package/schema/ua-fast/fluff-homecrafts.json +15 -0
  48. package/schema/ua-fast/homebrew.json +9 -3
  49. package/schema/ua-fast/homecrafts.json +570 -0
  50. package/schema/ua-fast/util-copy.json +4 -2
  51. package/schema/ua-fast/util.json +29 -27
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "fluff-homecrafts.json",
4
+ "version": "1.0.0",
5
+ "type": "object",
6
+ "properties": {
7
+ "_meta": {
8
+ "$ref": "util.json#/$defs/metaBlock"
9
+ },
10
+ "crochetPatternFluff": {
11
+ "$ref": "util.json#/$defs/genericFluffArray"
12
+ }
13
+ },
14
+ "additionalProperties": false
15
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.13.0",
3
+ "version": "1.14.0",
4
4
  "type": "object",
5
5
  "description": "Homebrew for 5etools. Should include arrays titled similarly to the main site data, e.g. `spell` or `class`",
6
6
  "$defs": {
@@ -767,6 +767,12 @@
767
767
  "foundryOptionalfeature": {
768
768
  "$ref": "foundry-optionalfeatures.json#/properties/optionalfeature"
769
769
  },
770
+ "crochetPattern": {
771
+ "$ref": "homecrafts.json#/properties/crochetPattern"
772
+ },
773
+ "crochetPatternFluff": {
774
+ "$ref": "fluff-homecrafts.json#/properties/crochetPatternFluff"
775
+ },
770
776
  "psionic": {
771
777
  "$ref": "psionics.json#/properties/psionic"
772
778
  },
@@ -868,8 +874,8 @@
868
874
  }
869
875
  },
870
876
  "additionalProperties": false,
877
+ "markdownDescription": "Homebrew for 5etools. Should include arrays titled similarly to the main site data, e.g. spell or class",
871
878
  "required": [
872
879
  "_meta"
873
- ],
874
- "markdownDescription": "Homebrew for 5etools. Should include arrays titled similarly to the main site data, e.g. spell or class"
880
+ ]
875
881
  }
@@ -0,0 +1,597 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "homecrafts.json",
4
+ "version": "1.0.0",
5
+ "type": "object",
6
+ "$defs": {
7
+ "_componentDimension": {
8
+ "type": "object",
9
+ "properties": {
10
+ "mm": {
11
+ "type": "number",
12
+ "exclusiveMinimum": 0
13
+ },
14
+ "entry": {
15
+ "$ref": "entry.json"
16
+ }
17
+ },
18
+ "required": [
19
+ "mm"
20
+ ]
21
+ },
22
+ "_component": {
23
+ "oneOf": [
24
+ {
25
+ "type": "object",
26
+ "properties": {
27
+ "height": {
28
+ "$ref": "homecrafts.json#/$defs/_componentDimension"
29
+ },
30
+ "width": {
31
+ "$ref": "homecrafts.json#/$defs/_componentDimension"
32
+ }
33
+ },
34
+ "minProperties": 1,
35
+ "additionalProperties": false
36
+ },
37
+ {
38
+ "type": "object",
39
+ "properties": {
40
+ "height": {
41
+ "$ref": "homecrafts.json#/$defs/_componentDimension"
42
+ },
43
+ "width": {
44
+ "$ref": "homecrafts.json#/$defs/_componentDimension"
45
+ },
46
+ "name": {
47
+ "type": "string"
48
+ }
49
+ },
50
+ "minProperties": 2,
51
+ "required": [
52
+ "name"
53
+ ],
54
+ "additionalProperties": false
55
+ }
56
+ ]
57
+ },
58
+ "_hookNumber": {
59
+ "description": "Expressed in millimetres.",
60
+ "type": "number",
61
+ "minimum": 2,
62
+ "maximum": 19,
63
+ "multipleOf": 0.25,
64
+ "markdownDescription": "Expressed in millimetres."
65
+ },
66
+ "_hook": {
67
+ "oneOf": [
68
+ {
69
+ "$ref": "homecrafts.json#/$defs/_hookNumber"
70
+ },
71
+ {
72
+ "type": "object",
73
+ "properties": {
74
+ "name": {
75
+ "type": "string"
76
+ },
77
+ "hooks": {
78
+ "type": "array",
79
+ "items": {
80
+ "$ref": "homecrafts.json#/$defs/_hookNumber"
81
+ },
82
+ "minItems": 1,
83
+ "uniqueItems": true
84
+ }
85
+ },
86
+ "required": [
87
+ "name",
88
+ "hooks"
89
+ ],
90
+ "additionalProperties": false
91
+ }
92
+ ]
93
+ },
94
+ "crochetPatternData": {
95
+ "type": "object",
96
+ "properties": {
97
+ "name": {
98
+ "type": "string"
99
+ },
100
+ "alias": {
101
+ "$ref": "util.json#/$defs/alias"
102
+ },
103
+ "source": {
104
+ "$ref": "util.json#/$defs/source"
105
+ },
106
+ "otherSources": {
107
+ "$ref": "util.json#/$defs/otherSources"
108
+ },
109
+ "referenceSources": {
110
+ "$ref": "util.json#/$defs/referenceSources"
111
+ },
112
+ "page": {
113
+ "$ref": "util.json#/$defs/page"
114
+ },
115
+ "instructions": {
116
+ "type": "array",
117
+ "items": {
118
+ "$ref": "entry.json"
119
+ }
120
+ },
121
+ "yarn": {
122
+ "type": "array",
123
+ "items": {
124
+ "$ref": "entry.json"
125
+ }
126
+ },
127
+ "hooks": {
128
+ "type": "array",
129
+ "items": {
130
+ "$ref": "homecrafts.json#/$defs/_hook"
131
+ },
132
+ "minItems": 1,
133
+ "uniqueItems": true
134
+ },
135
+ "notions": {
136
+ "type": "array",
137
+ "items": {
138
+ "$ref": "entry.json"
139
+ }
140
+ },
141
+ "gauge": {
142
+ "type": "array",
143
+ "items": {
144
+ "$ref": "entry.json"
145
+ }
146
+ },
147
+ "stitches": {
148
+ "type": "array",
149
+ "items": {
150
+ "$ref": "entry.json"
151
+ }
152
+ },
153
+ "abbreviations": {
154
+ "type": "array",
155
+ "items": {
156
+ "$ref": "entry.json"
157
+ }
158
+ },
159
+ "notes": {
160
+ "type": "array",
161
+ "items": {
162
+ "$ref": "entry.json"
163
+ }
164
+ },
165
+ "finishing": {
166
+ "type": "array",
167
+ "items": {
168
+ "$ref": "entry.json"
169
+ }
170
+ },
171
+ "size": {
172
+ "type": "array",
173
+ "items": {
174
+ "$ref": "homecrafts.json#/$defs/_component"
175
+ }
176
+ },
177
+ "sizeNote": {
178
+ "type": "string"
179
+ },
180
+ "patternType": {
181
+ "type": "string",
182
+ "examples": [
183
+ "amigurumi",
184
+ "wearable",
185
+ "household item"
186
+ ]
187
+ },
188
+ "level": {
189
+ "type": "string",
190
+ "description": "- B: Beginner \n- I: Intermediate\n- A: Advanced",
191
+ "enum": [
192
+ "B",
193
+ "I",
194
+ "A"
195
+ ],
196
+ "markdownDescription": "- B: Beginner \n- I: Intermediate\n- A: Advanced"
197
+ },
198
+ "designers": {
199
+ "type": "array",
200
+ "items": {
201
+ "type": "string",
202
+ "examples": [
203
+ "Alysia Sly",
204
+ "Lydia Viatoris",
205
+ "Rebecca Stone",
206
+ "Sharon Posey"
207
+ ]
208
+ },
209
+ "minItems": 1,
210
+ "uniqueItems": true
211
+ },
212
+ "seeAlsoCreature": {
213
+ "type": "array",
214
+ "items": {
215
+ "type": "string",
216
+ "description": "UIDs of \"creature\"s to be linked in a \"See Also\" footnote.\n\nE.g. \"gelatinous cube|mm\".",
217
+ "markdownDescription": "UIDs of "creature"s to be linked in a "See Also" footnote.\n\nEx.: "gelatinous cube|mm"."
218
+ },
219
+ "minItems": 1,
220
+ "uniqueItems": true
221
+ },
222
+ "seeAlsoItem": {
223
+ "type": "array",
224
+ "items": {
225
+ "type": "string",
226
+ "description": "UIDs of \"item\"s to be linked in a \"See Also\" footnote.\n\nE.g. \"quiver of ehlonna|dmg\".",
227
+ "markdownDescription": "UIDs of "item"s to be linked in a "See Also" footnote.\n\nEx.: "quiver of ehlonna|dmg"."
228
+ },
229
+ "minItems": 1,
230
+ "uniqueItems": true
231
+ },
232
+ "hasFluff": {
233
+ "type": "boolean"
234
+ },
235
+ "hasFluffImages": {
236
+ "type": "boolean"
237
+ },
238
+ "fluff": {
239
+ "$ref": "util.json#/$defs/fluffObject"
240
+ },
241
+ "foundryImg": {
242
+ "$ref": "util-foundry.json#/$defs/foundryImg"
243
+ },
244
+ "foundryAdvice": {
245
+ "$ref": "entry.json"
246
+ }
247
+ },
248
+ "additionalProperties": false
249
+ },
250
+ "crochetPattern": {
251
+ "anyOf": [
252
+ {
253
+ "type": "object",
254
+ "properties": {
255
+ "name": {
256
+ "type": "string"
257
+ },
258
+ "alias": {
259
+ "$ref": "util.json#/$defs/alias"
260
+ },
261
+ "source": {
262
+ "$ref": "util.json#/$defs/source"
263
+ },
264
+ "otherSources": {
265
+ "$ref": "util.json#/$defs/otherSources"
266
+ },
267
+ "referenceSources": {
268
+ "$ref": "util.json#/$defs/referenceSources"
269
+ },
270
+ "page": {
271
+ "$ref": "util.json#/$defs/page"
272
+ },
273
+ "instructions": {
274
+ "type": "array",
275
+ "items": {
276
+ "$ref": "entry.json"
277
+ }
278
+ },
279
+ "yarn": {
280
+ "type": "array",
281
+ "items": {
282
+ "$ref": "entry.json"
283
+ }
284
+ },
285
+ "hooks": {
286
+ "type": "array",
287
+ "items": {
288
+ "$ref": "homecrafts.json#/$defs/_hook"
289
+ },
290
+ "minItems": 1,
291
+ "uniqueItems": true
292
+ },
293
+ "notions": {
294
+ "type": "array",
295
+ "items": {
296
+ "$ref": "entry.json"
297
+ }
298
+ },
299
+ "gauge": {
300
+ "type": "array",
301
+ "items": {
302
+ "$ref": "entry.json"
303
+ }
304
+ },
305
+ "stitches": {
306
+ "type": "array",
307
+ "items": {
308
+ "$ref": "entry.json"
309
+ }
310
+ },
311
+ "abbreviations": {
312
+ "type": "array",
313
+ "items": {
314
+ "$ref": "entry.json"
315
+ }
316
+ },
317
+ "notes": {
318
+ "type": "array",
319
+ "items": {
320
+ "$ref": "entry.json"
321
+ }
322
+ },
323
+ "finishing": {
324
+ "type": "array",
325
+ "items": {
326
+ "$ref": "entry.json"
327
+ }
328
+ },
329
+ "size": {
330
+ "type": "array",
331
+ "items": {
332
+ "$ref": "homecrafts.json#/$defs/_component"
333
+ }
334
+ },
335
+ "sizeNote": {
336
+ "type": "string"
337
+ },
338
+ "patternType": {
339
+ "type": "string",
340
+ "examples": [
341
+ "amigurumi",
342
+ "wearable",
343
+ "household item"
344
+ ]
345
+ },
346
+ "level": {
347
+ "type": "string",
348
+ "description": "- B: Beginner \n- I: Intermediate\n- A: Advanced",
349
+ "enum": [
350
+ "B",
351
+ "I",
352
+ "A"
353
+ ],
354
+ "markdownDescription": "- B: Beginner \n- I: Intermediate\n- A: Advanced"
355
+ },
356
+ "designers": {
357
+ "type": "array",
358
+ "items": {
359
+ "type": "string",
360
+ "examples": [
361
+ "Alysia Sly",
362
+ "Lydia Viatoris",
363
+ "Rebecca Stone",
364
+ "Sharon Posey"
365
+ ]
366
+ },
367
+ "minItems": 1,
368
+ "uniqueItems": true
369
+ },
370
+ "seeAlsoCreature": {
371
+ "type": "array",
372
+ "items": {
373
+ "type": "string",
374
+ "description": "UIDs of \"creature\"s to be linked in a \"See Also\" footnote.\n\nE.g. \"gelatinous cube|mm\".",
375
+ "markdownDescription": "UIDs of "creature"s to be linked in a "See Also" footnote.\n\nEx.: "gelatinous cube|mm"."
376
+ },
377
+ "minItems": 1,
378
+ "uniqueItems": true
379
+ },
380
+ "seeAlsoItem": {
381
+ "type": "array",
382
+ "items": {
383
+ "type": "string",
384
+ "description": "UIDs of \"item\"s to be linked in a \"See Also\" footnote.\n\nE.g. \"quiver of ehlonna|dmg\".",
385
+ "markdownDescription": "UIDs of "item"s to be linked in a "See Also" footnote.\n\nEx.: "quiver of ehlonna|dmg"."
386
+ },
387
+ "minItems": 1,
388
+ "uniqueItems": true
389
+ },
390
+ "hasFluff": {
391
+ "type": "boolean"
392
+ },
393
+ "hasFluffImages": {
394
+ "type": "boolean"
395
+ },
396
+ "fluff": {
397
+ "$ref": "util.json#/$defs/fluffObject"
398
+ },
399
+ "foundryImg": {
400
+ "$ref": "util-foundry.json#/$defs/foundryImg"
401
+ },
402
+ "foundryAdvice": {
403
+ "$ref": "entry.json"
404
+ }
405
+ },
406
+ "additionalProperties": false,
407
+ "required": [
408
+ "name",
409
+ "source",
410
+ "instructions",
411
+ "yarn",
412
+ "hooks"
413
+ ]
414
+ },
415
+ {
416
+ "type": "object",
417
+ "properties": {
418
+ "name": {
419
+ "type": "string"
420
+ },
421
+ "alias": {
422
+ "$ref": "util.json#/$defs/alias"
423
+ },
424
+ "source": {
425
+ "$ref": "util.json#/$defs/source"
426
+ },
427
+ "otherSources": {
428
+ "$ref": "util.json#/$defs/otherSources"
429
+ },
430
+ "referenceSources": {
431
+ "$ref": "util.json#/$defs/referenceSources"
432
+ },
433
+ "page": {
434
+ "$ref": "util.json#/$defs/page"
435
+ },
436
+ "instructions": {
437
+ "type": "array",
438
+ "items": {
439
+ "$ref": "entry.json"
440
+ }
441
+ },
442
+ "yarn": {
443
+ "type": "array",
444
+ "items": {
445
+ "$ref": "entry.json"
446
+ }
447
+ },
448
+ "hooks": {
449
+ "type": "array",
450
+ "items": {
451
+ "$ref": "homecrafts.json#/$defs/_hook"
452
+ },
453
+ "minItems": 1,
454
+ "uniqueItems": true
455
+ },
456
+ "notions": {
457
+ "type": "array",
458
+ "items": {
459
+ "$ref": "entry.json"
460
+ }
461
+ },
462
+ "gauge": {
463
+ "type": "array",
464
+ "items": {
465
+ "$ref": "entry.json"
466
+ }
467
+ },
468
+ "stitches": {
469
+ "type": "array",
470
+ "items": {
471
+ "$ref": "entry.json"
472
+ }
473
+ },
474
+ "abbreviations": {
475
+ "type": "array",
476
+ "items": {
477
+ "$ref": "entry.json"
478
+ }
479
+ },
480
+ "notes": {
481
+ "type": "array",
482
+ "items": {
483
+ "$ref": "entry.json"
484
+ }
485
+ },
486
+ "finishing": {
487
+ "type": "array",
488
+ "items": {
489
+ "$ref": "entry.json"
490
+ }
491
+ },
492
+ "size": {
493
+ "type": "array",
494
+ "items": {
495
+ "$ref": "homecrafts.json#/$defs/_component"
496
+ }
497
+ },
498
+ "sizeNote": {
499
+ "type": "string"
500
+ },
501
+ "patternType": {
502
+ "type": "string",
503
+ "examples": [
504
+ "amigurumi",
505
+ "wearable",
506
+ "household item"
507
+ ]
508
+ },
509
+ "level": {
510
+ "type": "string",
511
+ "description": "- B: Beginner \n- I: Intermediate\n- A: Advanced",
512
+ "enum": [
513
+ "B",
514
+ "I",
515
+ "A"
516
+ ],
517
+ "markdownDescription": "- B: Beginner \n- I: Intermediate\n- A: Advanced"
518
+ },
519
+ "designers": {
520
+ "type": "array",
521
+ "items": {
522
+ "type": "string",
523
+ "examples": [
524
+ "Alysia Sly",
525
+ "Lydia Viatoris",
526
+ "Rebecca Stone",
527
+ "Sharon Posey"
528
+ ]
529
+ },
530
+ "minItems": 1,
531
+ "uniqueItems": true
532
+ },
533
+ "seeAlsoCreature": {
534
+ "type": "array",
535
+ "items": {
536
+ "type": "string",
537
+ "description": "UIDs of \"creature\"s to be linked in a \"See Also\" footnote.\n\nE.g. \"gelatinous cube|mm\".",
538
+ "markdownDescription": "UIDs of "creature"s to be linked in a "See Also" footnote.\n\nEx.: "gelatinous cube|mm"."
539
+ },
540
+ "minItems": 1,
541
+ "uniqueItems": true
542
+ },
543
+ "seeAlsoItem": {
544
+ "type": "array",
545
+ "items": {
546
+ "type": "string",
547
+ "description": "UIDs of \"item\"s to be linked in a \"See Also\" footnote.\n\nE.g. \"quiver of ehlonna|dmg\".",
548
+ "markdownDescription": "UIDs of "item"s to be linked in a "See Also" footnote.\n\nEx.: "quiver of ehlonna|dmg"."
549
+ },
550
+ "minItems": 1,
551
+ "uniqueItems": true
552
+ },
553
+ "hasFluff": {
554
+ "type": "boolean"
555
+ },
556
+ "hasFluffImages": {
557
+ "type": "boolean"
558
+ },
559
+ "fluff": {
560
+ "$ref": "util.json#/$defs/fluffObject"
561
+ },
562
+ "foundryImg": {
563
+ "$ref": "util-foundry.json#/$defs/foundryImg"
564
+ },
565
+ "foundryAdvice": {
566
+ "$ref": "entry.json"
567
+ },
568
+ "_copy": {
569
+ "$ref": "util-copy.json#/$defs/copyBlock_copy_generic"
570
+ }
571
+ },
572
+ "additionalProperties": false,
573
+ "required": [
574
+ "_copy"
575
+ ]
576
+ }
577
+ ]
578
+ }
579
+ },
580
+ "properties": {
581
+ "_meta": {
582
+ "$ref": "util.json#/$defs/metaBlock"
583
+ },
584
+ "crochetPattern": {
585
+ "type": "array",
586
+ "uniqueItems": true,
587
+ "minItems": 1,
588
+ "items": {
589
+ "$ref": "#/$defs/crochetPattern"
590
+ }
591
+ }
592
+ },
593
+ "required": [
594
+ "crochetPattern"
595
+ ],
596
+ "additionalProperties": false
597
+ }
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "util-copy.json",
4
4
  "title": "Util: Copy",
5
- "version": "1.1.0",
5
+ "version": "1.1.1",
6
6
  "$defs": {
7
7
  "_mod_renameArr_rename": {
8
8
  "type": "object",
@@ -1229,7 +1229,9 @@
1229
1229
  "card",
1230
1230
  "facility",
1231
1231
  "facilityFluff",
1232
- "encounterShape"
1232
+ "encounterShape",
1233
+ "crochetPattern",
1234
+ "crochetPatternFluff"
1233
1235
  ],
1234
1236
  "markdownDescription": "This is the list of props for which there is a _copy implementation. _copy may not be declared for props other than these."
1235
1237
  },