create-typescript-app 2.24.4 → 2.25.0
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/lib/base.d.ts +11 -6
- package/lib/base.js +5 -0
- package/lib/blocks/blockAllContributors.d.ts +1 -0
- package/lib/blocks/blockAreTheTypesWrong.d.ts +1 -0
- package/lib/blocks/blockCSpell.d.ts +1 -0
- package/lib/blocks/blockCTATransitions.d.ts +1 -0
- package/lib/blocks/blockCodecov.d.ts +1 -0
- package/lib/blocks/blockContributingDocs.d.ts +1 -0
- package/lib/blocks/blockContributorCovenant.d.ts +1 -0
- package/lib/blocks/blockDevelopmentDocs.d.ts +1 -0
- package/lib/blocks/blockESLint.d.ts +5 -1
- package/lib/blocks/blockESLint.js +25 -12
- package/lib/blocks/blockESLintComments.d.ts +1 -0
- package/lib/blocks/blockESLintJSDoc.d.ts +1 -0
- package/lib/blocks/blockESLintJSONC.d.ts +1 -0
- package/lib/blocks/blockESLintMarkdown.d.ts +1 -0
- package/lib/blocks/blockESLintMoreStyling.d.ts +1 -0
- package/lib/blocks/blockESLintNode.d.ts +1 -0
- package/lib/blocks/blockESLintPackageJson.d.ts +1 -0
- package/lib/blocks/blockESLintPerfectionist.d.ts +1 -0
- package/lib/blocks/blockESLintPlugin.d.ts +72 -0
- package/lib/blocks/blockESLintPlugin.js +226 -0
- package/lib/blocks/blockESLintRegexp.d.ts +1 -0
- package/lib/blocks/blockESLintYML.d.ts +1 -0
- package/lib/blocks/blockExampleFiles.d.ts +1 -0
- package/lib/blocks/blockFunding.d.ts +1 -0
- package/lib/blocks/blockGitHubActionsCI.d.ts +1 -0
- package/lib/blocks/blockGitHubApps.d.ts +1 -0
- package/lib/blocks/blockGitHubIssueTemplates.d.ts +1 -0
- package/lib/blocks/blockGitHubPRTemplate.d.ts +1 -0
- package/lib/blocks/blockGitignore.d.ts +1 -0
- package/lib/blocks/blockKnip.d.ts +1 -0
- package/lib/blocks/blockMITLicense.d.ts +1 -0
- package/lib/blocks/blockMain.d.ts +1 -0
- package/lib/blocks/blockMarkdownlint.d.ts +1 -0
- package/lib/blocks/blockNcc.d.ts +1 -0
- package/lib/blocks/blockNvmrc.d.ts +1 -0
- package/lib/blocks/blockPRCompliance.d.ts +1 -0
- package/lib/blocks/blockPackageJson.d.ts +1 -0
- package/lib/blocks/blockPnpmDedupe.d.ts +1 -0
- package/lib/blocks/blockPrettier.d.ts +1 -0
- package/lib/blocks/blockPrettierPluginCurly.d.ts +1 -0
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts +1 -0
- package/lib/blocks/blockPrettierPluginSh.d.ts +1 -0
- package/lib/blocks/blockREADME.d.ts +1 -0
- package/lib/blocks/blockREADME.js +6 -2
- package/lib/blocks/blockReleaseIt.d.ts +1 -0
- package/lib/blocks/blockRemoveDependencies.d.ts +1 -0
- package/lib/blocks/blockRemoveFiles.d.ts +1 -0
- package/lib/blocks/blockRemoveWorkflows.d.ts +1 -0
- package/lib/blocks/blockRenovate.d.ts +1 -0
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts +1 -0
- package/lib/blocks/blockRepositoryLabels.d.ts +1 -0
- package/lib/blocks/blockRepositorySecrets.d.ts +1 -0
- package/lib/blocks/blockRepositorySettings.d.ts +1 -0
- package/lib/blocks/blockSecurityDocs.d.ts +1 -0
- package/lib/blocks/blockTSup.d.ts +1 -0
- package/lib/blocks/blockTemplatedWith.d.ts +1 -0
- package/lib/blocks/blockTypeScript.d.ts +1 -0
- package/lib/blocks/blockVSCode.d.ts +1 -0
- package/lib/blocks/blockVitest.d.ts +1 -0
- package/lib/blocks/index.d.ts +118 -1
- package/lib/blocks/index.js +4 -0
- package/lib/data/packageData.d.ts +1 -1
- package/lib/index.d.ts +7 -0
- package/lib/options/readDocumentation.d.ts +1 -1
- package/lib/options/readDocumentation.js +4 -2
- package/lib/options/readReadmeAdditional.js +2 -2
- package/lib/options/readReadmeFootnotes.d.ts +4 -0
- package/lib/options/readReadmeFootnotes.js +17 -0
- package/lib/presets/common.d.ts +5 -0
- package/lib/presets/everything.d.ts +5 -0
- package/lib/presets/index.d.ts +15 -0
- package/lib/presets/minimal.d.ts +5 -0
- package/lib/schemas.d.ts +10 -2
- package/lib/schemas.js +1 -0
- package/lib/template.d.ts +5 -0
- package/lib/template.js +2 -0
- package/package.json +1 -1
package/lib/blocks/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export { blockESLintMoreStyling } from './blockESLintMoreStyling.js';
|
|
|
16
16
|
export { blockESLintNode } from './blockESLintNode.js';
|
|
17
17
|
export { blockESLintPackageJson } from './blockESLintPackageJson.js';
|
|
18
18
|
export { blockESLintPerfectionist } from './blockESLintPerfectionist.js';
|
|
19
|
+
export { blockESLintPlugin } from './blockESLintPlugin.js';
|
|
19
20
|
export { blockESLintRegexp } from './blockESLintRegexp.js';
|
|
20
21
|
export { blockESLintYML } from './blockESLintYML.js';
|
|
21
22
|
export { blockFunding } from './blockFunding.js';
|
|
@@ -57,6 +58,7 @@ declare const blocks: {
|
|
|
57
58
|
usage: string;
|
|
58
59
|
additional?: string | undefined;
|
|
59
60
|
explainer?: string | undefined;
|
|
61
|
+
footnotes?: string | undefined;
|
|
60
62
|
};
|
|
61
63
|
development?: string | undefined;
|
|
62
64
|
};
|
|
@@ -124,6 +126,7 @@ declare const blocks: {
|
|
|
124
126
|
usage: string;
|
|
125
127
|
additional?: string | undefined;
|
|
126
128
|
explainer?: string | undefined;
|
|
129
|
+
footnotes?: string | undefined;
|
|
127
130
|
};
|
|
128
131
|
development?: string | undefined;
|
|
129
132
|
};
|
|
@@ -193,6 +196,7 @@ declare const blocks: {
|
|
|
193
196
|
usage: string;
|
|
194
197
|
additional?: string | undefined;
|
|
195
198
|
explainer?: string | undefined;
|
|
199
|
+
footnotes?: string | undefined;
|
|
196
200
|
};
|
|
197
201
|
development?: string | undefined;
|
|
198
202
|
};
|
|
@@ -260,6 +264,7 @@ declare const blocks: {
|
|
|
260
264
|
usage: string;
|
|
261
265
|
additional?: string | undefined;
|
|
262
266
|
explainer?: string | undefined;
|
|
267
|
+
footnotes?: string | undefined;
|
|
263
268
|
};
|
|
264
269
|
development?: string | undefined;
|
|
265
270
|
};
|
|
@@ -327,6 +332,7 @@ declare const blocks: {
|
|
|
327
332
|
usage: string;
|
|
328
333
|
additional?: string | undefined;
|
|
329
334
|
explainer?: string | undefined;
|
|
335
|
+
footnotes?: string | undefined;
|
|
330
336
|
};
|
|
331
337
|
development?: string | undefined;
|
|
332
338
|
};
|
|
@@ -397,6 +403,7 @@ declare const blocks: {
|
|
|
397
403
|
usage: string;
|
|
398
404
|
additional?: string | undefined;
|
|
399
405
|
explainer?: string | undefined;
|
|
406
|
+
footnotes?: string | undefined;
|
|
400
407
|
};
|
|
401
408
|
development?: string | undefined;
|
|
402
409
|
};
|
|
@@ -478,6 +485,7 @@ declare const blocks: {
|
|
|
478
485
|
usage: string;
|
|
479
486
|
additional?: string | undefined;
|
|
480
487
|
explainer?: string | undefined;
|
|
488
|
+
footnotes?: string | undefined;
|
|
481
489
|
};
|
|
482
490
|
development?: string | undefined;
|
|
483
491
|
};
|
|
@@ -538,7 +546,10 @@ declare const blocks: {
|
|
|
538
546
|
}>;
|
|
539
547
|
blockESLint: bingo_stratum.BlockWithAddons<{
|
|
540
548
|
imports: {
|
|
541
|
-
source: string
|
|
549
|
+
source: string | {
|
|
550
|
+
version: string;
|
|
551
|
+
packageName: string;
|
|
552
|
+
};
|
|
542
553
|
specifier: string;
|
|
543
554
|
types?: boolean | undefined;
|
|
544
555
|
}[];
|
|
@@ -571,6 +582,7 @@ declare const blocks: {
|
|
|
571
582
|
usage: string;
|
|
572
583
|
additional?: string | undefined;
|
|
573
584
|
explainer?: string | undefined;
|
|
585
|
+
footnotes?: string | undefined;
|
|
574
586
|
};
|
|
575
587
|
development?: string | undefined;
|
|
576
588
|
};
|
|
@@ -638,6 +650,7 @@ declare const blocks: {
|
|
|
638
650
|
usage: string;
|
|
639
651
|
additional?: string | undefined;
|
|
640
652
|
explainer?: string | undefined;
|
|
653
|
+
footnotes?: string | undefined;
|
|
641
654
|
};
|
|
642
655
|
development?: string | undefined;
|
|
643
656
|
};
|
|
@@ -705,6 +718,7 @@ declare const blocks: {
|
|
|
705
718
|
usage: string;
|
|
706
719
|
additional?: string | undefined;
|
|
707
720
|
explainer?: string | undefined;
|
|
721
|
+
footnotes?: string | undefined;
|
|
708
722
|
};
|
|
709
723
|
development?: string | undefined;
|
|
710
724
|
};
|
|
@@ -772,6 +786,7 @@ declare const blocks: {
|
|
|
772
786
|
usage: string;
|
|
773
787
|
additional?: string | undefined;
|
|
774
788
|
explainer?: string | undefined;
|
|
789
|
+
footnotes?: string | undefined;
|
|
775
790
|
};
|
|
776
791
|
development?: string | undefined;
|
|
777
792
|
};
|
|
@@ -839,6 +854,7 @@ declare const blocks: {
|
|
|
839
854
|
usage: string;
|
|
840
855
|
additional?: string | undefined;
|
|
841
856
|
explainer?: string | undefined;
|
|
857
|
+
footnotes?: string | undefined;
|
|
842
858
|
};
|
|
843
859
|
development?: string | undefined;
|
|
844
860
|
};
|
|
@@ -906,6 +922,7 @@ declare const blocks: {
|
|
|
906
922
|
usage: string;
|
|
907
923
|
additional?: string | undefined;
|
|
908
924
|
explainer?: string | undefined;
|
|
925
|
+
footnotes?: string | undefined;
|
|
909
926
|
};
|
|
910
927
|
development?: string | undefined;
|
|
911
928
|
};
|
|
@@ -973,6 +990,7 @@ declare const blocks: {
|
|
|
973
990
|
usage: string;
|
|
974
991
|
additional?: string | undefined;
|
|
975
992
|
explainer?: string | undefined;
|
|
993
|
+
footnotes?: string | undefined;
|
|
976
994
|
};
|
|
977
995
|
development?: string | undefined;
|
|
978
996
|
};
|
|
@@ -1040,6 +1058,7 @@ declare const blocks: {
|
|
|
1040
1058
|
usage: string;
|
|
1041
1059
|
additional?: string | undefined;
|
|
1042
1060
|
explainer?: string | undefined;
|
|
1061
|
+
footnotes?: string | undefined;
|
|
1043
1062
|
};
|
|
1044
1063
|
development?: string | undefined;
|
|
1045
1064
|
};
|
|
@@ -1107,6 +1126,75 @@ declare const blocks: {
|
|
|
1107
1126
|
usage: string;
|
|
1108
1127
|
additional?: string | undefined;
|
|
1109
1128
|
explainer?: string | undefined;
|
|
1129
|
+
footnotes?: string | undefined;
|
|
1130
|
+
};
|
|
1131
|
+
development?: string | undefined;
|
|
1132
|
+
};
|
|
1133
|
+
email: {
|
|
1134
|
+
github: string;
|
|
1135
|
+
npm: string;
|
|
1136
|
+
};
|
|
1137
|
+
title: string;
|
|
1138
|
+
node: {
|
|
1139
|
+
minimum: string;
|
|
1140
|
+
pinned?: string | undefined;
|
|
1141
|
+
};
|
|
1142
|
+
owner: string;
|
|
1143
|
+
repository: string;
|
|
1144
|
+
type?: "commonjs" | "module" | undefined;
|
|
1145
|
+
author?: string | undefined;
|
|
1146
|
+
bin?: string | Record<string, string> | undefined;
|
|
1147
|
+
contributors?: {
|
|
1148
|
+
avatar_url: string;
|
|
1149
|
+
contributions: string[];
|
|
1150
|
+
login: string;
|
|
1151
|
+
name: string;
|
|
1152
|
+
profile: string;
|
|
1153
|
+
}[] | undefined;
|
|
1154
|
+
emoji?: string | undefined;
|
|
1155
|
+
existingLabels?: {
|
|
1156
|
+
name: string;
|
|
1157
|
+
description: string;
|
|
1158
|
+
color: string;
|
|
1159
|
+
}[] | undefined;
|
|
1160
|
+
funding?: string | undefined;
|
|
1161
|
+
guide?: {
|
|
1162
|
+
href: string;
|
|
1163
|
+
title: string;
|
|
1164
|
+
} | undefined;
|
|
1165
|
+
keywords?: string[] | undefined;
|
|
1166
|
+
logo?: {
|
|
1167
|
+
alt: string;
|
|
1168
|
+
src: string;
|
|
1169
|
+
height?: number | undefined;
|
|
1170
|
+
width?: number | undefined;
|
|
1171
|
+
} | undefined;
|
|
1172
|
+
packageData?: {
|
|
1173
|
+
dependencies?: Record<string, string> | undefined;
|
|
1174
|
+
devDependencies?: Record<string, string> | undefined;
|
|
1175
|
+
peerDependencies?: Record<string, string> | undefined;
|
|
1176
|
+
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
1177
|
+
scripts?: Record<string, string> | undefined;
|
|
1178
|
+
} | undefined;
|
|
1179
|
+
pnpm?: string | undefined;
|
|
1180
|
+
rulesetId?: string | undefined;
|
|
1181
|
+
version?: string | undefined;
|
|
1182
|
+
words?: string[] | undefined;
|
|
1183
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
1184
|
+
pinned?: boolean | undefined;
|
|
1185
|
+
hash?: string | undefined;
|
|
1186
|
+
}>> | undefined;
|
|
1187
|
+
}>;
|
|
1188
|
+
blockESLintPlugin: bingo_stratum.BlockWithoutAddons<{
|
|
1189
|
+
access: "public" | "restricted";
|
|
1190
|
+
description: string;
|
|
1191
|
+
directory: string;
|
|
1192
|
+
documentation: {
|
|
1193
|
+
readme: {
|
|
1194
|
+
usage: string;
|
|
1195
|
+
additional?: string | undefined;
|
|
1196
|
+
explainer?: string | undefined;
|
|
1197
|
+
footnotes?: string | undefined;
|
|
1110
1198
|
};
|
|
1111
1199
|
development?: string | undefined;
|
|
1112
1200
|
};
|
|
@@ -1174,6 +1262,7 @@ declare const blocks: {
|
|
|
1174
1262
|
usage: string;
|
|
1175
1263
|
additional?: string | undefined;
|
|
1176
1264
|
explainer?: string | undefined;
|
|
1265
|
+
footnotes?: string | undefined;
|
|
1177
1266
|
};
|
|
1178
1267
|
development?: string | undefined;
|
|
1179
1268
|
};
|
|
@@ -1241,6 +1330,7 @@ declare const blocks: {
|
|
|
1241
1330
|
usage: string;
|
|
1242
1331
|
additional?: string | undefined;
|
|
1243
1332
|
explainer?: string | undefined;
|
|
1333
|
+
footnotes?: string | undefined;
|
|
1244
1334
|
};
|
|
1245
1335
|
development?: string | undefined;
|
|
1246
1336
|
};
|
|
@@ -1308,6 +1398,7 @@ declare const blocks: {
|
|
|
1308
1398
|
usage: string;
|
|
1309
1399
|
additional?: string | undefined;
|
|
1310
1400
|
explainer?: string | undefined;
|
|
1401
|
+
footnotes?: string | undefined;
|
|
1311
1402
|
};
|
|
1312
1403
|
development?: string | undefined;
|
|
1313
1404
|
};
|
|
@@ -1390,6 +1481,7 @@ declare const blocks: {
|
|
|
1390
1481
|
usage: string;
|
|
1391
1482
|
additional?: string | undefined;
|
|
1392
1483
|
explainer?: string | undefined;
|
|
1484
|
+
footnotes?: string | undefined;
|
|
1393
1485
|
};
|
|
1394
1486
|
development?: string | undefined;
|
|
1395
1487
|
};
|
|
@@ -1457,6 +1549,7 @@ declare const blocks: {
|
|
|
1457
1549
|
usage: string;
|
|
1458
1550
|
additional?: string | undefined;
|
|
1459
1551
|
explainer?: string | undefined;
|
|
1552
|
+
footnotes?: string | undefined;
|
|
1460
1553
|
};
|
|
1461
1554
|
development?: string | undefined;
|
|
1462
1555
|
};
|
|
@@ -1524,6 +1617,7 @@ declare const blocks: {
|
|
|
1524
1617
|
usage: string;
|
|
1525
1618
|
additional?: string | undefined;
|
|
1526
1619
|
explainer?: string | undefined;
|
|
1620
|
+
footnotes?: string | undefined;
|
|
1527
1621
|
};
|
|
1528
1622
|
development?: string | undefined;
|
|
1529
1623
|
};
|
|
@@ -1593,6 +1687,7 @@ declare const blocks: {
|
|
|
1593
1687
|
usage: string;
|
|
1594
1688
|
additional?: string | undefined;
|
|
1595
1689
|
explainer?: string | undefined;
|
|
1690
|
+
footnotes?: string | undefined;
|
|
1596
1691
|
};
|
|
1597
1692
|
development?: string | undefined;
|
|
1598
1693
|
};
|
|
@@ -1662,6 +1757,7 @@ declare const blocks: {
|
|
|
1662
1757
|
usage: string;
|
|
1663
1758
|
additional?: string | undefined;
|
|
1664
1759
|
explainer?: string | undefined;
|
|
1760
|
+
footnotes?: string | undefined;
|
|
1665
1761
|
};
|
|
1666
1762
|
development?: string | undefined;
|
|
1667
1763
|
};
|
|
@@ -1732,6 +1828,7 @@ declare const blocks: {
|
|
|
1732
1828
|
usage: string;
|
|
1733
1829
|
additional?: string | undefined;
|
|
1734
1830
|
explainer?: string | undefined;
|
|
1831
|
+
footnotes?: string | undefined;
|
|
1735
1832
|
};
|
|
1736
1833
|
development?: string | undefined;
|
|
1737
1834
|
};
|
|
@@ -1801,6 +1898,7 @@ declare const blocks: {
|
|
|
1801
1898
|
usage: string;
|
|
1802
1899
|
additional?: string | undefined;
|
|
1803
1900
|
explainer?: string | undefined;
|
|
1901
|
+
footnotes?: string | undefined;
|
|
1804
1902
|
};
|
|
1805
1903
|
development?: string | undefined;
|
|
1806
1904
|
};
|
|
@@ -1868,6 +1966,7 @@ declare const blocks: {
|
|
|
1868
1966
|
usage: string;
|
|
1869
1967
|
additional?: string | undefined;
|
|
1870
1968
|
explainer?: string | undefined;
|
|
1969
|
+
footnotes?: string | undefined;
|
|
1871
1970
|
};
|
|
1872
1971
|
development?: string | undefined;
|
|
1873
1972
|
};
|
|
@@ -1935,6 +2034,7 @@ declare const blocks: {
|
|
|
1935
2034
|
usage: string;
|
|
1936
2035
|
additional?: string | undefined;
|
|
1937
2036
|
explainer?: string | undefined;
|
|
2037
|
+
footnotes?: string | undefined;
|
|
1938
2038
|
};
|
|
1939
2039
|
development?: string | undefined;
|
|
1940
2040
|
};
|
|
@@ -2002,6 +2102,7 @@ declare const blocks: {
|
|
|
2002
2102
|
usage: string;
|
|
2003
2103
|
additional?: string | undefined;
|
|
2004
2104
|
explainer?: string | undefined;
|
|
2105
|
+
footnotes?: string | undefined;
|
|
2005
2106
|
};
|
|
2006
2107
|
development?: string | undefined;
|
|
2007
2108
|
};
|
|
@@ -2146,6 +2247,7 @@ declare const blocks: {
|
|
|
2146
2247
|
usage: string;
|
|
2147
2248
|
additional?: string | undefined;
|
|
2148
2249
|
explainer?: string | undefined;
|
|
2250
|
+
footnotes?: string | undefined;
|
|
2149
2251
|
};
|
|
2150
2252
|
development?: string | undefined;
|
|
2151
2253
|
};
|
|
@@ -2213,6 +2315,7 @@ declare const blocks: {
|
|
|
2213
2315
|
usage: string;
|
|
2214
2316
|
additional?: string | undefined;
|
|
2215
2317
|
explainer?: string | undefined;
|
|
2318
|
+
footnotes?: string | undefined;
|
|
2216
2319
|
};
|
|
2217
2320
|
development?: string | undefined;
|
|
2218
2321
|
};
|
|
@@ -2280,6 +2383,7 @@ declare const blocks: {
|
|
|
2280
2383
|
usage: string;
|
|
2281
2384
|
additional?: string | undefined;
|
|
2282
2385
|
explainer?: string | undefined;
|
|
2386
|
+
footnotes?: string | undefined;
|
|
2283
2387
|
};
|
|
2284
2388
|
development?: string | undefined;
|
|
2285
2389
|
};
|
|
@@ -2357,6 +2461,7 @@ declare const blocks: {
|
|
|
2357
2461
|
usage: string;
|
|
2358
2462
|
additional?: string | undefined;
|
|
2359
2463
|
explainer?: string | undefined;
|
|
2464
|
+
footnotes?: string | undefined;
|
|
2360
2465
|
};
|
|
2361
2466
|
development?: string | undefined;
|
|
2362
2467
|
};
|
|
@@ -2424,6 +2529,7 @@ declare const blocks: {
|
|
|
2424
2529
|
usage: string;
|
|
2425
2530
|
additional?: string | undefined;
|
|
2426
2531
|
explainer?: string | undefined;
|
|
2532
|
+
footnotes?: string | undefined;
|
|
2427
2533
|
};
|
|
2428
2534
|
development?: string | undefined;
|
|
2429
2535
|
};
|
|
@@ -2491,6 +2597,7 @@ declare const blocks: {
|
|
|
2491
2597
|
usage: string;
|
|
2492
2598
|
additional?: string | undefined;
|
|
2493
2599
|
explainer?: string | undefined;
|
|
2600
|
+
footnotes?: string | undefined;
|
|
2494
2601
|
};
|
|
2495
2602
|
development?: string | undefined;
|
|
2496
2603
|
};
|
|
@@ -2558,6 +2665,7 @@ declare const blocks: {
|
|
|
2558
2665
|
usage: string;
|
|
2559
2666
|
additional?: string | undefined;
|
|
2560
2667
|
explainer?: string | undefined;
|
|
2668
|
+
footnotes?: string | undefined;
|
|
2561
2669
|
};
|
|
2562
2670
|
development?: string | undefined;
|
|
2563
2671
|
};
|
|
@@ -2637,6 +2745,7 @@ declare const blocks: {
|
|
|
2637
2745
|
usage: string;
|
|
2638
2746
|
additional?: string | undefined;
|
|
2639
2747
|
explainer?: string | undefined;
|
|
2748
|
+
footnotes?: string | undefined;
|
|
2640
2749
|
};
|
|
2641
2750
|
development?: string | undefined;
|
|
2642
2751
|
};
|
|
@@ -2709,6 +2818,7 @@ declare const blocks: {
|
|
|
2709
2818
|
usage: string;
|
|
2710
2819
|
additional?: string | undefined;
|
|
2711
2820
|
explainer?: string | undefined;
|
|
2821
|
+
footnotes?: string | undefined;
|
|
2712
2822
|
};
|
|
2713
2823
|
development?: string | undefined;
|
|
2714
2824
|
};
|
|
@@ -2776,6 +2886,7 @@ declare const blocks: {
|
|
|
2776
2886
|
usage: string;
|
|
2777
2887
|
additional?: string | undefined;
|
|
2778
2888
|
explainer?: string | undefined;
|
|
2889
|
+
footnotes?: string | undefined;
|
|
2779
2890
|
};
|
|
2780
2891
|
development?: string | undefined;
|
|
2781
2892
|
};
|
|
@@ -2843,6 +2954,7 @@ declare const blocks: {
|
|
|
2843
2954
|
usage: string;
|
|
2844
2955
|
additional?: string | undefined;
|
|
2845
2956
|
explainer?: string | undefined;
|
|
2957
|
+
footnotes?: string | undefined;
|
|
2846
2958
|
};
|
|
2847
2959
|
development?: string | undefined;
|
|
2848
2960
|
};
|
|
@@ -2910,6 +3022,7 @@ declare const blocks: {
|
|
|
2910
3022
|
usage: string;
|
|
2911
3023
|
additional?: string | undefined;
|
|
2912
3024
|
explainer?: string | undefined;
|
|
3025
|
+
footnotes?: string | undefined;
|
|
2913
3026
|
};
|
|
2914
3027
|
development?: string | undefined;
|
|
2915
3028
|
};
|
|
@@ -2981,6 +3094,7 @@ declare const blocks: {
|
|
|
2981
3094
|
usage: string;
|
|
2982
3095
|
additional?: string | undefined;
|
|
2983
3096
|
explainer?: string | undefined;
|
|
3097
|
+
footnotes?: string | undefined;
|
|
2984
3098
|
};
|
|
2985
3099
|
development?: string | undefined;
|
|
2986
3100
|
};
|
|
@@ -3160,6 +3274,7 @@ declare const blocks: {
|
|
|
3160
3274
|
usage: string;
|
|
3161
3275
|
additional?: string | undefined;
|
|
3162
3276
|
explainer?: string | undefined;
|
|
3277
|
+
footnotes?: string | undefined;
|
|
3163
3278
|
};
|
|
3164
3279
|
development?: string | undefined;
|
|
3165
3280
|
};
|
|
@@ -3243,6 +3358,7 @@ declare const blocks: {
|
|
|
3243
3358
|
usage: string;
|
|
3244
3359
|
additional?: string | undefined;
|
|
3245
3360
|
explainer?: string | undefined;
|
|
3361
|
+
footnotes?: string | undefined;
|
|
3246
3362
|
};
|
|
3247
3363
|
development?: string | undefined;
|
|
3248
3364
|
};
|
|
@@ -3319,6 +3435,7 @@ declare const blocks: {
|
|
|
3319
3435
|
usage: string;
|
|
3320
3436
|
additional?: string | undefined;
|
|
3321
3437
|
explainer?: string | undefined;
|
|
3438
|
+
footnotes?: string | undefined;
|
|
3322
3439
|
};
|
|
3323
3440
|
development?: string | undefined;
|
|
3324
3441
|
};
|
package/lib/blocks/index.js
CHANGED
|
@@ -14,6 +14,7 @@ import { blockESLintMoreStyling } from "./blockESLintMoreStyling.js";
|
|
|
14
14
|
import { blockESLintNode } from "./blockESLintNode.js";
|
|
15
15
|
import { blockESLintPackageJson } from "./blockESLintPackageJson.js";
|
|
16
16
|
import { blockESLintPerfectionist } from "./blockESLintPerfectionist.js";
|
|
17
|
+
import { blockESLintPlugin } from "./blockESLintPlugin.js";
|
|
17
18
|
import { blockESLintRegexp } from "./blockESLintRegexp.js";
|
|
18
19
|
import { blockESLintYML } from "./blockESLintYML.js";
|
|
19
20
|
import { blockFunding } from "./blockFunding.js";
|
|
@@ -60,6 +61,7 @@ const blocks = {
|
|
|
60
61
|
blockESLintNode,
|
|
61
62
|
blockESLintPackageJson,
|
|
62
63
|
blockESLintPerfectionist,
|
|
64
|
+
blockESLintPlugin,
|
|
63
65
|
blockESLintRegexp,
|
|
64
66
|
blockESLintYML,
|
|
65
67
|
blockFunding,
|
|
@@ -107,6 +109,7 @@ import { blockESLintMoreStyling as blockESLintMoreStyling2 } from "./blockESLint
|
|
|
107
109
|
import { blockESLintNode as blockESLintNode2 } from "./blockESLintNode.js";
|
|
108
110
|
import { blockESLintPackageJson as blockESLintPackageJson2 } from "./blockESLintPackageJson.js";
|
|
109
111
|
import { blockESLintPerfectionist as blockESLintPerfectionist2 } from "./blockESLintPerfectionist.js";
|
|
112
|
+
import { blockESLintPlugin as blockESLintPlugin2 } from "./blockESLintPlugin.js";
|
|
110
113
|
import { blockESLintRegexp as blockESLintRegexp2 } from "./blockESLintRegexp.js";
|
|
111
114
|
import { blockESLintYML as blockESLintYML2 } from "./blockESLintYML.js";
|
|
112
115
|
import { blockFunding as blockFunding2 } from "./blockFunding.js";
|
|
@@ -154,6 +157,7 @@ export {
|
|
|
154
157
|
blockESLintNode2 as blockESLintNode,
|
|
155
158
|
blockESLintPackageJson2 as blockESLintPackageJson,
|
|
156
159
|
blockESLintPerfectionist2 as blockESLintPerfectionist,
|
|
160
|
+
blockESLintPlugin2 as blockESLintPlugin,
|
|
157
161
|
blockESLintRegexp2 as blockESLintRegexp,
|
|
158
162
|
blockESLintYML2 as blockESLintYML,
|
|
159
163
|
blockFunding2 as blockFunding,
|
package/lib/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export { blockESLintMoreStyling } from './blocks/blockESLintMoreStyling.js';
|
|
|
23
23
|
export { blockESLintNode } from './blocks/blockESLintNode.js';
|
|
24
24
|
export { blockESLintPackageJson } from './blocks/blockESLintPackageJson.js';
|
|
25
25
|
export { blockESLintPerfectionist } from './blocks/blockESLintPerfectionist.js';
|
|
26
|
+
export { blockESLintPlugin } from './blocks/blockESLintPlugin.js';
|
|
26
27
|
export { blockESLintRegexp } from './blocks/blockESLintRegexp.js';
|
|
27
28
|
export { blockESLintYML } from './blocks/blockESLintYML.js';
|
|
28
29
|
export { blockFunding } from './blocks/blockFunding.js';
|
|
@@ -86,21 +87,25 @@ declare const createConfig: bingo.CreateTemplateConfig<{
|
|
|
86
87
|
readme: zod.ZodObject<{
|
|
87
88
|
additional: zod.ZodOptional<zod.ZodString>;
|
|
88
89
|
explainer: zod.ZodOptional<zod.ZodString>;
|
|
90
|
+
footnotes: zod.ZodOptional<zod.ZodString>;
|
|
89
91
|
usage: zod.ZodString;
|
|
90
92
|
}, "strip", zod.ZodTypeAny, {
|
|
91
93
|
usage: string;
|
|
92
94
|
additional?: string | undefined;
|
|
93
95
|
explainer?: string | undefined;
|
|
96
|
+
footnotes?: string | undefined;
|
|
94
97
|
}, {
|
|
95
98
|
usage: string;
|
|
96
99
|
additional?: string | undefined;
|
|
97
100
|
explainer?: string | undefined;
|
|
101
|
+
footnotes?: string | undefined;
|
|
98
102
|
}>;
|
|
99
103
|
}, "strip", zod.ZodTypeAny, {
|
|
100
104
|
readme: {
|
|
101
105
|
usage: string;
|
|
102
106
|
additional?: string | undefined;
|
|
103
107
|
explainer?: string | undefined;
|
|
108
|
+
footnotes?: string | undefined;
|
|
104
109
|
};
|
|
105
110
|
development?: string | undefined;
|
|
106
111
|
}, {
|
|
@@ -108,6 +113,7 @@ declare const createConfig: bingo.CreateTemplateConfig<{
|
|
|
108
113
|
usage: string;
|
|
109
114
|
additional?: string | undefined;
|
|
110
115
|
explainer?: string | undefined;
|
|
116
|
+
footnotes?: string | undefined;
|
|
111
117
|
};
|
|
112
118
|
development?: string | undefined;
|
|
113
119
|
}>;
|
|
@@ -225,6 +231,7 @@ declare const createConfig: bingo.CreateTemplateConfig<{
|
|
|
225
231
|
usage: string;
|
|
226
232
|
additional?: string | undefined;
|
|
227
233
|
explainer?: string | undefined;
|
|
234
|
+
footnotes?: string | undefined;
|
|
228
235
|
};
|
|
229
236
|
development?: string | undefined;
|
|
230
237
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Documentation } from '../schemas.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
|
|
4
|
-
declare function readDocumentation(getDevelopmentDocumentation: () => Promise<string | undefined>, getReadmeAdditional: () => Promise<string | undefined>, getReadmeExplainer: () => Promise<string | undefined>, getReadmeUsage: () => Promise<string>): Promise<Documentation>;
|
|
4
|
+
declare function readDocumentation(getDevelopmentDocumentation: () => Promise<string | undefined>, getReadmeAdditional: () => Promise<string | undefined>, getReadmeExplainer: () => Promise<string | undefined>, getReadmeFootnotes: () => Promise<string | undefined>, getReadmeUsage: () => Promise<string>): Promise<Documentation>;
|
|
5
5
|
|
|
6
6
|
export { readDocumentation };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
async function readDocumentation(getDevelopmentDocumentation, getReadmeAdditional, getReadmeExplainer, getReadmeUsage) {
|
|
2
|
-
const [additional, explainer, development, usage] = await Promise.all([
|
|
1
|
+
async function readDocumentation(getDevelopmentDocumentation, getReadmeAdditional, getReadmeExplainer, getReadmeFootnotes, getReadmeUsage) {
|
|
2
|
+
const [additional, explainer, footnotes, development, usage] = await Promise.all([
|
|
3
3
|
getReadmeAdditional(),
|
|
4
4
|
getReadmeExplainer(),
|
|
5
|
+
getReadmeFootnotes(),
|
|
5
6
|
getDevelopmentDocumentation(),
|
|
6
7
|
getReadmeUsage()
|
|
7
8
|
]);
|
|
@@ -10,6 +11,7 @@ async function readDocumentation(getDevelopmentDocumentation, getReadmeAdditiona
|
|
|
10
11
|
readme: {
|
|
11
12
|
additional,
|
|
12
13
|
explainer,
|
|
14
|
+
footnotes,
|
|
13
15
|
usage
|
|
14
16
|
}
|
|
15
17
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { indicatorTemplatedBy } from "./readReadmeFootnotes.js";
|
|
1
2
|
const indicatorAfterAllContributors = /<!--\s*ALL-CONTRIBUTORS-LIST:END\s*-->/;
|
|
2
3
|
const indicatorAfterAllContributorsSpellCheck = /<!--\s*spellchecker:\s*enable\s*-->/;
|
|
3
|
-
const indicatorBeforeTemplatedBy = /> .* This package (?:is|was) (?:based|build|templated) (?:on|with) |<!-- You can remove this notice/;
|
|
4
4
|
async function readReadmeAdditional(getReadme) {
|
|
5
5
|
const readme = await getReadme();
|
|
6
6
|
if (!readme) {
|
|
@@ -10,7 +10,7 @@ async function readReadmeAdditional(getReadme) {
|
|
|
10
10
|
if (!indexAfterContributors) {
|
|
11
11
|
return void 0;
|
|
12
12
|
}
|
|
13
|
-
const templatedByMatch =
|
|
13
|
+
const templatedByMatch = indicatorTemplatedBy.exec(readme);
|
|
14
14
|
return readme.slice(
|
|
15
15
|
indexAfterContributors.index + indexAfterContributors[0].length,
|
|
16
16
|
templatedByMatch?.index
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const indicatorTemplatedBy = /> .* This package (?:is|was) (?:based|build|templated) (?:on|with) |<!-- You can remove this notice/;
|
|
2
|
+
async function readReadmeFootnotes(getReadme) {
|
|
3
|
+
const readme = await getReadme();
|
|
4
|
+
if (!readme) {
|
|
5
|
+
return void 0;
|
|
6
|
+
}
|
|
7
|
+
const indexOfTemplatedBy = indicatorTemplatedBy.exec(readme)?.index;
|
|
8
|
+
if (!indexOfTemplatedBy) {
|
|
9
|
+
return void 0;
|
|
10
|
+
}
|
|
11
|
+
const indexOfNextLine = readme.indexOf("\n", indexOfTemplatedBy);
|
|
12
|
+
return readme.slice(indexOfNextLine).trim() || void 0;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
indicatorTemplatedBy,
|
|
16
|
+
readReadmeFootnotes
|
|
17
|
+
};
|
package/lib/presets/common.d.ts
CHANGED
|
@@ -31,21 +31,25 @@ declare const presetCommon: bingo_stratum.Preset<{
|
|
|
31
31
|
readme: zod.ZodObject<{
|
|
32
32
|
additional: zod.ZodOptional<zod.ZodString>;
|
|
33
33
|
explainer: zod.ZodOptional<zod.ZodString>;
|
|
34
|
+
footnotes: zod.ZodOptional<zod.ZodString>;
|
|
34
35
|
usage: zod.ZodString;
|
|
35
36
|
}, "strip", zod.ZodTypeAny, {
|
|
36
37
|
usage: string;
|
|
37
38
|
additional?: string | undefined;
|
|
38
39
|
explainer?: string | undefined;
|
|
40
|
+
footnotes?: string | undefined;
|
|
39
41
|
}, {
|
|
40
42
|
usage: string;
|
|
41
43
|
additional?: string | undefined;
|
|
42
44
|
explainer?: string | undefined;
|
|
45
|
+
footnotes?: string | undefined;
|
|
43
46
|
}>;
|
|
44
47
|
}, "strip", zod.ZodTypeAny, {
|
|
45
48
|
readme: {
|
|
46
49
|
usage: string;
|
|
47
50
|
additional?: string | undefined;
|
|
48
51
|
explainer?: string | undefined;
|
|
52
|
+
footnotes?: string | undefined;
|
|
49
53
|
};
|
|
50
54
|
development?: string | undefined;
|
|
51
55
|
}, {
|
|
@@ -53,6 +57,7 @@ declare const presetCommon: bingo_stratum.Preset<{
|
|
|
53
57
|
usage: string;
|
|
54
58
|
additional?: string | undefined;
|
|
55
59
|
explainer?: string | undefined;
|
|
60
|
+
footnotes?: string | undefined;
|
|
56
61
|
};
|
|
57
62
|
development?: string | undefined;
|
|
58
63
|
}>;
|
|
@@ -31,21 +31,25 @@ declare const presetEverything: bingo_stratum.Preset<{
|
|
|
31
31
|
readme: zod.ZodObject<{
|
|
32
32
|
additional: zod.ZodOptional<zod.ZodString>;
|
|
33
33
|
explainer: zod.ZodOptional<zod.ZodString>;
|
|
34
|
+
footnotes: zod.ZodOptional<zod.ZodString>;
|
|
34
35
|
usage: zod.ZodString;
|
|
35
36
|
}, "strip", zod.ZodTypeAny, {
|
|
36
37
|
usage: string;
|
|
37
38
|
additional?: string | undefined;
|
|
38
39
|
explainer?: string | undefined;
|
|
40
|
+
footnotes?: string | undefined;
|
|
39
41
|
}, {
|
|
40
42
|
usage: string;
|
|
41
43
|
additional?: string | undefined;
|
|
42
44
|
explainer?: string | undefined;
|
|
45
|
+
footnotes?: string | undefined;
|
|
43
46
|
}>;
|
|
44
47
|
}, "strip", zod.ZodTypeAny, {
|
|
45
48
|
readme: {
|
|
46
49
|
usage: string;
|
|
47
50
|
additional?: string | undefined;
|
|
48
51
|
explainer?: string | undefined;
|
|
52
|
+
footnotes?: string | undefined;
|
|
49
53
|
};
|
|
50
54
|
development?: string | undefined;
|
|
51
55
|
}, {
|
|
@@ -53,6 +57,7 @@ declare const presetEverything: bingo_stratum.Preset<{
|
|
|
53
57
|
usage: string;
|
|
54
58
|
additional?: string | undefined;
|
|
55
59
|
explainer?: string | undefined;
|
|
60
|
+
footnotes?: string | undefined;
|
|
56
61
|
};
|
|
57
62
|
development?: string | undefined;
|
|
58
63
|
}>;
|