create-typescript-app 2.64.0 → 2.65.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/index.js +1 -1
- package/dist/base.d.mts +78 -0
- package/dist/base.mjs +162 -0
- package/dist/blocks/actions/resolveUses.d.mts +5 -0
- package/dist/blocks/actions/resolveUses.mjs +16 -0
- package/dist/blocks/actions/steps.d.mts +21 -0
- package/dist/blocks/actions/steps.mjs +19 -0
- package/dist/blocks/bin/getPrimaryBin.d.mts +4 -0
- package/dist/blocks/bin/getPrimaryBin.mjs +6 -0
- package/dist/blocks/blockAllContributors.d.mts +73 -0
- package/dist/blocks/blockAllContributors.mjs +132 -0
- package/dist/blocks/blockAreTheTypesWrong.d.mts +73 -0
- package/dist/blocks/blockAreTheTypesWrong.mjs +14 -0
- package/dist/blocks/blockBin.d.mts +75 -0
- package/dist/blocks/blockBin.mjs +27 -0
- package/dist/blocks/blockCSpell.d.mts +76 -0
- package/dist/blocks/blockCSpell.mjs +77 -0
- package/dist/blocks/blockCTATransitions.d.mts +73 -0
- package/dist/blocks/blockCTATransitions.mjs +115 -0
- package/dist/blocks/blockCodecov.d.mts +75 -0
- package/dist/blocks/blockCodecov.mjs +58 -0
- package/dist/blocks/blockContributingDocs.d.mts +73 -0
- package/dist/blocks/blockContributingDocs.mjs +112 -0
- package/dist/blocks/blockContributorCovenant.d.mts +73 -0
- package/dist/blocks/blockContributorCovenant.mjs +158 -0
- package/dist/blocks/blockDevelopmentDocs.d.mts +87 -0
- package/dist/blocks/blockDevelopmentDocs.mjs +72 -0
- package/dist/blocks/blockESLint.d.mts +97 -0
- package/dist/blocks/blockESLint.mjs +196 -0
- package/dist/blocks/blockESLintComments.d.mts +73 -0
- package/dist/blocks/blockESLintComments.mjs +21 -0
- package/dist/blocks/blockESLintJSDoc.d.mts +73 -0
- package/dist/blocks/blockESLintJSDoc.mjs +25 -0
- package/dist/blocks/blockESLintJSONC.d.mts +73 -0
- package/dist/blocks/blockESLintJSONC.mjs +20 -0
- package/dist/blocks/blockESLintMarkdown.d.mts +73 -0
- package/dist/blocks/blockESLintMarkdown.mjs +36 -0
- package/dist/blocks/blockESLintMarkdownLinks.d.mts +73 -0
- package/dist/blocks/blockESLintMarkdownLinks.mjs +20 -0
- package/dist/blocks/blockESLintMoreStyling.d.mts +74 -0
- package/dist/blocks/blockESLintMoreStyling.mjs +28 -0
- package/dist/blocks/blockESLintNode.d.mts +73 -0
- package/dist/blocks/blockESLintNode.mjs +32 -0
- package/dist/blocks/blockESLintPackageJson.d.mts +73 -0
- package/dist/blocks/blockESLintPackageJson.mjs +31 -0
- package/dist/blocks/blockESLintPerfectionist.d.mts +73 -0
- package/dist/blocks/blockESLintPerfectionist.mjs +25 -0
- package/dist/blocks/blockESLintPlugin.d.mts +75 -0
- package/dist/blocks/blockESLintPlugin.mjs +230 -0
- package/dist/blocks/blockESLintRegexp.d.mts +73 -0
- package/dist/blocks/blockESLintRegexp.mjs +21 -0
- package/dist/blocks/blockESLintYML.d.mts +73 -0
- package/dist/blocks/blockESLintYML.mjs +31 -0
- package/dist/blocks/blockExampleFiles.d.mts +76 -0
- package/dist/blocks/blockExampleFiles.mjs +23 -0
- package/dist/blocks/blockExports.d.mts +76 -0
- package/dist/blocks/blockExports.mjs +27 -0
- package/dist/blocks/blockFunding.d.mts +73 -0
- package/dist/blocks/blockFunding.mjs +15 -0
- package/dist/blocks/blockGitHubActionsCI.d.mts +88 -0
- package/dist/blocks/blockGitHubActionsCI.mjs +89 -0
- package/dist/blocks/blockGitHubApps.d.mts +78 -0
- package/dist/blocks/blockGitHubApps.mjs +16 -0
- package/dist/blocks/blockGitHubIssueTemplates.d.mts +73 -0
- package/dist/blocks/blockGitHubIssueTemplates.mjs +203 -0
- package/dist/blocks/blockGitHubPRTemplate.d.mts +73 -0
- package/dist/blocks/blockGitHubPRTemplate.mjs +23 -0
- package/dist/blocks/blockGitignore.d.mts +75 -0
- package/dist/blocks/blockGitignore.mjs +14 -0
- package/dist/blocks/blockKnip.d.mts +77 -0
- package/dist/blocks/blockKnip.mjs +70 -0
- package/dist/blocks/blockMITLicense.d.mts +73 -0
- package/dist/blocks/blockMITLicense.mjs +39 -0
- package/dist/blocks/blockNcc.d.mts +75 -0
- package/dist/blocks/blockNcc.mjs +65 -0
- package/dist/blocks/blockNvmrc.d.mts +73 -0
- package/dist/blocks/blockNvmrc.mjs +17 -0
- package/dist/blocks/blockOctoGuide.d.mts +75 -0
- package/dist/blocks/blockOctoGuide.mjs +73 -0
- package/dist/blocks/blockOctoGuideStrict.d.mts +73 -0
- package/dist/blocks/blockOctoGuideStrict.mjs +11 -0
- package/dist/blocks/blockPackageJson.d.mts +197 -0
- package/dist/blocks/blockPackageJson.mjs +86 -0
- package/dist/blocks/blockPnpmDedupe.d.mts +73 -0
- package/dist/blocks/blockPnpmDedupe.mjs +19 -0
- package/dist/blocks/blockPrettier.d.mts +83 -0
- package/dist/blocks/blockPrettier.mjs +97 -0
- package/dist/blocks/blockPrettierPluginCurly.d.mts +73 -0
- package/dist/blocks/blockPrettierPluginCurly.mjs +11 -0
- package/dist/blocks/blockPrettierPluginPackageJson.d.mts +73 -0
- package/dist/blocks/blockPrettierPluginPackageJson.mjs +11 -0
- package/dist/blocks/blockPrettierPluginPaddingLines.d.mts +73 -0
- package/dist/blocks/blockPrettierPluginPaddingLines.mjs +11 -0
- package/dist/blocks/blockPrettierPluginSentencesPerLine.d.mts +73 -0
- package/dist/blocks/blockPrettierPluginSentencesPerLine.mjs +11 -0
- package/dist/blocks/blockPrettierPluginSh.d.mts +73 -0
- package/dist/blocks/blockPrettierPluginSh.mjs +11 -0
- package/dist/blocks/blockREADME.d.mts +86 -0
- package/dist/blocks/blockREADME.mjs +74 -0
- package/dist/blocks/blockReleaseIt.d.mts +78 -0
- package/dist/blocks/blockReleaseIt.mjs +160 -0
- package/dist/blocks/blockRemoveDependencies.d.mts +75 -0
- package/dist/blocks/blockRemoveDependencies.mjs +20 -0
- package/dist/blocks/blockRemoveFiles.d.mts +75 -0
- package/dist/blocks/blockRemoveFiles.mjs +21 -0
- package/dist/blocks/blockRemoveWorkflows.d.mts +75 -0
- package/dist/blocks/blockRemoveWorkflows.mjs +17 -0
- package/dist/blocks/blockRenovate.d.mts +75 -0
- package/dist/blocks/blockRenovate.mjs +39 -0
- package/dist/blocks/blockRepositoryBranchRuleset.d.mts +75 -0
- package/dist/blocks/blockRepositoryBranchRuleset.mjs +79 -0
- package/dist/blocks/blockRepositoryLabels.d.mts +73 -0
- package/dist/blocks/blockRepositoryLabels.mjs +52 -0
- package/dist/blocks/blockRepositorySecrets.d.mts +78 -0
- package/dist/blocks/blockRepositorySecrets.mjs +16 -0
- package/dist/blocks/blockRepositorySettings.d.mts +73 -0
- package/dist/blocks/blockRepositorySettings.mjs +32 -0
- package/dist/blocks/blockSecurityDocs.d.mts +73 -0
- package/dist/blocks/blockSecurityDocs.mjs +20 -0
- package/dist/blocks/blockSideEffects.d.mts +75 -0
- package/dist/blocks/blockSideEffects.mjs +14 -0
- package/dist/blocks/blockTSDown.d.mts +77 -0
- package/dist/blocks/blockTSDown.mjs +121 -0
- package/dist/blocks/blockTemplatedWith.d.mts +73 -0
- package/dist/blocks/blockTemplatedWith.mjs +13 -0
- package/dist/blocks/blockTypeScript.d.mts +185 -0
- package/dist/blocks/blockTypeScript.mjs +136 -0
- package/dist/blocks/blockVSCode.d.mts +82 -0
- package/dist/blocks/blockVSCode.mjs +59 -0
- package/dist/blocks/blockVitest.d.mts +90 -0
- package/dist/blocks/blockVitest.mjs +208 -0
- package/dist/blocks/blockWebExt.d.mts +73 -0
- package/dist/blocks/blockWebExt.mjs +104 -0
- package/dist/blocks/codecov/findCodecovStep.d.mts +6 -0
- package/dist/blocks/codecov/findCodecovStep.mjs +7 -0
- package/dist/blocks/eslint/blockESLintIntake.d.mts +10 -0
- package/dist/blocks/eslint/blockESLintIntake.mjs +84 -0
- package/dist/blocks/eslint/blockESLintPluginIntake.d.mts +6 -0
- package/dist/blocks/eslint/blockESLintPluginIntake.mjs +27 -0
- package/dist/blocks/eslint/getScriptFileExtension.d.mts +7 -0
- package/dist/blocks/eslint/getScriptFileExtension.mjs +6 -0
- package/dist/blocks/eslint/mergeAllExtensions.d.mts +16 -0
- package/dist/blocks/eslint/mergeAllExtensions.mjs +46 -0
- package/dist/blocks/eslint/schemas.d.mts +45 -0
- package/dist/blocks/eslint/schemas.mjs +40 -0
- package/dist/blocks/files/createJobName.d.mts +4 -0
- package/dist/blocks/files/createJobName.mjs +6 -0
- package/dist/blocks/files/createMultiWorkflowFile.d.mts +24 -0
- package/dist/blocks/files/createMultiWorkflowFile.mjs +28 -0
- package/dist/blocks/files/createSoloWorkflowFile.d.mts +64 -0
- package/dist/blocks/files/createSoloWorkflowFile.mjs +19 -0
- package/dist/blocks/files/formatIgnoreFile.d.mts +4 -0
- package/dist/blocks/files/formatIgnoreFile.mjs +6 -0
- package/dist/blocks/files/formatWorkflowYaml.d.mts +4 -0
- package/dist/blocks/files/formatWorkflowYaml.mjs +10 -0
- package/dist/blocks/files/formatYaml.d.mts +4 -0
- package/dist/blocks/files/formatYaml.mjs +21 -0
- package/dist/blocks/files/removeUsesQuotes.d.mts +4 -0
- package/dist/blocks/files/removeUsesQuotes.mjs +6 -0
- package/dist/blocks/getInstallationSuggestions.d.mts +4 -0
- package/dist/blocks/getInstallationSuggestions.mjs +11 -0
- package/dist/blocks/index.d.mts +4000 -0
- package/dist/blocks/index.mjs +108 -0
- package/dist/blocks/intake/intakeFile.d.mts +5 -0
- package/dist/blocks/intake/intakeFile.mjs +11 -0
- package/dist/blocks/intake/intakeFileAsJson.d.mts +5 -0
- package/dist/blocks/intake/intakeFileAsJson.mjs +13 -0
- package/dist/blocks/intake/intakeFileAsYaml.d.mts +6 -0
- package/dist/blocks/intake/intakeFileAsYaml.mjs +16 -0
- package/dist/blocks/intake/intakeFileDefineConfig.d.mts +5 -0
- package/dist/blocks/intake/intakeFileDefineConfig.mjs +9 -0
- package/dist/blocks/intake/intakeFileExportObject.d.mts +5 -0
- package/dist/blocks/intake/intakeFileExportObject.mjs +22 -0
- package/dist/blocks/options.fakes.d.mts +25 -0
- package/dist/blocks/options.fakes.mjs +19 -0
- package/dist/blocks/outcomeLabels.d.mts +14 -0
- package/dist/blocks/outcomeLabels.mjs +93 -0
- package/dist/blocks/phases.d.mts +10 -0
- package/dist/blocks/phases.mjs +10 -0
- package/dist/constants.d.mts +9 -0
- package/dist/constants.mjs +7 -0
- package/dist/data/contributions.d.mts +4 -0
- package/dist/data/contributions.mjs +13 -0
- package/dist/data/packageData.d.mts +9 -0
- package/dist/data/packageData.mjs +17 -0
- package/dist/index.d.mts +201 -0
- package/dist/index.mjs +63 -0
- package/dist/inputs/inputFromDirectory.d.mts +7 -0
- package/dist/inputs/inputFromDirectory.mjs +11 -0
- package/dist/inputs/inputFromOctokit.d.mts +8 -0
- package/dist/inputs/inputFromOctokit.mjs +23 -0
- package/dist/options/readAccess.d.mts +5 -0
- package/dist/options/readAccess.mjs +6 -0
- package/dist/options/readAllContributors.d.mts +6 -0
- package/dist/options/readAllContributors.mjs +18 -0
- package/dist/options/readAuthor.d.mts +8 -0
- package/dist/options/readAuthor.mjs +6 -0
- package/dist/options/readBin.d.mts +5 -0
- package/dist/options/readBin.mjs +11 -0
- package/dist/options/readBundle.d.mts +5 -0
- package/dist/options/readBundle.mjs +12 -0
- package/dist/options/readCodecovToken.d.mts +5 -0
- package/dist/options/readCodecovToken.mjs +23 -0
- package/dist/options/readDescription.d.mts +5 -0
- package/dist/options/readDescription.mjs +17 -0
- package/dist/options/readDescriptionFromReadme.d.mts +4 -0
- package/dist/options/readDescriptionFromReadme.mjs +13 -0
- package/dist/options/readDevelopmentDocumentation.d.mts +5 -0
- package/dist/options/readDevelopmentDocumentation.mjs +21 -0
- package/dist/options/readDocumentation.d.mts +5 -0
- package/dist/options/readDocumentation.mjs +21 -0
- package/dist/options/readEmailFromCodeOfConduct.d.mts +5 -0
- package/dist/options/readEmailFromCodeOfConduct.mjs +8 -0
- package/dist/options/readEmailFromGit.d.mts +5 -0
- package/dist/options/readEmailFromGit.mjs +7 -0
- package/dist/options/readEmailFromNpm.d.mts +6 -0
- package/dist/options/readEmailFromNpm.mjs +6 -0
- package/dist/options/readEmails.d.mts +8 -0
- package/dist/options/readEmails.mjs +11 -0
- package/dist/options/readEmoji.d.mts +4 -0
- package/dist/options/readEmoji.mjs +10 -0
- package/dist/options/readExistingLabels.d.mts +9 -0
- package/dist/options/readExistingLabels.mjs +21 -0
- package/dist/options/readFileAsJson.d.mts +4 -0
- package/dist/options/readFileAsJson.mjs +11 -0
- package/dist/options/readFileSafe.d.mts +4 -0
- package/dist/options/readFileSafe.mjs +11 -0
- package/dist/options/readFunding.d.mts +5 -0
- package/dist/options/readFunding.mjs +8 -0
- package/dist/options/readGitDefaults.d.mts +6 -0
- package/dist/options/readGitDefaults.mjs +9 -0
- package/dist/options/readGuide.d.mts +8 -0
- package/dist/options/readGuide.mjs +14 -0
- package/dist/options/readKeywords.d.mts +5 -0
- package/dist/options/readKeywords.mjs +7 -0
- package/dist/options/readLogo.d.mts +9 -0
- package/dist/options/readLogo.mjs +19 -0
- package/dist/options/readLogoSizing.d.mts +8 -0
- package/dist/options/readLogoSizing.mjs +29 -0
- package/dist/options/readNode.d.mts +8 -0
- package/dist/options/readNode.mjs +12 -0
- package/dist/options/readNpmDefaults.d.mts +5 -0
- package/dist/options/readNpmDefaults.mjs +9 -0
- package/dist/options/readOwner.d.mts +7 -0
- package/dist/options/readOwner.mjs +7 -0
- package/dist/options/readPackageAuthor.d.mts +9 -0
- package/dist/options/readPackageAuthor.mjs +12 -0
- package/dist/options/readPackageData.d.mts +6 -0
- package/dist/options/readPackageData.mjs +8 -0
- package/dist/options/readPnpm.d.mts +5 -0
- package/dist/options/readPnpm.mjs +7 -0
- package/dist/options/readReadmeAdditional.d.mts +4 -0
- package/dist/options/readReadmeAdditional.mjs +17 -0
- package/dist/options/readReadmeExplainer.d.mts +4 -0
- package/dist/options/readReadmeExplainer.mjs +25 -0
- package/dist/options/readReadmeFootnotes.d.mts +5 -0
- package/dist/options/readReadmeFootnotes.mjs +15 -0
- package/dist/options/readReadmeUsage.d.mts +4 -0
- package/dist/options/readReadmeUsage.mjs +13 -0
- package/dist/options/readRepository.d.mts +9 -0
- package/dist/options/readRepository.mjs +6 -0
- package/dist/options/readRulesetId.d.mts +5 -0
- package/dist/options/readRulesetId.mjs +13 -0
- package/dist/options/readTitle.d.mts +4 -0
- package/dist/options/readTitle.mjs +11 -0
- package/dist/options/readWords.d.mts +5 -0
- package/dist/options/readWords.mjs +8 -0
- package/dist/options/readWorkflowsVersions.d.mts +6 -0
- package/dist/options/readWorkflowsVersions.mjs +45 -0
- package/dist/package.json.d.mts +138 -0
- package/dist/presets/common.d.mts +73 -0
- package/dist/presets/common.mjs +26 -0
- package/dist/presets/everything.d.mts +73 -0
- package/dist/presets/everything.mjs +60 -0
- package/dist/presets/index.d.mts +218 -0
- package/dist/presets/index.mjs +11 -0
- package/dist/presets/minimal.d.mts +73 -0
- package/dist/presets/minimal.mjs +68 -0
- package/dist/schemas.d.mts +49 -0
- package/dist/schemas.mjs +31 -0
- package/dist/template.d.mts +73 -0
- package/dist/template.mjs +38 -0
- package/dist/types.d.mts +41 -0
- package/dist/utils/htmlToTextSafe.d.mts +4 -0
- package/dist/utils/htmlToTextSafe.mjs +13 -0
- package/dist/utils/parseDefineConfig.d.mts +7 -0
- package/dist/utils/parseDefineConfig.mjs +22 -0
- package/dist/utils/resolveBin.d.mts +4 -0
- package/dist/utils/resolveBin.mjs +7 -0
- package/dist/utils/resolveEmails.d.mts +5 -0
- package/dist/utils/resolveEmails.mjs +9 -0
- package/dist/utils/swallowError.d.mts +4 -0
- package/dist/utils/swallowError.mjs +6 -0
- package/dist/utils/swallowErrorAsync.d.mts +4 -0
- package/dist/utils/swallowErrorAsync.mjs +10 -0
- package/dist/utils/trimPrecedingSlash.d.mts +4 -0
- package/dist/utils/trimPrecedingSlash.mjs +6 -0
- package/dist/utils/tryCatch.d.mts +4 -0
- package/dist/utils/tryCatch.mjs +10 -0
- package/package.json +20 -19
- package/lib/base.d.ts +0 -175
- package/lib/base.d.ts.map +0 -1
- package/lib/base.js +0 -162
- package/lib/base.js.map +0 -1
- package/lib/blocks/actions/resolveUses.d.ts +0 -6
- package/lib/blocks/actions/resolveUses.d.ts.map +0 -1
- package/lib/blocks/actions/resolveUses.js +0 -18
- package/lib/blocks/actions/resolveUses.js.map +0 -1
- package/lib/blocks/actions/steps.d.ts +0 -37
- package/lib/blocks/actions/steps.d.ts.map +0 -1
- package/lib/blocks/actions/steps.js +0 -20
- package/lib/blocks/actions/steps.js.map +0 -1
- package/lib/blocks/bin/getPrimaryBin.d.ts +0 -5
- package/lib/blocks/bin/getPrimaryBin.d.ts.map +0 -1
- package/lib/blocks/bin/getPrimaryBin.js +0 -8
- package/lib/blocks/bin/getPrimaryBin.js.map +0 -1
- package/lib/blocks/blockAllContributors.d.ts +0 -72
- package/lib/blocks/blockAllContributors.d.ts.map +0 -1
- package/lib/blocks/blockAllContributors.js +0 -130
- package/lib/blocks/blockAllContributors.js.map +0 -1
- package/lib/blocks/blockAreTheTypesWrong.d.ts +0 -72
- package/lib/blocks/blockAreTheTypesWrong.d.ts.map +0 -1
- package/lib/blocks/blockAreTheTypesWrong.js +0 -16
- package/lib/blocks/blockAreTheTypesWrong.js.map +0 -1
- package/lib/blocks/blockCSpell.d.ts +0 -75
- package/lib/blocks/blockCSpell.d.ts.map +0 -1
- package/lib/blocks/blockCSpell.js +0 -79
- package/lib/blocks/blockCSpell.js.map +0 -1
- package/lib/blocks/blockCTATransitions.d.ts +0 -72
- package/lib/blocks/blockCTATransitions.d.ts.map +0 -1
- package/lib/blocks/blockCTATransitions.js +0 -113
- package/lib/blocks/blockCTATransitions.js.map +0 -1
- package/lib/blocks/blockCodecov.d.ts +0 -74
- package/lib/blocks/blockCodecov.d.ts.map +0 -1
- package/lib/blocks/blockCodecov.js +0 -54
- package/lib/blocks/blockCodecov.js.map +0 -1
- package/lib/blocks/blockContributingDocs.d.ts +0 -72
- package/lib/blocks/blockContributingDocs.d.ts.map +0 -1
- package/lib/blocks/blockContributingDocs.js +0 -114
- package/lib/blocks/blockContributingDocs.js.map +0 -1
- package/lib/blocks/blockContributorCovenant.d.ts +0 -72
- package/lib/blocks/blockContributorCovenant.d.ts.map +0 -1
- package/lib/blocks/blockContributorCovenant.js +0 -159
- package/lib/blocks/blockContributorCovenant.js.map +0 -1
- package/lib/blocks/blockDevelopmentDocs.d.ts +0 -86
- package/lib/blocks/blockDevelopmentDocs.d.ts.map +0 -1
- package/lib/blocks/blockDevelopmentDocs.js +0 -74
- package/lib/blocks/blockDevelopmentDocs.js.map +0 -1
- package/lib/blocks/blockESLint.d.ts +0 -96
- package/lib/blocks/blockESLint.d.ts.map +0 -1
- package/lib/blocks/blockESLint.js +0 -198
- package/lib/blocks/blockESLint.js.map +0 -1
- package/lib/blocks/blockESLintComments.d.ts +0 -72
- package/lib/blocks/blockESLintComments.d.ts.map +0 -1
- package/lib/blocks/blockESLintComments.js +0 -23
- package/lib/blocks/blockESLintComments.js.map +0 -1
- package/lib/blocks/blockESLintJSDoc.d.ts +0 -72
- package/lib/blocks/blockESLintJSDoc.d.ts.map +0 -1
- package/lib/blocks/blockESLintJSDoc.js +0 -27
- package/lib/blocks/blockESLintJSDoc.js.map +0 -1
- package/lib/blocks/blockESLintJSONC.d.ts +0 -72
- package/lib/blocks/blockESLintJSONC.d.ts.map +0 -1
- package/lib/blocks/blockESLintJSONC.js +0 -22
- package/lib/blocks/blockESLintJSONC.js.map +0 -1
- package/lib/blocks/blockESLintMarkdown.d.ts +0 -72
- package/lib/blocks/blockESLintMarkdown.d.ts.map +0 -1
- package/lib/blocks/blockESLintMarkdown.js +0 -38
- package/lib/blocks/blockESLintMarkdown.js.map +0 -1
- package/lib/blocks/blockESLintMoreStyling.d.ts +0 -73
- package/lib/blocks/blockESLintMoreStyling.d.ts.map +0 -1
- package/lib/blocks/blockESLintMoreStyling.js +0 -30
- package/lib/blocks/blockESLintMoreStyling.js.map +0 -1
- package/lib/blocks/blockESLintNode.d.ts +0 -72
- package/lib/blocks/blockESLintNode.d.ts.map +0 -1
- package/lib/blocks/blockESLintNode.js +0 -27
- package/lib/blocks/blockESLintNode.js.map +0 -1
- package/lib/blocks/blockESLintPackageJson.d.ts +0 -72
- package/lib/blocks/blockESLintPackageJson.d.ts.map +0 -1
- package/lib/blocks/blockESLintPackageJson.js +0 -33
- package/lib/blocks/blockESLintPackageJson.js.map +0 -1
- package/lib/blocks/blockESLintPerfectionist.d.ts +0 -72
- package/lib/blocks/blockESLintPerfectionist.d.ts.map +0 -1
- package/lib/blocks/blockESLintPerfectionist.js +0 -27
- package/lib/blocks/blockESLintPerfectionist.js.map +0 -1
- package/lib/blocks/blockESLintPlugin.d.ts +0 -74
- package/lib/blocks/blockESLintPlugin.d.ts.map +0 -1
- package/lib/blocks/blockESLintPlugin.js +0 -232
- package/lib/blocks/blockESLintPlugin.js.map +0 -1
- package/lib/blocks/blockESLintRegexp.d.ts +0 -72
- package/lib/blocks/blockESLintRegexp.d.ts.map +0 -1
- package/lib/blocks/blockESLintRegexp.js +0 -23
- package/lib/blocks/blockESLintRegexp.js.map +0 -1
- package/lib/blocks/blockESLintYML.d.ts +0 -72
- package/lib/blocks/blockESLintYML.d.ts.map +0 -1
- package/lib/blocks/blockESLintYML.js +0 -33
- package/lib/blocks/blockESLintYML.js.map +0 -1
- package/lib/blocks/blockExampleFiles.d.ts +0 -75
- package/lib/blocks/blockExampleFiles.d.ts.map +0 -1
- package/lib/blocks/blockExampleFiles.js +0 -25
- package/lib/blocks/blockExampleFiles.js.map +0 -1
- package/lib/blocks/blockExports.d.ts +0 -75
- package/lib/blocks/blockExports.d.ts.map +0 -1
- package/lib/blocks/blockExports.js +0 -20
- package/lib/blocks/blockExports.js.map +0 -1
- package/lib/blocks/blockFunding.d.ts +0 -72
- package/lib/blocks/blockFunding.d.ts.map +0 -1
- package/lib/blocks/blockFunding.js +0 -13
- package/lib/blocks/blockFunding.js.map +0 -1
- package/lib/blocks/blockGitHubActionsCI.d.ts +0 -88
- package/lib/blocks/blockGitHubActionsCI.d.ts.map +0 -1
- package/lib/blocks/blockGitHubActionsCI.js +0 -91
- package/lib/blocks/blockGitHubActionsCI.js.map +0 -1
- package/lib/blocks/blockGitHubApps.d.ts +0 -77
- package/lib/blocks/blockGitHubApps.d.ts.map +0 -1
- package/lib/blocks/blockGitHubApps.js +0 -18
- package/lib/blocks/blockGitHubApps.js.map +0 -1
- package/lib/blocks/blockGitHubIssueTemplates.d.ts +0 -72
- package/lib/blocks/blockGitHubIssueTemplates.d.ts.map +0 -1
- package/lib/blocks/blockGitHubIssueTemplates.js +0 -196
- package/lib/blocks/blockGitHubIssueTemplates.js.map +0 -1
- package/lib/blocks/blockGitHubPRTemplate.d.ts +0 -72
- package/lib/blocks/blockGitHubPRTemplate.d.ts.map +0 -1
- package/lib/blocks/blockGitHubPRTemplate.js +0 -25
- package/lib/blocks/blockGitHubPRTemplate.js.map +0 -1
- package/lib/blocks/blockGitignore.d.ts +0 -74
- package/lib/blocks/blockGitignore.d.ts.map +0 -1
- package/lib/blocks/blockGitignore.js +0 -16
- package/lib/blocks/blockGitignore.js.map +0 -1
- package/lib/blocks/blockKnip.d.ts +0 -76
- package/lib/blocks/blockKnip.d.ts.map +0 -1
- package/lib/blocks/blockKnip.js +0 -70
- package/lib/blocks/blockKnip.js.map +0 -1
- package/lib/blocks/blockMITLicense.d.ts +0 -72
- package/lib/blocks/blockMITLicense.d.ts.map +0 -1
- package/lib/blocks/blockMITLicense.js +0 -41
- package/lib/blocks/blockMITLicense.js.map +0 -1
- package/lib/blocks/blockNcc.d.ts +0 -74
- package/lib/blocks/blockNcc.d.ts.map +0 -1
- package/lib/blocks/blockNcc.js +0 -67
- package/lib/blocks/blockNcc.js.map +0 -1
- package/lib/blocks/blockNvmrc.d.ts +0 -72
- package/lib/blocks/blockNvmrc.d.ts.map +0 -1
- package/lib/blocks/blockNvmrc.js +0 -19
- package/lib/blocks/blockNvmrc.js.map +0 -1
- package/lib/blocks/blockOctoGuide.d.ts +0 -74
- package/lib/blocks/blockOctoGuide.d.ts.map +0 -1
- package/lib/blocks/blockOctoGuide.js +0 -71
- package/lib/blocks/blockOctoGuide.js.map +0 -1
- package/lib/blocks/blockOctoGuideStrict.d.ts +0 -72
- package/lib/blocks/blockOctoGuideStrict.d.ts.map +0 -1
- package/lib/blocks/blockOctoGuideStrict.js +0 -13
- package/lib/blocks/blockOctoGuideStrict.js.map +0 -1
- package/lib/blocks/blockPackageJson.d.ts +0 -149
- package/lib/blocks/blockPackageJson.d.ts.map +0 -1
- package/lib/blocks/blockPackageJson.js +0 -87
- package/lib/blocks/blockPackageJson.js.map +0 -1
- package/lib/blocks/blockPnpmDedupe.d.ts +0 -72
- package/lib/blocks/blockPnpmDedupe.d.ts.map +0 -1
- package/lib/blocks/blockPnpmDedupe.js +0 -21
- package/lib/blocks/blockPnpmDedupe.js.map +0 -1
- package/lib/blocks/blockPrettier.d.ts +0 -82
- package/lib/blocks/blockPrettier.d.ts.map +0 -1
- package/lib/blocks/blockPrettier.js +0 -97
- package/lib/blocks/blockPrettier.js.map +0 -1
- package/lib/blocks/blockPrettierPluginCurly.d.ts +0 -72
- package/lib/blocks/blockPrettierPluginCurly.d.ts.map +0 -1
- package/lib/blocks/blockPrettierPluginCurly.js +0 -13
- package/lib/blocks/blockPrettierPluginCurly.js.map +0 -1
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts +0 -72
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts.map +0 -1
- package/lib/blocks/blockPrettierPluginPackageJson.js +0 -13
- package/lib/blocks/blockPrettierPluginPackageJson.js.map +0 -1
- package/lib/blocks/blockPrettierPluginSentencesPerLine.d.ts +0 -72
- package/lib/blocks/blockPrettierPluginSentencesPerLine.d.ts.map +0 -1
- package/lib/blocks/blockPrettierPluginSentencesPerLine.js +0 -13
- package/lib/blocks/blockPrettierPluginSentencesPerLine.js.map +0 -1
- package/lib/blocks/blockPrettierPluginSh.d.ts +0 -72
- package/lib/blocks/blockPrettierPluginSh.d.ts.map +0 -1
- package/lib/blocks/blockPrettierPluginSh.js +0 -13
- package/lib/blocks/blockPrettierPluginSh.js.map +0 -1
- package/lib/blocks/blockREADME.d.ts +0 -85
- package/lib/blocks/blockREADME.d.ts.map +0 -1
- package/lib/blocks/blockREADME.js +0 -76
- package/lib/blocks/blockREADME.js.map +0 -1
- package/lib/blocks/blockReleaseIt.d.ts +0 -77
- package/lib/blocks/blockReleaseIt.d.ts.map +0 -1
- package/lib/blocks/blockReleaseIt.js +0 -158
- package/lib/blocks/blockReleaseIt.js.map +0 -1
- package/lib/blocks/blockRemoveDependencies.d.ts +0 -74
- package/lib/blocks/blockRemoveDependencies.d.ts.map +0 -1
- package/lib/blocks/blockRemoveDependencies.js +0 -22
- package/lib/blocks/blockRemoveDependencies.js.map +0 -1
- package/lib/blocks/blockRemoveFiles.d.ts +0 -74
- package/lib/blocks/blockRemoveFiles.d.ts.map +0 -1
- package/lib/blocks/blockRemoveFiles.js +0 -23
- package/lib/blocks/blockRemoveFiles.js.map +0 -1
- package/lib/blocks/blockRemoveWorkflows.d.ts +0 -74
- package/lib/blocks/blockRemoveWorkflows.d.ts.map +0 -1
- package/lib/blocks/blockRemoveWorkflows.js +0 -19
- package/lib/blocks/blockRemoveWorkflows.js.map +0 -1
- package/lib/blocks/blockRenovate.d.ts +0 -74
- package/lib/blocks/blockRenovate.d.ts.map +0 -1
- package/lib/blocks/blockRenovate.js +0 -41
- package/lib/blocks/blockRenovate.js.map +0 -1
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts +0 -74
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts.map +0 -1
- package/lib/blocks/blockRepositoryBranchRuleset.js +0 -81
- package/lib/blocks/blockRepositoryBranchRuleset.js.map +0 -1
- package/lib/blocks/blockRepositoryLabels.d.ts +0 -72
- package/lib/blocks/blockRepositoryLabels.d.ts.map +0 -1
- package/lib/blocks/blockRepositoryLabels.js +0 -54
- package/lib/blocks/blockRepositoryLabels.js.map +0 -1
- package/lib/blocks/blockRepositorySecrets.d.ts +0 -77
- package/lib/blocks/blockRepositorySecrets.d.ts.map +0 -1
- package/lib/blocks/blockRepositorySecrets.js +0 -18
- package/lib/blocks/blockRepositorySecrets.js.map +0 -1
- package/lib/blocks/blockRepositorySettings.d.ts +0 -72
- package/lib/blocks/blockRepositorySettings.d.ts.map +0 -1
- package/lib/blocks/blockRepositorySettings.js +0 -34
- package/lib/blocks/blockRepositorySettings.js.map +0 -1
- package/lib/blocks/blockSecurityDocs.d.ts +0 -72
- package/lib/blocks/blockSecurityDocs.d.ts.map +0 -1
- package/lib/blocks/blockSecurityDocs.js +0 -21
- package/lib/blocks/blockSecurityDocs.js.map +0 -1
- package/lib/blocks/blockSideEffects.d.ts +0 -74
- package/lib/blocks/blockSideEffects.d.ts.map +0 -1
- package/lib/blocks/blockSideEffects.js +0 -16
- package/lib/blocks/blockSideEffects.js.map +0 -1
- package/lib/blocks/blockTSDown.d.ts +0 -76
- package/lib/blocks/blockTSDown.d.ts.map +0 -1
- package/lib/blocks/blockTSDown.js +0 -108
- package/lib/blocks/blockTSDown.js.map +0 -1
- package/lib/blocks/blockTemplatedWith.d.ts +0 -72
- package/lib/blocks/blockTemplatedWith.d.ts.map +0 -1
- package/lib/blocks/blockTemplatedWith.js +0 -15
- package/lib/blocks/blockTemplatedWith.js.map +0 -1
- package/lib/blocks/blockTypeScript.d.ts +0 -184
- package/lib/blocks/blockTypeScript.d.ts.map +0 -1
- package/lib/blocks/blockTypeScript.js +0 -138
- package/lib/blocks/blockTypeScript.js.map +0 -1
- package/lib/blocks/blockVSCode.d.ts +0 -81
- package/lib/blocks/blockVSCode.d.ts.map +0 -1
- package/lib/blocks/blockVSCode.js +0 -61
- package/lib/blocks/blockVSCode.js.map +0 -1
- package/lib/blocks/blockVitest.d.ts +0 -89
- package/lib/blocks/blockVitest.d.ts.map +0 -1
- package/lib/blocks/blockVitest.js +0 -207
- package/lib/blocks/blockVitest.js.map +0 -1
- package/lib/blocks/blockWebExt.d.ts +0 -72
- package/lib/blocks/blockWebExt.d.ts.map +0 -1
- package/lib/blocks/blockWebExt.js +0 -97
- package/lib/blocks/blockWebExt.js.map +0 -1
- package/lib/blocks/eslint/blockESLintIntake.d.ts +0 -11
- package/lib/blocks/eslint/blockESLintIntake.d.ts.map +0 -1
- package/lib/blocks/eslint/blockESLintIntake.js +0 -86
- package/lib/blocks/eslint/blockESLintIntake.js.map +0 -1
- package/lib/blocks/eslint/blockESLintPluginIntake.d.ts +0 -7
- package/lib/blocks/eslint/blockESLintPluginIntake.d.ts.map +0 -1
- package/lib/blocks/eslint/blockESLintPluginIntake.js +0 -29
- package/lib/blocks/eslint/blockESLintPluginIntake.js.map +0 -1
- package/lib/blocks/eslint/getScriptFileExtension.d.ts +0 -8
- package/lib/blocks/eslint/getScriptFileExtension.d.ts.map +0 -1
- package/lib/blocks/eslint/getScriptFileExtension.js +0 -8
- package/lib/blocks/eslint/getScriptFileExtension.js.map +0 -1
- package/lib/blocks/eslint/mergeAllExtensions.d.ts +0 -17
- package/lib/blocks/eslint/mergeAllExtensions.d.ts.map +0 -1
- package/lib/blocks/eslint/mergeAllExtensions.js +0 -48
- package/lib/blocks/eslint/mergeAllExtensions.js.map +0 -1
- package/lib/blocks/eslint/schemas.d.ts +0 -112
- package/lib/blocks/eslint/schemas.d.ts.map +0 -1
- package/lib/blocks/eslint/schemas.js +0 -42
- package/lib/blocks/eslint/schemas.js.map +0 -1
- package/lib/blocks/files/createJobName.d.ts +0 -5
- package/lib/blocks/files/createJobName.d.ts.map +0 -1
- package/lib/blocks/files/createJobName.js +0 -8
- package/lib/blocks/files/createJobName.js.map +0 -1
- package/lib/blocks/files/createMultiWorkflowFile.d.ts +0 -24
- package/lib/blocks/files/createMultiWorkflowFile.d.ts.map +0 -1
- package/lib/blocks/files/createMultiWorkflowFile.js +0 -30
- package/lib/blocks/files/createMultiWorkflowFile.js.map +0 -1
- package/lib/blocks/files/createSoloWorkflowFile.d.ts +0 -65
- package/lib/blocks/files/createSoloWorkflowFile.d.ts.map +0 -1
- package/lib/blocks/files/createSoloWorkflowFile.js +0 -21
- package/lib/blocks/files/createSoloWorkflowFile.js.map +0 -1
- package/lib/blocks/files/formatIgnoreFile.d.ts +0 -5
- package/lib/blocks/files/formatIgnoreFile.d.ts.map +0 -1
- package/lib/blocks/files/formatIgnoreFile.js +0 -8
- package/lib/blocks/files/formatIgnoreFile.js.map +0 -1
- package/lib/blocks/files/formatWorkflowYaml.d.ts +0 -5
- package/lib/blocks/files/formatWorkflowYaml.d.ts.map +0 -1
- package/lib/blocks/files/formatWorkflowYaml.js +0 -9
- package/lib/blocks/files/formatWorkflowYaml.js.map +0 -1
- package/lib/blocks/files/formatYaml.d.ts +0 -5
- package/lib/blocks/files/formatYaml.d.ts.map +0 -1
- package/lib/blocks/files/formatYaml.js +0 -20
- package/lib/blocks/files/formatYaml.js.map +0 -1
- package/lib/blocks/files/removeUsesQuotes.d.ts +0 -5
- package/lib/blocks/files/removeUsesQuotes.d.ts.map +0 -1
- package/lib/blocks/files/removeUsesQuotes.js +0 -8
- package/lib/blocks/files/removeUsesQuotes.js.map +0 -1
- package/lib/blocks/getInstallationSuggestions.d.ts +0 -5
- package/lib/blocks/getInstallationSuggestions.d.ts.map +0 -1
- package/lib/blocks/getInstallationSuggestions.js +0 -13
- package/lib/blocks/getInstallationSuggestions.js.map +0 -1
- package/lib/blocks/index.d.ts +0 -3713
- package/lib/blocks/index.d.ts.map +0 -1
- package/lib/blocks/index.js +0 -106
- package/lib/blocks/index.js.map +0 -1
- package/lib/blocks/intake/intakeFile.d.ts +0 -6
- package/lib/blocks/intake/intakeFile.d.ts.map +0 -1
- package/lib/blocks/intake/intakeFile.js +0 -13
- package/lib/blocks/intake/intakeFile.js.map +0 -1
- package/lib/blocks/intake/intakeFileAsJson.d.ts +0 -6
- package/lib/blocks/intake/intakeFileAsJson.d.ts.map +0 -1
- package/lib/blocks/intake/intakeFileAsJson.js +0 -15
- package/lib/blocks/intake/intakeFileAsJson.js.map +0 -1
- package/lib/blocks/intake/intakeFileAsYaml.d.ts +0 -6
- package/lib/blocks/intake/intakeFileAsYaml.d.ts.map +0 -1
- package/lib/blocks/intake/intakeFileAsYaml.js +0 -15
- package/lib/blocks/intake/intakeFileAsYaml.js.map +0 -1
- package/lib/blocks/intake/intakeFileDefineConfig.d.ts +0 -6
- package/lib/blocks/intake/intakeFileDefineConfig.d.ts.map +0 -1
- package/lib/blocks/intake/intakeFileDefineConfig.js +0 -24
- package/lib/blocks/intake/intakeFileDefineConfig.js.map +0 -1
- package/lib/blocks/intake/intakeFileExportObject.d.ts +0 -6
- package/lib/blocks/intake/intakeFileExportObject.d.ts.map +0 -1
- package/lib/blocks/intake/intakeFileExportObject.js +0 -24
- package/lib/blocks/intake/intakeFileExportObject.js.map +0 -1
- package/lib/blocks/options.fakes.d.ts +0 -26
- package/lib/blocks/options.fakes.d.ts.map +0 -1
- package/lib/blocks/options.fakes.js +0 -21
- package/lib/blocks/options.fakes.js.map +0 -1
- package/lib/blocks/outcomeLabels.d.ts +0 -15
- package/lib/blocks/outcomeLabels.d.ts.map +0 -1
- package/lib/blocks/outcomeLabels.js +0 -95
- package/lib/blocks/outcomeLabels.js.map +0 -1
- package/lib/blocks/phases.d.ts +0 -11
- package/lib/blocks/phases.d.ts.map +0 -1
- package/lib/blocks/phases.js +0 -12
- package/lib/blocks/phases.js.map +0 -1
- package/lib/constants.d.ts +0 -10
- package/lib/constants.d.ts.map +0 -1
- package/lib/constants.js +0 -9
- package/lib/constants.js.map +0 -1
- package/lib/data/contributions.d.ts +0 -5
- package/lib/data/contributions.d.ts.map +0 -1
- package/lib/data/contributions.js +0 -15
- package/lib/data/contributions.js.map +0 -1
- package/lib/data/packageData.d.ts +0 -10
- package/lib/data/packageData.d.ts.map +0 -1
- package/lib/data/packageData.js +0 -19
- package/lib/data/packageData.js.map +0 -1
- package/lib/index.d.ts +0 -294
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -63
- package/lib/index.js.map +0 -1
- package/lib/inputs/inputFromDirectory.d.ts +0 -8
- package/lib/inputs/inputFromDirectory.d.ts.map +0 -1
- package/lib/inputs/inputFromDirectory.js +0 -13
- package/lib/inputs/inputFromDirectory.js.map +0 -1
- package/lib/inputs/inputFromOctokit.d.ts +0 -9
- package/lib/inputs/inputFromOctokit.d.ts.map +0 -1
- package/lib/inputs/inputFromOctokit.js +0 -25
- package/lib/inputs/inputFromOctokit.js.map +0 -1
- package/lib/options/readAccess.d.ts +0 -6
- package/lib/options/readAccess.d.ts.map +0 -1
- package/lib/options/readAccess.js +0 -8
- package/lib/options/readAccess.js.map +0 -1
- package/lib/options/readAllContributors.d.ts +0 -7
- package/lib/options/readAllContributors.d.ts.map +0 -1
- package/lib/options/readAllContributors.js +0 -20
- package/lib/options/readAllContributors.js.map +0 -1
- package/lib/options/readAuthor.d.ts +0 -9
- package/lib/options/readAuthor.d.ts.map +0 -1
- package/lib/options/readAuthor.js +0 -8
- package/lib/options/readAuthor.js.map +0 -1
- package/lib/options/readBin.d.ts +0 -6
- package/lib/options/readBin.d.ts.map +0 -1
- package/lib/options/readBin.js +0 -10
- package/lib/options/readBin.js.map +0 -1
- package/lib/options/readDescription.d.ts +0 -6
- package/lib/options/readDescription.d.ts.map +0 -1
- package/lib/options/readDescription.js +0 -19
- package/lib/options/readDescription.js.map +0 -1
- package/lib/options/readDescriptionFromReadme.d.ts +0 -5
- package/lib/options/readDescriptionFromReadme.d.ts.map +0 -1
- package/lib/options/readDescriptionFromReadme.js +0 -15
- package/lib/options/readDescriptionFromReadme.js.map +0 -1
- package/lib/options/readDevelopmentDocumentation.d.ts +0 -6
- package/lib/options/readDevelopmentDocumentation.d.ts.map +0 -1
- package/lib/options/readDevelopmentDocumentation.js +0 -23
- package/lib/options/readDevelopmentDocumentation.js.map +0 -1
- package/lib/options/readDocumentation.d.ts +0 -6
- package/lib/options/readDocumentation.d.ts.map +0 -1
- package/lib/options/readDocumentation.js +0 -23
- package/lib/options/readDocumentation.js.map +0 -1
- package/lib/options/readEmailFromCodeOfConduct.d.ts +0 -6
- package/lib/options/readEmailFromCodeOfConduct.d.ts.map +0 -1
- package/lib/options/readEmailFromCodeOfConduct.js +0 -10
- package/lib/options/readEmailFromCodeOfConduct.js.map +0 -1
- package/lib/options/readEmailFromGit.d.ts +0 -6
- package/lib/options/readEmailFromGit.d.ts.map +0 -1
- package/lib/options/readEmailFromGit.js +0 -9
- package/lib/options/readEmailFromGit.js.map +0 -1
- package/lib/options/readEmailFromNpm.d.ts +0 -7
- package/lib/options/readEmailFromNpm.d.ts.map +0 -1
- package/lib/options/readEmailFromNpm.js +0 -8
- package/lib/options/readEmailFromNpm.js.map +0 -1
- package/lib/options/readEmails.d.ts +0 -9
- package/lib/options/readEmails.d.ts.map +0 -1
- package/lib/options/readEmails.js +0 -13
- package/lib/options/readEmails.js.map +0 -1
- package/lib/options/readEmoji.d.ts +0 -5
- package/lib/options/readEmoji.d.ts.map +0 -1
- package/lib/options/readEmoji.js +0 -8
- package/lib/options/readEmoji.js.map +0 -1
- package/lib/options/readExistingLabels.d.ts +0 -10
- package/lib/options/readExistingLabels.d.ts.map +0 -1
- package/lib/options/readExistingLabels.js +0 -23
- package/lib/options/readExistingLabels.js.map +0 -1
- package/lib/options/readFileAsJson.d.ts +0 -5
- package/lib/options/readFileAsJson.d.ts.map +0 -1
- package/lib/options/readFileAsJson.js +0 -13
- package/lib/options/readFileAsJson.js.map +0 -1
- package/lib/options/readFileSafe.d.ts +0 -5
- package/lib/options/readFileSafe.d.ts.map +0 -1
- package/lib/options/readFileSafe.js +0 -13
- package/lib/options/readFileSafe.js.map +0 -1
- package/lib/options/readFunding.d.ts +0 -6
- package/lib/options/readFunding.d.ts.map +0 -1
- package/lib/options/readFunding.js +0 -10
- package/lib/options/readFunding.js.map +0 -1
- package/lib/options/readGitDefaults.d.ts +0 -7
- package/lib/options/readGitDefaults.d.ts.map +0 -1
- package/lib/options/readGitDefaults.js +0 -11
- package/lib/options/readGitDefaults.js.map +0 -1
- package/lib/options/readGuide.d.ts +0 -9
- package/lib/options/readGuide.d.ts.map +0 -1
- package/lib/options/readGuide.js +0 -16
- package/lib/options/readGuide.js.map +0 -1
- package/lib/options/readKeywords.d.ts +0 -6
- package/lib/options/readKeywords.d.ts.map +0 -1
- package/lib/options/readKeywords.js +0 -9
- package/lib/options/readKeywords.js.map +0 -1
- package/lib/options/readLogo.d.ts +0 -10
- package/lib/options/readLogo.d.ts.map +0 -1
- package/lib/options/readLogo.js +0 -21
- package/lib/options/readLogo.js.map +0 -1
- package/lib/options/readLogoSizing.d.ts +0 -9
- package/lib/options/readLogoSizing.d.ts.map +0 -1
- package/lib/options/readLogoSizing.js +0 -31
- package/lib/options/readLogoSizing.js.map +0 -1
- package/lib/options/readNode.d.ts +0 -9
- package/lib/options/readNode.d.ts.map +0 -1
- package/lib/options/readNode.js +0 -14
- package/lib/options/readNode.js.map +0 -1
- package/lib/options/readNpmDefaults.d.ts +0 -6
- package/lib/options/readNpmDefaults.d.ts.map +0 -1
- package/lib/options/readNpmDefaults.js +0 -11
- package/lib/options/readNpmDefaults.js.map +0 -1
- package/lib/options/readOwner.d.ts +0 -8
- package/lib/options/readOwner.d.ts.map +0 -1
- package/lib/options/readOwner.js +0 -9
- package/lib/options/readOwner.js.map +0 -1
- package/lib/options/readPackageAuthor.d.ts +0 -10
- package/lib/options/readPackageAuthor.d.ts.map +0 -1
- package/lib/options/readPackageAuthor.js +0 -14
- package/lib/options/readPackageAuthor.js.map +0 -1
- package/lib/options/readPackageData.d.ts +0 -7
- package/lib/options/readPackageData.d.ts.map +0 -1
- package/lib/options/readPackageData.js +0 -10
- package/lib/options/readPackageData.js.map +0 -1
- package/lib/options/readPnpm.d.ts +0 -6
- package/lib/options/readPnpm.d.ts.map +0 -1
- package/lib/options/readPnpm.js +0 -9
- package/lib/options/readPnpm.js.map +0 -1
- package/lib/options/readReadmeAdditional.d.ts +0 -5
- package/lib/options/readReadmeAdditional.d.ts.map +0 -1
- package/lib/options/readReadmeAdditional.js +0 -19
- package/lib/options/readReadmeAdditional.js.map +0 -1
- package/lib/options/readReadmeExplainer.d.ts +0 -5
- package/lib/options/readReadmeExplainer.d.ts.map +0 -1
- package/lib/options/readReadmeExplainer.js +0 -27
- package/lib/options/readReadmeExplainer.js.map +0 -1
- package/lib/options/readReadmeFootnotes.d.ts +0 -6
- package/lib/options/readReadmeFootnotes.d.ts.map +0 -1
- package/lib/options/readReadmeFootnotes.js +0 -17
- package/lib/options/readReadmeFootnotes.js.map +0 -1
- package/lib/options/readReadmeUsage.d.ts +0 -5
- package/lib/options/readReadmeUsage.d.ts.map +0 -1
- package/lib/options/readReadmeUsage.js +0 -15
- package/lib/options/readReadmeUsage.js.map +0 -1
- package/lib/options/readRepository.d.ts +0 -10
- package/lib/options/readRepository.d.ts.map +0 -1
- package/lib/options/readRepository.js +0 -8
- package/lib/options/readRepository.js.map +0 -1
- package/lib/options/readRulesetId.d.ts +0 -6
- package/lib/options/readRulesetId.d.ts.map +0 -1
- package/lib/options/readRulesetId.js +0 -15
- package/lib/options/readRulesetId.js.map +0 -1
- package/lib/options/readTitle.d.ts +0 -5
- package/lib/options/readTitle.d.ts.map +0 -1
- package/lib/options/readTitle.js +0 -13
- package/lib/options/readTitle.js.map +0 -1
- package/lib/options/readWords.d.ts +0 -6
- package/lib/options/readWords.d.ts.map +0 -1
- package/lib/options/readWords.js +0 -10
- package/lib/options/readWords.js.map +0 -1
- package/lib/options/readWorkflowsVersions.d.ts +0 -7
- package/lib/options/readWorkflowsVersions.d.ts.map +0 -1
- package/lib/options/readWorkflowsVersions.js +0 -47
- package/lib/options/readWorkflowsVersions.js.map +0 -1
- package/lib/package.json.d.ts +0 -138
- package/lib/package.json.d.ts.map +0 -1
- package/lib/presets/common.d.ts +0 -170
- package/lib/presets/common.d.ts.map +0 -1
- package/lib/presets/common.js +0 -28
- package/lib/presets/common.js.map +0 -1
- package/lib/presets/everything.d.ts +0 -170
- package/lib/presets/everything.d.ts.map +0 -1
- package/lib/presets/everything.js +0 -58
- package/lib/presets/everything.js.map +0 -1
- package/lib/presets/index.d.ts +0 -507
- package/lib/presets/index.d.ts.map +0 -1
- package/lib/presets/index.js +0 -13
- package/lib/presets/index.js.map +0 -1
- package/lib/presets/minimal.d.ts +0 -170
- package/lib/presets/minimal.d.ts.map +0 -1
- package/lib/presets/minimal.js +0 -68
- package/lib/presets/minimal.js.map +0 -1
- package/lib/schemas.d.ts +0 -111
- package/lib/schemas.d.ts.map +0 -1
- package/lib/schemas.js +0 -29
- package/lib/schemas.js.map +0 -1
- package/lib/template.d.ts +0 -170
- package/lib/template.d.ts.map +0 -1
- package/lib/template.js +0 -40
- package/lib/template.js.map +0 -1
- package/lib/types.d.ts +0 -42
- package/lib/types.d.ts.map +0 -1
- package/lib/utils/htmlToTextSafe.d.ts +0 -5
- package/lib/utils/htmlToTextSafe.d.ts.map +0 -1
- package/lib/utils/htmlToTextSafe.js +0 -15
- package/lib/utils/htmlToTextSafe.js.map +0 -1
- package/lib/utils/resolveBin.d.ts +0 -5
- package/lib/utils/resolveBin.d.ts.map +0 -1
- package/lib/utils/resolveBin.js +0 -9
- package/lib/utils/resolveBin.js.map +0 -1
- package/lib/utils/swallowError.d.ts +0 -5
- package/lib/utils/swallowError.d.ts.map +0 -1
- package/lib/utils/swallowError.js +0 -8
- package/lib/utils/swallowError.js.map +0 -1
- package/lib/utils/swallowErrorAsync.d.ts +0 -5
- package/lib/utils/swallowErrorAsync.d.ts.map +0 -1
- package/lib/utils/swallowErrorAsync.js +0 -12
- package/lib/utils/swallowErrorAsync.js.map +0 -1
- package/lib/utils/trimPrecedingSlash.d.ts +0 -5
- package/lib/utils/trimPrecedingSlash.d.ts.map +0 -1
- package/lib/utils/trimPrecedingSlash.js +0 -8
- package/lib/utils/trimPrecedingSlash.js.map +0 -1
- package/lib/utils/tryCatch.d.ts +0 -5
- package/lib/utils/tryCatch.d.ts.map +0 -1
- package/lib/utils/tryCatch.js +0 -12
- package/lib/utils/tryCatch.js.map +0 -1
- /package/{lib/_virtual/_rolldown/runtime.js → dist/_virtual/_rolldown/runtime.mjs} +0 -0
- /package/{lib/types.js → dist/types.mjs} +0 -0
package/bin/index.js
CHANGED
package/dist/base.d.mts
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { BaseOptionsFor } from "bingo-stratum";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/base.d.ts
|
|
4
|
+
declare const base: import("bingo-stratum").Base<{
|
|
5
|
+
access: z.ZodUnion<readonly [z.ZodLiteral<"public">, z.ZodLiteral<"restricted">]>;
|
|
6
|
+
author: z.ZodOptional<z.ZodString>;
|
|
7
|
+
bin: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
8
|
+
bundle: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
codecovToken: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
contributors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
|
+
avatar_url: z.ZodString;
|
|
12
|
+
contributions: z.ZodArray<z.ZodString>;
|
|
13
|
+
login: z.ZodString;
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
profile: z.ZodString;
|
|
16
|
+
}, z.core.$strip>>>;
|
|
17
|
+
description: z.ZodDefault<z.ZodString>;
|
|
18
|
+
directory: z.ZodString;
|
|
19
|
+
documentation: z.ZodObject<{
|
|
20
|
+
development: z.ZodOptional<z.ZodString>;
|
|
21
|
+
readme: z.ZodObject<{
|
|
22
|
+
additional: z.ZodOptional<z.ZodString>;
|
|
23
|
+
explainer: z.ZodOptional<z.ZodString>;
|
|
24
|
+
footnotes: z.ZodOptional<z.ZodString>;
|
|
25
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
email: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
29
|
+
github: z.ZodString;
|
|
30
|
+
npm: z.ZodString;
|
|
31
|
+
}, z.core.$strip>]>;
|
|
32
|
+
emoji: z.ZodOptional<z.ZodString>;
|
|
33
|
+
existingLabels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
34
|
+
color: z.ZodString;
|
|
35
|
+
description: z.ZodString;
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
}, z.core.$strip>>>;
|
|
38
|
+
funding: z.ZodOptional<z.ZodString>;
|
|
39
|
+
guide: z.ZodOptional<z.ZodObject<{
|
|
40
|
+
href: z.ZodString;
|
|
41
|
+
title: z.ZodString;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
44
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
alt: z.ZodString;
|
|
46
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
src: z.ZodString;
|
|
48
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
node: z.ZodObject<{
|
|
51
|
+
minimum: z.ZodString;
|
|
52
|
+
pinned: z.ZodOptional<z.ZodString>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
owner: z.ZodString;
|
|
55
|
+
packageData: z.ZodOptional<z.ZodObject<{
|
|
56
|
+
dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
57
|
+
devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
58
|
+
peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
59
|
+
peerDependenciesMeta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
60
|
+
scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
pnpm: z.ZodOptional<z.ZodString>;
|
|
63
|
+
repository: z.ZodString;
|
|
64
|
+
rulesetId: z.ZodOptional<z.ZodString>;
|
|
65
|
+
title: z.ZodString;
|
|
66
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"commonjs">, z.ZodLiteral<"module">]>>;
|
|
67
|
+
version: z.ZodOptional<z.ZodString>;
|
|
68
|
+
words: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
69
|
+
workflowsVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
70
|
+
hash: z.ZodOptional<z.ZodString>;
|
|
71
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
72
|
+
}, z.core.$strip>>>>;
|
|
73
|
+
}>;
|
|
74
|
+
type BaseOptions = BaseOptionsFor<typeof base> & {
|
|
75
|
+
preset?: string;
|
|
76
|
+
};
|
|
77
|
+
//#endregion
|
|
78
|
+
export { BaseOptions, base };
|
package/dist/base.mjs
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { readAccess } from "./options/readAccess.mjs";
|
|
2
|
+
import { readAllContributors } from "./options/readAllContributors.mjs";
|
|
3
|
+
import { readAuthor } from "./options/readAuthor.mjs";
|
|
4
|
+
import { readBin } from "./options/readBin.mjs";
|
|
5
|
+
import { readBundle } from "./options/readBundle.mjs";
|
|
6
|
+
import { readCodecovToken } from "./options/readCodecovToken.mjs";
|
|
7
|
+
import { readDescription } from "./options/readDescription.mjs";
|
|
8
|
+
import { readDevelopmentDocumentation } from "./options/readDevelopmentDocumentation.mjs";
|
|
9
|
+
import { readDocumentation } from "./options/readDocumentation.mjs";
|
|
10
|
+
import { readEmailFromCodeOfConduct } from "./options/readEmailFromCodeOfConduct.mjs";
|
|
11
|
+
import { readEmailFromGit } from "./options/readEmailFromGit.mjs";
|
|
12
|
+
import { readEmailFromNpm } from "./options/readEmailFromNpm.mjs";
|
|
13
|
+
import { readEmails } from "./options/readEmails.mjs";
|
|
14
|
+
import { readEmoji } from "./options/readEmoji.mjs";
|
|
15
|
+
import { readExistingLabels } from "./options/readExistingLabels.mjs";
|
|
16
|
+
import { readFileSafe } from "./options/readFileSafe.mjs";
|
|
17
|
+
import { readFunding } from "./options/readFunding.mjs";
|
|
18
|
+
import { readGitDefaults } from "./options/readGitDefaults.mjs";
|
|
19
|
+
import { readGuide } from "./options/readGuide.mjs";
|
|
20
|
+
import { readKeywords } from "./options/readKeywords.mjs";
|
|
21
|
+
import { readLogo } from "./options/readLogo.mjs";
|
|
22
|
+
import { readNode } from "./options/readNode.mjs";
|
|
23
|
+
import { readNpmDefaults } from "./options/readNpmDefaults.mjs";
|
|
24
|
+
import { readOwner } from "./options/readOwner.mjs";
|
|
25
|
+
import { readPackageAuthor } from "./options/readPackageAuthor.mjs";
|
|
26
|
+
import { readPackageData } from "./options/readPackageData.mjs";
|
|
27
|
+
import { readPnpm } from "./options/readPnpm.mjs";
|
|
28
|
+
import { readReadmeFootnotes } from "./options/readReadmeFootnotes.mjs";
|
|
29
|
+
import { readReadmeAdditional } from "./options/readReadmeAdditional.mjs";
|
|
30
|
+
import { readReadmeExplainer } from "./options/readReadmeExplainer.mjs";
|
|
31
|
+
import { readReadmeUsage } from "./options/readReadmeUsage.mjs";
|
|
32
|
+
import { readRepository } from "./options/readRepository.mjs";
|
|
33
|
+
import { readRulesetId } from "./options/readRulesetId.mjs";
|
|
34
|
+
import { readTitle } from "./options/readTitle.mjs";
|
|
35
|
+
import { readWords } from "./options/readWords.mjs";
|
|
36
|
+
import { readWorkflowsVersions } from "./options/readWorkflowsVersions.mjs";
|
|
37
|
+
import { zContributor, zDocumentation, zEmails, zWorkflowsVersions } from "./schemas.mjs";
|
|
38
|
+
import { createBase } from "bingo-stratum";
|
|
39
|
+
import { inputFromFile } from "input-from-file";
|
|
40
|
+
import { inputFromScript } from "input-from-script";
|
|
41
|
+
import lazyValue from "lazy-value";
|
|
42
|
+
import { z } from "zod";
|
|
43
|
+
//#region src/base.ts
|
|
44
|
+
const base = createBase({
|
|
45
|
+
options: {
|
|
46
|
+
access: z.union([z.literal("public"), z.literal("restricted")]).describe("which `npm publish --access` to release npm packages with"),
|
|
47
|
+
author: z.string().optional().describe("username on npm to publish packages under"),
|
|
48
|
+
bin: z.union([z.string(), z.record(z.string(), z.string())]).optional().describe("value to set in `package.json`'s `\"bin\"` property"),
|
|
49
|
+
bundle: z.boolean().optional().describe("whether to bundle build output into a single file, instead of one output file per source file"),
|
|
50
|
+
codecovToken: z.boolean().optional().describe("whether to send a `CODECOV_TOKEN` repository secret to Codecov in CI"),
|
|
51
|
+
contributors: z.array(zContributor).optional().describe("AllContributors contributors to store in .all-contributorsrc"),
|
|
52
|
+
description: z.string().default("A very lovely package. Hooray!").describe("'Sentence case.' description of the repository"),
|
|
53
|
+
directory: z.string().describe("Directory to create the repository in"),
|
|
54
|
+
documentation: zDocumentation.describe("additional docs to add to .md files"),
|
|
55
|
+
email: z.union([z.string(), zEmails]).describe("email address to be listed as the point of contact in docs and packages"),
|
|
56
|
+
emoji: z.string().optional().describe("decorative emoji to use in descriptions and docs"),
|
|
57
|
+
existingLabels: z.array(z.object({
|
|
58
|
+
color: z.string(),
|
|
59
|
+
description: z.string(),
|
|
60
|
+
name: z.string()
|
|
61
|
+
})).optional().describe("existing labels from the GitHub repository"),
|
|
62
|
+
funding: z.string().optional().describe("GitHub organization or username to mention in `funding.yaml`"),
|
|
63
|
+
guide: z.object({
|
|
64
|
+
href: z.string(),
|
|
65
|
+
title: z.string()
|
|
66
|
+
}).optional().describe("link to a contribution guide to place at the top of development docs"),
|
|
67
|
+
keywords: z.array(z.string()).optional().describe("any number of keywords to include in `package.json`"),
|
|
68
|
+
logo: z.object({
|
|
69
|
+
alt: z.string(),
|
|
70
|
+
height: z.number().optional(),
|
|
71
|
+
src: z.string(),
|
|
72
|
+
width: z.number().optional()
|
|
73
|
+
}).optional().describe("local image file and alt text to display near the top of the README.md"),
|
|
74
|
+
node: z.object({
|
|
75
|
+
minimum: z.string(),
|
|
76
|
+
pinned: z.string().optional()
|
|
77
|
+
}).describe("Node.js engine version(s) to pin and require a minimum of"),
|
|
78
|
+
owner: z.string().describe("organization or user owning the repository"),
|
|
79
|
+
packageData: z.object({
|
|
80
|
+
dependencies: z.record(z.string(), z.string()).optional(),
|
|
81
|
+
devDependencies: z.record(z.string(), z.string()).optional(),
|
|
82
|
+
peerDependencies: z.record(z.string(), z.string()).optional(),
|
|
83
|
+
peerDependenciesMeta: z.record(z.string(), z.unknown()).optional(),
|
|
84
|
+
scripts: z.record(z.string(), z.string().optional()).optional()
|
|
85
|
+
}).optional().describe("additional properties to include in `package.json`"),
|
|
86
|
+
pnpm: z.string().optional().describe("pnpm version for package.json's packageManager field"),
|
|
87
|
+
repository: z.string().describe("'kebab-case' or 'PascalCase' title of the repository"),
|
|
88
|
+
rulesetId: z.string().optional().describe("GitHub branch ruleset ID for main branch protections"),
|
|
89
|
+
title: z.string().describe("'Title Case' title for the repository"),
|
|
90
|
+
type: z.union([z.literal("commonjs"), z.literal("module")]).optional().describe("package.json modules type"),
|
|
91
|
+
version: z.string().optional().describe("package version to publish as and store in `package.json`"),
|
|
92
|
+
words: z.array(z.string()).optional().describe("additional words to add to the CSpell dictionary"),
|
|
93
|
+
workflowsVersions: zWorkflowsVersions.optional().describe("existing versions of GitHub Actions workflows used")
|
|
94
|
+
},
|
|
95
|
+
prepare({ options, take }) {
|
|
96
|
+
const getAccess = lazyValue(async () => await readAccess(getPackageData));
|
|
97
|
+
const getAllContributors = lazyValue(async () => await readAllContributors(take));
|
|
98
|
+
const getAuthor = lazyValue(async () => await readAuthor(getPackageAuthor, getNpmDefaults, getGitUser, options.owner));
|
|
99
|
+
const getBin = lazyValue(async () => await readBin(getPackageData));
|
|
100
|
+
const getBundle = lazyValue(async () => await readBundle(take));
|
|
101
|
+
const getCodecovToken = lazyValue(async () => await readCodecovToken(take));
|
|
102
|
+
const getEmoji = lazyValue(async () => await readEmoji(getDescription));
|
|
103
|
+
const getDescription = lazyValue(async () => await readDescription(getPackageData, getReadme, getRepository));
|
|
104
|
+
const getDevelopmentDocumentation = lazyValue(async () => await readDevelopmentDocumentation(take));
|
|
105
|
+
const getDocumentation = lazyValue(async () => await readDocumentation(getDevelopmentDocumentation, getReadmeAdditional, getReadmeExplainer, getReadmeFootnotes, getReadmeUsage));
|
|
106
|
+
const getEmail = lazyValue(async () => await readEmails(getEmailFromCodeOfConduct, getEmailFromGit, getEmailFromNpm, getPackageAuthor));
|
|
107
|
+
const getKeywords = lazyValue(async () => await readKeywords(getPackageData));
|
|
108
|
+
const getEmailFromCodeOfConduct = lazyValue(async () => await readEmailFromCodeOfConduct(take));
|
|
109
|
+
const getEmailFromGit = lazyValue(async () => await readEmailFromGit(take));
|
|
110
|
+
const getEmailFromNpm = lazyValue(async () => await readEmailFromNpm(getNpmDefaults, getPackageAuthor));
|
|
111
|
+
const getExistingLabels = lazyValue(async () => await readExistingLabels(take, getOwner, getRepository));
|
|
112
|
+
const getFunding = lazyValue(async () => await readFunding(take));
|
|
113
|
+
const getGitDefaults = lazyValue(async () => await readGitDefaults(take));
|
|
114
|
+
const getGitUser = lazyValue(async () => await take(inputFromScript, { command: "git config user.name" }));
|
|
115
|
+
const getGuide = lazyValue(async () => await readGuide(take));
|
|
116
|
+
const getLogo = lazyValue(async () => await readLogo(getReadme));
|
|
117
|
+
const getPackageData = lazyValue(async () => await readPackageData(take));
|
|
118
|
+
const getNode = lazyValue(async () => await readNode(getNvmrc, getPackageData));
|
|
119
|
+
const getNpmDefaults = lazyValue(async () => await readNpmDefaults(getNpmWhoami));
|
|
120
|
+
const getNpmWhoami = lazyValue(async () => await take(inputFromScript, { command: "npm whoami --offline" }));
|
|
121
|
+
const getNvmrc = lazyValue(async () => await take(inputFromFile, { filePath: ".nvmrc" }));
|
|
122
|
+
const getOwner = lazyValue(async () => await readOwner(take, getGitDefaults, getPackageAuthor));
|
|
123
|
+
const getPackageAuthor = lazyValue(async () => await readPackageAuthor(getPackageData));
|
|
124
|
+
const getPnpm = lazyValue(async () => await readPnpm(getPackageData));
|
|
125
|
+
const getReadme = lazyValue(async () => await readFileSafe("README.md", ""));
|
|
126
|
+
const getReadmeAdditional = lazyValue(async () => await readReadmeAdditional(getReadme));
|
|
127
|
+
const getReadmeExplainer = lazyValue(async () => await readReadmeExplainer(getReadme));
|
|
128
|
+
const getReadmeFootnotes = lazyValue(async () => await readReadmeFootnotes(getReadme));
|
|
129
|
+
const getReadmeUsage = lazyValue(async () => await readReadmeUsage(getReadme));
|
|
130
|
+
const getRepository = lazyValue(async () => await readRepository(getGitDefaults, getPackageData, options));
|
|
131
|
+
return {
|
|
132
|
+
access: getAccess,
|
|
133
|
+
author: getAuthor,
|
|
134
|
+
bin: getBin,
|
|
135
|
+
bundle: getBundle,
|
|
136
|
+
codecovToken: getCodecovToken,
|
|
137
|
+
contributors: getAllContributors,
|
|
138
|
+
description: getDescription,
|
|
139
|
+
documentation: getDocumentation,
|
|
140
|
+
email: getEmail,
|
|
141
|
+
emoji: getEmoji,
|
|
142
|
+
existingLabels: getExistingLabels,
|
|
143
|
+
funding: getFunding,
|
|
144
|
+
guide: getGuide,
|
|
145
|
+
keywords: getKeywords,
|
|
146
|
+
logo: getLogo,
|
|
147
|
+
node: getNode,
|
|
148
|
+
owner: getOwner,
|
|
149
|
+
packageData: getPackageData,
|
|
150
|
+
pnpm: getPnpm,
|
|
151
|
+
repository: getRepository,
|
|
152
|
+
rulesetId: lazyValue(async () => await readRulesetId(take, getOwner, getRepository)),
|
|
153
|
+
title: lazyValue(async () => await readTitle(getReadme, getRepository)),
|
|
154
|
+
type: lazyValue(async () => (await getPackageData()).type),
|
|
155
|
+
version: lazyValue(async () => (await getPackageData()).version),
|
|
156
|
+
words: lazyValue(async () => await readWords(take)),
|
|
157
|
+
workflowsVersions: lazyValue(async () => await readWorkflowsVersions(take))
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
//#endregion
|
|
162
|
+
export { base };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CachedFactory } from "cached-factory";
|
|
2
|
+
import semver from "semver";
|
|
3
|
+
//#region src/blocks/actions/resolveUses.ts
|
|
4
|
+
const semverCoercions = new CachedFactory((version) => {
|
|
5
|
+
return semver.coerce(version)?.toString() ?? "0.0.0";
|
|
6
|
+
});
|
|
7
|
+
function resolveUses(action, version, workflowsVersions) {
|
|
8
|
+
if (!workflowsVersions || !(action in workflowsVersions)) return `${action}@${version}`;
|
|
9
|
+
const workflowVersions = workflowsVersions[action];
|
|
10
|
+
const biggestVersion = Object.keys(workflowVersions).reduce((highestVersion, potentialVersion) => semver.gt(semverCoercions.get(potentialVersion), semverCoercions.get(highestVersion)) ? potentialVersion : highestVersion, version);
|
|
11
|
+
if (!(biggestVersion in workflowVersions)) return `${action}@${biggestVersion}`;
|
|
12
|
+
const atBiggestVersion = workflowVersions[biggestVersion];
|
|
13
|
+
return atBiggestVersion.hash ? `${action}@${atBiggestVersion.hash} # ${biggestVersion}` : `${action}@${biggestVersion}`;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { resolveUses };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { IntakeDirectory } from "bingo-fs";
|
|
3
|
+
//#region src/blocks/actions/steps.d.ts
|
|
4
|
+
declare const zActionStep: z.ZodIntersection<z.ZodObject<{
|
|
5
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6
|
+
if: z.ZodOptional<z.ZodString>;
|
|
7
|
+
with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
9
|
+
run: z.ZodString;
|
|
10
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11
|
+
uses: z.ZodString;
|
|
12
|
+
}, z.core.$strip>]>>;
|
|
13
|
+
interface JobOrRunStep {
|
|
14
|
+
env?: Record<string, string>;
|
|
15
|
+
uses?: unknown;
|
|
16
|
+
with?: Record<string, string>;
|
|
17
|
+
}
|
|
18
|
+
declare function getYamlSteps(yaml: unknown, ymlPath: string[]): JobOrRunStep[] | undefined;
|
|
19
|
+
declare function intakeFileYamlSteps(files: IntakeDirectory, filePath: string[], ymlPath: string[]): JobOrRunStep[] | undefined;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { JobOrRunStep, getYamlSteps, intakeFileYamlSteps, zActionStep };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { intakeFileAsYaml } from "../intake/intakeFileAsYaml.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import _ from "lodash";
|
|
4
|
+
//#region src/blocks/actions/steps.ts
|
|
5
|
+
const zActionStep = z.intersection(z.object({
|
|
6
|
+
env: z.record(z.string(), z.string()).optional(),
|
|
7
|
+
if: z.string().optional(),
|
|
8
|
+
with: z.record(z.string(), z.string()).optional()
|
|
9
|
+
}), z.union([z.object({ run: z.string() }), z.object({ uses: z.string() })]));
|
|
10
|
+
function getYamlSteps(yaml, ymlPath) {
|
|
11
|
+
const steps = _.get(yaml, ymlPath);
|
|
12
|
+
return Array.isArray(steps) ? steps : void 0;
|
|
13
|
+
}
|
|
14
|
+
function intakeFileYamlSteps(files, filePath, ymlPath) {
|
|
15
|
+
const actionYml = intakeFileAsYaml(files, filePath);
|
|
16
|
+
return actionYml ? getYamlSteps(actionYml, ymlPath) : void 0;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { getYamlSteps, intakeFileYamlSteps, zActionStep };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
//#region src/blocks/blockAllContributors.d.ts
|
|
2
|
+
declare const blockAllContributors: import("bingo-stratum").BlockWithoutAddons<{
|
|
3
|
+
access: "public" | "restricted";
|
|
4
|
+
description: string;
|
|
5
|
+
directory: string;
|
|
6
|
+
documentation: {
|
|
7
|
+
readme: {
|
|
8
|
+
additional?: string | undefined;
|
|
9
|
+
explainer?: string | undefined;
|
|
10
|
+
footnotes?: string | undefined;
|
|
11
|
+
usage?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
development?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
email: string | {
|
|
16
|
+
github: string;
|
|
17
|
+
npm: string;
|
|
18
|
+
};
|
|
19
|
+
node: {
|
|
20
|
+
minimum: string;
|
|
21
|
+
pinned?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
owner: string;
|
|
24
|
+
repository: string;
|
|
25
|
+
title: string;
|
|
26
|
+
author?: string | undefined;
|
|
27
|
+
bin?: string | Record<string, string> | undefined;
|
|
28
|
+
bundle?: boolean | undefined;
|
|
29
|
+
codecovToken?: boolean | 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
|
+
color: string;
|
|
40
|
+
description: string;
|
|
41
|
+
name: 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
|
+
type?: "commonjs" | "module" | 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;
|
|
71
|
+
}>;
|
|
72
|
+
//#endregion
|
|
73
|
+
export { blockAllContributors };
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { startingOwnerContributions } from "../data/contributions.mjs";
|
|
2
|
+
import { base } from "../base.mjs";
|
|
3
|
+
import { resolveUses } from "./actions/resolveUses.mjs";
|
|
4
|
+
import { CommandPhase } from "./phases.mjs";
|
|
5
|
+
import { blockRemoveFiles } from "./blockRemoveFiles.mjs";
|
|
6
|
+
import { createSoloWorkflowFile } from "./files/createSoloWorkflowFile.mjs";
|
|
7
|
+
import { blockREADME } from "./blockREADME.mjs";
|
|
8
|
+
import { blockPrettier } from "./blockPrettier.mjs";
|
|
9
|
+
import { blockRepositorySecrets } from "./blockRepositorySecrets.mjs";
|
|
10
|
+
import _ from "lodash";
|
|
11
|
+
//#region src/blocks/blockAllContributors.ts
|
|
12
|
+
const blockAllContributors = base.createBlock({
|
|
13
|
+
about: { name: "AllContributors" },
|
|
14
|
+
produce({ options }) {
|
|
15
|
+
const contributions = options.contributors?.length;
|
|
16
|
+
const ownerContributions = Array.from(new Set([options.contributors?.find((contributor) => contributor.login.toLowerCase() === options.owner.toLowerCase())?.contributions, startingOwnerContributions].filter(Boolean).flat()));
|
|
17
|
+
return {
|
|
18
|
+
addons: [
|
|
19
|
+
blockPrettier({ ignores: ["/.all-contributorsrc"] }),
|
|
20
|
+
blockREADME({
|
|
21
|
+
badges: [{
|
|
22
|
+
alt: `👪 All Contributors: ${contributions}`,
|
|
23
|
+
comments: {
|
|
24
|
+
after: `
|
|
25
|
+
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
26
|
+
\t<!-- prettier-ignore-end -->`,
|
|
27
|
+
before: `<!-- prettier-ignore-start -->
|
|
28
|
+
\t<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
29
|
+
\t`
|
|
30
|
+
},
|
|
31
|
+
href: "#contributors",
|
|
32
|
+
src: `https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-${contributions}-21bb42.svg`
|
|
33
|
+
}],
|
|
34
|
+
sections: options.contributors ? [printAllContributorsTable(options.contributors)] : void 0
|
|
35
|
+
}),
|
|
36
|
+
blockRepositorySecrets({ secrets: [{
|
|
37
|
+
description: "a GitHub PAT with repo and workflow permissions",
|
|
38
|
+
name: "ACCESS_TOKEN"
|
|
39
|
+
}] })
|
|
40
|
+
],
|
|
41
|
+
files: {
|
|
42
|
+
".all-contributorsrc": JSON.stringify({
|
|
43
|
+
badgeTemplate: " <a href=\"#contributors\" target=\"_blank\"><img alt=\"👪 All Contributors: <%= contributors.length %>\" src=\"https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-<%= contributors.length %>-21bb42.svg\" /></a>",
|
|
44
|
+
commitType: "docs",
|
|
45
|
+
contributors: options.contributors ?? [],
|
|
46
|
+
contributorsPerLine: 7,
|
|
47
|
+
contributorsSortAlphabetically: true,
|
|
48
|
+
files: ["README.md"],
|
|
49
|
+
projectName: options.repository,
|
|
50
|
+
projectOwner: options.owner,
|
|
51
|
+
repoType: "github"
|
|
52
|
+
}, null, 2),
|
|
53
|
+
".github": { workflows: { "contributors.yaml": createSoloWorkflowFile({
|
|
54
|
+
name: "Contributors",
|
|
55
|
+
on: { push: { branches: ["main"] } },
|
|
56
|
+
steps: [
|
|
57
|
+
{
|
|
58
|
+
uses: resolveUses("actions/checkout", "v4", options.workflowsVersions),
|
|
59
|
+
with: { "fetch-depth": 0 }
|
|
60
|
+
},
|
|
61
|
+
{ uses: "./.github/actions/prepare" },
|
|
62
|
+
{
|
|
63
|
+
env: { GITHUB_TOKEN: "${{ secrets.ACCESS_TOKEN }}" },
|
|
64
|
+
uses: resolveUses("JoshuaKGoldberg/all-contributors-auto-action", "v0.5.0", options.workflowsVersions)
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}) } }
|
|
68
|
+
},
|
|
69
|
+
scripts: [{
|
|
70
|
+
commands: [`pnpx all-contributors-cli@6.23.1 add ${options.owner} ${ownerContributions.join(",")}`],
|
|
71
|
+
phase: CommandPhase.Process
|
|
72
|
+
}]
|
|
73
|
+
};
|
|
74
|
+
},
|
|
75
|
+
transition() {
|
|
76
|
+
return { addons: [blockRemoveFiles({ files: [".github/workflows/contributors.yml"] })] };
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
function printAllContributorsTable(contributors) {
|
|
80
|
+
return [
|
|
81
|
+
`## Contributors`,
|
|
82
|
+
``,
|
|
83
|
+
`<!-- spellchecker: disable -->`,
|
|
84
|
+
`<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->`,
|
|
85
|
+
`<!-- prettier-ignore-start -->`,
|
|
86
|
+
`<table>`,
|
|
87
|
+
` <tbody>`,
|
|
88
|
+
` <tr>`,
|
|
89
|
+
..._.sortBy(contributors, "name").flatMap((contributor, i) => {
|
|
90
|
+
const row = printContributorCell(contributor);
|
|
91
|
+
return i && i % 7 === 0 ? [
|
|
92
|
+
` </tr>`,
|
|
93
|
+
` <tr>`,
|
|
94
|
+
row
|
|
95
|
+
] : [row];
|
|
96
|
+
}),
|
|
97
|
+
` </tr>`,
|
|
98
|
+
` </tbody>`,
|
|
99
|
+
`</table>`,
|
|
100
|
+
``,
|
|
101
|
+
`<!-- prettier-ignore-end -->`,
|
|
102
|
+
``,
|
|
103
|
+
`<!-- ALL-CONTRIBUTORS-LIST:END -->`,
|
|
104
|
+
`<!-- spellchecker: enable -->`
|
|
105
|
+
].join("\n");
|
|
106
|
+
}
|
|
107
|
+
function printContributorCell(contributor) {
|
|
108
|
+
return [
|
|
109
|
+
` <td align="center" valign="top" width="14.28%">`,
|
|
110
|
+
`<a href="${contributor.profile}">`,
|
|
111
|
+
`<img src="${contributor.avatar_url}?s=100" width="100px;" alt="${contributor.name}"/>`,
|
|
112
|
+
`<br />`,
|
|
113
|
+
`<sub><b>${contributor.name}</b></sub></a><br />`,
|
|
114
|
+
contributor.contributions.map((contribution) => {
|
|
115
|
+
switch (contribution) {
|
|
116
|
+
case "bug": return `<a href="https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=author%3A${contributor.login}" title="Bug reports">🐛</a>`;
|
|
117
|
+
case "code": return `<a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=${contributor.login}" title="Code">💻</a>`;
|
|
118
|
+
case "design": return `<a href="#design-${contributor.login}" title="Design">🎨</a>`;
|
|
119
|
+
case "doc": return `<a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=${contributor.login}" title="Documentation">📖</a>`;
|
|
120
|
+
case "ideas": return `<a href="#ideas-${contributor.login}" title="Ideas, Planning, & Feedback">🤔</a>`;
|
|
121
|
+
case "infra": return `<a href="#infra-${contributor.login}" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a>`;
|
|
122
|
+
case "maintenance": return `<a href="#maintenance-${contributor.login}" title="Maintenance">🚧</a>`;
|
|
123
|
+
case "review": return `<a href="https://github.com/JoshuaKGoldberg/create-typescript-app/pulls?q=is%3Apr+reviewed-by%3A${contributor.login}" title="Reviewed Pull Requests">👀</a>`;
|
|
124
|
+
case "test": return `<a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=${contributor.login}" title="Tests">⚠️</a>`;
|
|
125
|
+
case "tool": return `<a href="#tool-${contributor.login}" title="Tools">🔧</a>`;
|
|
126
|
+
}
|
|
127
|
+
}).join(" "),
|
|
128
|
+
`</td>`
|
|
129
|
+
].join("");
|
|
130
|
+
}
|
|
131
|
+
//#endregion
|
|
132
|
+
export { blockAllContributors };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
//#region src/blocks/blockAreTheTypesWrong.d.ts
|
|
2
|
+
declare const blockAreTheTypesWrong: import("bingo-stratum").BlockWithoutAddons<{
|
|
3
|
+
access: "public" | "restricted";
|
|
4
|
+
description: string;
|
|
5
|
+
directory: string;
|
|
6
|
+
documentation: {
|
|
7
|
+
readme: {
|
|
8
|
+
additional?: string | undefined;
|
|
9
|
+
explainer?: string | undefined;
|
|
10
|
+
footnotes?: string | undefined;
|
|
11
|
+
usage?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
development?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
email: string | {
|
|
16
|
+
github: string;
|
|
17
|
+
npm: string;
|
|
18
|
+
};
|
|
19
|
+
node: {
|
|
20
|
+
minimum: string;
|
|
21
|
+
pinned?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
owner: string;
|
|
24
|
+
repository: string;
|
|
25
|
+
title: string;
|
|
26
|
+
author?: string | undefined;
|
|
27
|
+
bin?: string | Record<string, string> | undefined;
|
|
28
|
+
bundle?: boolean | undefined;
|
|
29
|
+
codecovToken?: boolean | 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
|
+
color: string;
|
|
40
|
+
description: string;
|
|
41
|
+
name: 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
|
+
type?: "commonjs" | "module" | 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;
|
|
71
|
+
}>;
|
|
72
|
+
//#endregion
|
|
73
|
+
export { blockAreTheTypesWrong };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { base } from "../base.mjs";
|
|
2
|
+
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.mjs";
|
|
3
|
+
//#region src/blocks/blockAreTheTypesWrong.ts
|
|
4
|
+
const blockAreTheTypesWrong = base.createBlock({
|
|
5
|
+
about: { name: "Are The Types Wrong" },
|
|
6
|
+
produce() {
|
|
7
|
+
return { addons: [blockGitHubActionsCI({ jobs: [{
|
|
8
|
+
name: "Are The Types Wrong?",
|
|
9
|
+
steps: [{ run: "pnpm build" }, { run: "npx --yes @arethetypeswrong/cli --pack . --ignore-rules cjs-resolves-to-esm --profile esm-only" }]
|
|
10
|
+
}] })] };
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { blockAreTheTypesWrong };
|