create-typescript-app 2.4.6 → 2.6.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/README.md +1 -1
- package/lib/base.d.ts +14 -0
- package/lib/base.js +20 -3
- package/lib/blocks/blockAllContributors.d.ts +6 -0
- package/lib/blocks/blockAreTheTypesWrong.d.ts +6 -0
- package/lib/blocks/blockCSpell.d.ts +6 -0
- package/lib/blocks/blockCodecov.d.ts +6 -0
- package/lib/blocks/blockContributingDocs.d.ts +6 -0
- package/lib/blocks/blockContributingDocs.js +2 -2
- package/lib/blocks/blockContributorCovenant.d.ts +6 -0
- package/lib/blocks/blockDevelopmentDocs.d.ts +6 -0
- package/lib/blocks/blockESLint.d.ts +6 -0
- package/lib/blocks/blockESLintComments.d.ts +6 -0
- package/lib/blocks/blockESLintJSDoc.d.ts +6 -0
- package/lib/blocks/blockESLintJSONC.d.ts +6 -0
- package/lib/blocks/blockESLintMarkdown.d.ts +6 -0
- package/lib/blocks/blockESLintMoreStyling.d.ts +6 -0
- package/lib/blocks/blockESLintNode.d.ts +6 -0
- package/lib/blocks/blockESLintPackageJson.d.ts +6 -0
- package/lib/blocks/blockESLintPerfectionist.d.ts +6 -0
- package/lib/blocks/blockESLintRegexp.d.ts +6 -0
- package/lib/blocks/blockESLintYML.d.ts +6 -0
- package/lib/blocks/blockExampleFiles.d.ts +6 -0
- package/lib/blocks/blockFunding.d.ts +6 -0
- package/lib/blocks/blockGitHubActionsCI.d.ts +6 -0
- package/lib/blocks/blockGitHubApps.d.ts +6 -0
- package/lib/blocks/blockGitHubIssueTemplates.d.ts +6 -0
- package/lib/blocks/blockGitHubPRTemplate.d.ts +6 -0
- package/lib/blocks/blockGitHubPRTemplate.js +1 -1
- package/lib/blocks/blockGitignore.d.ts +6 -0
- package/lib/blocks/blockKnip.d.ts +6 -0
- package/lib/blocks/blockMITLicense.d.ts +6 -0
- package/lib/blocks/blockMarkdownlint.d.ts +6 -0
- package/lib/blocks/blockNvmrc.d.ts +6 -0
- package/lib/blocks/blockPRCompliance.d.ts +6 -0
- package/lib/blocks/blockPackageJson.d.ts +6 -0
- package/lib/blocks/blockPnpmDedupe.d.ts +6 -0
- package/lib/blocks/blockPrettier.d.ts +6 -0
- package/lib/blocks/blockPrettierPluginCurly.d.ts +6 -0
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts +6 -0
- package/lib/blocks/blockPrettierPluginSh.d.ts +6 -0
- package/lib/blocks/blockREADME.d.ts +6 -0
- package/lib/blocks/blockREADME.js +1 -1
- package/lib/blocks/blockReleaseIt.d.ts +6 -0
- package/lib/blocks/blockRenovate.d.ts +6 -0
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts +7 -1
- package/lib/blocks/blockRepositoryBranchRuleset.js +25 -32
- package/lib/blocks/blockRepositoryLabels.d.ts +6 -0
- package/lib/blocks/blockRepositoryLabels.js +47 -12
- package/lib/blocks/blockRepositorySecrets.d.ts +6 -0
- package/lib/blocks/blockRepositorySettings.d.ts +6 -0
- package/lib/blocks/blockRepositorySettings.js +22 -23
- package/lib/blocks/blockSecurityDocs.d.ts +6 -0
- package/lib/blocks/blockTSup.d.ts +6 -0
- package/lib/blocks/blockTemplatedWith.d.ts +6 -0
- package/lib/blocks/blockTypeScript.d.ts +6 -0
- package/lib/blocks/blockVSCode.d.ts +6 -0
- package/lib/blocks/blockVitest.d.ts +6 -0
- package/lib/blocks/index.d.ts +258 -0
- package/lib/blocks/options.fakes.d.ts +1 -0
- package/lib/blocks/options.fakes.js +1 -0
- package/lib/blocks/outcomeLabels.js +2 -2
- package/lib/data/packageData.d.ts +9 -7
- package/lib/index.d.ts +20 -0
- package/lib/options/getExistingLabels.d.ts +9 -0
- package/lib/options/getExistingLabels.js +22 -0
- package/lib/options/parseEmojiFromDescription.d.ts +3 -0
- package/lib/options/parseEmojiFromDescription.js +6 -0
- package/lib/options/readDefaultsFromReadme.d.ts +1 -1
- package/lib/options/readDefaultsFromReadme.js +2 -2
- package/lib/presets/common.d.ts +14 -0
- package/lib/presets/everything.d.ts +14 -0
- package/lib/presets/index.d.ts +42 -0
- package/lib/presets/minimal.d.ts +14 -0
- package/lib/template.d.ts +14 -0
- package/package.json +9 -7
package/lib/blocks/index.d.ts
CHANGED
|
@@ -66,6 +66,12 @@ declare const blocks: {
|
|
|
66
66
|
profile: string;
|
|
67
67
|
}[] | undefined;
|
|
68
68
|
documentation?: string | undefined;
|
|
69
|
+
emoji?: string | undefined;
|
|
70
|
+
existingLabels?: {
|
|
71
|
+
name: string;
|
|
72
|
+
description: string;
|
|
73
|
+
color: string;
|
|
74
|
+
}[] | undefined;
|
|
69
75
|
explainer?: string[] | undefined;
|
|
70
76
|
funding?: string | undefined;
|
|
71
77
|
guide?: {
|
|
@@ -114,6 +120,12 @@ declare const blocks: {
|
|
|
114
120
|
profile: string;
|
|
115
121
|
}[] | undefined;
|
|
116
122
|
documentation?: string | undefined;
|
|
123
|
+
emoji?: string | undefined;
|
|
124
|
+
existingLabels?: {
|
|
125
|
+
name: string;
|
|
126
|
+
description: string;
|
|
127
|
+
color: string;
|
|
128
|
+
}[] | undefined;
|
|
117
129
|
explainer?: string[] | undefined;
|
|
118
130
|
funding?: string | undefined;
|
|
119
131
|
guide?: {
|
|
@@ -164,6 +176,12 @@ declare const blocks: {
|
|
|
164
176
|
profile: string;
|
|
165
177
|
}[] | undefined;
|
|
166
178
|
documentation?: string | undefined;
|
|
179
|
+
emoji?: string | undefined;
|
|
180
|
+
existingLabels?: {
|
|
181
|
+
name: string;
|
|
182
|
+
description: string;
|
|
183
|
+
color: string;
|
|
184
|
+
}[] | undefined;
|
|
167
185
|
explainer?: string[] | undefined;
|
|
168
186
|
funding?: string | undefined;
|
|
169
187
|
guide?: {
|
|
@@ -212,6 +230,12 @@ declare const blocks: {
|
|
|
212
230
|
profile: string;
|
|
213
231
|
}[] | undefined;
|
|
214
232
|
documentation?: string | undefined;
|
|
233
|
+
emoji?: string | undefined;
|
|
234
|
+
existingLabels?: {
|
|
235
|
+
name: string;
|
|
236
|
+
description: string;
|
|
237
|
+
color: string;
|
|
238
|
+
}[] | undefined;
|
|
215
239
|
explainer?: string[] | undefined;
|
|
216
240
|
funding?: string | undefined;
|
|
217
241
|
guide?: {
|
|
@@ -260,6 +284,12 @@ declare const blocks: {
|
|
|
260
284
|
profile: string;
|
|
261
285
|
}[] | undefined;
|
|
262
286
|
documentation?: string | undefined;
|
|
287
|
+
emoji?: string | undefined;
|
|
288
|
+
existingLabels?: {
|
|
289
|
+
name: string;
|
|
290
|
+
description: string;
|
|
291
|
+
color: string;
|
|
292
|
+
}[] | undefined;
|
|
263
293
|
explainer?: string[] | undefined;
|
|
264
294
|
funding?: string | undefined;
|
|
265
295
|
guide?: {
|
|
@@ -311,6 +341,12 @@ declare const blocks: {
|
|
|
311
341
|
profile: string;
|
|
312
342
|
}[] | undefined;
|
|
313
343
|
documentation?: string | undefined;
|
|
344
|
+
emoji?: string | undefined;
|
|
345
|
+
existingLabels?: {
|
|
346
|
+
name: string;
|
|
347
|
+
description: string;
|
|
348
|
+
color: string;
|
|
349
|
+
}[] | undefined;
|
|
314
350
|
explainer?: string[] | undefined;
|
|
315
351
|
funding?: string | undefined;
|
|
316
352
|
guide?: {
|
|
@@ -373,6 +409,12 @@ declare const blocks: {
|
|
|
373
409
|
profile: string;
|
|
374
410
|
}[] | undefined;
|
|
375
411
|
documentation?: string | undefined;
|
|
412
|
+
emoji?: string | undefined;
|
|
413
|
+
existingLabels?: {
|
|
414
|
+
name: string;
|
|
415
|
+
description: string;
|
|
416
|
+
color: string;
|
|
417
|
+
}[] | undefined;
|
|
376
418
|
explainer?: string[] | undefined;
|
|
377
419
|
funding?: string | undefined;
|
|
378
420
|
guide?: {
|
|
@@ -447,6 +489,12 @@ declare const blocks: {
|
|
|
447
489
|
profile: string;
|
|
448
490
|
}[] | undefined;
|
|
449
491
|
documentation?: string | undefined;
|
|
492
|
+
emoji?: string | undefined;
|
|
493
|
+
existingLabels?: {
|
|
494
|
+
name: string;
|
|
495
|
+
description: string;
|
|
496
|
+
color: string;
|
|
497
|
+
}[] | undefined;
|
|
450
498
|
explainer?: string[] | undefined;
|
|
451
499
|
funding?: string | undefined;
|
|
452
500
|
guide?: {
|
|
@@ -495,6 +543,12 @@ declare const blocks: {
|
|
|
495
543
|
profile: string;
|
|
496
544
|
}[] | undefined;
|
|
497
545
|
documentation?: string | undefined;
|
|
546
|
+
emoji?: string | undefined;
|
|
547
|
+
existingLabels?: {
|
|
548
|
+
name: string;
|
|
549
|
+
description: string;
|
|
550
|
+
color: string;
|
|
551
|
+
}[] | undefined;
|
|
498
552
|
explainer?: string[] | undefined;
|
|
499
553
|
funding?: string | undefined;
|
|
500
554
|
guide?: {
|
|
@@ -543,6 +597,12 @@ declare const blocks: {
|
|
|
543
597
|
profile: string;
|
|
544
598
|
}[] | undefined;
|
|
545
599
|
documentation?: string | undefined;
|
|
600
|
+
emoji?: string | undefined;
|
|
601
|
+
existingLabels?: {
|
|
602
|
+
name: string;
|
|
603
|
+
description: string;
|
|
604
|
+
color: string;
|
|
605
|
+
}[] | undefined;
|
|
546
606
|
explainer?: string[] | undefined;
|
|
547
607
|
funding?: string | undefined;
|
|
548
608
|
guide?: {
|
|
@@ -591,6 +651,12 @@ declare const blocks: {
|
|
|
591
651
|
profile: string;
|
|
592
652
|
}[] | undefined;
|
|
593
653
|
documentation?: string | undefined;
|
|
654
|
+
emoji?: string | undefined;
|
|
655
|
+
existingLabels?: {
|
|
656
|
+
name: string;
|
|
657
|
+
description: string;
|
|
658
|
+
color: string;
|
|
659
|
+
}[] | undefined;
|
|
594
660
|
explainer?: string[] | undefined;
|
|
595
661
|
funding?: string | undefined;
|
|
596
662
|
guide?: {
|
|
@@ -639,6 +705,12 @@ declare const blocks: {
|
|
|
639
705
|
profile: string;
|
|
640
706
|
}[] | undefined;
|
|
641
707
|
documentation?: string | undefined;
|
|
708
|
+
emoji?: string | undefined;
|
|
709
|
+
existingLabels?: {
|
|
710
|
+
name: string;
|
|
711
|
+
description: string;
|
|
712
|
+
color: string;
|
|
713
|
+
}[] | undefined;
|
|
642
714
|
explainer?: string[] | undefined;
|
|
643
715
|
funding?: string | undefined;
|
|
644
716
|
guide?: {
|
|
@@ -687,6 +759,12 @@ declare const blocks: {
|
|
|
687
759
|
profile: string;
|
|
688
760
|
}[] | undefined;
|
|
689
761
|
documentation?: string | undefined;
|
|
762
|
+
emoji?: string | undefined;
|
|
763
|
+
existingLabels?: {
|
|
764
|
+
name: string;
|
|
765
|
+
description: string;
|
|
766
|
+
color: string;
|
|
767
|
+
}[] | undefined;
|
|
690
768
|
explainer?: string[] | undefined;
|
|
691
769
|
funding?: string | undefined;
|
|
692
770
|
guide?: {
|
|
@@ -735,6 +813,12 @@ declare const blocks: {
|
|
|
735
813
|
profile: string;
|
|
736
814
|
}[] | undefined;
|
|
737
815
|
documentation?: string | undefined;
|
|
816
|
+
emoji?: string | undefined;
|
|
817
|
+
existingLabels?: {
|
|
818
|
+
name: string;
|
|
819
|
+
description: string;
|
|
820
|
+
color: string;
|
|
821
|
+
}[] | undefined;
|
|
738
822
|
explainer?: string[] | undefined;
|
|
739
823
|
funding?: string | undefined;
|
|
740
824
|
guide?: {
|
|
@@ -783,6 +867,12 @@ declare const blocks: {
|
|
|
783
867
|
profile: string;
|
|
784
868
|
}[] | undefined;
|
|
785
869
|
documentation?: string | undefined;
|
|
870
|
+
emoji?: string | undefined;
|
|
871
|
+
existingLabels?: {
|
|
872
|
+
name: string;
|
|
873
|
+
description: string;
|
|
874
|
+
color: string;
|
|
875
|
+
}[] | undefined;
|
|
786
876
|
explainer?: string[] | undefined;
|
|
787
877
|
funding?: string | undefined;
|
|
788
878
|
guide?: {
|
|
@@ -831,6 +921,12 @@ declare const blocks: {
|
|
|
831
921
|
profile: string;
|
|
832
922
|
}[] | undefined;
|
|
833
923
|
documentation?: string | undefined;
|
|
924
|
+
emoji?: string | undefined;
|
|
925
|
+
existingLabels?: {
|
|
926
|
+
name: string;
|
|
927
|
+
description: string;
|
|
928
|
+
color: string;
|
|
929
|
+
}[] | undefined;
|
|
834
930
|
explainer?: string[] | undefined;
|
|
835
931
|
funding?: string | undefined;
|
|
836
932
|
guide?: {
|
|
@@ -879,6 +975,12 @@ declare const blocks: {
|
|
|
879
975
|
profile: string;
|
|
880
976
|
}[] | undefined;
|
|
881
977
|
documentation?: string | undefined;
|
|
978
|
+
emoji?: string | undefined;
|
|
979
|
+
existingLabels?: {
|
|
980
|
+
name: string;
|
|
981
|
+
description: string;
|
|
982
|
+
color: string;
|
|
983
|
+
}[] | undefined;
|
|
882
984
|
explainer?: string[] | undefined;
|
|
883
985
|
funding?: string | undefined;
|
|
884
986
|
guide?: {
|
|
@@ -927,6 +1029,12 @@ declare const blocks: {
|
|
|
927
1029
|
profile: string;
|
|
928
1030
|
}[] | undefined;
|
|
929
1031
|
documentation?: string | undefined;
|
|
1032
|
+
emoji?: string | undefined;
|
|
1033
|
+
existingLabels?: {
|
|
1034
|
+
name: string;
|
|
1035
|
+
description: string;
|
|
1036
|
+
color: string;
|
|
1037
|
+
}[] | undefined;
|
|
930
1038
|
explainer?: string[] | undefined;
|
|
931
1039
|
funding?: string | undefined;
|
|
932
1040
|
guide?: {
|
|
@@ -975,6 +1083,12 @@ declare const blocks: {
|
|
|
975
1083
|
profile: string;
|
|
976
1084
|
}[] | undefined;
|
|
977
1085
|
documentation?: string | undefined;
|
|
1086
|
+
emoji?: string | undefined;
|
|
1087
|
+
existingLabels?: {
|
|
1088
|
+
name: string;
|
|
1089
|
+
description: string;
|
|
1090
|
+
color: string;
|
|
1091
|
+
}[] | undefined;
|
|
978
1092
|
explainer?: string[] | undefined;
|
|
979
1093
|
funding?: string | undefined;
|
|
980
1094
|
guide?: {
|
|
@@ -1036,6 +1150,12 @@ declare const blocks: {
|
|
|
1036
1150
|
profile: string;
|
|
1037
1151
|
}[] | undefined;
|
|
1038
1152
|
documentation?: string | undefined;
|
|
1153
|
+
emoji?: string | undefined;
|
|
1154
|
+
existingLabels?: {
|
|
1155
|
+
name: string;
|
|
1156
|
+
description: string;
|
|
1157
|
+
color: string;
|
|
1158
|
+
}[] | undefined;
|
|
1039
1159
|
explainer?: string[] | undefined;
|
|
1040
1160
|
funding?: string | undefined;
|
|
1041
1161
|
guide?: {
|
|
@@ -1084,6 +1204,12 @@ declare const blocks: {
|
|
|
1084
1204
|
profile: string;
|
|
1085
1205
|
}[] | undefined;
|
|
1086
1206
|
documentation?: string | undefined;
|
|
1207
|
+
emoji?: string | undefined;
|
|
1208
|
+
existingLabels?: {
|
|
1209
|
+
name: string;
|
|
1210
|
+
description: string;
|
|
1211
|
+
color: string;
|
|
1212
|
+
}[] | undefined;
|
|
1087
1213
|
explainer?: string[] | undefined;
|
|
1088
1214
|
funding?: string | undefined;
|
|
1089
1215
|
guide?: {
|
|
@@ -1132,6 +1258,12 @@ declare const blocks: {
|
|
|
1132
1258
|
profile: string;
|
|
1133
1259
|
}[] | undefined;
|
|
1134
1260
|
documentation?: string | undefined;
|
|
1261
|
+
emoji?: string | undefined;
|
|
1262
|
+
existingLabels?: {
|
|
1263
|
+
name: string;
|
|
1264
|
+
description: string;
|
|
1265
|
+
color: string;
|
|
1266
|
+
}[] | undefined;
|
|
1135
1267
|
explainer?: string[] | undefined;
|
|
1136
1268
|
funding?: string | undefined;
|
|
1137
1269
|
guide?: {
|
|
@@ -1182,6 +1314,12 @@ declare const blocks: {
|
|
|
1182
1314
|
profile: string;
|
|
1183
1315
|
}[] | undefined;
|
|
1184
1316
|
documentation?: string | undefined;
|
|
1317
|
+
emoji?: string | undefined;
|
|
1318
|
+
existingLabels?: {
|
|
1319
|
+
name: string;
|
|
1320
|
+
description: string;
|
|
1321
|
+
color: string;
|
|
1322
|
+
}[] | undefined;
|
|
1185
1323
|
explainer?: string[] | undefined;
|
|
1186
1324
|
funding?: string | undefined;
|
|
1187
1325
|
guide?: {
|
|
@@ -1232,6 +1370,12 @@ declare const blocks: {
|
|
|
1232
1370
|
profile: string;
|
|
1233
1371
|
}[] | undefined;
|
|
1234
1372
|
documentation?: string | undefined;
|
|
1373
|
+
emoji?: string | undefined;
|
|
1374
|
+
existingLabels?: {
|
|
1375
|
+
name: string;
|
|
1376
|
+
description: string;
|
|
1377
|
+
color: string;
|
|
1378
|
+
}[] | undefined;
|
|
1235
1379
|
explainer?: string[] | undefined;
|
|
1236
1380
|
funding?: string | undefined;
|
|
1237
1381
|
guide?: {
|
|
@@ -1282,6 +1426,12 @@ declare const blocks: {
|
|
|
1282
1426
|
profile: string;
|
|
1283
1427
|
}[] | undefined;
|
|
1284
1428
|
documentation?: string | undefined;
|
|
1429
|
+
emoji?: string | undefined;
|
|
1430
|
+
existingLabels?: {
|
|
1431
|
+
name: string;
|
|
1432
|
+
description: string;
|
|
1433
|
+
color: string;
|
|
1434
|
+
}[] | undefined;
|
|
1285
1435
|
explainer?: string[] | undefined;
|
|
1286
1436
|
funding?: string | undefined;
|
|
1287
1437
|
guide?: {
|
|
@@ -1330,6 +1480,12 @@ declare const blocks: {
|
|
|
1330
1480
|
profile: string;
|
|
1331
1481
|
}[] | undefined;
|
|
1332
1482
|
documentation?: string | undefined;
|
|
1483
|
+
emoji?: string | undefined;
|
|
1484
|
+
existingLabels?: {
|
|
1485
|
+
name: string;
|
|
1486
|
+
description: string;
|
|
1487
|
+
color: string;
|
|
1488
|
+
}[] | undefined;
|
|
1333
1489
|
explainer?: string[] | undefined;
|
|
1334
1490
|
funding?: string | undefined;
|
|
1335
1491
|
guide?: {
|
|
@@ -1378,6 +1534,12 @@ declare const blocks: {
|
|
|
1378
1534
|
profile: string;
|
|
1379
1535
|
}[] | undefined;
|
|
1380
1536
|
documentation?: string | undefined;
|
|
1537
|
+
emoji?: string | undefined;
|
|
1538
|
+
existingLabels?: {
|
|
1539
|
+
name: string;
|
|
1540
|
+
description: string;
|
|
1541
|
+
color: string;
|
|
1542
|
+
}[] | undefined;
|
|
1381
1543
|
explainer?: string[] | undefined;
|
|
1382
1544
|
funding?: string | undefined;
|
|
1383
1545
|
guide?: {
|
|
@@ -1435,6 +1597,12 @@ declare const blocks: {
|
|
|
1435
1597
|
profile: string;
|
|
1436
1598
|
}[] | undefined;
|
|
1437
1599
|
documentation?: string | undefined;
|
|
1600
|
+
emoji?: string | undefined;
|
|
1601
|
+
existingLabels?: {
|
|
1602
|
+
name: string;
|
|
1603
|
+
description: string;
|
|
1604
|
+
color: string;
|
|
1605
|
+
}[] | undefined;
|
|
1438
1606
|
explainer?: string[] | undefined;
|
|
1439
1607
|
funding?: string | undefined;
|
|
1440
1608
|
guide?: {
|
|
@@ -1483,6 +1651,12 @@ declare const blocks: {
|
|
|
1483
1651
|
profile: string;
|
|
1484
1652
|
}[] | undefined;
|
|
1485
1653
|
documentation?: string | undefined;
|
|
1654
|
+
emoji?: string | undefined;
|
|
1655
|
+
existingLabels?: {
|
|
1656
|
+
name: string;
|
|
1657
|
+
description: string;
|
|
1658
|
+
color: string;
|
|
1659
|
+
}[] | undefined;
|
|
1486
1660
|
explainer?: string[] | undefined;
|
|
1487
1661
|
funding?: string | undefined;
|
|
1488
1662
|
guide?: {
|
|
@@ -1531,6 +1705,12 @@ declare const blocks: {
|
|
|
1531
1705
|
profile: string;
|
|
1532
1706
|
}[] | undefined;
|
|
1533
1707
|
documentation?: string | undefined;
|
|
1708
|
+
emoji?: string | undefined;
|
|
1709
|
+
existingLabels?: {
|
|
1710
|
+
name: string;
|
|
1711
|
+
description: string;
|
|
1712
|
+
color: string;
|
|
1713
|
+
}[] | undefined;
|
|
1534
1714
|
explainer?: string[] | undefined;
|
|
1535
1715
|
funding?: string | undefined;
|
|
1536
1716
|
guide?: {
|
|
@@ -1588,6 +1768,12 @@ declare const blocks: {
|
|
|
1588
1768
|
profile: string;
|
|
1589
1769
|
}[] | undefined;
|
|
1590
1770
|
documentation?: string | undefined;
|
|
1771
|
+
emoji?: string | undefined;
|
|
1772
|
+
existingLabels?: {
|
|
1773
|
+
name: string;
|
|
1774
|
+
description: string;
|
|
1775
|
+
color: string;
|
|
1776
|
+
}[] | undefined;
|
|
1591
1777
|
explainer?: string[] | undefined;
|
|
1592
1778
|
funding?: string | undefined;
|
|
1593
1779
|
guide?: {
|
|
@@ -1636,6 +1822,12 @@ declare const blocks: {
|
|
|
1636
1822
|
profile: string;
|
|
1637
1823
|
}[] | undefined;
|
|
1638
1824
|
documentation?: string | undefined;
|
|
1825
|
+
emoji?: string | undefined;
|
|
1826
|
+
existingLabels?: {
|
|
1827
|
+
name: string;
|
|
1828
|
+
description: string;
|
|
1829
|
+
color: string;
|
|
1830
|
+
}[] | undefined;
|
|
1639
1831
|
explainer?: string[] | undefined;
|
|
1640
1832
|
funding?: string | undefined;
|
|
1641
1833
|
guide?: {
|
|
@@ -1684,6 +1876,12 @@ declare const blocks: {
|
|
|
1684
1876
|
profile: string;
|
|
1685
1877
|
}[] | undefined;
|
|
1686
1878
|
documentation?: string | undefined;
|
|
1879
|
+
emoji?: string | undefined;
|
|
1880
|
+
existingLabels?: {
|
|
1881
|
+
name: string;
|
|
1882
|
+
description: string;
|
|
1883
|
+
color: string;
|
|
1884
|
+
}[] | undefined;
|
|
1687
1885
|
explainer?: string[] | undefined;
|
|
1688
1886
|
funding?: string | undefined;
|
|
1689
1887
|
guide?: {
|
|
@@ -1732,6 +1930,12 @@ declare const blocks: {
|
|
|
1732
1930
|
profile: string;
|
|
1733
1931
|
}[] | undefined;
|
|
1734
1932
|
documentation?: string | undefined;
|
|
1933
|
+
emoji?: string | undefined;
|
|
1934
|
+
existingLabels?: {
|
|
1935
|
+
name: string;
|
|
1936
|
+
description: string;
|
|
1937
|
+
color: string;
|
|
1938
|
+
}[] | undefined;
|
|
1735
1939
|
explainer?: string[] | undefined;
|
|
1736
1940
|
funding?: string | undefined;
|
|
1737
1941
|
guide?: {
|
|
@@ -1784,6 +1988,12 @@ declare const blocks: {
|
|
|
1784
1988
|
profile: string;
|
|
1785
1989
|
}[] | undefined;
|
|
1786
1990
|
documentation?: string | undefined;
|
|
1991
|
+
emoji?: string | undefined;
|
|
1992
|
+
existingLabels?: {
|
|
1993
|
+
name: string;
|
|
1994
|
+
description: string;
|
|
1995
|
+
color: string;
|
|
1996
|
+
}[] | undefined;
|
|
1787
1997
|
explainer?: string[] | undefined;
|
|
1788
1998
|
funding?: string | undefined;
|
|
1789
1999
|
guide?: {
|
|
@@ -1832,6 +2042,12 @@ declare const blocks: {
|
|
|
1832
2042
|
profile: string;
|
|
1833
2043
|
}[] | undefined;
|
|
1834
2044
|
documentation?: string | undefined;
|
|
2045
|
+
emoji?: string | undefined;
|
|
2046
|
+
existingLabels?: {
|
|
2047
|
+
name: string;
|
|
2048
|
+
description: string;
|
|
2049
|
+
color: string;
|
|
2050
|
+
}[] | undefined;
|
|
1835
2051
|
explainer?: string[] | undefined;
|
|
1836
2052
|
funding?: string | undefined;
|
|
1837
2053
|
guide?: {
|
|
@@ -1880,6 +2096,12 @@ declare const blocks: {
|
|
|
1880
2096
|
profile: string;
|
|
1881
2097
|
}[] | undefined;
|
|
1882
2098
|
documentation?: string | undefined;
|
|
2099
|
+
emoji?: string | undefined;
|
|
2100
|
+
existingLabels?: {
|
|
2101
|
+
name: string;
|
|
2102
|
+
description: string;
|
|
2103
|
+
color: string;
|
|
2104
|
+
}[] | undefined;
|
|
1883
2105
|
explainer?: string[] | undefined;
|
|
1884
2106
|
funding?: string | undefined;
|
|
1885
2107
|
guide?: {
|
|
@@ -1928,6 +2150,12 @@ declare const blocks: {
|
|
|
1928
2150
|
profile: string;
|
|
1929
2151
|
}[] | undefined;
|
|
1930
2152
|
documentation?: string | undefined;
|
|
2153
|
+
emoji?: string | undefined;
|
|
2154
|
+
existingLabels?: {
|
|
2155
|
+
name: string;
|
|
2156
|
+
description: string;
|
|
2157
|
+
color: string;
|
|
2158
|
+
}[] | undefined;
|
|
1931
2159
|
explainer?: string[] | undefined;
|
|
1932
2160
|
funding?: string | undefined;
|
|
1933
2161
|
guide?: {
|
|
@@ -1976,6 +2204,12 @@ declare const blocks: {
|
|
|
1976
2204
|
profile: string;
|
|
1977
2205
|
}[] | undefined;
|
|
1978
2206
|
documentation?: string | undefined;
|
|
2207
|
+
emoji?: string | undefined;
|
|
2208
|
+
existingLabels?: {
|
|
2209
|
+
name: string;
|
|
2210
|
+
description: string;
|
|
2211
|
+
color: string;
|
|
2212
|
+
}[] | undefined;
|
|
1979
2213
|
explainer?: string[] | undefined;
|
|
1980
2214
|
funding?: string | undefined;
|
|
1981
2215
|
guide?: {
|
|
@@ -2027,6 +2261,12 @@ declare const blocks: {
|
|
|
2027
2261
|
profile: string;
|
|
2028
2262
|
}[] | undefined;
|
|
2029
2263
|
documentation?: string | undefined;
|
|
2264
|
+
emoji?: string | undefined;
|
|
2265
|
+
existingLabels?: {
|
|
2266
|
+
name: string;
|
|
2267
|
+
description: string;
|
|
2268
|
+
color: string;
|
|
2269
|
+
}[] | undefined;
|
|
2030
2270
|
explainer?: string[] | undefined;
|
|
2031
2271
|
funding?: string | undefined;
|
|
2032
2272
|
guide?: {
|
|
@@ -2075,6 +2315,12 @@ declare const blocks: {
|
|
|
2075
2315
|
profile: string;
|
|
2076
2316
|
}[] | undefined;
|
|
2077
2317
|
documentation?: string | undefined;
|
|
2318
|
+
emoji?: string | undefined;
|
|
2319
|
+
existingLabels?: {
|
|
2320
|
+
name: string;
|
|
2321
|
+
description: string;
|
|
2322
|
+
color: string;
|
|
2323
|
+
}[] | undefined;
|
|
2078
2324
|
explainer?: string[] | undefined;
|
|
2079
2325
|
funding?: string | undefined;
|
|
2080
2326
|
guide?: {
|
|
@@ -2138,6 +2384,12 @@ declare const blocks: {
|
|
|
2138
2384
|
profile: string;
|
|
2139
2385
|
}[] | undefined;
|
|
2140
2386
|
documentation?: string | undefined;
|
|
2387
|
+
emoji?: string | undefined;
|
|
2388
|
+
existingLabels?: {
|
|
2389
|
+
name: string;
|
|
2390
|
+
description: string;
|
|
2391
|
+
color: string;
|
|
2392
|
+
}[] | undefined;
|
|
2141
2393
|
explainer?: string[] | undefined;
|
|
2142
2394
|
funding?: string | undefined;
|
|
2143
2395
|
guide?: {
|
|
@@ -2195,6 +2447,12 @@ declare const blocks: {
|
|
|
2195
2447
|
profile: string;
|
|
2196
2448
|
}[] | undefined;
|
|
2197
2449
|
documentation?: string | undefined;
|
|
2450
|
+
emoji?: string | undefined;
|
|
2451
|
+
existingLabels?: {
|
|
2452
|
+
name: string;
|
|
2453
|
+
description: string;
|
|
2454
|
+
color: string;
|
|
2455
|
+
}[] | undefined;
|
|
2198
2456
|
explainer?: string[] | undefined;
|
|
2199
2457
|
funding?: string | undefined;
|
|
2200
2458
|
guide?: {
|
|
@@ -37,7 +37,7 @@ const outcomeLabels = [
|
|
|
37
37
|
name: "status: aged away"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
|
-
color: "
|
|
40
|
+
color: "ddcccc",
|
|
41
41
|
description: "Waiting for something else to be resolved \u{1F645}",
|
|
42
42
|
name: "status: blocked"
|
|
43
43
|
},
|
|
@@ -47,7 +47,7 @@ const outcomeLabels = [
|
|
|
47
47
|
name: "status: duplicate"
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
|
-
color: "
|
|
50
|
+
color: "05104F",
|
|
51
51
|
description: "Not yet ready for implementation or a pull request",
|
|
52
52
|
name: "status: in discussion"
|
|
53
53
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var name = "create-typescript-app";
|
|
2
|
-
var version = "2.
|
|
2
|
+
var version = "2.5.0";
|
|
3
3
|
var description = "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 🎁";
|
|
4
4
|
var repository = {
|
|
5
5
|
type: "git",
|
|
@@ -33,13 +33,14 @@ var scripts = {
|
|
|
33
33
|
tsc: "tsc"
|
|
34
34
|
};
|
|
35
35
|
var dependencies = {
|
|
36
|
-
bingo: "^0.5.
|
|
36
|
+
bingo: "^0.5.8",
|
|
37
37
|
"bingo-fs": "^0.5.4",
|
|
38
|
-
"bingo-stratum": "^0.5.
|
|
38
|
+
"bingo-stratum": "^0.5.5",
|
|
39
39
|
"cspell-populate-words": "^0.3.0",
|
|
40
40
|
execa: "^9.5.2",
|
|
41
41
|
"git-remote-origin-url": "^4.0.0",
|
|
42
42
|
"git-url-parse": "^16.0.1",
|
|
43
|
+
"github-default-labels": "^0.1.0",
|
|
43
44
|
"html-to-text": "^9.0.5",
|
|
44
45
|
"image-size": "^1.2.0",
|
|
45
46
|
"input-from-file": "^0.5.4",
|
|
@@ -54,7 +55,7 @@ var dependencies = {
|
|
|
54
55
|
"parse-package-name": "^1.0.0",
|
|
55
56
|
"remove-dependencies": "^0.1.0",
|
|
56
57
|
"remove-undefined-objects": "^6.0.0",
|
|
57
|
-
"set-github-repository-labels": "^0.
|
|
58
|
+
"set-github-repository-labels": "^0.2.0",
|
|
58
59
|
"sort-package-json": "^3.0.0",
|
|
59
60
|
"title-case": "^4.3.2",
|
|
60
61
|
zod: "^3.24.2"
|
|
@@ -74,8 +75,9 @@ var devDependencies = {
|
|
|
74
75
|
"@vitest/coverage-v8": "3.0.7",
|
|
75
76
|
"@vitest/eslint-plugin": "1.1.36",
|
|
76
77
|
"all-contributors-cli": "6.26.1",
|
|
78
|
+
"bingo-requests": "^0.5.4",
|
|
77
79
|
"bingo-stratum-testers": "0.5.6",
|
|
78
|
-
"bingo-testers": "0.5.
|
|
80
|
+
"bingo-testers": "^0.5.6",
|
|
79
81
|
"console-fail-test": "0.5.0",
|
|
80
82
|
cspell: "8.17.5",
|
|
81
83
|
eslint: "9.21.0",
|
|
@@ -84,7 +86,7 @@ var devDependencies = {
|
|
|
84
86
|
"eslint-plugin-markdown": "5.1.0",
|
|
85
87
|
"eslint-plugin-n": "17.16.2",
|
|
86
88
|
"eslint-plugin-package-json": "0.26.2",
|
|
87
|
-
"eslint-plugin-perfectionist": "4.
|
|
89
|
+
"eslint-plugin-perfectionist": "4.10.0",
|
|
88
90
|
"eslint-plugin-regexp": "2.7.0",
|
|
89
91
|
"eslint-plugin-yml": "1.17.0",
|
|
90
92
|
husky: "9.1.7",
|
|
@@ -104,7 +106,7 @@ var devDependencies = {
|
|
|
104
106
|
"typescript-eslint": "8.26.0",
|
|
105
107
|
vitest: "3.0.7"
|
|
106
108
|
};
|
|
107
|
-
var packageManager = "pnpm@10.
|
|
109
|
+
var packageManager = "pnpm@10.6.0";
|
|
108
110
|
var engines = {
|
|
109
111
|
node: ">=18.3.0"
|
|
110
112
|
};
|
package/lib/index.d.ts
CHANGED
|
@@ -95,6 +95,20 @@ declare const createConfig: bingo.CreateTemplateConfig<{
|
|
|
95
95
|
github: string;
|
|
96
96
|
npm: string;
|
|
97
97
|
}>;
|
|
98
|
+
emoji: zod.ZodOptional<zod.ZodString>;
|
|
99
|
+
existingLabels: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
100
|
+
color: zod.ZodString;
|
|
101
|
+
description: zod.ZodString;
|
|
102
|
+
name: zod.ZodString;
|
|
103
|
+
}, "strip", zod.ZodTypeAny, {
|
|
104
|
+
name: string;
|
|
105
|
+
description: string;
|
|
106
|
+
color: string;
|
|
107
|
+
}, {
|
|
108
|
+
name: string;
|
|
109
|
+
description: string;
|
|
110
|
+
color: string;
|
|
111
|
+
}>, "many">>;
|
|
98
112
|
explainer: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
99
113
|
funding: zod.ZodOptional<zod.ZodString>;
|
|
100
114
|
guide: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -175,6 +189,12 @@ declare const createConfig: bingo.CreateTemplateConfig<{
|
|
|
175
189
|
profile: string;
|
|
176
190
|
}[] | undefined;
|
|
177
191
|
documentation?: string | undefined;
|
|
192
|
+
emoji?: string | undefined;
|
|
193
|
+
existingLabels?: {
|
|
194
|
+
name: string;
|
|
195
|
+
description: string;
|
|
196
|
+
color: string;
|
|
197
|
+
}[] | undefined;
|
|
178
198
|
explainer?: string[] | undefined;
|
|
179
199
|
funding?: string | undefined;
|
|
180
200
|
guide?: {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { githubDefaultLabels } from "github-default-labels";
|
|
2
|
+
import { inputFromOctokit } from "../inputs/inputFromOctokit.js";
|
|
3
|
+
async function getExistingLabels(take, owner, repository) {
|
|
4
|
+
const existingLabelsActual = owner && repository && await take(inputFromOctokit, {
|
|
5
|
+
endpoint: "GET /repos/{owner}/{repo}/labels",
|
|
6
|
+
options: {
|
|
7
|
+
owner,
|
|
8
|
+
repo: repository
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
if (existingLabelsActual) {
|
|
12
|
+
return existingLabelsActual.map((label) => ({
|
|
13
|
+
color: label.color,
|
|
14
|
+
description: label.description,
|
|
15
|
+
name: label.name
|
|
16
|
+
}));
|
|
17
|
+
}
|
|
18
|
+
return githubDefaultLabels;
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
getExistingLabels
|
|
22
|
+
};
|