create-typescript-app 2.45.0 → 2.46.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.
Files changed (549) hide show
  1. package/lib/base.d.ts +170 -167
  2. package/lib/base.d.ts.map +1 -0
  3. package/lib/base.js +132 -204
  4. package/lib/base.js.map +1 -0
  5. package/lib/blocks/actions/resolveUses.d.ts +5 -2
  6. package/lib/blocks/actions/resolveUses.d.ts.map +1 -0
  7. package/lib/blocks/actions/resolveUses.js +13 -20
  8. package/lib/blocks/actions/resolveUses.js.map +1 -0
  9. package/lib/blocks/actions/steps.d.ts +25 -21
  10. package/lib/blocks/actions/steps.d.ts.map +1 -0
  11. package/lib/blocks/actions/steps.js +18 -23
  12. package/lib/blocks/actions/steps.js.map +1 -0
  13. package/lib/blocks/bin/getPrimaryBin.d.ts +4 -0
  14. package/lib/blocks/bin/getPrimaryBin.d.ts.map +1 -0
  15. package/lib/blocks/bin/getPrimaryBin.js +6 -4
  16. package/lib/blocks/bin/getPrimaryBin.js.map +1 -0
  17. package/lib/blocks/blockAllContributors.d.ts +70 -67
  18. package/lib/blocks/blockAllContributors.d.ts.map +1 -0
  19. package/lib/blocks/blockAllContributors.js +122 -170
  20. package/lib/blocks/blockAllContributors.js.map +1 -0
  21. package/lib/blocks/blockAreTheTypesWrong.d.ts +70 -67
  22. package/lib/blocks/blockAreTheTypesWrong.d.ts.map +1 -0
  23. package/lib/blocks/blockAreTheTypesWrong.js +13 -25
  24. package/lib/blocks/blockAreTheTypesWrong.js.map +1 -0
  25. package/lib/blocks/blockCSpell.d.ts +72 -69
  26. package/lib/blocks/blockCSpell.d.ts.map +1 -0
  27. package/lib/blocks/blockCSpell.js +68 -105
  28. package/lib/blocks/blockCSpell.js.map +1 -0
  29. package/lib/blocks/blockCTATransitions.d.ts +70 -67
  30. package/lib/blocks/blockCTATransitions.d.ts.map +1 -0
  31. package/lib/blocks/blockCTATransitions.js +108 -158
  32. package/lib/blocks/blockCTATransitions.js.map +1 -0
  33. package/lib/blocks/blockCodecov.d.ts +71 -68
  34. package/lib/blocks/blockCodecov.d.ts.map +1 -0
  35. package/lib/blocks/blockCodecov.js +48 -75
  36. package/lib/blocks/blockCodecov.js.map +1 -0
  37. package/lib/blocks/blockContributingDocs.d.ts +70 -67
  38. package/lib/blocks/blockContributingDocs.d.ts.map +1 -0
  39. package/lib/blocks/blockContributingDocs.js +14 -21
  40. package/lib/blocks/blockContributingDocs.js.map +1 -0
  41. package/lib/blocks/blockContributorCovenant.d.ts +70 -67
  42. package/lib/blocks/blockContributorCovenant.d.ts.map +1 -0
  43. package/lib/blocks/blockContributorCovenant.js +23 -37
  44. package/lib/blocks/blockContributorCovenant.js.map +1 -0
  45. package/lib/blocks/blockDevelopmentDocs.d.ts +83 -80
  46. package/lib/blocks/blockDevelopmentDocs.d.ts.map +1 -0
  47. package/lib/blocks/blockDevelopmentDocs.js +64 -74
  48. package/lib/blocks/blockDevelopmentDocs.js.map +1 -0
  49. package/lib/blocks/blockESLint.d.ts +95 -92
  50. package/lib/blocks/blockESLint.d.ts.map +1 -0
  51. package/lib/blocks/blockESLint.js +169 -263
  52. package/lib/blocks/blockESLint.js.map +1 -0
  53. package/lib/blocks/blockESLintComments.d.ts +70 -67
  54. package/lib/blocks/blockESLintComments.d.ts.map +1 -0
  55. package/lib/blocks/blockESLintComments.js +16 -21
  56. package/lib/blocks/blockESLintComments.js.map +1 -0
  57. package/lib/blocks/blockESLintJSDoc.d.ts +70 -67
  58. package/lib/blocks/blockESLintJSDoc.d.ts.map +1 -0
  59. package/lib/blocks/blockESLintJSDoc.js +20 -20
  60. package/lib/blocks/blockESLintJSDoc.js.map +1 -0
  61. package/lib/blocks/blockESLintJSONC.d.ts +70 -67
  62. package/lib/blocks/blockESLintJSONC.d.ts.map +1 -0
  63. package/lib/blocks/blockESLintJSONC.js +16 -16
  64. package/lib/blocks/blockESLintJSONC.js.map +1 -0
  65. package/lib/blocks/blockESLintMarkdown.d.ts +70 -67
  66. package/lib/blocks/blockESLintMarkdown.d.ts.map +1 -0
  67. package/lib/blocks/blockESLintMarkdown.js +17 -22
  68. package/lib/blocks/blockESLintMarkdown.js.map +1 -0
  69. package/lib/blocks/blockESLintMoreStyling.d.ts +70 -67
  70. package/lib/blocks/blockESLintMoreStyling.d.ts.map +1 -0
  71. package/lib/blocks/blockESLintMoreStyling.js +22 -30
  72. package/lib/blocks/blockESLintMoreStyling.js.map +1 -0
  73. package/lib/blocks/blockESLintNode.d.ts +70 -67
  74. package/lib/blocks/blockESLintNode.d.ts.map +1 -0
  75. package/lib/blocks/blockESLintNode.js +20 -23
  76. package/lib/blocks/blockESLintNode.js.map +1 -0
  77. package/lib/blocks/blockESLintPackageJson.d.ts +70 -67
  78. package/lib/blocks/blockESLintPackageJson.d.ts.map +1 -0
  79. package/lib/blocks/blockESLintPackageJson.js +26 -49
  80. package/lib/blocks/blockESLintPackageJson.js.map +1 -0
  81. package/lib/blocks/blockESLintPerfectionist.d.ts +70 -67
  82. package/lib/blocks/blockESLintPerfectionist.d.ts.map +1 -0
  83. package/lib/blocks/blockESLintPerfectionist.js +20 -27
  84. package/lib/blocks/blockESLintPerfectionist.js.map +1 -0
  85. package/lib/blocks/blockESLintPlugin.d.ts +71 -68
  86. package/lib/blocks/blockESLintPlugin.d.ts.map +1 -0
  87. package/lib/blocks/blockESLintPlugin.js +89 -137
  88. package/lib/blocks/blockESLintPlugin.js.map +1 -0
  89. package/lib/blocks/blockESLintRegexp.d.ts +70 -67
  90. package/lib/blocks/blockESLintRegexp.d.ts.map +1 -0
  91. package/lib/blocks/blockESLintRegexp.js +16 -18
  92. package/lib/blocks/blockESLintRegexp.js.map +1 -0
  93. package/lib/blocks/blockESLintYML.d.ts +70 -67
  94. package/lib/blocks/blockESLintYML.d.ts.map +1 -0
  95. package/lib/blocks/blockESLintYML.js +30 -41
  96. package/lib/blocks/blockESLintYML.js.map +1 -0
  97. package/lib/blocks/blockExampleFiles.d.ts +72 -69
  98. package/lib/blocks/blockExampleFiles.d.ts.map +1 -0
  99. package/lib/blocks/blockExampleFiles.js +22 -29
  100. package/lib/blocks/blockExampleFiles.js.map +1 -0
  101. package/lib/blocks/blockFunding.d.ts +70 -67
  102. package/lib/blocks/blockFunding.d.ts.map +1 -0
  103. package/lib/blocks/blockFunding.js +10 -15
  104. package/lib/blocks/blockFunding.js.map +1 -0
  105. package/lib/blocks/blockGitHubActionsCI.d.ts +85 -82
  106. package/lib/blocks/blockGitHubActionsCI.d.ts.map +1 -0
  107. package/lib/blocks/blockGitHubActionsCI.js +83 -134
  108. package/lib/blocks/blockGitHubActionsCI.js.map +1 -0
  109. package/lib/blocks/blockGitHubApps.d.ts +74 -71
  110. package/lib/blocks/blockGitHubApps.d.ts.map +1 -0
  111. package/lib/blocks/blockGitHubApps.js +15 -24
  112. package/lib/blocks/blockGitHubApps.js.map +1 -0
  113. package/lib/blocks/blockGitHubIssueTemplates.d.ts +70 -67
  114. package/lib/blocks/blockGitHubIssueTemplates.d.ts.map +1 -0
  115. package/lib/blocks/blockGitHubIssueTemplates.js +185 -204
  116. package/lib/blocks/blockGitHubIssueTemplates.js.map +1 -0
  117. package/lib/blocks/blockGitHubPRTemplate.d.ts +70 -67
  118. package/lib/blocks/blockGitHubPRTemplate.d.ts.map +1 -0
  119. package/lib/blocks/blockGitHubPRTemplate.js +11 -16
  120. package/lib/blocks/blockGitHubPRTemplate.js.map +1 -0
  121. package/lib/blocks/blockGitignore.d.ts +71 -68
  122. package/lib/blocks/blockGitignore.d.ts.map +1 -0
  123. package/lib/blocks/blockGitignore.js +13 -18
  124. package/lib/blocks/blockGitignore.js.map +1 -0
  125. package/lib/blocks/blockKnip.d.ts +73 -70
  126. package/lib/blocks/blockKnip.d.ts.map +1 -0
  127. package/lib/blocks/blockKnip.js +60 -88
  128. package/lib/blocks/blockKnip.js.map +1 -0
  129. package/lib/blocks/blockMITLicense.d.ts +70 -67
  130. package/lib/blocks/blockMITLicense.d.ts.map +1 -0
  131. package/lib/blocks/blockMITLicense.js +21 -31
  132. package/lib/blocks/blockMITLicense.js.map +1 -0
  133. package/lib/blocks/blockMain.d.ts +72 -69
  134. package/lib/blocks/blockMain.d.ts.map +1 -0
  135. package/lib/blocks/blockMain.js +17 -29
  136. package/lib/blocks/blockMain.js.map +1 -0
  137. package/lib/blocks/blockMarkdownlint.d.ts +71 -68
  138. package/lib/blocks/blockMarkdownlint.d.ts.map +1 -0
  139. package/lib/blocks/blockMarkdownlint.js +55 -94
  140. package/lib/blocks/blockMarkdownlint.js.map +1 -0
  141. package/lib/blocks/blockNcc.d.ts +71 -68
  142. package/lib/blocks/blockNcc.d.ts.map +1 -0
  143. package/lib/blocks/blockNcc.js +44 -72
  144. package/lib/blocks/blockNcc.js.map +1 -0
  145. package/lib/blocks/blockNvmrc.d.ts +70 -67
  146. package/lib/blocks/blockNvmrc.d.ts.map +1 -0
  147. package/lib/blocks/blockNvmrc.js +16 -21
  148. package/lib/blocks/blockNvmrc.js.map +1 -0
  149. package/lib/blocks/blockOctoGuide.d.ts +71 -68
  150. package/lib/blocks/blockOctoGuide.d.ts.map +1 -0
  151. package/lib/blocks/blockOctoGuide.js +65 -93
  152. package/lib/blocks/blockOctoGuide.js.map +1 -0
  153. package/lib/blocks/blockOctoGuideStrict.d.ts +70 -67
  154. package/lib/blocks/blockOctoGuideStrict.d.ts.map +1 -0
  155. package/lib/blocks/blockOctoGuideStrict.js +10 -15
  156. package/lib/blocks/blockOctoGuideStrict.js.map +1 -0
  157. package/lib/blocks/blockPackageJson.d.ts +144 -141
  158. package/lib/blocks/blockPackageJson.d.ts.map +1 -0
  159. package/lib/blocks/blockPackageJson.js +82 -113
  160. package/lib/blocks/blockPackageJson.js.map +1 -0
  161. package/lib/blocks/blockPnpmDedupe.d.ts +70 -67
  162. package/lib/blocks/blockPnpmDedupe.d.ts.map +1 -0
  163. package/lib/blocks/blockPnpmDedupe.js +24 -49
  164. package/lib/blocks/blockPnpmDedupe.js.map +1 -0
  165. package/lib/blocks/blockPrettier.d.ts +79 -76
  166. package/lib/blocks/blockPrettier.d.ts.map +1 -0
  167. package/lib/blocks/blockPrettier.js +82 -116
  168. package/lib/blocks/blockPrettier.js.map +1 -0
  169. package/lib/blocks/blockPrettierPluginCurly.d.ts +70 -67
  170. package/lib/blocks/blockPrettierPluginCurly.d.ts.map +1 -0
  171. package/lib/blocks/blockPrettierPluginCurly.js +10 -15
  172. package/lib/blocks/blockPrettierPluginCurly.js.map +1 -0
  173. package/lib/blocks/blockPrettierPluginPackageJson.d.ts +70 -67
  174. package/lib/blocks/blockPrettierPluginPackageJson.d.ts.map +1 -0
  175. package/lib/blocks/blockPrettierPluginPackageJson.js +10 -15
  176. package/lib/blocks/blockPrettierPluginPackageJson.js.map +1 -0
  177. package/lib/blocks/blockPrettierPluginSh.d.ts +70 -67
  178. package/lib/blocks/blockPrettierPluginSh.d.ts.map +1 -0
  179. package/lib/blocks/blockPrettierPluginSh.js +10 -15
  180. package/lib/blocks/blockPrettierPluginSh.js.map +1 -0
  181. package/lib/blocks/blockREADME.d.ts +82 -79
  182. package/lib/blocks/blockREADME.d.ts.map +1 -0
  183. package/lib/blocks/blockREADME.js +46 -60
  184. package/lib/blocks/blockREADME.js.map +1 -0
  185. package/lib/blocks/blockReleaseIt.d.ts +74 -71
  186. package/lib/blocks/blockReleaseIt.d.ts.map +1 -0
  187. package/lib/blocks/blockReleaseIt.js +152 -181
  188. package/lib/blocks/blockReleaseIt.js.map +1 -0
  189. package/lib/blocks/blockRemoveDependencies.d.ts +71 -68
  190. package/lib/blocks/blockRemoveDependencies.d.ts.map +1 -0
  191. package/lib/blocks/blockRemoveDependencies.js +18 -27
  192. package/lib/blocks/blockRemoveDependencies.js.map +1 -0
  193. package/lib/blocks/blockRemoveFiles.d.ts +71 -68
  194. package/lib/blocks/blockRemoveFiles.d.ts.map +1 -0
  195. package/lib/blocks/blockRemoveFiles.js +19 -28
  196. package/lib/blocks/blockRemoveFiles.js.map +1 -0
  197. package/lib/blocks/blockRemoveWorkflows.d.ts +71 -68
  198. package/lib/blocks/blockRemoveWorkflows.d.ts.map +1 -0
  199. package/lib/blocks/blockRemoveWorkflows.js +16 -27
  200. package/lib/blocks/blockRemoveWorkflows.js.map +1 -0
  201. package/lib/blocks/blockRenovate.d.ts +71 -68
  202. package/lib/blocks/blockRenovate.d.ts.map +1 -0
  203. package/lib/blocks/blockRenovate.js +37 -52
  204. package/lib/blocks/blockRenovate.js.map +1 -0
  205. package/lib/blocks/blockRepositoryBranchRuleset.d.ts +71 -68
  206. package/lib/blocks/blockRepositoryBranchRuleset.d.ts.map +1 -0
  207. package/lib/blocks/blockRepositoryBranchRuleset.js +77 -107
  208. package/lib/blocks/blockRepositoryBranchRuleset.js.map +1 -0
  209. package/lib/blocks/blockRepositoryLabels.d.ts +70 -67
  210. package/lib/blocks/blockRepositoryLabels.d.ts.map +1 -0
  211. package/lib/blocks/blockRepositoryLabels.js +51 -58
  212. package/lib/blocks/blockRepositoryLabels.js.map +1 -0
  213. package/lib/blocks/blockRepositorySecrets.d.ts +74 -71
  214. package/lib/blocks/blockRepositorySecrets.d.ts.map +1 -0
  215. package/lib/blocks/blockRepositorySecrets.js +15 -26
  216. package/lib/blocks/blockRepositorySecrets.js.map +1 -0
  217. package/lib/blocks/blockRepositorySettings.d.ts +70 -67
  218. package/lib/blocks/blockRepositorySettings.d.ts.map +1 -0
  219. package/lib/blocks/blockRepositorySettings.js +32 -39
  220. package/lib/blocks/blockRepositorySettings.js.map +1 -0
  221. package/lib/blocks/blockSecurityDocs.d.ts +70 -67
  222. package/lib/blocks/blockSecurityDocs.d.ts.map +1 -0
  223. package/lib/blocks/blockSecurityDocs.js +11 -16
  224. package/lib/blocks/blockSecurityDocs.js.map +1 -0
  225. package/lib/blocks/blockTSDown.d.ts +79 -0
  226. package/lib/blocks/blockTSDown.d.ts.map +1 -0
  227. package/lib/blocks/blockTSDown.js +111 -0
  228. package/lib/blocks/blockTSDown.js.map +1 -0
  229. package/lib/blocks/blockTemplatedWith.d.ts +70 -67
  230. package/lib/blocks/blockTemplatedWith.d.ts.map +1 -0
  231. package/lib/blocks/blockTemplatedWith.js +12 -20
  232. package/lib/blocks/blockTemplatedWith.js.map +1 -0
  233. package/lib/blocks/blockTypeScript.d.ts +181 -178
  234. package/lib/blocks/blockTypeScript.d.ts.map +1 -0
  235. package/lib/blocks/blockTypeScript.js +94 -127
  236. package/lib/blocks/blockTypeScript.js.map +1 -0
  237. package/lib/blocks/blockVSCode.d.ts +78 -75
  238. package/lib/blocks/blockVSCode.d.ts.map +1 -0
  239. package/lib/blocks/blockVSCode.js +51 -81
  240. package/lib/blocks/blockVSCode.js.map +1 -0
  241. package/lib/blocks/blockVitest.d.ts +86 -83
  242. package/lib/blocks/blockVitest.d.ts.map +1 -0
  243. package/lib/blocks/blockVitest.js +115 -168
  244. package/lib/blocks/blockVitest.js.map +1 -0
  245. package/lib/blocks/blockWebExt.d.ts +70 -67
  246. package/lib/blocks/blockWebExt.d.ts.map +1 -0
  247. package/lib/blocks/blockWebExt.js +59 -83
  248. package/lib/blocks/blockWebExt.js.map +1 -0
  249. package/lib/blocks/eslint/blockESLintIntake.d.ts +9 -6
  250. package/lib/blocks/eslint/blockESLintIntake.d.ts.map +1 -0
  251. package/lib/blocks/eslint/blockESLintIntake.js +84 -111
  252. package/lib/blocks/eslint/blockESLintIntake.js.map +1 -0
  253. package/lib/blocks/eslint/blockESLintPluginIntake.d.ts +5 -2
  254. package/lib/blocks/eslint/blockESLintPluginIntake.d.ts.map +1 -0
  255. package/lib/blocks/eslint/blockESLintPluginIntake.js +26 -44
  256. package/lib/blocks/eslint/blockESLintPluginIntake.js.map +1 -0
  257. package/lib/blocks/eslint/schemas.d.ts +77 -73
  258. package/lib/blocks/eslint/schemas.d.ts.map +1 -0
  259. package/lib/blocks/eslint/schemas.js +31 -36
  260. package/lib/blocks/eslint/schemas.js.map +1 -0
  261. package/lib/blocks/files/createJobName.d.ts +4 -0
  262. package/lib/blocks/files/createJobName.d.ts.map +1 -0
  263. package/lib/blocks/files/createJobName.js +6 -4
  264. package/lib/blocks/files/createJobName.js.map +1 -0
  265. package/lib/blocks/files/createMultiWorkflowFile.d.ts +21 -14
  266. package/lib/blocks/files/createMultiWorkflowFile.d.ts.map +1 -0
  267. package/lib/blocks/files/createMultiWorkflowFile.js +27 -35
  268. package/lib/blocks/files/createMultiWorkflowFile.js.map +1 -0
  269. package/lib/blocks/files/createSoloWorkflowFile.d.ts +61 -52
  270. package/lib/blocks/files/createSoloWorkflowFile.d.ts.map +1 -0
  271. package/lib/blocks/files/createSoloWorkflowFile.js +19 -25
  272. package/lib/blocks/files/createSoloWorkflowFile.js.map +1 -0
  273. package/lib/blocks/files/formatIgnoreFile.d.ts +4 -0
  274. package/lib/blocks/files/formatIgnoreFile.d.ts.map +1 -0
  275. package/lib/blocks/files/formatIgnoreFile.js +6 -4
  276. package/lib/blocks/files/formatIgnoreFile.js.map +1 -0
  277. package/lib/blocks/files/formatWorkflowYaml.d.ts +4 -0
  278. package/lib/blocks/files/formatWorkflowYaml.d.ts.map +1 -0
  279. package/lib/blocks/files/formatWorkflowYaml.js +7 -4
  280. package/lib/blocks/files/formatWorkflowYaml.js.map +1 -0
  281. package/lib/blocks/files/formatYaml.d.ts +4 -0
  282. package/lib/blocks/files/formatYaml.d.ts.map +1 -0
  283. package/lib/blocks/files/formatYaml.js +16 -21
  284. package/lib/blocks/files/formatYaml.js.map +1 -0
  285. package/lib/blocks/files/removeUsesQuotes.d.ts +4 -0
  286. package/lib/blocks/files/removeUsesQuotes.d.ts.map +1 -0
  287. package/lib/blocks/files/removeUsesQuotes.js +6 -7
  288. package/lib/blocks/files/removeUsesQuotes.js.map +1 -0
  289. package/lib/blocks/getInstallationSuggestions.d.ts +4 -0
  290. package/lib/blocks/getInstallationSuggestions.d.ts.map +1 -0
  291. package/lib/blocks/getInstallationSuggestions.js +11 -12
  292. package/lib/blocks/getInstallationSuggestions.js.map +1 -0
  293. package/lib/blocks/index.d.ts +3646 -3644
  294. package/lib/blocks/index.d.ts.map +1 -0
  295. package/lib/blocks/index.js +83 -177
  296. package/lib/blocks/index.js.map +1 -0
  297. package/lib/blocks/intake/intakeFile.d.ts +5 -1
  298. package/lib/blocks/intake/intakeFile.d.ts.map +1 -0
  299. package/lib/blocks/intake/intakeFile.js +12 -18
  300. package/lib/blocks/intake/intakeFile.js.map +1 -0
  301. package/lib/blocks/intake/intakeFileAsJson.d.ts +5 -1
  302. package/lib/blocks/intake/intakeFileAsJson.d.ts.map +1 -0
  303. package/lib/blocks/intake/intakeFileAsJson.js +13 -10
  304. package/lib/blocks/intake/intakeFileAsJson.js.map +1 -0
  305. package/lib/blocks/intake/intakeFileAsYaml.d.ts +5 -1
  306. package/lib/blocks/intake/intakeFileAsYaml.d.ts.map +1 -0
  307. package/lib/blocks/intake/intakeFileAsYaml.js +13 -10
  308. package/lib/blocks/intake/intakeFileAsYaml.js.map +1 -0
  309. package/lib/blocks/intake/intakeFileDefineConfig.d.ts +5 -1
  310. package/lib/blocks/intake/intakeFileDefineConfig.d.ts.map +1 -0
  311. package/lib/blocks/intake/intakeFileDefineConfig.js +20 -23
  312. package/lib/blocks/intake/intakeFileDefineConfig.js.map +1 -0
  313. package/lib/blocks/options.fakes.d.ts +23 -20
  314. package/lib/blocks/options.fakes.d.ts.map +1 -0
  315. package/lib/blocks/options.fakes.js +19 -23
  316. package/lib/blocks/options.fakes.js.map +1 -0
  317. package/lib/blocks/outcomeLabels.d.ts +12 -9
  318. package/lib/blocks/outcomeLabels.d.ts.map +1 -0
  319. package/lib/blocks/outcomeLabels.js +93 -92
  320. package/lib/blocks/outcomeLabels.js.map +1 -0
  321. package/lib/blocks/phases.d.ts +9 -6
  322. package/lib/blocks/phases.d.ts.map +1 -0
  323. package/lib/blocks/phases.js +10 -8
  324. package/lib/blocks/phases.js.map +1 -0
  325. package/lib/constants.d.ts +8 -5
  326. package/lib/constants.d.ts.map +1 -0
  327. package/lib/constants.js +9 -9
  328. package/lib/constants.js.map +1 -0
  329. package/lib/data/contributions.d.ts +4 -0
  330. package/lib/data/contributions.d.ts.map +1 -0
  331. package/lib/data/contributions.js +13 -11
  332. package/lib/data/contributions.js.map +1 -0
  333. package/lib/data/packageData.d.ts +7 -166
  334. package/lib/data/packageData.d.ts.map +1 -0
  335. package/lib/data/packageData.js +16 -24
  336. package/lib/data/packageData.js.map +1 -0
  337. package/lib/index.d.ts +290 -288
  338. package/lib/index.d.ts.map +1 -0
  339. package/lib/index.js +61 -7
  340. package/lib/index.js.map +1 -0
  341. package/lib/inputs/inputFromDirectory.d.ts +8 -4
  342. package/lib/inputs/inputFromDirectory.d.ts.map +1 -0
  343. package/lib/inputs/inputFromDirectory.js +11 -10
  344. package/lib/inputs/inputFromDirectory.js.map +1 -0
  345. package/lib/inputs/inputFromOctokit.d.ts +9 -5
  346. package/lib/inputs/inputFromOctokit.d.ts.map +1 -0
  347. package/lib/inputs/inputFromOctokit.js +23 -24
  348. package/lib/inputs/inputFromOctokit.js.map +1 -0
  349. package/lib/options/readAccess.d.ts +5 -1
  350. package/lib/options/readAccess.d.ts.map +1 -0
  351. package/lib/options/readAccess.js +6 -4
  352. package/lib/options/readAccess.js.map +1 -0
  353. package/lib/options/readAllContributors.d.ts +6 -2
  354. package/lib/options/readAllContributors.d.ts.map +1 -0
  355. package/lib/options/readAllContributors.js +17 -22
  356. package/lib/options/readAllContributors.js.map +1 -0
  357. package/lib/options/readAuthor.d.ts +6 -3
  358. package/lib/options/readAuthor.d.ts.map +1 -0
  359. package/lib/options/readAuthor.js +6 -4
  360. package/lib/options/readAuthor.js.map +1 -0
  361. package/lib/options/readBin.d.ts +5 -1
  362. package/lib/options/readBin.d.ts.map +1 -0
  363. package/lib/options/readBin.js +8 -10
  364. package/lib/options/readBin.js.map +1 -0
  365. package/lib/options/readDescription.d.ts +5 -1
  366. package/lib/options/readDescription.d.ts.map +1 -0
  367. package/lib/options/readDescription.js +16 -23
  368. package/lib/options/readDescription.js.map +1 -0
  369. package/lib/options/readDescriptionFromReadme.d.ts +4 -0
  370. package/lib/options/readDescriptionFromReadme.d.ts.map +1 -0
  371. package/lib/options/readDescriptionFromReadme.js +11 -13
  372. package/lib/options/readDescriptionFromReadme.js.map +1 -0
  373. package/lib/options/readDevelopmentDocumentation.d.ts +5 -1
  374. package/lib/options/readDevelopmentDocumentation.d.ts.map +1 -0
  375. package/lib/options/readDevelopmentDocumentation.js +18 -21
  376. package/lib/options/readDevelopmentDocumentation.js.map +1 -0
  377. package/lib/options/readDocumentation.d.ts +5 -2
  378. package/lib/options/readDocumentation.d.ts.map +1 -0
  379. package/lib/options/readDocumentation.js +21 -19
  380. package/lib/options/readDocumentation.js.map +1 -0
  381. package/lib/options/readEmailFromCodeOfConduct.d.ts +5 -1
  382. package/lib/options/readEmailFromCodeOfConduct.d.ts.map +1 -0
  383. package/lib/options/readEmailFromCodeOfConduct.js +8 -7
  384. package/lib/options/readEmailFromCodeOfConduct.js.map +1 -0
  385. package/lib/options/readEmailFromGit.d.ts +5 -1
  386. package/lib/options/readEmailFromGit.d.ts.map +1 -0
  387. package/lib/options/readEmailFromGit.js +7 -4
  388. package/lib/options/readEmailFromGit.js.map +1 -0
  389. package/lib/options/readEmailFromNpm.d.ts +6 -3
  390. package/lib/options/readEmailFromNpm.d.ts.map +1 -0
  391. package/lib/options/readEmailFromNpm.js +6 -4
  392. package/lib/options/readEmailFromNpm.js.map +1 -0
  393. package/lib/options/readEmails.d.ts +7 -4
  394. package/lib/options/readEmails.d.ts.map +1 -0
  395. package/lib/options/readEmails.js +11 -6
  396. package/lib/options/readEmails.js.map +1 -0
  397. package/lib/options/readEmoji.d.ts +4 -0
  398. package/lib/options/readEmoji.d.ts.map +1 -0
  399. package/lib/options/readEmoji.js +6 -4
  400. package/lib/options/readEmoji.js.map +1 -0
  401. package/lib/options/readExistingLabels.d.ts +8 -4
  402. package/lib/options/readExistingLabels.d.ts.map +1 -0
  403. package/lib/options/readExistingLabels.js +21 -20
  404. package/lib/options/readExistingLabels.js.map +1 -0
  405. package/lib/options/readFileAsJson.d.ts +4 -0
  406. package/lib/options/readFileAsJson.d.ts.map +1 -0
  407. package/lib/options/readFileAsJson.js +11 -11
  408. package/lib/options/readFileAsJson.js.map +1 -0
  409. package/lib/options/readFileSafe.d.ts +4 -0
  410. package/lib/options/readFileSafe.d.ts.map +1 -0
  411. package/lib/options/readFileSafe.js +11 -8
  412. package/lib/options/readFileSafe.js.map +1 -0
  413. package/lib/options/readFunding.d.ts +5 -1
  414. package/lib/options/readFunding.d.ts.map +1 -0
  415. package/lib/options/readFunding.js +8 -7
  416. package/lib/options/readFunding.js.map +1 -0
  417. package/lib/options/readGitDefaults.d.ts +6 -2
  418. package/lib/options/readGitDefaults.d.ts.map +1 -0
  419. package/lib/options/readGitDefaults.js +9 -8
  420. package/lib/options/readGitDefaults.js.map +1 -0
  421. package/lib/options/readGuide.d.ts +7 -3
  422. package/lib/options/readGuide.d.ts.map +1 -0
  423. package/lib/options/readGuide.js +14 -19
  424. package/lib/options/readGuide.js.map +1 -0
  425. package/lib/options/readKeywords.d.ts +5 -1
  426. package/lib/options/readKeywords.d.ts.map +1 -0
  427. package/lib/options/readKeywords.js +7 -5
  428. package/lib/options/readKeywords.js.map +1 -0
  429. package/lib/options/readLogo.d.ts +8 -4
  430. package/lib/options/readLogo.d.ts.map +1 -0
  431. package/lib/options/readLogo.js +19 -22
  432. package/lib/options/readLogo.js.map +1 -0
  433. package/lib/options/readLogoSizing.d.ts +7 -3
  434. package/lib/options/readLogoSizing.d.ts.map +1 -0
  435. package/lib/options/readLogoSizing.js +26 -22
  436. package/lib/options/readLogoSizing.js.map +1 -0
  437. package/lib/options/readNode.d.ts +7 -3
  438. package/lib/options/readNode.d.ts.map +1 -0
  439. package/lib/options/readNode.js +12 -9
  440. package/lib/options/readNode.js.map +1 -0
  441. package/lib/options/readNpmDefaults.d.ts +7 -3
  442. package/lib/options/readNpmDefaults.d.ts.map +1 -0
  443. package/lib/options/readNpmDefaults.js +9 -6
  444. package/lib/options/readNpmDefaults.js.map +1 -0
  445. package/lib/options/readOwner.d.ts +7 -4
  446. package/lib/options/readOwner.d.ts.map +1 -0
  447. package/lib/options/readOwner.js +7 -6
  448. package/lib/options/readOwner.js.map +1 -0
  449. package/lib/options/readPackageAuthor.d.ts +8 -4
  450. package/lib/options/readPackageAuthor.d.ts.map +1 -0
  451. package/lib/options/readPackageAuthor.js +12 -12
  452. package/lib/options/readPackageAuthor.js.map +1 -0
  453. package/lib/options/readPackageData.d.ts +6 -2
  454. package/lib/options/readPackageData.d.ts.map +1 -0
  455. package/lib/options/readPackageData.js +8 -9
  456. package/lib/options/readPackageData.js.map +1 -0
  457. package/lib/options/readPnpm.d.ts +5 -1
  458. package/lib/options/readPnpm.d.ts.map +1 -0
  459. package/lib/options/readPnpm.js +7 -5
  460. package/lib/options/readPnpm.js.map +1 -0
  461. package/lib/options/readReadmeAdditional.d.ts +4 -0
  462. package/lib/options/readReadmeAdditional.d.ts.map +1 -0
  463. package/lib/options/readReadmeAdditional.js +15 -22
  464. package/lib/options/readReadmeAdditional.js.map +1 -0
  465. package/lib/options/readReadmeExplainer.d.ts +4 -0
  466. package/lib/options/readReadmeExplainer.d.ts.map +1 -0
  467. package/lib/options/readReadmeExplainer.js +24 -25
  468. package/lib/options/readReadmeExplainer.js.map +1 -0
  469. package/lib/options/readReadmeFootnotes.d.ts +4 -0
  470. package/lib/options/readReadmeFootnotes.d.ts.map +1 -0
  471. package/lib/options/readReadmeFootnotes.js +15 -24
  472. package/lib/options/readReadmeFootnotes.js.map +1 -0
  473. package/lib/options/readReadmeUsage.d.ts +4 -0
  474. package/lib/options/readReadmeUsage.d.ts.map +1 -0
  475. package/lib/options/readReadmeUsage.js +13 -15
  476. package/lib/options/readReadmeUsage.js.map +1 -0
  477. package/lib/options/readRepository.d.ts +8 -4
  478. package/lib/options/readRepository.d.ts.map +1 -0
  479. package/lib/options/readRepository.js +6 -4
  480. package/lib/options/readRepository.js.map +1 -0
  481. package/lib/options/readRulesetId.d.ts +5 -1
  482. package/lib/options/readRulesetId.d.ts.map +1 -0
  483. package/lib/options/readRulesetId.js +14 -13
  484. package/lib/options/readRulesetId.js.map +1 -0
  485. package/lib/options/readTitle.d.ts +4 -0
  486. package/lib/options/readTitle.d.ts.map +1 -0
  487. package/lib/options/readTitle.js +11 -10
  488. package/lib/options/readTitle.js.map +1 -0
  489. package/lib/options/readWords.d.ts +5 -1
  490. package/lib/options/readWords.d.ts.map +1 -0
  491. package/lib/options/readWords.js +9 -10
  492. package/lib/options/readWords.js.map +1 -0
  493. package/lib/options/readWorkflowsVersions.d.ts +6 -3
  494. package/lib/options/readWorkflowsVersions.d.ts.map +1 -0
  495. package/lib/options/readWorkflowsVersions.js +45 -63
  496. package/lib/options/readWorkflowsVersions.js.map +1 -0
  497. package/lib/presets/common.d.ts +169 -166
  498. package/lib/presets/common.d.ts.map +1 -0
  499. package/lib/presets/common.js +21 -18
  500. package/lib/presets/common.js.map +1 -0
  501. package/lib/presets/everything.d.ts +169 -166
  502. package/lib/presets/everything.d.ts.map +1 -0
  503. package/lib/presets/everything.js +39 -36
  504. package/lib/presets/everything.js.map +1 -0
  505. package/lib/presets/index.d.ts +504 -502
  506. package/lib/presets/index.d.ts.map +1 -0
  507. package/lib/presets/index.js +10 -13
  508. package/lib/presets/index.js.map +1 -0
  509. package/lib/presets/minimal.d.ts +169 -166
  510. package/lib/presets/minimal.d.ts.map +1 -0
  511. package/lib/presets/minimal.js +51 -48
  512. package/lib/presets/minimal.js.map +1 -0
  513. package/lib/schemas.d.ts +75 -71
  514. package/lib/schemas.d.ts.map +1 -0
  515. package/lib/schemas.js +19 -21
  516. package/lib/schemas.js.map +1 -0
  517. package/lib/template.d.ts +169 -166
  518. package/lib/template.d.ts.map +1 -0
  519. package/lib/template.js +31 -24
  520. package/lib/template.js.map +1 -0
  521. package/lib/types.d.ts +32 -30
  522. package/lib/types.d.ts.map +1 -0
  523. package/lib/utils/htmlToTextSafe.d.ts +4 -0
  524. package/lib/utils/htmlToTextSafe.d.ts.map +1 -0
  525. package/lib/utils/htmlToTextSafe.js +13 -12
  526. package/lib/utils/htmlToTextSafe.js.map +1 -0
  527. package/lib/utils/resolveBin.d.ts +4 -0
  528. package/lib/utils/resolveBin.d.ts.map +1 -0
  529. package/lib/utils/resolveBin.js +7 -4
  530. package/lib/utils/resolveBin.js.map +1 -0
  531. package/lib/utils/swallowError.d.ts +4 -0
  532. package/lib/utils/swallowError.d.ts.map +1 -0
  533. package/lib/utils/swallowError.js +6 -4
  534. package/lib/utils/swallowError.js.map +1 -0
  535. package/lib/utils/swallowErrorAsync.d.ts +4 -0
  536. package/lib/utils/swallowErrorAsync.d.ts.map +1 -0
  537. package/lib/utils/swallowErrorAsync.js +10 -8
  538. package/lib/utils/swallowErrorAsync.js.map +1 -0
  539. package/lib/utils/trimPrecedingSlash.d.ts +4 -0
  540. package/lib/utils/trimPrecedingSlash.d.ts.map +1 -0
  541. package/lib/utils/trimPrecedingSlash.js +6 -4
  542. package/lib/utils/trimPrecedingSlash.js.map +1 -0
  543. package/lib/utils/tryCatch.d.ts +4 -0
  544. package/lib/utils/tryCatch.d.ts.map +1 -0
  545. package/lib/utils/tryCatch.js +10 -8
  546. package/lib/utils/tryCatch.js.map +1 -0
  547. package/package.json +3 -3
  548. package/lib/blocks/blockTSup.d.ts +0 -76
  549. package/lib/blocks/blockTSup.js +0 -139
