5etools-utils 0.16.0 → 0.16.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.
Files changed (52) 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/lib/BrewTester/BrewTesterFileProps.js +3 -0
  16. package/package.json +1 -1
  17. package/schema/brew/books.json +2 -1
  18. package/schema/brew/fluff-homecrafts.json +15 -0
  19. package/schema/brew/homebrew.json +9 -3
  20. package/schema/brew/homecrafts.json +597 -0
  21. package/schema/brew/util-copy.json +4 -2
  22. package/schema/brew/util.json +29 -27
  23. package/schema/brew-fast/books.json +2 -1
  24. package/schema/brew-fast/fluff-homecrafts.json +15 -0
  25. package/schema/brew-fast/homebrew.json +9 -3
  26. package/schema/brew-fast/homecrafts.json +597 -0
  27. package/schema/brew-fast/util-copy.json +4 -2
  28. package/schema/brew-fast/util.json +29 -27
  29. package/schema/site/books.json +2 -1
  30. package/schema/site/fluff-homecrafts.json +15 -0
  31. package/schema/site/homebrew.json +7 -4
  32. package/schema/site/homecrafts.json +570 -0
  33. package/schema/site/util-copy.json +4 -2
  34. package/schema/site/util.json +29 -27
  35. package/schema/site-fast/books.json +2 -1
  36. package/schema/site-fast/fluff-homecrafts.json +15 -0
  37. package/schema/site-fast/homebrew.json +7 -4
  38. package/schema/site-fast/homecrafts.json +570 -0
  39. package/schema/site-fast/util-copy.json +4 -2
  40. package/schema/site-fast/util.json +29 -27
  41. package/schema/ua/books.json +2 -1
  42. package/schema/ua/fluff-homecrafts.json +15 -0
  43. package/schema/ua/homebrew.json +9 -3
  44. package/schema/ua/homecrafts.json +570 -0
  45. package/schema/ua/util-copy.json +4 -2
  46. package/schema/ua/util.json +29 -27
  47. package/schema/ua-fast/books.json +2 -1
  48. package/schema/ua-fast/fluff-homecrafts.json +15 -0
  49. package/schema/ua-fast/homebrew.json +9 -3
  50. package/schema/ua-fast/homecrafts.json +570 -0
  51. package/schema/ua-fast/util-copy.json +4 -2
  52. package/schema/ua-fast/util.json +29 -27
@@ -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
  },
@@ -225,40 +225,41 @@
225
225
  "tagNameStats": {
226
226
  "type": "string",
227
227
  "enum": [
228
- "spell",
229
- "item",
230
- "itemMastery",
231
- "creature",
232
- "condition",
233
- "disease",
234
- "status",
228
+ "action",
235
229
  "background",
236
- "race",
237
- "optfeature",
238
- "reward",
239
- "feat",
240
- "psionic",
241
- "object",
242
- "cult",
243
230
  "boon",
244
- "trap",
245
- "hazard",
246
- "variantrule",
247
231
  "charoption",
248
- "vehicle",
249
- "vehupgrade",
250
232
  "class",
251
- "action",
252
- "language",
253
233
  "classFeature",
254
- "subclassFeature",
255
- "table",
234
+ "condition",
235
+ "creature",
236
+ "crochet",
237
+ "cult",
238
+ "deck",
239
+ "disease",
240
+ "facility",
241
+ "feat",
242
+ "hazard",
243
+ "item",
244
+ "itemMastery",
245
+ "language",
246
+ "legroup",
247
+ "object",
248
+ "optfeature",
249
+ "psionic",
250
+ "race",
256
251
  "recipe",
257
- "skill",
252
+ "reward",
258
253
  "sense",
259
- "legroup",
260
- "deck",
261
- "facility"
254
+ "skill",
255
+ "spell",
256
+ "status",
257
+ "subclassFeature",
258
+ "table",
259
+ "trap",
260
+ "variantrule",
261
+ "vehicle",
262
+ "vehupgrade"
262
263
  ]
263
264
  },
264
265
  "tagNameStatsAbbreviation": {
@@ -271,6 +272,7 @@
271
272
  "type": "string",
272
273
  "enum": [
273
274
  "classFluff",
275
+ "crochetPatternFluff",
274
276
  "monsterFluff",
275
277
  "raceFluff"
276
278
  ]
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "books.json",
4
- "version": "1.2.19",
4
+ "version": "1.2.20",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "book": {
@@ -43,6 +43,7 @@
43
43
  "screen",
44
44
  "organized-play",
45
45
  "recipe",
46
+ "homecraft",
46
47
  "other"
47
48
  ],
48
49
  "markdownDescription": "The group under which this book should be listed in the navbar."