create-typescript-app 2.0.0-beta.7 → 2.0.0-beta.9

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 (626) hide show
  1. package/README.md +59 -55
  2. package/bin/index.js +14 -2
  3. package/lib/{next/base.d.ts → base.d.ts} +24 -4
  4. package/lib/{next/base.js → base.js} +19 -22
  5. package/lib/base.js.map +1 -0
  6. package/lib/{next/blocks → blocks}/blockAllContributors.d.ts +1 -1
  7. package/lib/blocks/blockAllContributors.js +139 -0
  8. package/lib/blocks/blockAllContributors.js.map +1 -0
  9. package/lib/{next/blocks → blocks}/blockAreTheTypesWrong.d.ts +1 -1
  10. package/lib/blocks/blockAreTheTypesWrong.js.map +1 -0
  11. package/lib/{next/blocks → blocks}/blockCSpell.d.ts +1 -1
  12. package/lib/{next/blocks → blocks}/blockCSpell.js +1 -1
  13. package/lib/blocks/blockCSpell.js.map +1 -0
  14. package/lib/blocks/blockCodecov.d.ts +52 -0
  15. package/lib/blocks/blockCodecov.js +50 -0
  16. package/lib/blocks/blockCodecov.js.map +1 -0
  17. package/lib/{next/blocks → blocks}/blockContributingDocs.d.ts +1 -1
  18. package/lib/{next/blocks → blocks}/blockContributingDocs.js +2 -1
  19. package/lib/blocks/blockContributingDocs.js.map +1 -0
  20. package/lib/{next/blocks → blocks}/blockContributorCovenant.d.ts +1 -1
  21. package/lib/{next/blocks → blocks}/blockContributorCovenant.js +2 -1
  22. package/lib/blocks/blockContributorCovenant.js.map +1 -0
  23. package/lib/{next/blocks → blocks}/blockDevelopmentDocs.d.ts +3 -3
  24. package/lib/{next/blocks → blocks}/blockDevelopmentDocs.js +3 -2
  25. package/lib/blocks/blockDevelopmentDocs.js.map +1 -0
  26. package/lib/{next/blocks → blocks}/blockESLint.d.ts +8 -7
  27. package/lib/{next/blocks → blocks}/blockESLint.js +14 -5
  28. package/lib/blocks/blockESLint.js.map +1 -0
  29. package/lib/{next/blocks → blocks}/blockESLintComments.d.ts +1 -1
  30. package/lib/blocks/blockESLintComments.js.map +1 -0
  31. package/lib/{next/blocks → blocks}/blockESLintJSDoc.d.ts +1 -1
  32. package/lib/blocks/blockESLintJSDoc.js.map +1 -0
  33. package/lib/{next/blocks → blocks}/blockESLintJSONC.d.ts +1 -1
  34. package/lib/blocks/blockESLintJSONC.js.map +1 -0
  35. package/lib/{next/blocks → blocks}/blockESLintMarkdown.d.ts +1 -1
  36. package/lib/blocks/blockESLintMarkdown.js.map +1 -0
  37. package/lib/{next/blocks → blocks}/blockESLintMoreStyling.d.ts +1 -1
  38. package/lib/blocks/blockESLintMoreStyling.js.map +1 -0
  39. package/lib/{next/blocks → blocks}/blockESLintNode.d.ts +1 -1
  40. package/lib/{next/blocks → blocks}/blockESLintNode.js +7 -5
  41. package/lib/blocks/blockESLintNode.js.map +1 -0
  42. package/lib/{next/blocks → blocks}/blockESLintPackageJson.d.ts +1 -1
  43. package/lib/blocks/blockESLintPackageJson.js.map +1 -0
  44. package/lib/{next/blocks → blocks}/blockESLintPerfectionist.d.ts +1 -1
  45. package/lib/blocks/blockESLintPerfectionist.js.map +1 -0
  46. package/lib/{next/blocks → blocks}/blockESLintRegexp.d.ts +1 -1
  47. package/lib/blocks/blockESLintRegexp.js.map +1 -0
  48. package/lib/{next/blocks → blocks}/blockESLintYML.d.ts +1 -1
  49. package/lib/blocks/blockESLintYML.js.map +1 -0
  50. package/lib/{next/blocks → blocks}/blockExampleFiles.d.ts +1 -1
  51. package/lib/blocks/blockExampleFiles.js.map +1 -0
  52. package/lib/{next/blocks → blocks}/blockFunding.d.ts +1 -1
  53. package/lib/{next/blocks → blocks}/blockFunding.js +1 -1
  54. package/lib/blocks/blockFunding.js.map +1 -0
  55. package/lib/{next/blocks → blocks}/blockGitHubActionsCI.d.ts +29 -3
  56. package/lib/{next/blocks → blocks}/blockGitHubActionsCI.js +21 -17
  57. package/lib/blocks/blockGitHubActionsCI.js.map +1 -0
  58. package/lib/{next/blocks → blocks}/blockGitHubApps.d.ts +1 -1
  59. package/lib/blocks/blockGitHubApps.js.map +1 -0
  60. package/lib/{next/blocks → blocks}/blockGitHubIssueTemplates.d.ts +1 -1
  61. package/lib/{next/blocks → blocks}/blockGitHubIssueTemplates.js +1 -1
  62. package/lib/blocks/blockGitHubIssueTemplates.js.map +1 -0
  63. package/lib/{next/blocks → blocks}/blockGitHubPRTemplate.d.ts +1 -1
  64. package/lib/blocks/blockGitHubPRTemplate.js.map +1 -0
  65. package/lib/{next/blocks → blocks}/blockGitignore.d.ts +1 -1
  66. package/lib/{next/blocks → blocks}/blockGitignore.js +1 -1
  67. package/lib/blocks/blockGitignore.js.map +1 -0
  68. package/lib/blocks/blockKnip.d.ts +52 -0
  69. package/lib/{next/blocks → blocks}/blockKnip.js +15 -5
  70. package/lib/blocks/blockKnip.js.map +1 -0
  71. package/lib/{next/blocks → blocks}/blockMITLicense.d.ts +1 -1
  72. package/lib/blocks/blockMITLicense.js.map +1 -0
  73. package/lib/{next/blocks → blocks}/blockMarkdownlint.d.ts +1 -1
  74. package/lib/{next/blocks → blocks}/blockMarkdownlint.js +10 -7
  75. package/lib/blocks/blockMarkdownlint.js.map +1 -0
  76. package/lib/{next/blocks → blocks}/blockNvmrc.d.ts +1 -1
  77. package/lib/blocks/blockNvmrc.js.map +1 -0
  78. package/lib/{next/blocks → blocks}/blockPRCompliance.d.ts +1 -1
  79. package/lib/{next/blocks → blocks}/blockPRCompliance.js +1 -1
  80. package/lib/blocks/blockPRCompliance.js.map +1 -0
  81. package/lib/{next/blocks → blocks}/blockPackageJson.d.ts +2 -2
  82. package/lib/{next/blocks → blocks}/blockPackageJson.js +7 -4
  83. package/lib/blocks/blockPackageJson.js.map +1 -0
  84. package/lib/{next/blocks → blocks}/blockPnpmDedupe.d.ts +1 -1
  85. package/lib/blocks/blockPnpmDedupe.js.map +1 -0
  86. package/lib/{next/blocks → blocks}/blockPrettier.d.ts +2 -2
  87. package/lib/{next/blocks → blocks}/blockPrettier.js +6 -3
  88. package/lib/blocks/blockPrettier.js.map +1 -0
  89. package/lib/{next/blocks → blocks}/blockPrettierPluginCurly.d.ts +1 -1
  90. package/lib/blocks/blockPrettierPluginCurly.js.map +1 -0
  91. package/lib/{next/blocks → blocks}/blockPrettierPluginPackageJson.d.ts +1 -1
  92. package/lib/blocks/blockPrettierPluginPackageJson.js.map +1 -0
  93. package/lib/{next/blocks → blocks}/blockPrettierPluginSh.d.ts +1 -1
  94. package/lib/blocks/blockPrettierPluginSh.js.map +1 -0
  95. package/lib/{next/blocks → blocks}/blockREADME.d.ts +3 -1
  96. package/lib/{next/blocks → blocks}/blockREADME.js +16 -19
  97. package/lib/blocks/blockREADME.js.map +1 -0
  98. package/lib/{next/blocks → blocks}/blockReleaseIt.d.ts +1 -1
  99. package/lib/{next/blocks → blocks}/blockReleaseIt.js +2 -2
  100. package/lib/blocks/blockReleaseIt.js.map +1 -0
  101. package/lib/{next/blocks → blocks}/blockRenovate.d.ts +1 -1
  102. package/lib/{next/blocks → blocks}/blockRenovate.js +6 -1
  103. package/lib/blocks/blockRenovate.js.map +1 -0
  104. package/lib/{next/blocks → blocks}/blockRepositoryBranchRuleset.d.ts +1 -1
  105. package/lib/{next/blocks → blocks}/blockRepositoryBranchRuleset.js +0 -1
  106. package/lib/blocks/blockRepositoryBranchRuleset.js.map +1 -0
  107. package/lib/{next/blocks → blocks}/blockRepositoryLabels.d.ts +1 -1
  108. package/lib/{next/blocks → blocks}/blockRepositoryLabels.js +1 -1
  109. package/lib/blocks/blockRepositoryLabels.js.map +1 -0
  110. package/lib/{next/blocks → blocks}/blockRepositorySecrets.d.ts +2 -2
  111. package/lib/blocks/blockRepositorySecrets.js.map +1 -0
  112. package/lib/{next/blocks → blocks}/blockRepositorySettings.d.ts +1 -1
  113. package/lib/blocks/blockRepositorySettings.js.map +1 -0
  114. package/lib/{next/blocks → blocks}/blockSecurityDocs.d.ts +1 -1
  115. package/lib/blocks/blockSecurityDocs.js.map +1 -0
  116. package/lib/{next/blocks → blocks}/blockTSup.d.ts +2 -1
  117. package/lib/{next/blocks → blocks}/blockTSup.js +18 -4
  118. package/lib/blocks/blockTSup.js.map +1 -0
  119. package/lib/{next/blocks/blockKnip.d.ts → blocks/blockTemplatedWith.d.ts} +3 -3
  120. package/lib/{next/blocks/blockTemplatedBy.js → blocks/blockTemplatedWith.js} +3 -3
  121. package/lib/blocks/blockTemplatedWith.js.map +1 -0
  122. package/lib/{next/blocks → blocks}/blockTypeScript.d.ts +1 -1
  123. package/lib/{next/blocks → blocks}/blockTypeScript.js +2 -2
  124. package/lib/blocks/blockTypeScript.js.map +1 -0
  125. package/lib/{next/blocks → blocks}/blockVSCode.d.ts +1 -1
  126. package/lib/blocks/blockVSCode.js.map +1 -0
  127. package/lib/{next/blocks → blocks}/blockVitest.d.ts +10 -5
  128. package/lib/{next/blocks → blocks}/blockVitest.js +19 -34
  129. package/lib/blocks/blockVitest.js.map +1 -0
  130. package/lib/blocks/files/createJobName.d.ts +3 -0
  131. package/lib/blocks/files/createJobName.js +7 -0
  132. package/lib/blocks/files/createJobName.js.map +1 -0
  133. package/lib/{steps/writing/creation/dotGitHub → blocks/files}/createMultiWorkflowFile.js +2 -1
  134. package/lib/blocks/files/createMultiWorkflowFile.js.map +1 -0
  135. package/lib/{steps/writing/creation/dotGitHub → blocks/files}/createSoloWorkflowFile.js +2 -1
  136. package/lib/blocks/files/createSoloWorkflowFile.js.map +1 -0
  137. package/lib/blocks/files/formatIgnoreFile.js.map +1 -0
  138. package/lib/{steps/writing/creation/dotGitHub → blocks/files}/formatWorkflowYaml.js +1 -1
  139. package/lib/blocks/files/formatWorkflowYaml.js.map +1 -0
  140. package/lib/{steps/writing/creation/formatters → blocks/files}/formatYaml.js +1 -3
  141. package/lib/blocks/files/formatYaml.js.map +1 -0
  142. package/lib/blocks/index.d.ts +2141 -0
  143. package/lib/blocks/index.js +178 -0
  144. package/lib/blocks/index.js.map +1 -0
  145. package/lib/blocks/options.fakes.js.map +1 -0
  146. package/lib/{steps/initializeGitHubRepository → blocks}/outcomeLabels.js +1 -0
  147. package/lib/blocks/outcomeLabels.js.map +1 -0
  148. package/lib/blocks/phases.js.map +1 -0
  149. package/lib/{next/blocks/sourcePackageJson.d.ts → data/packageData.d.ts} +45 -51
  150. package/lib/{next/blocks → data}/packageData.js +9 -3
  151. package/lib/data/packageData.js.map +1 -0
  152. package/lib/index.d.ts +50 -48
  153. package/lib/index.js +4 -5
  154. package/lib/index.js.map +1 -1
  155. package/lib/options/getUsageFromReadme.js.map +1 -0
  156. package/lib/{shared/options/createOptionDefaults → options}/parsePackageAuthor.d.ts +1 -3
  157. package/lib/options/parsePackageAuthor.js.map +1 -0
  158. package/lib/{shared/options/createOptionDefaults → options}/readDefaultsFromReadme.d.ts +1 -0
  159. package/lib/{shared/options/createOptionDefaults → options}/readDefaultsFromReadme.js +12 -3
  160. package/lib/options/readDefaultsFromReadme.js.map +1 -0
  161. package/lib/{next → options}/readDescription.d.ts +1 -3
  162. package/lib/{next → options}/readDescription.js +2 -2
  163. package/lib/options/readDescription.js.map +1 -0
  164. package/lib/options/readDescriptionFromReadme.js.map +1 -0
  165. package/lib/{next → options}/readDocumentation.js +1 -1
  166. package/lib/options/readDocumentation.js.map +1 -0
  167. package/lib/{shared/options/createOptionDefaults → options}/readEmails.js +1 -1
  168. package/lib/options/readEmails.js.map +1 -0
  169. package/lib/options/readFileAsJson.js.map +1 -0
  170. package/lib/options/readFileSafe.js.map +1 -0
  171. package/lib/{shared/options/createOptionDefaults → options}/readFunding.js +1 -1
  172. package/lib/options/readFunding.js.map +1 -0
  173. package/lib/{shared/options/createOptionDefaults → options}/readGitHubEmail.js +1 -1
  174. package/lib/options/readGitHubEmail.js.map +1 -0
  175. package/lib/{shared/options/createOptionDefaults → options}/readGuide.js +1 -1
  176. package/lib/options/readGuide.js.map +1 -0
  177. package/lib/{shared/options → options}/readLogoSizing.js +1 -1
  178. package/lib/options/readLogoSizing.js.map +1 -0
  179. package/lib/options/readPackageData.d.ts +5 -0
  180. package/lib/options/readPackageData.js +8 -0
  181. package/lib/options/readPackageData.js.map +1 -0
  182. package/lib/{next/presets/presetCommon.d.ts → presets/common.d.ts} +1 -1
  183. package/lib/{next/presets/presetCommon.js → presets/common.js} +6 -2
  184. package/lib/presets/common.js.map +1 -0
  185. package/lib/{next/presets/presetEverything.d.ts → presets/everything.d.ts} +1 -1
  186. package/lib/{next/presets/presetEverything.js → presets/everything.js} +2 -4
  187. package/lib/presets/everything.js.map +1 -0
  188. package/lib/presets/index.d.ts +310 -0
  189. package/lib/presets/index.js +18 -0
  190. package/lib/presets/index.js.map +1 -0
  191. package/lib/{next/presets/presetMinimal.d.ts → presets/minimal.d.ts} +1 -1
  192. package/lib/{next/presets/presetMinimal.js → presets/minimal.js} +5 -5
  193. package/lib/presets/minimal.js.map +1 -0
  194. package/lib/{next/template.d.ts → template.d.ts} +1 -1
  195. package/lib/{next/template.js → template.js} +3 -3
  196. package/lib/template.js.map +1 -0
  197. package/lib/types.d.ts +31 -5
  198. package/lib/utils/resolveBin.js.map +1 -0
  199. package/lib/utils/sortObject.js.map +1 -0
  200. package/lib/utils/swallowError.js.map +1 -0
  201. package/lib/utils/tryCatchAsync.js.map +1 -0
  202. package/lib/utils/tryCatchLazyValueAsync.js.map +1 -0
  203. package/package.json +22 -32
  204. package/lib/bin/help.d.ts +0 -3
  205. package/lib/bin/help.js +0 -117
  206. package/lib/bin/help.js.map +0 -1
  207. package/lib/bin/index.d.ts +0 -5
  208. package/lib/bin/index.js +0 -91
  209. package/lib/bin/index.js.map +0 -1
  210. package/lib/bin/packageJson.d.ts +0 -3
  211. package/lib/bin/packageJson.js +0 -13
  212. package/lib/bin/packageJson.js.map +0 -1
  213. package/lib/bin/promptForMode.d.ts +0 -11
  214. package/lib/bin/promptForMode.js +0 -108
  215. package/lib/bin/promptForMode.js.map +0 -1
  216. package/lib/create/createAndEnterGitDirectory.d.ts +0 -3
  217. package/lib/create/createAndEnterGitDirectory.js +0 -20
  218. package/lib/create/createAndEnterGitDirectory.js.map +0 -1
  219. package/lib/create/createRerunDirectorySuggestion.d.ts +0 -7
  220. package/lib/create/createRerunDirectorySuggestion.js +0 -8
  221. package/lib/create/createRerunDirectorySuggestion.js.map +0 -1
  222. package/lib/create/createRerunSuggestion.d.ts +0 -7
  223. package/lib/create/createRerunSuggestion.js +0 -56
  224. package/lib/create/createRerunSuggestion.js.map +0 -1
  225. package/lib/create/createWithOptions.d.ts +0 -11
  226. package/lib/create/createWithOptions.js +0 -68
  227. package/lib/create/createWithOptions.js.map +0 -1
  228. package/lib/create/index.d.ts +0 -7
  229. package/lib/create/index.js +0 -69
  230. package/lib/create/index.js.map +0 -1
  231. package/lib/greet.d.ts +0 -5
  232. package/lib/greet.js +0 -14
  233. package/lib/greet.js.map +0 -1
  234. package/lib/initialize/index.d.ts +0 -7
  235. package/lib/initialize/index.js +0 -43
  236. package/lib/initialize/index.js.map +0 -1
  237. package/lib/initialize/initializeWithOptions.d.ts +0 -9
  238. package/lib/initialize/initializeWithOptions.js +0 -66
  239. package/lib/initialize/initializeWithOptions.js.map +0 -1
  240. package/lib/migrate/index.d.ts +0 -7
  241. package/lib/migrate/index.js +0 -43
  242. package/lib/migrate/index.js.map +0 -1
  243. package/lib/migrate/migrateWithOptions.d.ts +0 -9
  244. package/lib/migrate/migrateWithOptions.js +0 -72
  245. package/lib/migrate/migrateWithOptions.js.map +0 -1
  246. package/lib/next/base.js.map +0 -1
  247. package/lib/next/blocks/blockAllContributors.js +0 -65
  248. package/lib/next/blocks/blockAllContributors.js.map +0 -1
  249. package/lib/next/blocks/blockAreTheTypesWrong.js.map +0 -1
  250. package/lib/next/blocks/blockCSpell.js.map +0 -1
  251. package/lib/next/blocks/blockContributingDocs.js.map +0 -1
  252. package/lib/next/blocks/blockContributorCovenant.js.map +0 -1
  253. package/lib/next/blocks/blockDevelopmentDocs.js.map +0 -1
  254. package/lib/next/blocks/blockESLint.js.map +0 -1
  255. package/lib/next/blocks/blockESLintComments.js.map +0 -1
  256. package/lib/next/blocks/blockESLintJSDoc.js.map +0 -1
  257. package/lib/next/blocks/blockESLintJSONC.js.map +0 -1
  258. package/lib/next/blocks/blockESLintMarkdown.js.map +0 -1
  259. package/lib/next/blocks/blockESLintMoreStyling.js.map +0 -1
  260. package/lib/next/blocks/blockESLintNode.js.map +0 -1
  261. package/lib/next/blocks/blockESLintPackageJson.js.map +0 -1
  262. package/lib/next/blocks/blockESLintPerfectionist.js.map +0 -1
  263. package/lib/next/blocks/blockESLintRegexp.js.map +0 -1
  264. package/lib/next/blocks/blockESLintYML.js.map +0 -1
  265. package/lib/next/blocks/blockExampleFiles.js.map +0 -1
  266. package/lib/next/blocks/blockFunding.js.map +0 -1
  267. package/lib/next/blocks/blockGitHubActionsCI.js.map +0 -1
  268. package/lib/next/blocks/blockGitHubApps.js.map +0 -1
  269. package/lib/next/blocks/blockGitHubIssueTemplates.js.map +0 -1
  270. package/lib/next/blocks/blockGitHubPRTemplate.js.map +0 -1
  271. package/lib/next/blocks/blockGitignore.js.map +0 -1
  272. package/lib/next/blocks/blockKnip.js.map +0 -1
  273. package/lib/next/blocks/blockMITLicense.js.map +0 -1
  274. package/lib/next/blocks/blockMarkdownlint.js.map +0 -1
  275. package/lib/next/blocks/blockNvmrc.js.map +0 -1
  276. package/lib/next/blocks/blockPRCompliance.js.map +0 -1
  277. package/lib/next/blocks/blockPackageJson.js.map +0 -1
  278. package/lib/next/blocks/blockPnpmDedupe.js.map +0 -1
  279. package/lib/next/blocks/blockPrettier.js.map +0 -1
  280. package/lib/next/blocks/blockPrettierPluginCurly.js.map +0 -1
  281. package/lib/next/blocks/blockPrettierPluginPackageJson.js.map +0 -1
  282. package/lib/next/blocks/blockPrettierPluginSh.js.map +0 -1
  283. package/lib/next/blocks/blockREADME.js.map +0 -1
  284. package/lib/next/blocks/blockReleaseIt.js.map +0 -1
  285. package/lib/next/blocks/blockRenovate.js.map +0 -1
  286. package/lib/next/blocks/blockRepositoryBranchRuleset.js.map +0 -1
  287. package/lib/next/blocks/blockRepositoryLabels.js.map +0 -1
  288. package/lib/next/blocks/blockRepositorySecrets.js.map +0 -1
  289. package/lib/next/blocks/blockRepositorySettings.js.map +0 -1
  290. package/lib/next/blocks/blockSecurityDocs.js.map +0 -1
  291. package/lib/next/blocks/blockTSup.js.map +0 -1
  292. package/lib/next/blocks/blockTemplatedBy.d.ts +0 -50
  293. package/lib/next/blocks/blockTemplatedBy.js.map +0 -1
  294. package/lib/next/blocks/blockTypeScript.js.map +0 -1
  295. package/lib/next/blocks/blockVSCode.js.map +0 -1
  296. package/lib/next/blocks/blockVitest.js.map +0 -1
  297. package/lib/next/blocks/index.d.ts +0 -43
  298. package/lib/next/blocks/index.js +0 -43
  299. package/lib/next/blocks/index.js.map +0 -1
  300. package/lib/next/blocks/options.fakes.js.map +0 -1
  301. package/lib/next/blocks/packageData.d.ts +0 -6
  302. package/lib/next/blocks/packageData.js.map +0 -1
  303. package/lib/next/blocks/phases.js.map +0 -1
  304. package/lib/next/blocks/sourcePackageJson.js +0 -10
  305. package/lib/next/blocks/sourcePackageJson.js.map +0 -1
  306. package/lib/next/presets/index.d.ts +0 -5
  307. package/lib/next/presets/index.js +0 -4
  308. package/lib/next/presets/index.js.map +0 -1
  309. package/lib/next/presets/presetCommon.js.map +0 -1
  310. package/lib/next/presets/presetEverything.js.map +0 -1
  311. package/lib/next/presets/presetMinimal.js.map +0 -1
  312. package/lib/next/readDescription.js.map +0 -1
  313. package/lib/next/readDescriptionFromReadme.js.map +0 -1
  314. package/lib/next/readDocumentation.js.map +0 -1
  315. package/lib/next/runCreateEnginePreset.d.ts +0 -7
  316. package/lib/next/runCreateEnginePreset.js +0 -20
  317. package/lib/next/runCreateEnginePreset.js.map +0 -1
  318. package/lib/next/template.js.map +0 -1
  319. package/lib/next/utils/resolveBin.js.map +0 -1
  320. package/lib/next/utils/sortObject.js.map +0 -1
  321. package/lib/next/utils/swallowError.js.map +0 -1
  322. package/lib/shared/cli/lines.d.ts +0 -5
  323. package/lib/shared/cli/lines.js +0 -17
  324. package/lib/shared/cli/lines.js.map +0 -1
  325. package/lib/shared/cli/lowerFirst.d.ts +0 -3
  326. package/lib/shared/cli/lowerFirst.js +0 -7
  327. package/lib/shared/cli/lowerFirst.js.map +0 -1
  328. package/lib/shared/cli/outro.d.ts +0 -8
  329. package/lib/shared/cli/outro.js +0 -21
  330. package/lib/shared/cli/outro.js.map +0 -1
  331. package/lib/shared/cli/spinners.d.ts +0 -6
  332. package/lib/shared/cli/spinners.js +0 -50
  333. package/lib/shared/cli/spinners.js.map +0 -1
  334. package/lib/shared/cli/startLineWithDots.d.ts +0 -3
  335. package/lib/shared/cli/startLineWithDots.js +0 -32
  336. package/lib/shared/cli/startLineWithDots.js.map +0 -1
  337. package/lib/shared/codes.d.ts +0 -8
  338. package/lib/shared/codes.js +0 -9
  339. package/lib/shared/codes.js.map +0 -1
  340. package/lib/shared/createCleanupCommands.d.ts +0 -3
  341. package/lib/shared/createCleanupCommands.js +0 -13
  342. package/lib/shared/createCleanupCommands.js.map +0 -1
  343. package/lib/shared/doesRepositoryExist.d.ts +0 -9
  344. package/lib/shared/doesRepositoryExist.js +0 -18
  345. package/lib/shared/doesRepositoryExist.js.map +0 -1
  346. package/lib/shared/ensureGitRepository.d.ts +0 -3
  347. package/lib/shared/ensureGitRepository.js +0 -12
  348. package/lib/shared/ensureGitRepository.js.map +0 -1
  349. package/lib/shared/generateNextSteps.d.ts +0 -8
  350. package/lib/shared/generateNextSteps.js +0 -60
  351. package/lib/shared/generateNextSteps.js.map +0 -1
  352. package/lib/shared/getGitHubUserAsAllContributor.d.ts +0 -8
  353. package/lib/shared/getGitHubUserAsAllContributor.js +0 -43
  354. package/lib/shared/getGitHubUserAsAllContributor.js.map +0 -1
  355. package/lib/shared/isUsingCreateEngine.d.ts +0 -3
  356. package/lib/shared/isUsingCreateEngine.js +0 -7
  357. package/lib/shared/isUsingCreateEngine.js.map +0 -1
  358. package/lib/shared/options/args.d.ts +0 -273
  359. package/lib/shared/options/args.js +0 -335
  360. package/lib/shared/options/args.js.map +0 -1
  361. package/lib/shared/options/augmentOptionsWithExcludes.d.ts +0 -7
  362. package/lib/shared/options/augmentOptionsWithExcludes.js +0 -94
  363. package/lib/shared/options/augmentOptionsWithExcludes.js.map +0 -1
  364. package/lib/shared/options/createOptionDefaults/getUsageFromReadme.js.map +0 -1
  365. package/lib/shared/options/createOptionDefaults/index.d.ts +0 -28
  366. package/lib/shared/options/createOptionDefaults/index.js +0 -49
  367. package/lib/shared/options/createOptionDefaults/index.js.map +0 -1
  368. package/lib/shared/options/createOptionDefaults/parsePackageAuthor.js.map +0 -1
  369. package/lib/shared/options/createOptionDefaults/readDefaultsFromReadme.js.map +0 -1
  370. package/lib/shared/options/createOptionDefaults/readEmails.js.map +0 -1
  371. package/lib/shared/options/createOptionDefaults/readFunding.js.map +0 -1
  372. package/lib/shared/options/createOptionDefaults/readGitHubEmail.js.map +0 -1
  373. package/lib/shared/options/createOptionDefaults/readGuide.js.map +0 -1
  374. package/lib/shared/options/createRepositoryWithApi.d.ts +0 -10
  375. package/lib/shared/options/createRepositoryWithApi.js +0 -32
  376. package/lib/shared/options/createRepositoryWithApi.js.map +0 -1
  377. package/lib/shared/options/detectEmailRedundancy.d.ts +0 -8
  378. package/lib/shared/options/detectEmailRedundancy.js +0 -16
  379. package/lib/shared/options/detectEmailRedundancy.js.map +0 -1
  380. package/lib/shared/options/ensureRepositoryExists.d.ts +0 -13
  381. package/lib/shared/options/ensureRepositoryExists.js +0 -64
  382. package/lib/shared/options/ensureRepositoryExists.js.map +0 -1
  383. package/lib/shared/options/exclusionKeys.d.ts +0 -15
  384. package/lib/shared/options/exclusionKeys.js +0 -129
  385. package/lib/shared/options/exclusionKeys.js.map +0 -1
  386. package/lib/shared/options/getBase.d.ts +0 -7
  387. package/lib/shared/options/getBase.js +0 -27
  388. package/lib/shared/options/getBase.js.map +0 -1
  389. package/lib/shared/options/getPrefillOrPromptedOption.d.ts +0 -16
  390. package/lib/shared/options/getPrefillOrPromptedOption.js +0 -37
  391. package/lib/shared/options/getPrefillOrPromptedOption.js.map +0 -1
  392. package/lib/shared/options/logInferredOptions.d.ts +0 -8
  393. package/lib/shared/options/logInferredOptions.js +0 -30
  394. package/lib/shared/options/logInferredOptions.js.map +0 -1
  395. package/lib/shared/options/optionsSchema.d.ts +0 -218
  396. package/lib/shared/options/optionsSchema.js +0 -63
  397. package/lib/shared/options/optionsSchema.js.map +0 -1
  398. package/lib/shared/options/readLogoSizing.js.map +0 -1
  399. package/lib/shared/options/readOptions.d.ts +0 -21
  400. package/lib/shared/options/readOptions.js +0 -235
  401. package/lib/shared/options/readOptions.js.map +0 -1
  402. package/lib/shared/packages.d.ts +0 -8
  403. package/lib/shared/packages.js +0 -18
  404. package/lib/shared/packages.js.map +0 -1
  405. package/lib/shared/prompts.d.ts +0 -3
  406. package/lib/shared/prompts.js +0 -8
  407. package/lib/shared/prompts.js.map +0 -1
  408. package/lib/shared/readFileAsJson.js.map +0 -1
  409. package/lib/shared/readFileSafe.js.map +0 -1
  410. package/lib/shared/readFileSafeAsJson.d.ts +0 -3
  411. package/lib/shared/readFileSafeAsJson.js +0 -8
  412. package/lib/shared/readFileSafeAsJson.js.map +0 -1
  413. package/lib/shared/runOrRestore.d.ts +0 -7
  414. package/lib/shared/runOrRestore.js +0 -37
  415. package/lib/shared/runOrRestore.js.map +0 -1
  416. package/lib/shared/tryCatchAsync.js.map +0 -1
  417. package/lib/shared/tryCatchLazyValueAsync.js.map +0 -1
  418. package/lib/shared/types.d.ts +0 -120
  419. package/lib/shared/types.js +0 -1
  420. package/lib/shared/types.js.map +0 -1
  421. package/lib/steps/addOwnerAsAllContributor.d.ts +0 -8
  422. package/lib/steps/addOwnerAsAllContributor.js +0 -43
  423. package/lib/steps/addOwnerAsAllContributor.js.map +0 -1
  424. package/lib/steps/addToolAllContributors.d.ts +0 -8
  425. package/lib/steps/addToolAllContributors.js +0 -12
  426. package/lib/steps/addToolAllContributors.js.map +0 -1
  427. package/lib/steps/clearChangelog.d.ts +0 -3
  428. package/lib/steps/clearChangelog.js +0 -12
  429. package/lib/steps/clearChangelog.js.map +0 -1
  430. package/lib/steps/clearLocalGitTags.d.ts +0 -3
  431. package/lib/steps/clearLocalGitTags.js +0 -9
  432. package/lib/steps/clearLocalGitTags.js.map +0 -1
  433. package/lib/steps/clearUnnecessaryFiles.d.ts +0 -3
  434. package/lib/steps/clearUnnecessaryFiles.js +0 -38
  435. package/lib/steps/clearUnnecessaryFiles.js.map +0 -1
  436. package/lib/steps/createJoshuaKGoldbergReplacement.d.ts +0 -11
  437. package/lib/steps/createJoshuaKGoldbergReplacement.js +0 -16
  438. package/lib/steps/createJoshuaKGoldbergReplacement.js.map +0 -1
  439. package/lib/steps/finalizeDependencies.d.ts +0 -7
  440. package/lib/steps/finalizeDependencies.js +0 -59
  441. package/lib/steps/finalizeDependencies.js.map +0 -1
  442. package/lib/steps/initializeGitHubRepository/index.d.ts +0 -8
  443. package/lib/steps/initializeGitHubRepository/index.js +0 -19
  444. package/lib/steps/initializeGitHubRepository/index.js.map +0 -1
  445. package/lib/steps/initializeGitHubRepository/initializeBranchProtectionSettings.d.ts +0 -8
  446. package/lib/steps/initializeGitHubRepository/initializeBranchProtectionSettings.js +0 -67
  447. package/lib/steps/initializeGitHubRepository/initializeBranchProtectionSettings.js.map +0 -1
  448. package/lib/steps/initializeGitHubRepository/outcomeLabels.js.map +0 -1
  449. package/lib/steps/initializeGitRemote.d.ts +0 -8
  450. package/lib/steps/initializeGitRemote.js +0 -15
  451. package/lib/steps/initializeGitRemote.js.map +0 -1
  452. package/lib/steps/initializeRepositorySettings.d.ts +0 -9
  453. package/lib/steps/initializeRepositorySettings.js +0 -27
  454. package/lib/steps/initializeRepositorySettings.js.map +0 -1
  455. package/lib/steps/populateCSpellDictionary.d.ts +0 -3
  456. package/lib/steps/populateCSpellDictionary.js +0 -36
  457. package/lib/steps/populateCSpellDictionary.js.map +0 -1
  458. package/lib/steps/removeSetupScripts.d.ts +0 -3
  459. package/lib/steps/removeSetupScripts.js +0 -29
  460. package/lib/steps/removeSetupScripts.js.map +0 -1
  461. package/lib/steps/resetGitTags.d.ts +0 -3
  462. package/lib/steps/resetGitTags.js +0 -12
  463. package/lib/steps/resetGitTags.js.map +0 -1
  464. package/lib/steps/runCleanup.d.ts +0 -7
  465. package/lib/steps/runCleanup.js +0 -37
  466. package/lib/steps/runCleanup.js.map +0 -1
  467. package/lib/steps/uninstallPackages.d.ts +0 -3
  468. package/lib/steps/uninstallPackages.js +0 -64
  469. package/lib/steps/uninstallPackages.js.map +0 -1
  470. package/lib/steps/updateAllContributorsTable.d.ts +0 -7
  471. package/lib/steps/updateAllContributorsTable.js +0 -24
  472. package/lib/steps/updateAllContributorsTable.js.map +0 -1
  473. package/lib/steps/updateLocalFiles.d.ts +0 -7
  474. package/lib/steps/updateLocalFiles.js +0 -84
  475. package/lib/steps/updateLocalFiles.js.map +0 -1
  476. package/lib/steps/updateReadme.d.ts +0 -10
  477. package/lib/steps/updateReadme.js +0 -27
  478. package/lib/steps/updateReadme.js.map +0 -1
  479. package/lib/steps/writeReadme/findExistingBadges.d.ts +0 -4
  480. package/lib/steps/writeReadme/findExistingBadges.js +0 -28
  481. package/lib/steps/writeReadme/findExistingBadges.js.map +0 -1
  482. package/lib/steps/writeReadme/findIntroSectionClose.d.ts +0 -3
  483. package/lib/steps/writeReadme/findIntroSectionClose.js +0 -22
  484. package/lib/steps/writeReadme/findIntroSectionClose.js.map +0 -1
  485. package/lib/steps/writeReadme/generateTopContent.d.ts +0 -7
  486. package/lib/steps/writeReadme/generateTopContent.js +0 -70
  487. package/lib/steps/writeReadme/generateTopContent.js.map +0 -1
  488. package/lib/steps/writeReadme/index.d.ts +0 -7
  489. package/lib/steps/writeReadme/index.js +0 -57
  490. package/lib/steps/writeReadme/index.js.map +0 -1
  491. package/lib/steps/writing/creation/createCSpellConfig.d.ts +0 -7
  492. package/lib/steps/writing/creation/createCSpellConfig.js +0 -27
  493. package/lib/steps/writing/creation/createCSpellConfig.js.map +0 -1
  494. package/lib/steps/writing/creation/createDotGitignore.d.ts +0 -7
  495. package/lib/steps/writing/creation/createDotGitignore.js +0 -14
  496. package/lib/steps/writing/creation/createDotGitignore.js.map +0 -1
  497. package/lib/steps/writing/creation/createESLintConfig.d.ts +0 -7
  498. package/lib/steps/writing/creation/createESLintConfig.js +0 -105
  499. package/lib/steps/writing/creation/createESLintConfig.js.map +0 -1
  500. package/lib/steps/writing/creation/createKnipConfig.d.ts +0 -3
  501. package/lib/steps/writing/creation/createKnipConfig.js +0 -20
  502. package/lib/steps/writing/creation/createKnipConfig.js.map +0 -1
  503. package/lib/steps/writing/creation/createTsupConfig.d.ts +0 -7
  504. package/lib/steps/writing/creation/createTsupConfig.js +0 -19
  505. package/lib/steps/writing/creation/createTsupConfig.js.map +0 -1
  506. package/lib/steps/writing/creation/dotGitHub/actions.d.ts +0 -7
  507. package/lib/steps/writing/creation/dotGitHub/actions.js +0 -32
  508. package/lib/steps/writing/creation/dotGitHub/actions.js.map +0 -1
  509. package/lib/steps/writing/creation/dotGitHub/createDevelopment/index.d.ts +0 -7
  510. package/lib/steps/writing/creation/dotGitHub/createDevelopment/index.js +0 -154
  511. package/lib/steps/writing/creation/dotGitHub/createDevelopment/index.js.map +0 -1
  512. package/lib/steps/writing/creation/dotGitHub/createDevelopment/splitIntoSections.d.ts +0 -3
  513. package/lib/steps/writing/creation/dotGitHub/createDevelopment/splitIntoSections.js +0 -24
  514. package/lib/steps/writing/creation/dotGitHub/createDevelopment/splitIntoSections.js.map +0 -1
  515. package/lib/steps/writing/creation/dotGitHub/createDotGitHubFiles.d.ts +0 -16
  516. package/lib/steps/writing/creation/dotGitHub/createDotGitHubFiles.js +0 -292
  517. package/lib/steps/writing/creation/dotGitHub/createDotGitHubFiles.js.map +0 -1
  518. package/lib/steps/writing/creation/dotGitHub/createMultiWorkflowFile.js.map +0 -1
  519. package/lib/steps/writing/creation/dotGitHub/createSoloWorkflowFile.js.map +0 -1
  520. package/lib/steps/writing/creation/dotGitHub/createWorkflows.d.ts +0 -15
  521. package/lib/steps/writing/creation/dotGitHub/createWorkflows.js +0 -237
  522. package/lib/steps/writing/creation/dotGitHub/createWorkflows.js.map +0 -1
  523. package/lib/steps/writing/creation/dotGitHub/formatWorkflowYaml.js.map +0 -1
  524. package/lib/steps/writing/creation/dotGitHub/index.d.ts +0 -36
  525. package/lib/steps/writing/creation/dotGitHub/index.js +0 -16
  526. package/lib/steps/writing/creation/dotGitHub/index.js.map +0 -1
  527. package/lib/steps/writing/creation/dotGitHub/issueTemplate.d.ts +0 -12
  528. package/lib/steps/writing/creation/dotGitHub/issueTemplate.js +0 -198
  529. package/lib/steps/writing/creation/dotGitHub/issueTemplate.js.map +0 -1
  530. package/lib/steps/writing/creation/dotHusky.d.ts +0 -6
  531. package/lib/steps/writing/creation/dotHusky.js +0 -11
  532. package/lib/steps/writing/creation/dotHusky.js.map +0 -1
  533. package/lib/steps/writing/creation/dotVSCode.d.ts +0 -12
  534. package/lib/steps/writing/creation/dotVSCode.js +0 -79
  535. package/lib/steps/writing/creation/dotVSCode.js.map +0 -1
  536. package/lib/steps/writing/creation/formatters/formatIgnoreFile.js.map +0 -1
  537. package/lib/steps/writing/creation/formatters/formatJson.d.ts +0 -3
  538. package/lib/steps/writing/creation/formatters/formatJson.js +0 -18
  539. package/lib/steps/writing/creation/formatters/formatJson.js.map +0 -1
  540. package/lib/steps/writing/creation/formatters/formatTypeScript.d.ts +0 -3
  541. package/lib/steps/writing/creation/formatters/formatTypeScript.js +0 -8
  542. package/lib/steps/writing/creation/formatters/formatTypeScript.js.map +0 -1
  543. package/lib/steps/writing/creation/formatters/formatYaml.js.map +0 -1
  544. package/lib/steps/writing/creation/index.d.ts +0 -9
  545. package/lib/steps/writing/creation/index.js +0 -78
  546. package/lib/steps/writing/creation/index.js.map +0 -1
  547. package/lib/steps/writing/creation/rootFiles.d.ts +0 -24
  548. package/lib/steps/writing/creation/rootFiles.js +0 -152
  549. package/lib/steps/writing/creation/rootFiles.js.map +0 -1
  550. package/lib/steps/writing/creation/src.d.ts +0 -12
  551. package/lib/steps/writing/creation/src.js +0 -90
  552. package/lib/steps/writing/creation/src.js.map +0 -1
  553. package/lib/steps/writing/creation/writeAllContributorsRC.d.ts +0 -7
  554. package/lib/steps/writing/creation/writeAllContributorsRC.js +0 -18
  555. package/lib/steps/writing/creation/writeAllContributorsRC.js.map +0 -1
  556. package/lib/steps/writing/creation/writePackageJson.d.ts +0 -7
  557. package/lib/steps/writing/creation/writePackageJson.js +0 -118
  558. package/lib/steps/writing/creation/writePackageJson.js.map +0 -1
  559. package/lib/steps/writing/types.d.ts +0 -5
  560. package/lib/steps/writing/types.js +0 -1
  561. package/lib/steps/writing/types.js.map +0 -1
  562. package/lib/steps/writing/writeStructure.d.ts +0 -7
  563. package/lib/steps/writing/writeStructure.js +0 -22
  564. package/lib/steps/writing/writeStructure.js.map +0 -1
  565. package/lib/steps/writing/writeStructureWorker.d.ts +0 -5
  566. package/lib/steps/writing/writeStructureWorker.js +0 -47
  567. package/lib/steps/writing/writeStructureWorker.js.map +0 -1
  568. /package/lib/{next/blocks → blocks}/blockAreTheTypesWrong.js +0 -0
  569. /package/lib/{next/blocks → blocks}/blockESLintComments.js +0 -0
  570. /package/lib/{next/blocks → blocks}/blockESLintJSDoc.js +0 -0
  571. /package/lib/{next/blocks → blocks}/blockESLintJSONC.js +0 -0
  572. /package/lib/{next/blocks → blocks}/blockESLintMarkdown.js +0 -0
  573. /package/lib/{next/blocks → blocks}/blockESLintMoreStyling.js +0 -0
  574. /package/lib/{next/blocks → blocks}/blockESLintPackageJson.js +0 -0
  575. /package/lib/{next/blocks → blocks}/blockESLintPerfectionist.js +0 -0
  576. /package/lib/{next/blocks → blocks}/blockESLintRegexp.js +0 -0
  577. /package/lib/{next/blocks → blocks}/blockESLintYML.js +0 -0
  578. /package/lib/{next/blocks → blocks}/blockExampleFiles.js +0 -0
  579. /package/lib/{next/blocks → blocks}/blockGitHubApps.js +0 -0
  580. /package/lib/{next/blocks → blocks}/blockGitHubPRTemplate.js +0 -0
  581. /package/lib/{next/blocks → blocks}/blockMITLicense.js +0 -0
  582. /package/lib/{next/blocks → blocks}/blockNvmrc.js +0 -0
  583. /package/lib/{next/blocks → blocks}/blockPnpmDedupe.js +0 -0
  584. /package/lib/{next/blocks → blocks}/blockPrettierPluginCurly.js +0 -0
  585. /package/lib/{next/blocks → blocks}/blockPrettierPluginPackageJson.js +0 -0
  586. /package/lib/{next/blocks → blocks}/blockPrettierPluginSh.js +0 -0
  587. /package/lib/{next/blocks → blocks}/blockRepositorySecrets.js +0 -0
  588. /package/lib/{next/blocks → blocks}/blockRepositorySettings.js +0 -0
  589. /package/lib/{next/blocks → blocks}/blockSecurityDocs.js +0 -0
  590. /package/lib/{next/blocks → blocks}/blockVSCode.js +0 -0
  591. /package/lib/{steps/writing/creation/dotGitHub → blocks/files}/createMultiWorkflowFile.d.ts +0 -0
  592. /package/lib/{steps/writing/creation/dotGitHub → blocks/files}/createSoloWorkflowFile.d.ts +0 -0
  593. /package/lib/{steps/writing/creation/formatters → blocks/files}/formatIgnoreFile.d.ts +0 -0
  594. /package/lib/{steps/writing/creation/formatters → blocks/files}/formatIgnoreFile.js +0 -0
  595. /package/lib/{steps/writing/creation/dotGitHub → blocks/files}/formatWorkflowYaml.d.ts +0 -0
  596. /package/lib/{steps/writing/creation/formatters → blocks/files}/formatYaml.d.ts +0 -0
  597. /package/lib/{next/blocks → blocks}/options.fakes.d.ts +0 -0
  598. /package/lib/{next/blocks → blocks}/options.fakes.js +0 -0
  599. /package/lib/{steps/initializeGitHubRepository → blocks}/outcomeLabels.d.ts +0 -0
  600. /package/lib/{next/blocks → blocks}/phases.d.ts +0 -0
  601. /package/lib/{next/blocks → blocks}/phases.js +0 -0
  602. /package/lib/{shared/options/createOptionDefaults → options}/getUsageFromReadme.d.ts +0 -0
  603. /package/lib/{shared/options/createOptionDefaults → options}/getUsageFromReadme.js +0 -0
  604. /package/lib/{shared/options/createOptionDefaults → options}/parsePackageAuthor.js +0 -0
  605. /package/lib/{next → options}/readDescriptionFromReadme.d.ts +0 -0
  606. /package/lib/{next → options}/readDescriptionFromReadme.js +0 -0
  607. /package/lib/{next → options}/readDocumentation.d.ts +0 -0
  608. /package/lib/{shared/options/createOptionDefaults → options}/readEmails.d.ts +0 -0
  609. /package/lib/{shared → options}/readFileAsJson.d.ts +0 -0
  610. /package/lib/{shared → options}/readFileAsJson.js +0 -0
  611. /package/lib/{shared → options}/readFileSafe.d.ts +0 -0
  612. /package/lib/{shared → options}/readFileSafe.js +0 -0
  613. /package/lib/{shared/options/createOptionDefaults → options}/readFunding.d.ts +0 -0
  614. /package/lib/{shared/options/createOptionDefaults → options}/readGitHubEmail.d.ts +0 -0
  615. /package/lib/{shared/options/createOptionDefaults → options}/readGuide.d.ts +0 -0
  616. /package/lib/{shared/options → options}/readLogoSizing.d.ts +0 -0
  617. /package/lib/{next/utils → utils}/resolveBin.d.ts +0 -0
  618. /package/lib/{next/utils → utils}/resolveBin.js +0 -0
  619. /package/lib/{next/utils → utils}/sortObject.d.ts +0 -0
  620. /package/lib/{next/utils → utils}/sortObject.js +0 -0
  621. /package/lib/{next/utils → utils}/swallowError.d.ts +0 -0
  622. /package/lib/{next/utils → utils}/swallowError.js +0 -0
  623. /package/lib/{shared → utils}/tryCatchAsync.d.ts +0 -0
  624. /package/lib/{shared → utils}/tryCatchAsync.js +0 -0
  625. /package/lib/{shared → utils}/tryCatchLazyValueAsync.d.ts +0 -0
  626. /package/lib/{shared → utils}/tryCatchLazyValueAsync.js +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../../src/steps/writing/creation/dotGitHub/createDevelopment/index.ts"],"sourcesContent":["import { readFileSafe } from \"../../../../../shared/readFileSafe.js\";\nimport { Options } from \"../../../../../shared/types.js\";\nimport { splitIntoSections } from \"./splitIntoSections.js\";\n\nconst headingAliases = new Map([\n\t[\"build\", \"Building\"],\n\t[\"builds\", \"Building\"],\n\t[\"format\", \"Formatting\"],\n\t[\"lint\", \"Linting\"],\n\t[\"test\", \"Testing\"],\n\t[\"tests\", \"Testing\"],\n]);\n\nexport async function createDevelopment(options: Options) {\n\tconst existingContents = await readFileSafe(\".github/DEVELOPMENT.md\", \"\");\n\n\tconst newSections = {\n\t\t\"## Building\": `Run [**tsup**](https://tsup.egoist.dev) locally to build source files from \\`src/\\` into output files in \\`lib/\\`:\n\n\\`\\`\\`shell\npnpm build\n\\`\\`\\`\n\nAdd \\`--watch\\` to run the builder in a watch mode that continuously cleans and recreates \\`lib/\\` as you save files:\n\n\\`\\`\\`shell\npnpm build --watch\n\\`\\`\\``,\n\t\t...(options.bin && {\n\t\t\t\"### Built App Debugging\": `This repository includes a [VS Code launch configuration](https://code.visualstudio.com/docs/editor/debugging) for debugging.\nTo debug a \\`bin\\` app, add a breakpoint to your code, then run _Debug Program_ from the VS Code Debug panel (or press F5).\nVS Code will automatically run the \\`build\\` task in the background before running \\`${options.bin}\\`.`,\n\t\t}),\n\t\t\"## Formatting\": `[Prettier](https://prettier.io) is used to format code.\nIt should be applied automatically when you save files in VS Code or make a Git commit.\n\nTo manually reformat all files, you can run:\n\n\\`\\`\\`shell\npnpm format --write\n\\`\\`\\``,\n\t\t\"## Linting\": `${createLintingSection(options)}\n\n\\`\\`\\`shell\npnpm run lint --fix\n\\`\\`\\`\n\nNote that you'll need to run \\`pnpm build\\` before \\`pnpm lint\\` so that lint rules which check the file system can pick up on any built files.`,\n\t\t...(!options.excludeTests && {\n\t\t\t\"## Testing\": `[Vitest](https://vitest.dev) is used for tests.\nYou can run it locally on the command-line:\n\n\\`\\`\\`shell\npnpm run test\n\\`\\`\\`\n\nAdd the \\`--coverage\\` flag to compute test coverage and place reports in the \\`coverage/\\` directory:\n\n\\`\\`\\`shell\npnpm run test --coverage\n\\`\\`\\`\n\nNote that [console-fail-test](https://github.com/JoshuaKGoldberg/console-fail-test) is enabled for all test runs.\nCalls to \\`console.log\\`, \\`console.warn\\`, and other console methods will cause a test to fail.`,\n\n\t\t\t// Debugging tests are intentionally put second\n\t\t\t\"### Debugging Tests\": `This repository includes a [VS Code launch configuration](https://code.visualstudio.com/docs/editor/debugging) for debugging unit tests.\nTo launch it, open a test file, then run _Debug Current Test File_ from the VS Code Debug panel (or press F5).`,\n\t\t}),\n\t\t\"## Type Checking\": `You should be able to see suggestions from [TypeScript](https://typescriptlang.org) in your editor for all open files.\n\nHowever, it can be useful to run the TypeScript command-line (\\`tsc\\`) to type check all files in \\`src/\\`:\n\n\\`\\`\\`shell\npnpm tsc\n\\`\\`\\`\n\nAdd \\`--watch\\` to keep the type checker running in a watch mode that updates the display as you save files:\n\n\\`\\`\\`shell\npnpm tsc --watch\n\\`\\`\\``,\n\t};\n\n\tconst newSectionHeadings = new Set([\n\t\t\"Development\",\n\t\tObject.keys(newSections).map((key) => key.replace(/^#* /, \"\")),\n\t]);\n\n\tconst existingSectionsSplit = splitIntoSections(existingContents);\n\tconst preservedSectionsSplit = existingSectionsSplit.filter(([key]) => {\n\t\tconst keyText = key.replace(/^#* /, \"\");\n\t\treturn !newSectionHeadings.has(\n\t\t\theadingAliases.get(keyText.toLowerCase()) ?? keyText,\n\t\t);\n\t});\n\tconst preservedSections = Object.fromEntries(preservedSectionsSplit);\n\n\tconst sectionLines: string[] = [];\n\tconst seen = new Set<string>();\n\n\tfor (const sections of [newSections, preservedSections]) {\n\t\tfor (const heading in sections) {\n\t\t\tif (seen.has(heading)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tseen.add(heading);\n\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\t\t\tconst contents = sections[heading as keyof typeof sections]!;\n\n\t\t\tsectionLines.push(\"\");\n\t\t\tsectionLines.push(heading);\n\t\t\tsectionLines.push(\"\");\n\t\t\tsectionLines.push(contents);\n\t\t}\n\t}\n\n\tconst result = `# Development\n${\n\toptions.guide\n\t\t? `\n> If you'd like a more guided walkthrough, see [${options.guide.title}](${options.guide.href}).\n> It'll walk you through the common activities you'll need to contribute.\n`\n\t\t: \"\"\n}\nAfter [forking the repo from GitHub](https://help.github.com/articles/fork-a-repo) and [installing pnpm](https://pnpm.io/installation):\n\n\\`\\`\\`shell\ngit clone https://github.com/<your-name-here>/${options.repository}\ncd ${options.repository}\npnpm install\n\\`\\`\\`\n\n> This repository includes a list of suggested VS Code extensions.\n> It's a good idea to use [VS Code](https://code.visualstudio.com) and accept its suggestion to install them, as they'll help with development.\n${sectionLines.join(\"\\n\")}\n`;\n\n\treturn result;\n}\n\nfunction createLintingSection(options: Options) {\n\tconst lintLines = [\n\t\t!options.excludeLintKnip &&\n\t\t\t`- \\`pnpm lint:knip\\` ([knip](https://github.com/webpro/knip)): Detects unused files, dependencies, and code exports`,\n\t\t!options.excludeLintMd &&\n\t\t\t`- \\`pnpm lint:md\\` ([Markdownlint](https://github.com/DavidAnson/markdownlint)): Checks Markdown source files`,\n\t\t!options.excludeLintPackages &&\n\t\t\t`- \\`pnpm lint:packages\\` ([pnpm dedupe --check](https://pnpm.io/cli/dedupe)): Checks for unnecessarily duplicated packages in the \\`pnpm-lock.yml\\` file`,\n\t\t!options.excludeLintSpelling &&\n\t\t\t`- \\`pnpm lint:spelling\\` ([cspell](https://cspell.org)): Spell checks across all source files`,\n\t].filter(Boolean);\n\n\treturn lintLines.length\n\t\t? [\n\t\t\t\t`This package includes several forms of linting to enforce consistent code quality and styling.`,\n\t\t\t\t`Each should be shown in VS Code, and can be run manually on the command-line:`,\n\t\t\t\t``,\n\t\t\t\t`- \\`pnpm lint\\` ([ESLint](https://eslint.org) with [typescript-eslint](https://typescript-eslint.io)): Lints JavaScript and TypeScript source files`,\n\t\t\t\t...lintLines,\n\t\t\t\t``,\n\t\t\t\t`Read the individual documentation for each linter to understand how it can be configured and used best.`,\n\t\t\t\t``,\n\t\t\t\t`For example, ESLint can be run with \\`--fix\\` to auto-fix some lint rule complaints:`,\n\t\t\t].join(\"\\n\")\n\t\t: `[ESLint](https://eslint.org) is used with with [typescript-eslint](https://typescript-eslint.io)) to lint JavaScript and TypeScript source files.\nYou can run it locally on the command-line:\n\n\\`\\`\\`shell\npnpm run lint\n\\`\\`\\`\n\nESLint can be run with \\`--fix\\` to auto-fix some lint rule complaints:`;\n}\n"],"mappings":"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","names":[]}
