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
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { base } from "../base.mjs";
|
|
2
|
+
import { blockDevelopmentDocs } from "./blockDevelopmentDocs.mjs";
|
|
3
|
+
import { getPrimaryBin } from "./bin/getPrimaryBin.mjs";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
import sortKeys from "sort-keys";
|
|
6
|
+
//#region src/blocks/blockVSCode.ts
|
|
7
|
+
const blockVSCode = base.createBlock({
|
|
8
|
+
about: { name: "VS Code" },
|
|
9
|
+
addons: {
|
|
10
|
+
debuggers: z.array(z.intersection(z.record(z.string(), z.unknown()), z.object({ name: z.string() }))).optional(),
|
|
11
|
+
extensions: z.array(z.string()).optional(),
|
|
12
|
+
settings: z.record(z.string(), z.unknown()).default({}),
|
|
13
|
+
tasks: z.array(z.intersection(z.object({ detail: z.string() }), z.record(z.string(), z.unknown()))).optional()
|
|
14
|
+
},
|
|
15
|
+
produce({ addons, options }) {
|
|
16
|
+
const { debuggers, extensions, settings, tasks } = addons;
|
|
17
|
+
const primaryBin = getPrimaryBin(options.bin, options.repository);
|
|
18
|
+
return {
|
|
19
|
+
addons: [blockDevelopmentDocs({
|
|
20
|
+
hints: [`> This repository includes a list of suggested VS Code extensions.`, `> 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.`],
|
|
21
|
+
sections: {
|
|
22
|
+
Building: { innerSections: primaryBin ? [{
|
|
23
|
+
contents: `
|
|
24
|
+
This repository includes a [VS Code launch configuration](https://code.visualstudio.com/docs/editor/debugging) for debugging.
|
|
25
|
+
To debug a \`bin\` app, add a breakpoint to your code, then run _Debug Program_ from the VS Code Debug panel (or press F5).
|
|
26
|
+
VS Code will automatically run the \`build\` task in the background before running \`${primaryBin}\`.
|
|
27
|
+
`,
|
|
28
|
+
heading: "Built App Debugging"
|
|
29
|
+
}] : [] },
|
|
30
|
+
Testing: { innerSections: [{
|
|
31
|
+
contents: `
|
|
32
|
+
This repository includes a [VS Code launch configuration](https://code.visualstudio.com/docs/editor/debugging) for debugging unit tests.
|
|
33
|
+
To launch it, open a test file, then run _Debug Current Test File_ from the VS Code Debug panel (or press F5).
|
|
34
|
+
`,
|
|
35
|
+
heading: "Debugging Tests"
|
|
36
|
+
}] }
|
|
37
|
+
}
|
|
38
|
+
})],
|
|
39
|
+
files: { ".vscode": {
|
|
40
|
+
"extensions.json": extensions?.length ? JSON.stringify({ recommendations: [...extensions].sort() }) : void 0,
|
|
41
|
+
"launch.json": debuggers?.length ? JSON.stringify({
|
|
42
|
+
configurations: [...debuggers].sort((a, b) => a.name.localeCompare(b.name)),
|
|
43
|
+
version: "0.2.0"
|
|
44
|
+
}) : void 0,
|
|
45
|
+
"settings.json": JSON.stringify(sortKeys({
|
|
46
|
+
"editor.formatOnSave": true,
|
|
47
|
+
"editor.rulers": [80],
|
|
48
|
+
...settings
|
|
49
|
+
})),
|
|
50
|
+
"tasks.json": tasks?.length ? JSON.stringify({
|
|
51
|
+
tasks: tasks.sort((a, b) => a.detail.localeCompare(b.detail)),
|
|
52
|
+
version: "2.0.0"
|
|
53
|
+
}) : void 0
|
|
54
|
+
} }
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
//#endregion
|
|
59
|
+
export { blockVSCode };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
//#region src/blocks/blockVitest.d.ts
|
|
2
|
+
declare const blockVitest: import("bingo-stratum").BlockWithAddons<{
|
|
3
|
+
actionSteps: ({
|
|
4
|
+
env?: Record<string, string> | undefined;
|
|
5
|
+
if?: string | undefined;
|
|
6
|
+
with?: Record<string, string> | undefined;
|
|
7
|
+
} & ({
|
|
8
|
+
run: string;
|
|
9
|
+
} | {
|
|
10
|
+
uses: string;
|
|
11
|
+
}))[];
|
|
12
|
+
coverage: {
|
|
13
|
+
exclude?: string[] | undefined;
|
|
14
|
+
include?: string[] | undefined;
|
|
15
|
+
};
|
|
16
|
+
exclude: string[];
|
|
17
|
+
flags: string[];
|
|
18
|
+
environment?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
access: "public" | "restricted";
|
|
21
|
+
description: string;
|
|
22
|
+
directory: string;
|
|
23
|
+
documentation: {
|
|
24
|
+
readme: {
|
|
25
|
+
additional?: string | undefined;
|
|
26
|
+
explainer?: string | undefined;
|
|
27
|
+
footnotes?: string | undefined;
|
|
28
|
+
usage?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
development?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
email: string | {
|
|
33
|
+
github: string;
|
|
34
|
+
npm: string;
|
|
35
|
+
};
|
|
36
|
+
node: {
|
|
37
|
+
minimum: string;
|
|
38
|
+
pinned?: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
owner: string;
|
|
41
|
+
repository: string;
|
|
42
|
+
title: string;
|
|
43
|
+
author?: string | undefined;
|
|
44
|
+
bin?: string | Record<string, string> | undefined;
|
|
45
|
+
bundle?: boolean | undefined;
|
|
46
|
+
codecovToken?: boolean | undefined;
|
|
47
|
+
contributors?: {
|
|
48
|
+
avatar_url: string;
|
|
49
|
+
contributions: string[];
|
|
50
|
+
login: string;
|
|
51
|
+
name: string;
|
|
52
|
+
profile: string;
|
|
53
|
+
}[] | undefined;
|
|
54
|
+
emoji?: string | undefined;
|
|
55
|
+
existingLabels?: {
|
|
56
|
+
color: string;
|
|
57
|
+
description: string;
|
|
58
|
+
name: string;
|
|
59
|
+
}[] | undefined;
|
|
60
|
+
funding?: string | undefined;
|
|
61
|
+
guide?: {
|
|
62
|
+
href: string;
|
|
63
|
+
title: string;
|
|
64
|
+
} | undefined;
|
|
65
|
+
keywords?: string[] | undefined;
|
|
66
|
+
logo?: {
|
|
67
|
+
alt: string;
|
|
68
|
+
src: string;
|
|
69
|
+
height?: number | undefined;
|
|
70
|
+
width?: number | undefined;
|
|
71
|
+
} | undefined;
|
|
72
|
+
packageData?: {
|
|
73
|
+
dependencies?: Record<string, string> | undefined;
|
|
74
|
+
devDependencies?: Record<string, string> | undefined;
|
|
75
|
+
peerDependencies?: Record<string, string> | undefined;
|
|
76
|
+
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
77
|
+
scripts?: Record<string, string | undefined> | undefined;
|
|
78
|
+
} | undefined;
|
|
79
|
+
pnpm?: string | undefined;
|
|
80
|
+
rulesetId?: string | undefined;
|
|
81
|
+
type?: "commonjs" | "module" | undefined;
|
|
82
|
+
version?: string | undefined;
|
|
83
|
+
words?: string[] | undefined;
|
|
84
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
85
|
+
hash?: string | undefined;
|
|
86
|
+
pinned?: boolean | undefined;
|
|
87
|
+
}>> | undefined;
|
|
88
|
+
}>;
|
|
89
|
+
//#endregion
|
|
90
|
+
export { blockVitest };
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { zActionStep } from "./actions/steps.mjs";
|
|
2
|
+
import { getPackageDependencies } from "../data/packageData.mjs";
|
|
3
|
+
import { base } from "../base.mjs";
|
|
4
|
+
import { blockRemoveFiles } from "./blockRemoveFiles.mjs";
|
|
5
|
+
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.mjs";
|
|
6
|
+
import { blockPackageJson } from "./blockPackageJson.mjs";
|
|
7
|
+
import { blockDevelopmentDocs } from "./blockDevelopmentDocs.mjs";
|
|
8
|
+
import { blockRemoveWorkflows } from "./blockRemoveWorkflows.mjs";
|
|
9
|
+
import { blockVSCode } from "./blockVSCode.mjs";
|
|
10
|
+
import { blockCSpell } from "./blockCSpell.mjs";
|
|
11
|
+
import { blockRemoveDependencies } from "./blockRemoveDependencies.mjs";
|
|
12
|
+
import { blockESLint } from "./blockESLint.mjs";
|
|
13
|
+
import { blockExampleFiles } from "./blockExampleFiles.mjs";
|
|
14
|
+
import { blockGitignore } from "./blockGitignore.mjs";
|
|
15
|
+
import { blockKnip } from "./blockKnip.mjs";
|
|
16
|
+
import { blockPrettier } from "./blockPrettier.mjs";
|
|
17
|
+
import { intakeFileDefineConfig } from "./intake/intakeFileDefineConfig.mjs";
|
|
18
|
+
import { blockTSDown } from "./blockTSDown.mjs";
|
|
19
|
+
import { z } from "zod";
|
|
20
|
+
//#region src/blocks/blockVitest.ts
|
|
21
|
+
const zCoverage = z.object({
|
|
22
|
+
exclude: z.array(z.string()).optional(),
|
|
23
|
+
include: z.array(z.string()).optional()
|
|
24
|
+
});
|
|
25
|
+
const zEnvironment = z.string();
|
|
26
|
+
const zExclude = z.array(z.string());
|
|
27
|
+
const zTest = z.object({
|
|
28
|
+
coverage: zCoverage,
|
|
29
|
+
environment: zEnvironment,
|
|
30
|
+
exclude: zExclude
|
|
31
|
+
}).partial();
|
|
32
|
+
function intakeFromConfig(files) {
|
|
33
|
+
const rawData = intakeFileDefineConfig(files, ["vitest.config.ts"]);
|
|
34
|
+
if (typeof rawData?.test !== "object") return;
|
|
35
|
+
const parsedData = zTest.safeParse(rawData.test).data;
|
|
36
|
+
if (!parsedData) return;
|
|
37
|
+
return {
|
|
38
|
+
coverage: parsedData.coverage,
|
|
39
|
+
environment: parsedData.environment,
|
|
40
|
+
exclude: parsedData.exclude
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
const blockVitest = base.createBlock({
|
|
44
|
+
about: { name: "Vitest" },
|
|
45
|
+
addons: {
|
|
46
|
+
actionSteps: z.array(zActionStep).default([]),
|
|
47
|
+
coverage: zCoverage.default({}),
|
|
48
|
+
environment: zEnvironment.optional(),
|
|
49
|
+
exclude: zExclude.default([]),
|
|
50
|
+
flags: z.array(z.string()).default([])
|
|
51
|
+
},
|
|
52
|
+
intake({ files, options }) {
|
|
53
|
+
return {
|
|
54
|
+
...intakeFromConfig(files),
|
|
55
|
+
flags: options.packageData?.scripts?.test?.match(/^vitest (.+)/)?.[1].split(" ")
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
produce({ addons }) {
|
|
59
|
+
const { actionSteps, coverage, environment, exclude } = addons;
|
|
60
|
+
const excludeText = JSON.stringify(Array.from(/* @__PURE__ */ new Set(["node_modules", ...exclude])).sort());
|
|
61
|
+
return {
|
|
62
|
+
addons: [
|
|
63
|
+
blockCSpell({ ignorePaths: ["coverage"] }),
|
|
64
|
+
blockDevelopmentDocs({ sections: { Testing: { contents: `
|
|
65
|
+
[Vitest](https://vitest.dev) is used for tests.
|
|
66
|
+
You can run it locally on the command-line:
|
|
67
|
+
|
|
68
|
+
\`\`\`shell
|
|
69
|
+
pnpm run test
|
|
70
|
+
\`\`\`
|
|
71
|
+
|
|
72
|
+
Add the \`--coverage\` flag to compute test coverage and place reports in the \`coverage/\` directory:
|
|
73
|
+
|
|
74
|
+
\`\`\`shell
|
|
75
|
+
pnpm run test --coverage
|
|
76
|
+
\`\`\`
|
|
77
|
+
|
|
78
|
+
Note that [console-fail-test](https://github.com/JoshuaKGoldberg/console-fail-test) is enabled for all test runs.
|
|
79
|
+
Calls to \`console.log\`, \`console.warn\`, and other console methods will cause a test to fail.
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
` } } }),
|
|
83
|
+
blockESLint({
|
|
84
|
+
extensions: [{
|
|
85
|
+
extends: ["vitest.configs.recommended"],
|
|
86
|
+
files: ["**/*.test.*"],
|
|
87
|
+
rules: [{ entries: {
|
|
88
|
+
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
89
|
+
"vitest/prefer-describe-function-title": "error"
|
|
90
|
+
} }],
|
|
91
|
+
settings: { vitest: { typecheck: true } }
|
|
92
|
+
}],
|
|
93
|
+
ignores: ["coverage", "**/*.snap"],
|
|
94
|
+
imports: [{
|
|
95
|
+
source: "@vitest/eslint-plugin",
|
|
96
|
+
specifier: "vitest"
|
|
97
|
+
}]
|
|
98
|
+
}),
|
|
99
|
+
blockExampleFiles({ files: { "greet.test.ts": `import { describe, expect, it, vi } from "vitest";
|
|
100
|
+
|
|
101
|
+
import { greet } from "./greet.ts";
|
|
102
|
+
|
|
103
|
+
const message = "Yay, testing!";
|
|
104
|
+
|
|
105
|
+
describe(greet, () => {
|
|
106
|
+
it("logs to the console once when message is provided as a string", () => {
|
|
107
|
+
const logger = vi.spyOn(console, "log").mockImplementation(() => undefined);
|
|
108
|
+
|
|
109
|
+
greet(message);
|
|
110
|
+
|
|
111
|
+
expect(logger).toHaveBeenCalledWith(message);
|
|
112
|
+
expect(logger).toHaveBeenCalledTimes(1);
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
it("logs to the console once when message is provided as an object", () => {
|
|
116
|
+
const logger = vi.spyOn(console, "log").mockImplementation(() => undefined);
|
|
117
|
+
|
|
118
|
+
greet({ message });
|
|
119
|
+
|
|
120
|
+
expect(logger).toHaveBeenCalledWith(message);
|
|
121
|
+
expect(logger).toHaveBeenCalledTimes(1);
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
it("logs once when times is not provided in an object", () => {
|
|
125
|
+
const logger = vi.fn();
|
|
126
|
+
|
|
127
|
+
greet({ logger, message });
|
|
128
|
+
|
|
129
|
+
expect(logger).toHaveBeenCalledWith(message);
|
|
130
|
+
expect(logger).toHaveBeenCalledTimes(1);
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
it("logs a specified number of times when times is provided", () => {
|
|
134
|
+
const logger = vi.fn();
|
|
135
|
+
const times = 7;
|
|
136
|
+
|
|
137
|
+
greet({ logger, message, times });
|
|
138
|
+
|
|
139
|
+
expect(logger).toHaveBeenCalledWith(message);
|
|
140
|
+
expect(logger).toHaveBeenCalledTimes(7);
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
` } }),
|
|
144
|
+
blockGitignore({ ignores: ["/coverage"] }),
|
|
145
|
+
blockGitHubActionsCI({ jobs: [{
|
|
146
|
+
name: "Test",
|
|
147
|
+
steps: [{ run: "pnpm run test --coverage" }, ...actionSteps]
|
|
148
|
+
}] }),
|
|
149
|
+
blockKnip({ entry: ["src/**/*.test.*"] }),
|
|
150
|
+
blockPackageJson({ properties: {
|
|
151
|
+
devDependencies: getPackageDependencies("@vitest/coverage-v8", "@vitest/eslint-plugin", "console-fail-test", "vitest"),
|
|
152
|
+
scripts: { test: `vitest ${addons.flags.join(" ")}`.trim() }
|
|
153
|
+
} }),
|
|
154
|
+
blockPrettier({ ignores: ["/coverage"] }),
|
|
155
|
+
blockTSDown({ entry: ["!src/**/*.test.*"] }),
|
|
156
|
+
blockVSCode({
|
|
157
|
+
debuggers: [{
|
|
158
|
+
args: ["run", "${relativeFile}"],
|
|
159
|
+
autoAttachChildProcesses: true,
|
|
160
|
+
console: "integratedTerminal",
|
|
161
|
+
name: "Debug Current Test File",
|
|
162
|
+
program: "${workspaceRoot}/node_modules/vitest/vitest.mjs",
|
|
163
|
+
request: "launch",
|
|
164
|
+
skipFiles: ["<node_internals>/**", "**/node_modules/**"],
|
|
165
|
+
smartStep: true,
|
|
166
|
+
type: "node"
|
|
167
|
+
}],
|
|
168
|
+
extensions: ["vitest.explorer"]
|
|
169
|
+
})
|
|
170
|
+
],
|
|
171
|
+
files: { "vitest.config.ts": `import { defineConfig } from "vitest/config";
|
|
172
|
+
|
|
173
|
+
export default defineConfig({
|
|
174
|
+
test: {
|
|
175
|
+
clearMocks: true,
|
|
176
|
+
coverage: {
|
|
177
|
+
${coverage.exclude?.length ? `exclude: ${JSON.stringify(coverage.exclude)},
|
|
178
|
+
` : ""}include: ${JSON.stringify(coverage.include)},
|
|
179
|
+
reporter: ["html", "lcov"],
|
|
180
|
+
},${environment ? `
|
|
181
|
+
environment: "${environment}",` : ""}
|
|
182
|
+
exclude: [${excludeText.slice(1, excludeText.length - 1)}],
|
|
183
|
+
setupFiles: ["console-fail-test/setup"],
|
|
184
|
+
},
|
|
185
|
+
});
|
|
186
|
+
` }
|
|
187
|
+
};
|
|
188
|
+
},
|
|
189
|
+
transition() {
|
|
190
|
+
return { addons: [
|
|
191
|
+
blockRemoveDependencies({ dependencies: [
|
|
192
|
+
"@vitest/coverage-istanbul",
|
|
193
|
+
"eslint-plugin-jest",
|
|
194
|
+
"eslint-plugin-mocha",
|
|
195
|
+
"eslint-plugin-vitest",
|
|
196
|
+
"jest mocha"
|
|
197
|
+
] }),
|
|
198
|
+
blockRemoveFiles({ files: [
|
|
199
|
+
".mocha*",
|
|
200
|
+
"jest.config.*",
|
|
201
|
+
"vitest.config.{c,j,m}*"
|
|
202
|
+
] }),
|
|
203
|
+
blockRemoveWorkflows({ workflows: ["test"] })
|
|
204
|
+
] };
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
//#endregion
|
|
208
|
+
export { blockVitest };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
//#region src/blocks/blockWebExt.d.ts
|
|
2
|
+
declare const blockWebExt: 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 { blockWebExt };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { base } from "../base.mjs";
|
|
2
|
+
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.mjs";
|
|
3
|
+
import { blockPackageJson } from "./blockPackageJson.mjs";
|
|
4
|
+
import { blockDevelopmentDocs } from "./blockDevelopmentDocs.mjs";
|
|
5
|
+
import { blockCSpell } from "./blockCSpell.mjs";
|
|
6
|
+
import { blockESLint } from "./blockESLint.mjs";
|
|
7
|
+
import { blockGitignore } from "./blockGitignore.mjs";
|
|
8
|
+
import { blockPrettier } from "./blockPrettier.mjs";
|
|
9
|
+
import { blockVitest } from "./blockVitest.mjs";
|
|
10
|
+
//#region src/blocks/blockWebExt.ts
|
|
11
|
+
const blockWebExt = base.createBlock({
|
|
12
|
+
about: { name: "Web-ext" },
|
|
13
|
+
produce() {
|
|
14
|
+
return { addons: [
|
|
15
|
+
blockCSpell({ ignorePaths: ["assets", "lib"] }),
|
|
16
|
+
blockDevelopmentDocs({ sections: {
|
|
17
|
+
Building: {
|
|
18
|
+
contents: `
|
|
19
|
+
Run [ESBuild](https://esbuild.github.io) locally to build source files:
|
|
20
|
+
|
|
21
|
+
\`\`\`shell
|
|
22
|
+
pnpm dev
|
|
23
|
+
\`\`\`
|
|
24
|
+
|
|
25
|
+
Add \`--watch\` to run the builder in a watch mode that continuously re-builds as you save files:
|
|
26
|
+
|
|
27
|
+
\`\`\`shell
|
|
28
|
+
pnpm dev --watch
|
|
29
|
+
\`\`\`
|
|
30
|
+
`,
|
|
31
|
+
innerSections: [
|
|
32
|
+
{
|
|
33
|
+
contents: `
|
|
34
|
+
Follow Google Chrome's _[Load an unpacked extension](https://developer.chrome.com/docs/extensions/mv3/getstarted/#unpacked)_ guide to load this repository's directory as an extension locally.
|
|
35
|
+
|
|
36
|
+
> ♻️ Remember to reload the extension in \`chrome://extensions\` whenever you make changes locally!
|
|
37
|
+
`,
|
|
38
|
+
heading: "Local Development with Chrome"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
contents: `
|
|
42
|
+
Follow Firefox's _[Temporary installation in Firefox](https://extensionworkshop.com/documentation/develop/temporary-installation-in-firefox/)_ guide to load this repository's directory as an extension locally.
|
|
43
|
+
|
|
44
|
+
You'll then need to authorize the extension to run on <https://github.com>:
|
|
45
|
+
|
|
46
|
+
1. Find and select the _Extensions_ icon in the top right of Firefox
|
|
47
|
+
2. Select the _"Manage Extension"_ gear icon next to _Refined Saved Replies_
|
|
48
|
+
3. Select the _"Always Allow on github.com"_ option
|
|
49
|
+
|
|
50
|
+
> ♻️ Remember to reload the extension in \`about:debugging#/runtime/this-firefox\` whenever you make changes locally!
|
|
51
|
+
`,
|
|
52
|
+
heading: "Local Development with Firefox"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
contents: `
|
|
56
|
+
Run [\`web-ext\`](https://extensionworkshop.com) to build a production-ready \`.zip\` under \`./web-ext-artifacts/\`:
|
|
57
|
+
|
|
58
|
+
\`\`\`shell
|
|
59
|
+
pnpm build
|
|
60
|
+
\`\`\`
|
|
61
|
+
|
|
62
|
+
Then upload that \`./web-ext-artifacts/refined_saved_replies-*.zip\` file to:
|
|
63
|
+
|
|
64
|
+
- [Chrome Web Store Developer Dashboard](https://chrome.google.com/webstore/devconsole)
|
|
65
|
+
- [Firefox Add-ons Developer Hub](https://addons.mozilla.org/en-US/developers/addon/submit/distribution)
|
|
66
|
+
`,
|
|
67
|
+
heading: "Production Builds"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
Linting: { contents: { items: [`- \`pnpm lint:web-ext\` ([web-ext](https://extensionworkshop.com)): Lints browser extension metadata after \`pnpm dev\` creates local files`] } }
|
|
72
|
+
} }),
|
|
73
|
+
blockESLint({ ignores: ["lib"] }),
|
|
74
|
+
blockGitHubActionsCI({ jobs: [{
|
|
75
|
+
name: "Build",
|
|
76
|
+
steps: [{ run: "pnpm build" }]
|
|
77
|
+
}, {
|
|
78
|
+
name: "Lint Web-ext",
|
|
79
|
+
steps: [{ run: "pnpm dev" }, { run: "pnpm lint:web-ext" }]
|
|
80
|
+
}] }),
|
|
81
|
+
blockGitignore({ ignores: [
|
|
82
|
+
"*.zip",
|
|
83
|
+
"/lib",
|
|
84
|
+
"web-ext-artifacts"
|
|
85
|
+
] }),
|
|
86
|
+
blockPackageJson({ properties: {
|
|
87
|
+
devDependencies: {
|
|
88
|
+
esbuild: "^0.25.0",
|
|
89
|
+
"web-ext": "^8.3.0"
|
|
90
|
+
},
|
|
91
|
+
files: ["lib/"],
|
|
92
|
+
scripts: {
|
|
93
|
+
build: "web-ext build --overwrite-dest",
|
|
94
|
+
dev: "esbuild src/content-script.ts --bundle --minify --outfile=lib/content-script.js --sourcemap",
|
|
95
|
+
"lint:web-ext": "web-ext lint"
|
|
96
|
+
}
|
|
97
|
+
} }),
|
|
98
|
+
blockPrettier({ ignores: ["/lib", "assets/"] }),
|
|
99
|
+
blockVitest({ exclude: ["lib"] })
|
|
100
|
+
] };
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
//#endregion
|
|
104
|
+
export { blockWebExt };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { JobOrRunStep } from "../actions/steps.mjs";
|
|
2
|
+
//#region src/blocks/codecov/findCodecovStep.d.ts
|
|
3
|
+
declare const codecovTokenSecret = "${{ secrets.CODECOV_TOKEN }}";
|
|
4
|
+
declare function findCodecovStep(steps: JobOrRunStep[]): JobOrRunStep | undefined;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { codecovTokenSecret, findCodecovStep };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/blocks/codecov/findCodecovStep.ts
|
|
2
|
+
const codecovTokenSecret = "${{ secrets.CODECOV_TOKEN }}";
|
|
3
|
+
function findCodecovStep(steps) {
|
|
4
|
+
return steps.find((step) => typeof step.uses === "string" && step.uses.startsWith("codecov/codecov-action"));
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { codecovTokenSecret, findCodecovStep };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/blocks/eslint/blockESLintIntake.d.ts
|
|
2
|
+
declare function blockESLintIntake(sourceText: string): {
|
|
3
|
+
ignores: (string | (RegExp & string))[];
|
|
4
|
+
rules: {
|
|
5
|
+
entries: Record<string, "error" | "off" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
6
|
+
comment?: string | undefined;
|
|
7
|
+
}[];
|
|
8
|
+
} | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { blockESLintIntake };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { tryCatch } from "../../utils/tryCatch.mjs";
|
|
2
|
+
import "../blockESLintMoreStyling.mjs";
|
|
3
|
+
import { zRuleOptions } from "./schemas.mjs";
|
|
4
|
+
import JSON5 from "json5";
|
|
5
|
+
import { AST_NODE_TYPES, parse } from "@typescript-eslint/typescript-estree";
|
|
6
|
+
//#region src/blocks/eslint/blockESLintIntake.ts
|
|
7
|
+
function blockESLintIntake(sourceText) {
|
|
8
|
+
const configExport = tryCatch(() => parse(sourceText, {
|
|
9
|
+
comment: true,
|
|
10
|
+
loc: true,
|
|
11
|
+
range: true
|
|
12
|
+
}))?.body.find(nodeIsConfigExport);
|
|
13
|
+
if (!configExport) return;
|
|
14
|
+
const configArguments = configExport.declaration.arguments;
|
|
15
|
+
if (configArguments.length < 2) return;
|
|
16
|
+
const ignores = getConfigIgnores(configArguments[0]);
|
|
17
|
+
if (!ignores) return;
|
|
18
|
+
const rulesObject = getConfigRulesObject(configArguments.slice(1));
|
|
19
|
+
if (!rulesObject) return;
|
|
20
|
+
const rules = collectRulesObjectGroups(sourceText, rulesObject);
|
|
21
|
+
if (!rules) return;
|
|
22
|
+
return {
|
|
23
|
+
ignores,
|
|
24
|
+
rules
|
|
25
|
+
};
|
|
26
|
+
function areArraysEqual(a, b) {
|
|
27
|
+
if (a.length !== b.length) return false;
|
|
28
|
+
for (let i = 0; i < a.length; i++) if (a[i] !== b[i]) return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function collectRuleFromProperty(property) {
|
|
32
|
+
if (property.type !== AST_NODE_TYPES.Property || property.key.type !== AST_NODE_TYPES.Literal || typeof property.key.value !== "string") return;
|
|
33
|
+
const name = property.key.value;
|
|
34
|
+
const { data } = zRuleOptions.safeParse(JSON5.parse(sourceText.slice(...property.value.range)));
|
|
35
|
+
return data && {
|
|
36
|
+
entry: data,
|
|
37
|
+
name
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function collectRulesObjectGroups(sourceText, rulesObject) {
|
|
41
|
+
let previousNode;
|
|
42
|
+
let currentGroup;
|
|
43
|
+
const groups = [];
|
|
44
|
+
for (const property of rulesObject.properties) {
|
|
45
|
+
const comment = sourceText.slice((previousNode?.range[1] ?? rulesObject.range[0]) + 1, property.range[0]).replaceAll(/\/\/ ?|\t\s*/g, "").trim() || void 0;
|
|
46
|
+
if (comment === "Stylistic concerns that don't interfere with Prettier") break;
|
|
47
|
+
const rule = collectRuleFromProperty(property);
|
|
48
|
+
if (!rule) return;
|
|
49
|
+
if (!currentGroup || comment) {
|
|
50
|
+
currentGroup = {
|
|
51
|
+
comment,
|
|
52
|
+
entries: {}
|
|
53
|
+
};
|
|
54
|
+
groups.push(currentGroup);
|
|
55
|
+
}
|
|
56
|
+
currentGroup.entries[rule.name] = rule.entry;
|
|
57
|
+
previousNode = property;
|
|
58
|
+
}
|
|
59
|
+
return groups;
|
|
60
|
+
}
|
|
61
|
+
function getConfigIgnores(node) {
|
|
62
|
+
return node.type === AST_NODE_TYPES.ObjectExpression && node.properties.length === 1 && node.properties[0].type === AST_NODE_TYPES.Property && node.properties[0].key.type === AST_NODE_TYPES.Identifier && node.properties[0].key.name === "ignores" && node.properties[0].value.type === AST_NODE_TYPES.ArrayExpression && node.properties[0].value.elements.every((element) => element?.type === AST_NODE_TYPES.Literal && typeof element.value === "string") && node.properties[0].value.elements.map((element) => element.value);
|
|
63
|
+
}
|
|
64
|
+
function getConfigRulesObject(nodes) {
|
|
65
|
+
const configObject = nodes.find((node) => node.type === AST_NODE_TYPES.ObjectExpression && areArraysEqual(node.properties.map((property) => property.type === AST_NODE_TYPES.Property && property.key.type === AST_NODE_TYPES.Identifier ? property.key.name : void 0), [
|
|
66
|
+
"extends",
|
|
67
|
+
"files",
|
|
68
|
+
"languageOptions",
|
|
69
|
+
"rules",
|
|
70
|
+
"settings"
|
|
71
|
+
]));
|
|
72
|
+
if (!configObject) return;
|
|
73
|
+
const rulesObject = configObject.properties[3];
|
|
74
|
+
return rulesObject.type === AST_NODE_TYPES.Property && rulesObject.value.type === AST_NODE_TYPES.ObjectExpression && rulesObject.value;
|
|
75
|
+
}
|
|
76
|
+
function nodeIsConfigExport(node) {
|
|
77
|
+
return node.type === AST_NODE_TYPES.ExportDefaultDeclaration && node.declaration.type === AST_NODE_TYPES.CallExpression && nodeIsConfigFunction(node.declaration.callee);
|
|
78
|
+
}
|
|
79
|
+
function nodeIsConfigFunction(node) {
|
|
80
|
+
return node.type === AST_NODE_TYPES.MemberExpression && node.object.type === AST_NODE_TYPES.Identifier && node.object.name === "tseslint" && node.property.type === AST_NODE_TYPES.Identifier && node.property.name === "config";
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
//#endregion
|
|
84
|
+
export { blockESLintIntake };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { tryCatch } from "../../utils/tryCatch.mjs";
|
|
2
|
+
import { zConfigEmoji } from "./schemas.mjs";
|
|
3
|
+
import JSON5 from "json5";
|
|
4
|
+
import { AST_NODE_TYPES, parse } from "@typescript-eslint/typescript-estree";
|
|
5
|
+
//#region src/blocks/eslint/blockESLintPluginIntake.ts
|
|
6
|
+
function blockESLintPluginIntake(sourceText) {
|
|
7
|
+
const ast = tryCatch(() => parse(sourceText, {
|
|
8
|
+
comment: true,
|
|
9
|
+
loc: true,
|
|
10
|
+
range: true
|
|
11
|
+
}));
|
|
12
|
+
if (!ast) return;
|
|
13
|
+
const config = findConfig(ast.body);
|
|
14
|
+
if (!config) return;
|
|
15
|
+
const configEmoji = findConfigEmoji(config.properties);
|
|
16
|
+
if (!configEmoji) return;
|
|
17
|
+
const { data } = zConfigEmoji.safeParse(JSON5.parse(sourceText.slice(...configEmoji.range)));
|
|
18
|
+
return data && { configEmoji: data };
|
|
19
|
+
function findConfig(body) {
|
|
20
|
+
for (const node of body) if (node.type === AST_NODE_TYPES.VariableDeclaration && node.declarations[0].id.type === AST_NODE_TYPES.Identifier && node.declarations[0].id.name === "config" && node.declarations[0].init?.type === AST_NODE_TYPES.ObjectExpression) return node.declarations[0].init;
|
|
21
|
+
}
|
|
22
|
+
function findConfigEmoji(properties) {
|
|
23
|
+
for (const node of properties) if (node.type === AST_NODE_TYPES.Property && node.key.type === AST_NODE_TYPES.Identifier && node.key.name === "configEmoji" && node.value.type === AST_NODE_TYPES.ArrayExpression) return node.value;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { blockESLintPluginIntake };
|