@@ -1,72 +1,75 @@
1
- import * as bingo_stratum from 'bingo-stratum';
1
+ import * as bingo_stratum272 from "bingo-stratum";
2
2
 
3
- declare const blockFunding: bingo_stratum.BlockWithoutAddons<{
4
- access: "public" | "restricted";
5
- description: string;
6
- directory: string;
7
- documentation: {
8
- readme: {
9
- additional?: string | undefined;
10
- explainer?: string | undefined;
11
- footnotes?: string | undefined;
12
- usage?: string | undefined;
13
- };
14
- development?: string | undefined;
15
- };
16
- email: {
17
- github: string;
18
- npm: string;
3
+ //#region src/blocks/blockFunding.d.ts
4
+ declare const blockFunding: bingo_stratum272.BlockWithoutAddons<{
5
+ access: "public" | "restricted";
6
+ description: string;
7
+ directory: string;
8
+ documentation: {
9
+ readme: {
10
+ additional?: string | undefined;
11
+ explainer?: string | undefined;
12
+ footnotes?: string | undefined;
13
+ usage?: string | undefined;
19
14
  };
15
+ development?: string | undefined;
16
+ };
17
+ email: {
18
+ github: string;
19
+ npm: string;
20
+ };
21
+ title: string;
22
+ node: {
23
+ minimum: string;
24
+ pinned?: string | undefined;
25
+ };
26
+ owner: string;
27
+ repository: string;
28
+ type?: "commonjs" | "module" | undefined;
29
+ author?: string | undefined;
30
+ bin?: string | Record<string, string> | undefined;
31
+ contributors?: {
32
+ avatar_url: string;
33
+ contributions: string[];
34
+ login: string;
35
+ name: string;
36
+ profile: string;
37
+ }[] | undefined;
38
+ emoji?: string | undefined;
39
+ existingLabels?: {
40
+ name: string;
41
+ description: string;
42
+ color: string;
43
+ }[] | undefined;
44
+ funding?: string | undefined;
45
+ guide?: {
46
+ href: string;
20
47
  title: string;
21
- node: {
22
- minimum: string;
23
- pinned?: string | undefined;
24
- };
25
- owner: string;
26
- repository: string;
27
- type?: "commonjs" | "module" | undefined;
28
- author?: string | undefined;
29
- bin?: string | Record<string, string> | undefined;
30
- contributors?: {
31
- avatar_url: string;
32
- contributions: string[];
33
- login: string;
34
- name: string;
35
- profile: string;
36
- }[] | undefined;
37
- emoji?: string | undefined;
38
- existingLabels?: {
39
- name: string;
40
- description: string;
41
- color: string;
42
- }[] | undefined;
43
- funding?: string | undefined;
44
- guide?: {
45
- href: string;
46
- title: string;
47
- } | undefined;
48
- keywords?: string[] | undefined;
49
- logo?: {
50
- alt: string;
51
- src: string;
52
- height?: number | undefined;
53
- width?: number | undefined;
54
- } | undefined;
55
- packageData?: {
56
- dependencies?: Record<string, string> | undefined;
57
- devDependencies?: Record<string, string> | undefined;
58
- peerDependencies?: Record<string, string> | undefined;
59
- peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string | undefined> | undefined;
61
- } | undefined;
62
- pnpm?: string | undefined;
63
- rulesetId?: string | undefined;
64
- version?: string | undefined;
65
- words?: string[] | undefined;
66
- workflowsVersions?: Record<string, Record<string, {
67
- pinned?: boolean | undefined;
68
- hash?: string | undefined;
69
- }>> | undefined;
48
+ } | undefined;
49
+ keywords?: string[] | undefined;
50
+ logo?: {
51
+ alt: string;
52
+ src: string;
53
+ height?: number | undefined;
54
+ width?: number | undefined;
55
+ } | undefined;
56
+ packageData?: {
57
+ dependencies?: Record<string, string> | undefined;
58
+ devDependencies?: Record<string, string> | undefined;
59
+ peerDependencies?: Record<string, string> | undefined;
60
+ peerDependenciesMeta?: Record<string, unknown> | undefined;
61
+ scripts?: Record<string, string | undefined> | undefined;
62
+ } | undefined;
63
+ pnpm?: string | undefined;
64
+ rulesetId?: string | undefined;
65
+ version?: string | undefined;
66
+ words?: string[] | undefined;
67
+ workflowsVersions?: Record<string, Record<string, {
68
+ hash?: string | undefined;
69
+ pinned?: boolean | undefined;
70
+ }>> | undefined;
70
71
  }>;
71
-
72
+ //# sourceMappingURL=blockFunding.d.ts.map
73
+ //#endregion
72
74
  export { blockFunding };
75
+ //# sourceMappingURL=blockFunding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blockFunding.d.ts","names":[],"sources":["../../src/blocks/blockFunding.ts"],"sourcesContent":[],"mappings":";;;cAGa,+BAAY;;;EAAZ,SAAA,EAAA,MAcX;EAAA,aAAA,EAAA;IAAA,MAAA,EAAA;;;;;;;;;IAduB,MAAA,EAAA,MAAA;;;;;;;;;;;;iBAcvB"}
@@ -1,19 +1,14 @@
1
1
  import { base } from "../base.js";
2
2
  import { formatYaml } from "./files/formatYaml.js";
3
+
4
+ //#region src/blocks/blockFunding.ts
3
5
  const blockFunding = base.createBlock({
4
- about: {
5
- name: "Funding"
6
- },
7
- produce({ options }) {
8
- return {
9
- files: {
10
- ".github": {
11
- "FUNDING.yml": options.funding && formatYaml({ github: options.funding })
12
- }
13
- }
14
- };
15
- }
6
+ about: { name: "Funding" },
7
+ produce({ options }) {
8
+ return { files: { ".github": { "FUNDING.yml": options.funding && formatYaml({ github: options.funding }) } } };
9
+ }
16
10
  });
17
- export {
18
- blockFunding
19
- };
11
+
12
+ //#endregion
13
+ export { blockFunding };
14
+ //# sourceMappingURL=blockFunding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blockFunding.js","names":[],"sources":["../../src/blocks/blockFunding.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { formatYaml } from \"./files/formatYaml.js\";\n\nexport const blockFunding = base.createBlock({\n\tabout: {\n\t\tname: \"Funding\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\t\"FUNDING.yml\":\n\t\t\t\t\t\toptions.funding && formatYaml({ github: options.funding }),\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":";;;;AAGA,MAAa,eAAe,KAAK,YAAY;CAC5C,OAAO,EACN,MAAM,UACN;CACD,QAAQ,EAAE,SAAS,EAAE;AACpB,SAAO,EACN,OAAO,EACN,WAAW,EACV,eACC,QAAQ,WAAW,WAAW,EAAE,QAAQ,QAAQ,QAAS,EAAC,CAC3D,EACD,EACD;CACD;AACD,EAAC"}
@@ -1,88 +1,91 @@
1
- import * as bingo_stratum from 'bingo-stratum';
1
+ import * as bingo_stratum277 from "bingo-stratum";
2
2
 
3
- declare const blockGitHubActionsCI: bingo_stratum.BlockWithAddons<{
4
- jobs?: {
5
- name: string;
6
- steps: ({
7
- with?: Record<string, string> | undefined;
8
- env?: Record<string, string> | undefined;
9
- if?: string | undefined;
10
- } & ({
11
- run: string;
12
- } | {
13
- uses: string;
14
- }))[];
15
- if?: string | undefined;
16
- checkoutWith?: Record<string, string> | undefined;
17
- }[] | undefined;
18
- nodeVersion?: string | number | undefined;
3
+ //#region src/blocks/blockGitHubActionsCI.d.ts
4
+ declare const blockGitHubActionsCI: bingo_stratum277.BlockWithAddons<{
5
+ jobs?: {
6
+ name: string;
7
+ steps: ({
8
+ env?: Record<string, string> | undefined;
9
+ if?: string | undefined;
10
+ with?: Record<string, string> | undefined;
11
+ } & ({
12
+ run: string;
13
+ } | {
14
+ uses: string;
15
+ }))[];
16
+ checkoutWith?: Record<string, string> | undefined;
17
+ if?: string | undefined;
18
+ }[] | undefined;
19
+ nodeVersion?: string | number | undefined;
19
20
  }, {
20
- access: "public" | "restricted";
21
- description: string;
22
- directory: string;
23
- documentation: {
24
- readme: {
25
- additional?: string | undefined;
26
- explainer?: string | undefined;
27
- footnotes?: string | undefined;
28
- usage?: string | undefined;
29
- };
30
- development?: string | undefined;
31
- };
32
- email: {
33
- github: string;
34
- npm: string;
21
+ access: "public" | "restricted";
22
+ description: string;
23
+ directory: string;
24
+ documentation: {
25
+ readme: {
26
+ additional?: string | undefined;
27
+ explainer?: string | undefined;
28
+ footnotes?: string | undefined;
29
+ usage?: string | undefined;
35
30
  };
31
+ development?: string | undefined;
32
+ };
33
+ email: {
34
+ github: string;
35
+ npm: string;
36
+ };
37
+ title: string;
38
+ node: {
39
+ minimum: string;
40
+ pinned?: string | undefined;
41
+ };
42
+ owner: string;
43
+ repository: string;
44
+ type?: "commonjs" | "module" | undefined;
45
+ author?: string | undefined;
46
+ bin?: string | Record<string, string> | undefined;
47
+ contributors?: {
48
+ avatar_url: string;
49
+ contributions: string[];
50
+ login: string;
51
+ name: string;
52
+ profile: string;
53
+ }[] | undefined;
54
+ emoji?: string | undefined;
55
+ existingLabels?: {
56
+ name: string;
57
+ description: string;
58
+ color: string;
59
+ }[] | undefined;
60
+ funding?: string | undefined;
61
+ guide?: {
62
+ href: string;
36
63
  title: string;
37
- node: {
38
- minimum: string;
39
- pinned?: string | undefined;
40
- };
41
- owner: string;
42
- repository: string;
43
- type?: "commonjs" | "module" | undefined;
44
- author?: string | undefined;
45
- bin?: string | Record<string, string> | undefined;
46
- contributors?: {
47
- avatar_url: string;
48
- contributions: string[];
49
- login: string;
50
- name: string;
51
- profile: string;
52
- }[] | undefined;
53
- emoji?: string | undefined;
54
- existingLabels?: {
55
- name: string;
56
- description: string;
57
- color: string;
58
- }[] | undefined;
59
- funding?: string | undefined;
60
- guide?: {
61
- href: string;
62
- title: string;
63
- } | undefined;
64
- keywords?: string[] | undefined;
65
- logo?: {
66
- alt: string;
67
- src: string;
68
- height?: number | undefined;
69
- width?: number | undefined;
70
- } | undefined;
71
- packageData?: {
72
- dependencies?: Record<string, string> | undefined;
73
- devDependencies?: Record<string, string> | undefined;
74
- peerDependencies?: Record<string, string> | undefined;
75
- peerDependenciesMeta?: Record<string, unknown> | undefined;
76
- scripts?: Record<string, string | undefined> | undefined;
77
- } | undefined;
78
- pnpm?: string | undefined;
79
- rulesetId?: string | undefined;
80
- version?: string | undefined;
81
- words?: string[] | undefined;
82
- workflowsVersions?: Record<string, Record<string, {
83
- pinned?: boolean | undefined;
84
- hash?: string | undefined;
85
- }>> | undefined;
64
+ } | undefined;
65
+ keywords?: string[] | undefined;
66
+ logo?: {
67
+ alt: string;
68
+ src: string;
69
+ height?: number | undefined;
70
+ width?: number | undefined;
71
+ } | undefined;
72
+ packageData?: {
73
+ dependencies?: Record<string, string> | undefined;
74
+ devDependencies?: Record<string, string> | undefined;
75
+ peerDependencies?: Record<string, string> | undefined;
76
+ peerDependenciesMeta?: Record<string, unknown> | undefined;
77
+ scripts?: Record<string, string | undefined> | undefined;
78
+ } | undefined;
79
+ pnpm?: string | undefined;
80
+ rulesetId?: string | undefined;
81
+ version?: string | undefined;
82
+ words?: string[] | undefined;
83
+ workflowsVersions?: Record<string, Record<string, {
84
+ hash?: string | undefined;
85
+ pinned?: boolean | undefined;
86
+ }>> | undefined;
86
87
  }>;
87
-
88
+ //# sourceMappingURL=blockGitHubActionsCI.d.ts.map
89
+ //#endregion
88
90
  export { blockGitHubActionsCI };
91
+ //# sourceMappingURL=blockGitHubActionsCI.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blockGitHubActionsCI.d.ts","names":[],"sources":["../../src/blocks/blockGitHubActionsCI.ts"],"sourcesContent":[],"mappings":";;;cAWa,uCAAoB;;;IAApB,KAAA,EAAA,CAAA;MA2IX,GAAA,CAAA,EAAA,MAAA,CAAA,MAAA,EAAA,MAAA,CAAA,GAAA,SAAA;MAAA,EAAA,CAAA,EAAA,MAAA,GAAA,SAAA;;;;;;;;;;;;EA3I+B,MAAA,EAAA,QAAA,GAAA,YAAA"}
@@ -1,143 +1,92 @@
1
- import { z } from "zod";
2
1
  import { base } from "../base.js";
3
2
  import { resolveUses } from "./actions/resolveUses.js";
4
3
  import { intakeFileYamlSteps, zActionStep } from "./actions/steps.js";
5
4
  import { blockRemoveFiles } from "./blockRemoveFiles.js";
6
5
  import { blockRepositoryBranchRuleset } from "./blockRepositoryBranchRuleset.js";
6
+ import { formatYaml } from "./files/formatYaml.js";
7
7
  import { createMultiWorkflowFile } from "./files/createMultiWorkflowFile.js";
8
8
  import { createSoloWorkflowFile } from "./files/createSoloWorkflowFile.js";
9
- import { formatYaml } from "./files/formatYaml.js";
9
+ import { z } from "zod";
10
+
11
+ //#region src/blocks/blockGitHubActionsCI.ts
10
12
  const blockGitHubActionsCI = base.createBlock({
11
- about: {
12
- name: "GitHub Actions CI"
13
- },
14
- addons: {
15
- jobs: z.array(
16
- z.object({
17
- checkoutWith: z.record(z.string(), z.string()).optional(),
18
- if: z.string().optional(),
19
- name: z.string(),
20
- steps: z.array(zActionStep)
21
- })
22
- ).optional(),
23
- nodeVersion: z.union([z.number(), z.string()]).optional()
24
- },
25
- intake({ files }) {
26
- const steps = intakeFileYamlSteps(
27
- files,
28
- [".github", "actions", "prepare", "action.yml"],
29
- ["runs", "steps"]
30
- );
31
- if (!steps) {
32
- return void 0;
33
- }
34
- const setupNodeStep = steps.find(
35
- (step) => typeof step.uses === "string" && step.uses.startsWith("actions/setup-node")
36
- );
37
- if (!setupNodeStep) {
38
- return void 0;
39
- }
40
- const nodeVersion = setupNodeStep.with?.["node-version"];
41
- if (!nodeVersion) {
42
- return void 0;
43
- }
44
- return { nodeVersion };
45
- },
46
- produce({ addons, options }) {
47
- const { jobs, nodeVersion = options.node.pinned ?? options.node.minimum } = addons;
48
- return {
49
- addons: [
50
- blockRepositoryBranchRuleset({
51
- requiredStatusChecks: jobs?.map((job) => job.name)
52
- })
53
- ],
54
- files: {
55
- ".github": {
56
- actions: {
57
- prepare: {
58
- "action.yml": formatYaml({
59
- description: "Prepares the repo for a typical CI job",
60
- name: "Prepare",
61
- runs: {
62
- steps: [
63
- {
64
- uses: resolveUses(
65
- "pnpm/action-setup",
66
- "v4",
67
- options.workflowsVersions
68
- )
69
- },
70
- {
71
- uses: resolveUses(
72
- "actions/setup-node",
73
- "v4",
74
- options.workflowsVersions
75
- ),
76
- with: {
77
- cache: "pnpm",
78
- "node-version": nodeVersion
79
- }
80
- },
81
- {
82
- run: "pnpm install --frozen-lockfile",
83
- shell: "bash"
84
- }
85
- ],
86
- using: "composite"
87
- }
88
- })
89
- }
90
- },
91
- workflows: {
92
- "ci.yml": jobs && createMultiWorkflowFile({
93
- jobs: jobs.sort((a, b) => a.name.localeCompare(b.name)),
94
- name: "CI",
95
- workflowsVersions: options.workflowsVersions
96
- }),
97
- "pr-review-requested.yml": createSoloWorkflowFile({
98
- name: "PR Review Requested",
99
- on: {
100
- pull_request_target: {
101
- types: ["review_requested"]
102
- }
103
- },
104
- permissions: {
105
- "pull-requests": "write"
106
- },
107
- steps: [
108
- {
109
- uses: resolveUses(
110
- "actions-ecosystem/action-remove-labels",
111
- "v1",
112
- options.workflowsVersions
113
- ),
114
- with: {
115
- labels: "status: waiting for author"
116
- }
117
- },
118
- {
119
- if: "failure()",
120
- run: `echo "Don't worry if the previous step failed."
121
- echo "See https://github.com/actions-ecosystem/action-remove-labels/issues/221."
122
- `
123
- }
124
- ]
125
- })
126
- }
127
- }
128
- }
129
- };
130
- },
131
- transition() {
132
- return {
133
- addons: [
134
- blockRemoveFiles({
135
- files: [".circleci", "travis.yml"]
136
- })
137
- ]
138
- };
139
- }
13
+ about: { name: "GitHub Actions CI" },
14
+ addons: {
15
+ jobs: z.array(z.object({
16
+ checkoutWith: z.record(z.string(), z.string()).optional(),
17
+ if: z.string().optional(),
18
+ name: z.string(),
19
+ steps: z.array(zActionStep)
20
+ })).optional(),
21
+ nodeVersion: z.union([z.number(), z.string()]).optional()
22
+ },
23
+ intake({ files }) {
24
+ const steps = intakeFileYamlSteps(files, [
25
+ ".github",
26
+ "actions",
27
+ "prepare",
28
+ "action.yml"
29
+ ], ["runs", "steps"]);
30
+ if (!steps) return void 0;
31
+ const setupNodeStep = steps.find((step) => typeof step.uses === "string" && step.uses.startsWith("actions/setup-node"));
32
+ if (!setupNodeStep) return void 0;
33
+ const nodeVersion = setupNodeStep.with?.["node-version"];
34
+ if (!nodeVersion) return void 0;
35
+ return { nodeVersion };
36
+ },
37
+ produce({ addons, options }) {
38
+ const { jobs, nodeVersion = options.node.pinned ?? options.node.minimum } = addons;
39
+ return {
40
+ addons: [blockRepositoryBranchRuleset({ requiredStatusChecks: jobs?.map((job) => job.name) })],
41
+ files: { ".github": {
42
+ actions: { prepare: { "action.yml": formatYaml({
43
+ description: "Prepares the repo for a typical CI job",
44
+ name: "Prepare",
45
+ runs: {
46
+ steps: [
47
+ { uses: resolveUses("pnpm/action-setup", "v4", options.workflowsVersions) },
48
+ {
49
+ uses: resolveUses("actions/setup-node", "v4", options.workflowsVersions),
50
+ with: {
51
+ cache: "pnpm",
52
+ "node-version": nodeVersion
53
+ }
54
+ },
55
+ {
56
+ run: "pnpm install --frozen-lockfile",
57
+ shell: "bash"
58
+ }
59
+ ],
60
+ using: "composite"
61
+ }
62
+ }) } },
63
+ workflows: {
64
+ "ci.yml": jobs && createMultiWorkflowFile({
65
+ jobs: jobs.sort((a, b) => a.name.localeCompare(b.name)),
66
+ name: "CI",
67
+ workflowsVersions: options.workflowsVersions
68
+ }),
69
+ "pr-review-requested.yml": createSoloWorkflowFile({
70
+ name: "PR Review Requested",
71
+ on: { pull_request_target: { types: ["review_requested"] } },
72
+ permissions: { "pull-requests": "write" },
73
+ steps: [{
74
+ uses: resolveUses("actions-ecosystem/action-remove-labels", "v1", options.workflowsVersions),
75
+ with: { labels: "status: waiting for author" }
76
+ }, {
77
+ if: "failure()",
78
+ run: "echo \"Don't worry if the previous step failed.\"\necho \"See https://github.com/actions-ecosystem/action-remove-labels/issues/221.\"\n"
79
+ }]
80
+ })
81
+ }
82
+ } }
83
+ };
84
+ },
85
+ transition() {
86
+ return { addons: [blockRemoveFiles({ files: [".circleci", "travis.yml"] })] };
87
+ }
140
88
  });
141
- export {
142
- blockGitHubActionsCI
143
- };
89
+
90
+ //#endregion
91
+ export { blockGitHubActionsCI };
92
+ //# sourceMappingURL=blockGitHubActionsCI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blockGitHubActionsCI.js","names":[],"sources":["../../src/blocks/blockGitHubActionsCI.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { resolveUses } from \"./actions/resolveUses.js\";\nimport { intakeFileYamlSteps, zActionStep } from \"./actions/steps.js\";\nimport { blockRemoveFiles } from \"./blockRemoveFiles.js\";\nimport { blockRepositoryBranchRuleset } from \"./blockRepositoryBranchRuleset.js\";\nimport { createMultiWorkflowFile } from \"./files/createMultiWorkflowFile.js\";\nimport { createSoloWorkflowFile } from \"./files/createSoloWorkflowFile.js\";\nimport { formatYaml } from \"./files/formatYaml.js\";\n\nexport const blockGitHubActionsCI = base.createBlock({\n\tabout: {\n\t\tname: \"GitHub Actions CI\",\n\t},\n\taddons: {\n\t\tjobs: z\n\t\t\t.array(\n\t\t\t\tz.object({\n\t\t\t\t\tcheckoutWith: z.record(z.string(), z.string()).optional(),\n\t\t\t\t\tif: z.string().optional(),\n\t\t\t\t\tname: z.string(),\n\t\t\t\t\tsteps: z.array(zActionStep),\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.optional(),\n\t\tnodeVersion: z.union([z.number(), z.string()]).optional(),\n\t},\n\tintake({ files }) {\n\t\tconst steps = intakeFileYamlSteps(\n\t\t\tfiles,\n\t\t\t[\".github\", \"actions\", \"prepare\", \"action.yml\"],\n\t\t\t[\"runs\", \"steps\"],\n\t\t);\n\t\tif (!steps) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\tconst setupNodeStep = steps.find(\n\t\t\t(step) =>\n\t\t\t\ttypeof step.uses === \"string\" &&\n\t\t\t\tstep.uses.startsWith(\"actions/setup-node\"),\n\t\t);\n\t\tif (!setupNodeStep) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\tconst nodeVersion = setupNodeStep.with?.[\"node-version\"];\n\t\tif (!nodeVersion) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\treturn { nodeVersion };\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { jobs, nodeVersion = options.node.pinned ?? options.node.minimum } =\n\t\t\taddons;\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockRepositoryBranchRuleset({\n\t\t\t\t\trequiredStatusChecks: jobs?.map((job) => job.name),\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\tactions: {\n\t\t\t\t\t\tprepare: {\n\t\t\t\t\t\t\t\"action.yml\": formatYaml({\n\t\t\t\t\t\t\t\tdescription: \"Prepares the repo for a typical CI job\",\n\t\t\t\t\t\t\t\tname: \"Prepare\",\n\t\t\t\t\t\t\t\truns: {\n\t\t\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tuses: resolveUses(\n\t\t\t\t\t\t\t\t\t\t\t\t\"pnpm/action-setup\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"v4\",\n\t\t\t\t\t\t\t\t\t\t\t\toptions.workflowsVersions,\n\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tuses: resolveUses(\n\t\t\t\t\t\t\t\t\t\t\t\t\"actions/setup-node\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"v4\",\n\t\t\t\t\t\t\t\t\t\t\t\toptions.workflowsVersions,\n\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\twith: {\n\t\t\t\t\t\t\t\t\t\t\t\tcache: \"pnpm\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"node-version\": nodeVersion,\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\trun: \"pnpm install --frozen-lockfile\",\n\t\t\t\t\t\t\t\t\t\t\tshell: \"bash\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tusing: \"composite\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tworkflows: {\n\t\t\t\t\t\t\"ci.yml\":\n\t\t\t\t\t\t\tjobs &&\n\t\t\t\t\t\t\tcreateMultiWorkflowFile({\n\t\t\t\t\t\t\t\tjobs: jobs.sort((a, b) => a.name.localeCompare(b.name)),\n\t\t\t\t\t\t\t\tname: \"CI\",\n\t\t\t\t\t\t\t\tworkflowsVersions: options.workflowsVersions,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\"pr-review-requested.yml\": createSoloWorkflowFile({\n\t\t\t\t\t\t\tname: \"PR Review Requested\",\n\t\t\t\t\t\t\ton: {\n\t\t\t\t\t\t\t\tpull_request_target: {\n\t\t\t\t\t\t\t\t\ttypes: [\"review_requested\"],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tpermissions: {\n\t\t\t\t\t\t\t\t\"pull-requests\": \"write\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tuses: resolveUses(\n\t\t\t\t\t\t\t\t\t\t\"actions-ecosystem/action-remove-labels\",\n\t\t\t\t\t\t\t\t\t\t\"v1\",\n\t\t\t\t\t\t\t\t\t\toptions.workflowsVersions,\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\twith: {\n\t\t\t\t\t\t\t\t\t\tlabels: \"status: waiting for author\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif: \"failure()\",\n\t\t\t\t\t\t\t\t\trun: 'echo \"Don\\'t worry if the previous step failed.\"\\necho \"See https://github.com/actions-ecosystem/action-remove-labels/issues/221.\"\\n',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t}),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockRemoveFiles({\n\t\t\t\t\tfiles: [\".circleci\", \"travis.yml\"],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;;;;;;AAWA,MAAa,uBAAuB,KAAK,YAAY;CACpD,OAAO,EACN,MAAM,oBACN;CACD,QAAQ;EACP,MAAM,EACJ,MACA,EAAE,OAAO;GACR,cAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC,CAAC,UAAU;GACzD,IAAI,EAAE,QAAQ,CAAC,UAAU;GACzB,MAAM,EAAE,QAAQ;GAChB,OAAO,EAAE,MAAM,YAAY;EAC3B,EAAC,CACF,CACA,UAAU;EACZ,aAAa,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE,EAAE,QAAQ,AAAC,EAAC,CAAC,UAAU;CACzD;CACD,OAAO,EAAE,OAAO,EAAE;EACjB,MAAM,QAAQ,oBACb,OACA;GAAC;GAAW;GAAW;GAAW;EAAa,GAC/C,CAAC,QAAQ,OAAQ,EACjB;AACD,OAAK,MACJ;EAGD,MAAM,gBAAgB,MAAM,KAC3B,CAAC,gBACO,KAAK,SAAS,YACrB,KAAK,KAAK,WAAW,qBAAqB,CAC3C;AACD,OAAK,cACJ;EAGD,MAAM,cAAc,cAAc,OAAO;AACzC,OAAK,YACJ;AAGD,SAAO,EAAE,YAAa;CACtB;CACD,QAAQ,EAAE,QAAQ,SAAS,EAAE;EAC5B,MAAM,EAAE,MAAM,cAAc,QAAQ,KAAK,UAAU,QAAQ,KAAK,SAAS,GACxE;AAED,SAAO;GACN,QAAQ,CACP,6BAA6B,EAC5B,sBAAsB,MAAM,IAAI,CAAC,QAAQ,IAAI,KAAK,CAClD,EAAC,AACF;GACD,OAAO,EACN,WAAW;IACV,SAAS,EACR,SAAS,EACR,cAAc,WAAW;KACxB,aAAa;KACb,MAAM;KACN,MAAM;MACL,OAAO;OACN,EACC,MAAM,YACL,qBACA,MACA,QAAQ,kBACR,CACD;OACD;QACC,MAAM,YACL,sBACA,MACA,QAAQ,kBACR;QACD,MAAM;SACL,OAAO;SACP,gBAAgB;QAChB;OACD;OACD;QACC,KAAK;QACL,OAAO;OACP;MACD;MACD,OAAO;KACP;IACD,EAAC,CACF,EACD;IACD,WAAW;KACV,UACC,QACA,wBAAwB;MACvB,MAAM,KAAK,KAAK,CAAC,GAAG,MAAM,EAAE,KAAK,cAAc,EAAE,KAAK,CAAC;MACvD,MAAM;MACN,mBAAmB,QAAQ;KAC3B,EAAC;KACH,2BAA2B,uBAAuB;MACjD,MAAM;MACN,IAAI,EACH,qBAAqB,EACpB,OAAO,CAAC,kBAAmB,EAC3B,EACD;MACD,aAAa,EACZ,iBAAiB,QACjB;MACD,OAAO,CACN;OACC,MAAM,YACL,0CACA,MACA,QAAQ,kBACR;OACD,MAAM,EACL,QAAQ,6BACR;MACD,GACD;OACC,IAAI;OACJ,KAAK;MACL,CACD;KACD,EAAC;IACF;GACD,EACD;EACD;CACD;CACD,aAAa;AACZ,SAAO,EACN,QAAQ,CACP,iBAAiB,EAChB,OAAO,CAAC,aAAa,YAAa,EAClC,EAAC,AACF,EACD;CACD;AACD,EAAC"}