@@ -1,3 +0,0 @@
1
- declare function splitIntoSections(text: string): [string, string][];
2
-
3
- export { splitIntoSections };
@@ -1,24 +0,0 @@
1
- function splitIntoSections(text) {
2
- const sections = [];
3
- if (!text) {
4
- return sections;
5
- }
6
- let remaining = `${text}
7
- `;
8
- while (remaining) {
9
- const indexOfNewline = remaining.indexOf("\n", 1);
10
- let nextStart = remaining.indexOf("\n#", 1);
11
- if (nextStart === -1) {
12
- nextStart = remaining.length;
13
- }
14
- const heading = remaining.slice(0, indexOfNewline).trim();
15
- const contents = remaining.slice(indexOfNewline, nextStart).trim().replace(/^\n+/, "");
16
- sections.push([heading, contents]);
17
- remaining = remaining.slice(nextStart);
18
- }
19
- return sections;
20
- }
21
- export {
22
- splitIntoSections
23
- };
24
- //# sourceMappingURL=splitIntoSections.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../../src/steps/writing/creation/dotGitHub/createDevelopment/splitIntoSections.ts"],"sourcesContent":["export function splitIntoSections(text: string) {\n\tconst sections: [string, string][] = [];\n\tif (!text) {\n\t\treturn sections;\n\t}\n\n\tlet remaining = `${text}\\n`;\n\n\twhile (remaining) {\n\t\tconst indexOfNewline = remaining.indexOf(\"\\n\", 1);\n\t\tlet nextStart = remaining.indexOf(\"\\n#\", 1);\n\t\tif (nextStart === -1) {\n\t\t\tnextStart = remaining.length;\n\t\t}\n\n\t\tconst heading = remaining.slice(0, indexOfNewline).trim();\n\t\tconst contents = remaining\n\t\t\t.slice(indexOfNewline, nextStart)\n\t\t\t.trim()\n\t\t\t.replace(/^\\n+/, \"\");\n\n\t\tsections.push([heading, contents]);\n\t\tremaining = remaining.slice(nextStart);\n\t}\n\n\treturn sections;\n}\n"],"mappings":"AAAO,SAAS,kBAAkB,MAAc;AAC/C,QAAM,WAA+B,CAAC;AACtC,MAAI,CAAC,MAAM;AACV,WAAO;AAAA,EACR;AAEA,MAAI,YAAY,GAAG,IAAI;AAAA;AAEvB,SAAO,WAAW;AACjB,UAAM,iBAAiB,UAAU,QAAQ,MAAM,CAAC;AAChD,QAAI,YAAY,UAAU,QAAQ,OAAO,CAAC;AAC1C,QAAI,cAAc,IAAI;AACrB,kBAAY,UAAU;AAAA,IACvB;AAEA,UAAM,UAAU,UAAU,MAAM,GAAG,cAAc,EAAE,KAAK;AACxD,UAAM,WAAW,UACf,MAAM,gBAAgB,SAAS,EAC/B,KAAK,EACL,QAAQ,QAAQ,EAAE;AAEpB,aAAS,KAAK,CAAC,SAAS,QAAQ,CAAC;AACjC,gBAAY,UAAU,MAAM,SAAS;AAAA,EACtC;AAEA,SAAO;AACR;","names":[]}
@@ -1,16 +0,0 @@
1
- import { Options } from '../../../../shared/types.js';
2
- import 'zod';
3
- import '../../../../shared/codes.js';
4
-
5
- declare function createDotGitHubFiles(options: Options): Promise<{
6
- "renovate.json"?: string | undefined;
7
- "ISSUE_TEMPLATE.md": string;
8
- "PULL_REQUEST_TEMPLATE.md": string;
9
- "SECURITY.md": string;
10
- "FUNDING.yml"?: string | undefined;
11
- "CODE_OF_CONDUCT.md": string;
12
- "CONTRIBUTING.md": string;
13
- "DEVELOPMENT.md": string;
14
- }>;
15
-
16
- export { createDotGitHubFiles };
@@ -1,292 +0,0 @@
1
- import { formatJson } from "../formatters/formatJson.js";
2
- import { formatYaml } from "../formatters/formatYaml.js";
3
- import { createDevelopment } from "./createDevelopment/index.js";
4
- async function createDotGitHubFiles(options) {
5
- return {
6
- "CODE_OF_CONDUCT.md": `# Contributor Covenant Code of Conduct
7
-
8
- ## Our Pledge
9
-
10
- We as members, contributors, and leaders pledge to make participation in our
11
- community a harassment-free experience for everyone, regardless of age, body
12
- size, visible or invisible disability, ethnicity, sex characteristics, gender
13
- identity and expression, level of experience, education, socio-economic status,
14
- nationality, personal appearance, race, caste, color, religion, or sexual
15
- identity and orientation.
16
-
17
- We pledge to act and interact in ways that contribute to an open, welcoming,
18
- diverse, inclusive, and healthy community.
19
-
20
- ## Our Standards
21
-
22
- Examples of behavior that contributes to a positive environment for our
23
- community include:
24
-
25
- - Demonstrating empathy and kindness toward other people
26
- - Being respectful of differing opinions, viewpoints, and experiences
27
- - Giving and gracefully accepting constructive feedback
28
- - Accepting responsibility and apologizing to those affected by our mistakes,
29
- and learning from the experience
30
- - Focusing on what is best not just for us as individuals, but for the overall
31
- community
32
-
33
- Examples of unacceptable behavior include:
34
-
35
- - The use of sexualized language or imagery, and sexual attention or advances of
36
- any kind
37
- - Trolling, insulting or derogatory comments, and personal or political attacks
38
- - Public or private harassment
39
- - Publishing others' private information, such as a physical or email address,
40
- without their explicit permission
41
- - Other conduct which could reasonably be considered inappropriate in a
42
- professional setting
43
-
44
- ## Enforcement Responsibilities
45
-
46
- Community leaders are responsible for clarifying and enforcing our standards of
47
- acceptable behavior and will take appropriate and fair corrective action in
48
- response to any behavior that they deem inappropriate, threatening, offensive,
49
- or harmful.
50
-
51
- Community leaders have the right and responsibility to remove, edit, or reject
52
- comments, commits, code, wiki edits, issues, and other contributions that are
53
- not aligned to this Code of Conduct, and will communicate reasons for moderation
54
- decisions when appropriate.
55
-
56
- ## Scope
57
-
58
- This Code of Conduct applies within all community spaces, and also applies when
59
- an individual is officially representing the community in public spaces.
60
- Examples of representing our community include using an official e-mail address,
61
- posting via an official social media account, or acting as an appointed
62
- representative at an online or offline event.
63
-
64
- ## Enforcement
65
-
66
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
67
- reported to the community leaders responsible for enforcement at
68
- ${options.email.github}.
69
- All complaints will be reviewed and investigated promptly and fairly.
70
-
71
- All community leaders are obligated to respect the privacy and security of the
72
- reporter of any incident.
73
-
74
- ## Enforcement Guidelines
75
-
76
- Community leaders will follow these Community Impact Guidelines in determining
77
- the consequences for any action they deem in violation of this Code of Conduct:
78
-
79
- ### 1. Correction
80
-
81
- **Community Impact**: Use of inappropriate language or other behavior deemed
82
- unprofessional or unwelcome in the community.
83
-
84
- **Consequence**: A private, written warning from community leaders, providing
85
- clarity around the nature of the violation and an explanation of why the
86
- behavior was inappropriate. A public apology may be requested.
87
-
88
- ### 2. Warning
89
-
90
- **Community Impact**: A violation through a single incident or series of
91
- actions.
92
-
93
- **Consequence**: A warning with consequences for continued behavior. No
94
- interaction with the people involved, including unsolicited interaction with
95
- those enforcing the Code of Conduct, for a specified period of time. This
96
- includes avoiding interactions in community spaces as well as external channels
97
- like social media. Violating these terms may lead to a temporary or permanent
98
- ban.
99
-
100
- ### 3. Temporary Ban
101
-
102
- **Community Impact**: A serious violation of community standards, including
103
- sustained inappropriate behavior.
104
-
105
- **Consequence**: A temporary ban from any sort of interaction or public
106
- communication with the community for a specified period of time. No public or
107
- private interaction with the people involved, including unsolicited interaction
108
- with those enforcing the Code of Conduct, is allowed during this period.
109
- Violating these terms may lead to a permanent ban.
110
-
111
- ### 4. Permanent Ban
112
-
113
- **Community Impact**: Demonstrating a pattern of violation of community
114
- standards, including sustained inappropriate behavior, harassment of an
115
- individual, or aggression toward or disparagement of classes of individuals.
116
-
117
- **Consequence**: A permanent ban from any sort of public interaction within the
118
- community.
119
-
120
- ## Attribution
121
-
122
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
123
- version 2.1, available at
124
- [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
125
-
126
- Community Impact Guidelines were inspired by
127
- [Mozilla's code of conduct enforcement ladder][mozilla coc].
128
-
129
- For answers to common questions about this code of conduct, see the FAQ at
130
- [https://www.contributor-covenant.org/faq][faq]. Translations are available at
131
- [https://www.contributor-covenant.org/translations][translations].
132
-
133
- [homepage]: https://www.contributor-covenant.org
134
- [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
135
- [mozilla coc]: https://github.com/mozilla/diversity
136
- [faq]: https://www.contributor-covenant.org/faq
137
- [translations]: https://www.contributor-covenant.org/translations
138
- `,
139
- "CONTRIBUTING.md": `# Contributing
140
-
141
- Thanks for your interest in contributing to \`${options.repository}\`! \u{1F496}
142
-
143
- > After this page, see [DEVELOPMENT.md](./DEVELOPMENT.md) for local development instructions.
144
-
145
- ## Code of Conduct
146
-
147
- This project contains a [Contributor Covenant code of conduct](./CODE_OF_CONDUCT.md) all contributors are expected to follow.
148
-
149
- ## Reporting Issues
150
-
151
- Please do [report an issue on the issue tracker](https://github.com/${options.owner}/${options.repository}/issues/new/choose) if there's any bugfix, documentation improvement, or general enhancement you'd like to see in the repository! Please fully fill out all required fields in the most appropriate issue form.
152
-
153
- ## Sending Contributions
154
-
155
- Sending your own changes as contribution is always appreciated!
156
- There are two steps involved:
157
-
158
- 1. [Finding an Issue](#finding-an-issue)
159
- 2. [Sending a Pull Request](#sending-a-pull-request)
160
-
161
- ### Finding an Issue
162
-
163
- With the exception of very small typos, all changes to this repository generally need to correspond to an [unassigned open issue marked as \`status: accepting prs\` on the issue tracker](https://github.com/${options.owner}/${options.repository}/issues?q=is%3Aissue+is%3Aopen+label%3A%22status%3A+accepting+prs%22+no%3Aassignee+).
164
- If this is your first time contributing, consider searching for [unassigned issues that also have the \`good first issue\` label](https://github.com/${options.owner}/${options.repository}/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22+label%3A%22status%3A+accepting+prs%22+no%3Aassignee+).
165
- If the issue you'd like to fix isn't found on the issue, see [Reporting Issues](#reporting-issues) for filing your own (please do!).
166
-
167
- #### Issue Claiming
168
-
169
- We don't use any kind of issue claiming system.
170
- We've found in the past that they result in accidental ["licked cookie"](https://devblogs.microsoft.com/oldnewthing/20091201-00/?p=15843) situations where contributors claim an issue but run out of time or energy trying before sending a PR.
171
-
172
- If an unassigned issue has been marked as \`status: accepting prs\` and an open PR does not exist, feel free to send a PR.
173
- Please don't post comments asking for permission or stating you will work on an issue.
174
-
175
- ### Sending a Pull Request
176
-
177
- Once you've identified an open issue accepting PRs that doesn't yet have a PR sent, you're free to send a pull request.
178
- Be sure to fill out the pull request template's requested information -- otherwise your PR will likely be closed.
179
-
180
- PRs are also expected to have a title that adheres to [conventional commits](https://www.conventionalcommits.org/en/v1.0.0).
181
- Only PR titles need to be in that format, not individual commits.
182
- Don't worry if you get this wrong: you can always change the PR title after sending it.
183
- Check [previously merged PRs](https://github.com/${options.owner}/${options.repository}/pulls?q=is%3Apr+is%3Amerged+-label%3Adependencies+) for reference.
184
-
185
- #### Draft PRs
186
-
187
- If you don't think your PR is ready for review, [set it as a draft](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-stage-of-a-pull-request#converting-a-pull-request-to-a-draft).
188
- Draft PRs won't be reviewed.
189
-
190
- #### Granular PRs
191
-
192
- Please keep pull requests single-purpose: in other words, don't attempt to solve multiple unrelated problems in one pull request.
193
- Send one PR per area of concern.
194
- Multi-purpose pull requests are harder and slower to review, block all changes from being merged until the whole pull request is reviewed, and are difficult to name well with semantic PR titles.
195
-
196
- #### Pull Request Reviews
197
-
198
- When a PR is not in draft, it's considered ready for review.
199
- Please don't manually \`@\` tag anybody to request review.
200
- A maintainer will look at it when they're next able to.
201
-
202
- PRs should have passing [GitHub status checks](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/about-status-checks) before review is requested (unless there are explicit questions asked in the PR about any failures).
203
-
204
- #### Asking Questions
205
-
206
- If you need help and/or have a question, posting a comment in the PR is a great way to do so.
207
- There's no need to tag anybody individually.
208
- One of us will drop by and help when we can.
209
-
210
- Please post comments as [line comments](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request) when possible, so that they can be threaded.
211
- You can [resolve conversations](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/commenting-on-a-pull-request#resolving-conversations) on your own when you feel they're resolved - no need to comment explicitly and/or wait for a maintainer.
212
-
213
- #### Requested Changes
214
-
215
- After a maintainer reviews your PR, they may request changes on it.
216
- Once you've made those changes, [re-request review on GitHub](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/about-pull-request-reviews#re-requesting-a-review).
217
-
218
- Please try not to force-push commits to PRs that have already been reviewed.
219
- Doing so makes it harder to review the changes.
220
- We squash merge all commits so there's no need to try to preserve Git history within a PR branch.
221
-
222
- Once you've addressed all our feedback by making code changes and/or started a followup discussion, [re-request review](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/about-pull-request-reviews#re-requesting-a-review) from each maintainer whose feedback you addressed.
223
-
224
- Once all feedback is addressed and the PR is approved, we'll ensure the branch is up to date with \`main\` and merge it for you.
225
-
226
- #### Post-Merge Recognition
227
-
228
- Once your PR is merged, if you haven't yet been added to the [_Contributors_ table in the README.md](../README.md#contributors) for its [type of contribution](https://allcontributors.org/docs/en/emoji-key "Allcontributors emoji key"), you should be soon.
229
- Please do ping the maintainer who merged your PR if that doesn't happen within 24 hours - it was likely an oversight on our end!
230
-
231
- ## Emojis & Appreciation
232
-
233
- If you made it all the way to the end, bravo dear user, we love you.
234
- Please include your favorite emoji in the bottom of your issues and PRs to signal to us that you did in fact read this file and are trying to conform to it as best as possible.
235
- \u{1F496} is a good starter if you're not sure which to use.
236
- `,
237
- "DEVELOPMENT.md": await createDevelopment(options),
238
- ...options.funding && {
239
- "FUNDING.yml": formatYaml({ github: options.funding })
240
- },
241
- "ISSUE_TEMPLATE.md": `<!-- Note: Please must use one of our issue templates to file an issue! \u{1F6D1} -->
242
- <!-- \u{1F449} https://github.com/${options.owner}/${options.repository}/issues/new/choose \u{1F448} -->
243
- <!-- **Issues that should have been filed with a template will be closed without action, and we will ask you to use a template.** -->
244
-
245
- <!-- This blank issue template is only for issues that don't fit any of the templates. -->
246
-
247
- ## Overview
248
-
249
- ...
250
- `,
251
- "PULL_REQUEST_TEMPLATE.md": `<!-- \u{1F44B} Hi, thanks for sending a PR to ${options.repository}! \u{1F496}.
252
- Please fill out all fields below and make sure each item is true and [x] checked.
253
- Otherwise we may not be able to review your PR. -->
254
-
255
- ## PR Checklist
256
-
257
- - [ ] Addresses an existing open issue: fixes #000
258
- - [ ] That issue was marked as [\`status: accepting prs\`](https://github.com/${options.owner}/${options.repository}/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)
259
- - [ ] Steps in [CONTRIBUTING.md](https://github.com/${options.owner}/${options.repository}/blob/main/.github/CONTRIBUTING.md) were taken
260
-
261
- ## Overview
262
-
263
- <!-- Description of what is changed and how the code change does that. -->
264
- `,
265
- "SECURITY.md": `# Security Policy
266
-
267
- We take all security vulnerabilities seriously.
268
- If you have a vulnerability or other security issues to disclose:
269
-
270
- - Thank you very much, please do!
271
- - Please send them to us by emailing \`${options.email.github}\`
272
-
273
- We appreciate your efforts and responsible disclosure and will make every effort to acknowledge your contributions.
274
- `,
275
- ...!options.excludeRenovate && {
276
- "renovate.json": await formatJson({
277
- $schema: "https://docs.renovatebot.com/renovate-schema.json",
278
- automerge: true,
279
- extends: ["config:best-practices", "replacements:all"],
280
- ignoreDeps: ["codecov/codecov-action"],
281
- labels: ["dependencies"],
282
- minimumReleaseAge: "7 days",
283
- patch: { enabled: false },
284
- postUpdateOptions: ["pnpmDedupe"]
285
- })
286
- }
287
- };
288
- }
289
- export {
290
- createDotGitHubFiles
291
- };
292
- //# sourceMappingURL=createDotGitHubFiles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/steps/writing/creation/dotGitHub/createDotGitHubFiles.ts"],"sourcesContent":["/* spellchecker: disable */\nimport { Options } from \"../../../../shared/types.js\";\nimport { formatJson } from \"../formatters/formatJson.js\";\nimport { formatYaml } from \"../formatters/formatYaml.js\";\nimport { createDevelopment } from \"./createDevelopment/index.js\";\n\nexport async function createDotGitHubFiles(options: Options) {\n\treturn {\n\t\t\"CODE_OF_CONDUCT.md\": `# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nWe as members, contributors, and leaders pledge to make participation in our\ncommunity a harassment-free experience for everyone, regardless of age, body\nsize, visible or invisible disability, ethnicity, sex characteristics, gender\nidentity and expression, level of experience, education, socio-economic status,\nnationality, personal appearance, race, caste, color, religion, or sexual\nidentity and orientation.\n\nWe pledge to act and interact in ways that contribute to an open, welcoming,\ndiverse, inclusive, and healthy community.\n\n## Our Standards\n\nExamples of behavior that contributes to a positive environment for our\ncommunity include:\n\n- Demonstrating empathy and kindness toward other people\n- Being respectful of differing opinions, viewpoints, and experiences\n- Giving and gracefully accepting constructive feedback\n- Accepting responsibility and apologizing to those affected by our mistakes,\n and learning from the experience\n- Focusing on what is best not just for us as individuals, but for the overall\n community\n\nExamples of unacceptable behavior include:\n\n- The use of sexualized language or imagery, and sexual attention or advances of\n any kind\n- Trolling, insulting or derogatory comments, and personal or political attacks\n- Public or private harassment\n- Publishing others' private information, such as a physical or email address,\n without their explicit permission\n- Other conduct which could reasonably be considered inappropriate in a\n professional setting\n\n## Enforcement Responsibilities\n\nCommunity leaders are responsible for clarifying and enforcing our standards of\nacceptable behavior and will take appropriate and fair corrective action in\nresponse to any behavior that they deem inappropriate, threatening, offensive,\nor harmful.\n\nCommunity leaders have the right and responsibility to remove, edit, or reject\ncomments, commits, code, wiki edits, issues, and other contributions that are\nnot aligned to this Code of Conduct, and will communicate reasons for moderation\ndecisions when appropriate.\n\n## Scope\n\nThis Code of Conduct applies within all community spaces, and also applies when\nan individual is officially representing the community in public spaces.\nExamples of representing our community include using an official e-mail address,\nposting via an official social media account, or acting as an appointed\nrepresentative at an online or offline event.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be\nreported to the community leaders responsible for enforcement at\n${options.email.github}.\nAll complaints will be reviewed and investigated promptly and fairly.\n\nAll community leaders are obligated to respect the privacy and security of the\nreporter of any incident.\n\n## Enforcement Guidelines\n\nCommunity leaders will follow these Community Impact Guidelines in determining\nthe consequences for any action they deem in violation of this Code of Conduct:\n\n### 1. Correction\n\n**Community Impact**: Use of inappropriate language or other behavior deemed\nunprofessional or unwelcome in the community.\n\n**Consequence**: A private, written warning from community leaders, providing\nclarity around the nature of the violation and an explanation of why the\nbehavior was inappropriate. A public apology may be requested.\n\n### 2. Warning\n\n**Community Impact**: A violation through a single incident or series of\nactions.\n\n**Consequence**: A warning with consequences for continued behavior. No\ninteraction with the people involved, including unsolicited interaction with\nthose enforcing the Code of Conduct, for a specified period of time. This\nincludes avoiding interactions in community spaces as well as external channels\nlike social media. Violating these terms may lead to a temporary or permanent\nban.\n\n### 3. Temporary Ban\n\n**Community Impact**: A serious violation of community standards, including\nsustained inappropriate behavior.\n\n**Consequence**: A temporary ban from any sort of interaction or public\ncommunication with the community for a specified period of time. No public or\nprivate interaction with the people involved, including unsolicited interaction\nwith those enforcing the Code of Conduct, is allowed during this period.\nViolating these terms may lead to a permanent ban.\n\n### 4. Permanent Ban\n\n**Community Impact**: Demonstrating a pattern of violation of community\nstandards, including sustained inappropriate behavior, harassment of an\nindividual, or aggression toward or disparagement of classes of individuals.\n\n**Consequence**: A permanent ban from any sort of public interaction within the\ncommunity.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant][homepage],\nversion 2.1, available at\n[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].\n\nCommunity Impact Guidelines were inspired by\n[Mozilla's code of conduct enforcement ladder][mozilla coc].\n\nFor answers to common questions about this code of conduct, see the FAQ at\n[https://www.contributor-covenant.org/faq][faq]. Translations are available at\n[https://www.contributor-covenant.org/translations][translations].\n\n[homepage]: https://www.contributor-covenant.org\n[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html\n[mozilla coc]: https://github.com/mozilla/diversity\n[faq]: https://www.contributor-covenant.org/faq\n[translations]: https://www.contributor-covenant.org/translations\n`,\n\t\t\"CONTRIBUTING.md\": `# Contributing\n\nThanks for your interest in contributing to \\`${options.repository}\\`! 💖\n\n> After this page, see [DEVELOPMENT.md](./DEVELOPMENT.md) for local development instructions.\n\n## Code of Conduct\n\nThis project contains a [Contributor Covenant code of conduct](./CODE_OF_CONDUCT.md) all contributors are expected to follow.\n\n## Reporting Issues\n\nPlease do [report an issue on the issue tracker](https://github.com/${options.owner}/${options.repository}/issues/new/choose) if there's any bugfix, documentation improvement, or general enhancement you'd like to see in the repository! Please fully fill out all required fields in the most appropriate issue form.\n\n## Sending Contributions\n\nSending your own changes as contribution is always appreciated!\nThere are two steps involved:\n\n1. [Finding an Issue](#finding-an-issue)\n2. [Sending a Pull Request](#sending-a-pull-request)\n\n### Finding an Issue\n\nWith the exception of very small typos, all changes to this repository generally need to correspond to an [unassigned open issue marked as \\`status: accepting prs\\` on the issue tracker](https://github.com/${options.owner}/${options.repository}/issues?q=is%3Aissue+is%3Aopen+label%3A%22status%3A+accepting+prs%22+no%3Aassignee+).\nIf this is your first time contributing, consider searching for [unassigned issues that also have the \\`good first issue\\` label](https://github.com/${options.owner}/${options.repository}/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22+label%3A%22status%3A+accepting+prs%22+no%3Aassignee+).\nIf the issue you'd like to fix isn't found on the issue, see [Reporting Issues](#reporting-issues) for filing your own (please do!).\n\n#### Issue Claiming\n\nWe don't use any kind of issue claiming system.\nWe've found in the past that they result in accidental [\"licked cookie\"](https://devblogs.microsoft.com/oldnewthing/20091201-00/?p=15843) situations where contributors claim an issue but run out of time or energy trying before sending a PR.\n\nIf an unassigned issue has been marked as \\`status: accepting prs\\` and an open PR does not exist, feel free to send a PR.\nPlease don't post comments asking for permission or stating you will work on an issue.\n\n### Sending a Pull Request\n\nOnce you've identified an open issue accepting PRs that doesn't yet have a PR sent, you're free to send a pull request.\nBe sure to fill out the pull request template's requested information -- otherwise your PR will likely be closed.\n\nPRs are also expected to have a title that adheres to [conventional commits](https://www.conventionalcommits.org/en/v1.0.0).\nOnly PR titles need to be in that format, not individual commits.\nDon't worry if you get this wrong: you can always change the PR title after sending it.\nCheck [previously merged PRs](https://github.com/${options.owner}/${options.repository}/pulls?q=is%3Apr+is%3Amerged+-label%3Adependencies+) for reference.\n\n#### Draft PRs\n\nIf you don't think your PR is ready for review, [set it as a draft](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-stage-of-a-pull-request#converting-a-pull-request-to-a-draft).\nDraft PRs won't be reviewed.\n\n#### Granular PRs\n\nPlease keep pull requests single-purpose: in other words, don't attempt to solve multiple unrelated problems in one pull request.\nSend one PR per area of concern.\nMulti-purpose pull requests are harder and slower to review, block all changes from being merged until the whole pull request is reviewed, and are difficult to name well with semantic PR titles.\n\n#### Pull Request Reviews\n\nWhen a PR is not in draft, it's considered ready for review.\nPlease don't manually \\`@\\` tag anybody to request review.\nA maintainer will look at it when they're next able to.\n\nPRs should have passing [GitHub status checks](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/about-status-checks) before review is requested (unless there are explicit questions asked in the PR about any failures).\n\n#### Asking Questions\n\nIf you need help and/or have a question, posting a comment in the PR is a great way to do so.\nThere's no need to tag anybody individually.\nOne of us will drop by and help when we can.\n\nPlease post comments as [line comments](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request) when possible, so that they can be threaded.\nYou can [resolve conversations](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/commenting-on-a-pull-request#resolving-conversations) on your own when you feel they're resolved - no need to comment explicitly and/or wait for a maintainer.\n\n#### Requested Changes\n\nAfter a maintainer reviews your PR, they may request changes on it.\nOnce you've made those changes, [re-request review on GitHub](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/about-pull-request-reviews#re-requesting-a-review).\n\nPlease try not to force-push commits to PRs that have already been reviewed.\nDoing so makes it harder to review the changes.\nWe squash merge all commits so there's no need to try to preserve Git history within a PR branch.\n\nOnce you've addressed all our feedback by making code changes and/or started a followup discussion, [re-request review](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/about-pull-request-reviews#re-requesting-a-review) from each maintainer whose feedback you addressed.\n\nOnce all feedback is addressed and the PR is approved, we'll ensure the branch is up to date with \\`main\\` and merge it for you.\n\n#### Post-Merge Recognition\n\nOnce your PR is merged, if you haven't yet been added to the [_Contributors_ table in the README.md](../README.md#contributors) for its [type of contribution](https://allcontributors.org/docs/en/emoji-key \"Allcontributors emoji key\"), you should be soon.\nPlease do ping the maintainer who merged your PR if that doesn't happen within 24 hours - it was likely an oversight on our end!\n\n## Emojis & Appreciation\n\nIf you made it all the way to the end, bravo dear user, we love you.\nPlease include your favorite emoji in the bottom of your issues and PRs to signal to us that you did in fact read this file and are trying to conform to it as best as possible.\n💖 is a good starter if you're not sure which to use.\n`,\n\t\t\"DEVELOPMENT.md\": await createDevelopment(options),\n\t\t...(options.funding && {\n\t\t\t\"FUNDING.yml\": formatYaml({ github: options.funding }),\n\t\t}),\n\n\t\t\"ISSUE_TEMPLATE.md\": `<!-- Note: Please must use one of our issue templates to file an issue! 🛑 -->\n<!-- 👉 https://github.com/${options.owner}/${options.repository}/issues/new/choose 👈 -->\n<!-- **Issues that should have been filed with a template will be closed without action, and we will ask you to use a template.** -->\n\n<!-- This blank issue template is only for issues that don't fit any of the templates. -->\n\n## Overview\n\n...\n`,\n\t\t\"PULL_REQUEST_TEMPLATE.md\": `<!-- 👋 Hi, thanks for sending a PR to ${options.repository}! 💖.\nPlease fill out all fields below and make sure each item is true and [x] checked.\nOtherwise we may not be able to review your PR. -->\n\n## PR Checklist\n\n- [ ] Addresses an existing open issue: fixes #000\n- [ ] That issue was marked as [\\`status: accepting prs\\`](https://github.com/${options.owner}/${options.repository}/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)\n- [ ] Steps in [CONTRIBUTING.md](https://github.com/${options.owner}/${options.repository}/blob/main/.github/CONTRIBUTING.md) were taken\n\n## Overview\n\n<!-- Description of what is changed and how the code change does that. -->\n`,\n\t\t\"SECURITY.md\": `# Security Policy\n\nWe take all security vulnerabilities seriously.\nIf you have a vulnerability or other security issues to disclose:\n\n- Thank you very much, please do!\n- Please send them to us by emailing \\`${options.email.github}\\`\n\nWe appreciate your efforts and responsible disclosure and will make every effort to acknowledge your contributions.\n`,\n\t\t...(!options.excludeRenovate && {\n\t\t\t\"renovate.json\": await formatJson({\n\t\t\t\t$schema: \"https://docs.renovatebot.com/renovate-schema.json\",\n\t\t\t\tautomerge: true,\n\t\t\t\textends: [\"config:best-practices\", \"replacements:all\"],\n\t\t\t\tignoreDeps: [\"codecov/codecov-action\"],\n\t\t\t\tlabels: [\"dependencies\"],\n\t\t\t\tminimumReleaseAge: \"7 days\",\n\t\t\t\tpatch: { enabled: false },\n\t\t\t\tpostUpdateOptions: [\"pnpmDedupe\"],\n\t\t\t}),\n\t\t}),\n\t};\n}\n"],"mappings":"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","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/steps/writing/creation/dotGitHub/createMultiWorkflowFile.ts"],"sourcesContent":["import { formatWorkflowYaml } from \"./formatWorkflowYaml.js\";\n\nexport interface MultiWorkflowFileOptions {\n\tjobs: MultiWorkflowJobOptions[];\n\tname: string;\n}\n\nexport interface MultiWorkflowJobOptions {\n\tname: string;\n\tsteps: MultiWorkflowJobStep[];\n}\n\nexport type MultiWorkflowJobStep = { if?: string } & (\n\t| { run: string }\n\t| { uses: string }\n);\n\nexport function createMultiWorkflowFile({\n\tjobs,\n\tname,\n}: MultiWorkflowFileOptions) {\n\treturn formatWorkflowYaml({\n\t\tjobs: Object.fromEntries(\n\t\t\tjobs.map((job) => [\n\t\t\t\tjob.name.toLowerCase().replaceAll(\" \", \"_\"),\n\t\t\t\t{\n\t\t\t\t\tname: job.name,\n\t\t\t\t\t\"runs-on\": \"ubuntu-latest\",\n\t\t\t\t\tsteps: [\n\t\t\t\t\t\t{ uses: \"actions/checkout@v4\" },\n\t\t\t\t\t\t{ uses: \"./.github/actions/prepare\" },\n\t\t\t\t\t\t...job.steps,\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t]),\n\t\t),\n\t\tname,\n\t\ton: {\n\t\t\tpull_request: null,\n\t\t\tpush: {\n\t\t\t\tbranches: [\"main\"],\n\t\t\t},\n\t\t},\n\t});\n}\n"],"mappings":"AAAA,SAAS,0BAA0B;AAiB5B,SAAS,wBAAwB;AAAA,EACvC;AAAA,EACA;AACD,GAA6B;AAC5B,SAAO,mBAAmB;AAAA,IACzB,MAAM,OAAO;AAAA,MACZ,KAAK,IAAI,CAAC,QAAQ;AAAA,QACjB,IAAI,KAAK,YAAY,EAAE,WAAW,KAAK,GAAG;AAAA,QAC1C;AAAA,UACC,MAAM,IAAI;AAAA,UACV,WAAW;AAAA,UACX,OAAO;AAAA,YACN,EAAE,MAAM,sBAAsB;AAAA,YAC9B,EAAE,MAAM,4BAA4B;AAAA,YACpC,GAAG,IAAI;AAAA,UACR;AAAA,QACD;AAAA,MACD,CAAC;AAAA,IACF;AAAA,IACA;AAAA,IACA,IAAI;AAAA,MACH,cAAc;AAAA,MACd,MAAM;AAAA,QACL,UAAU,CAAC,MAAM;AAAA,MAClB;AAAA,IACD;AAAA,EACD,CAAC;AACF;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/steps/writing/creation/dotGitHub/createSoloWorkflowFile.ts"],"sourcesContent":["import { formatWorkflowYaml } from \"./formatWorkflowYaml.js\";\n\ninterface WorkflowFileConcurrency {\n\t\"cancel-in-progress\"?: boolean;\n\tgroup: string;\n}\n\ninterface WorkflowFileOn {\n\tissue_comment?: {\n\t\ttypes?: string[];\n\t};\n\tissues?: {\n\t\ttypes?: string[];\n\t};\n\tpull_request?:\n\t\t| null\n\t\t| string\n\t\t| {\n\t\t\t\tbranches?: string | string[];\n\t\t\t\ttypes?: string[];\n\t\t };\n\tpull_request_target?: {\n\t\ttypes: string[];\n\t};\n\tpush?: {\n\t\tbranches: string[];\n\t};\n\trelease?: {\n\t\ttypes: string[];\n\t};\n\tworkflow_dispatch?: null | string;\n}\n\ntype WorkflowFileOptions = WorkflowFileOptionsRuns | WorkflowFileOptionsSteps;\n\ninterface WorkflowFileOptionsBase {\n\tconcurrency?: WorkflowFileConcurrency;\n\tif?: string;\n\tname: string;\n\ton?: WorkflowFileOn;\n\tpermissions?: WorkflowFilePermissions;\n}\n\ninterface WorkflowFileOptionsRuns extends WorkflowFileOptionsBase {\n\truns: (string | WorkflowFileStep)[];\n}\n\ninterface WorkflowFileOptionsSteps extends WorkflowFileOptionsBase {\n\tsteps: WorkflowFileStep[];\n}\n\ninterface WorkflowFilePermissions {\n\tcontents?: string;\n\t\"id-token\"?: string;\n\tissues?: string;\n\t\"pull-requests\"?: string;\n}\n\ninterface WorkflowFileStep {\n\tenv?: Record<string, string>;\n\tif?: string;\n\tname?: string;\n\trun?: string;\n\tuses?: string;\n\twith?: Record<string, unknown>;\n}\n\nexport function createSoloWorkflowFile({\n\tconcurrency,\n\tname,\n\ton,\n\tpermissions,\n\t...options\n}: WorkflowFileOptions) {\n\treturn formatWorkflowYaml({\n\t\tconcurrency,\n\t\tjobs: {\n\t\t\t[name.replaceAll(\" \", \"_\").toLowerCase()]: {\n\t\t\t\t...(options.if && { if: options.if }),\n\t\t\t\t\"runs-on\": \"ubuntu-latest\",\n\t\t\t\tsteps:\n\t\t\t\t\t\"runs\" in options\n\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\t{ uses: \"actions/checkout@v4\" },\n\t\t\t\t\t\t\t\t{ uses: \"./.github/actions/prepare\" },\n\t\t\t\t\t\t\t\t...options.runs.map((run) => ({ run })),\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t: options.steps,\n\t\t\t},\n\t\t},\n\t\tname,\n\t\ton,\n\t\tpermissions,\n\t});\n}\n"],"mappings":"AAAA,SAAS,0BAA0B;AAmE5B,SAAS,uBAAuB;AAAA,EACtC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACJ,GAAwB;AACvB,SAAO,mBAAmB;AAAA,IACzB;AAAA,IACA,MAAM;AAAA,MACL,CAAC,KAAK,WAAW,KAAK,GAAG,EAAE,YAAY,CAAC,GAAG;AAAA,QAC1C,GAAI,QAAQ,MAAM,EAAE,IAAI,QAAQ,GAAG;AAAA,QACnC,WAAW;AAAA,QACX,OACC,UAAU,UACP;AAAA,UACA,EAAE,MAAM,sBAAsB;AAAA,UAC9B,EAAE,MAAM,4BAA4B;AAAA,UACpC,GAAG,QAAQ,KAAK,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE;AAAA,QACvC,IACC,QAAQ;AAAA,MACb;AAAA,IACD;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD,CAAC;AACF;","names":[]}
@@ -1,15 +0,0 @@
1
- import { Options } from '../../../../shared/types.js';
2
- import 'zod';
3
- import '../../../../shared/codes.js';
4
-
5
- declare function createWorkflows(options: Options): {
6
- "release.yml"?: string | undefined;
7
- "pr-review-requested.yml": string;
8
- "post-release.yml"?: string | undefined;
9
- "contributors.yml"?: string | undefined;
10
- "compliance.yml"?: string | undefined;
11
- "accessibility-alt-text-bot.yml": string;
12
- "ci.yml": string;
13
- };
14
-
15
- export { createWorkflows };