create-typescript-app 2.50.0 → 2.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_virtual/rolldown_runtime.js +20 -0
- package/lib/base.d.ts +2 -3
- package/lib/base.d.ts.map +1 -1
- package/lib/base.js +6 -12
- package/lib/base.js.map +1 -1
- package/lib/blocks/actions/resolveUses.d.ts +0 -2
- package/lib/blocks/actions/resolveUses.js.map +1 -1
- package/lib/blocks/actions/steps.d.ts +0 -2
- package/lib/blocks/actions/steps.d.ts.map +1 -1
- package/lib/blocks/actions/steps.js +2 -2
- package/lib/blocks/actions/steps.js.map +1 -1
- package/lib/blocks/bin/getPrimaryBin.d.ts +0 -2
- package/lib/blocks/bin/getPrimaryBin.d.ts.map +1 -1
- package/lib/blocks/bin/getPrimaryBin.js.map +1 -1
- package/lib/blocks/blockAllContributors.d.ts +2 -3
- package/lib/blocks/blockAllContributors.d.ts.map +1 -1
- package/lib/blocks/blockAllContributors.js.map +1 -1
- package/lib/blocks/blockAreTheTypesWrong.d.ts +2 -3
- package/lib/blocks/blockAreTheTypesWrong.d.ts.map +1 -1
- package/lib/blocks/blockAreTheTypesWrong.js.map +1 -1
- package/lib/blocks/blockCSpell.d.ts +2 -3
- package/lib/blocks/blockCSpell.d.ts.map +1 -1
- package/lib/blocks/blockCSpell.js +2 -2
- package/lib/blocks/blockCSpell.js.map +1 -1
- package/lib/blocks/blockCTATransitions.d.ts +2 -3
- package/lib/blocks/blockCTATransitions.d.ts.map +1 -1
- package/lib/blocks/blockCTATransitions.js.map +1 -1
- package/lib/blocks/blockCodecov.d.ts +2 -3
- package/lib/blocks/blockCodecov.d.ts.map +1 -1
- package/lib/blocks/blockCodecov.js +2 -2
- package/lib/blocks/blockCodecov.js.map +1 -1
- package/lib/blocks/blockContributingDocs.d.ts +2 -3
- package/lib/blocks/blockContributingDocs.d.ts.map +1 -1
- package/lib/blocks/blockContributingDocs.js.map +1 -1
- package/lib/blocks/blockContributorCovenant.d.ts +2 -3
- package/lib/blocks/blockContributorCovenant.d.ts.map +1 -1
- package/lib/blocks/blockContributorCovenant.js.map +1 -1
- package/lib/blocks/blockDevelopmentDocs.d.ts +3 -4
- package/lib/blocks/blockDevelopmentDocs.d.ts.map +1 -1
- package/lib/blocks/blockDevelopmentDocs.js.map +1 -1
- package/lib/blocks/blockESLint.d.ts +13 -14
- package/lib/blocks/blockESLint.d.ts.map +1 -1
- package/lib/blocks/blockESLint.js.map +1 -1
- package/lib/blocks/blockESLintComments.d.ts +2 -3
- package/lib/blocks/blockESLintComments.d.ts.map +1 -1
- package/lib/blocks/blockESLintComments.js.map +1 -1
- package/lib/blocks/blockESLintJSDoc.d.ts +2 -3
- package/lib/blocks/blockESLintJSDoc.d.ts.map +1 -1
- package/lib/blocks/blockESLintJSDoc.js.map +1 -1
- package/lib/blocks/blockESLintJSONC.d.ts +2 -3
- package/lib/blocks/blockESLintJSONC.d.ts.map +1 -1
- package/lib/blocks/blockESLintJSONC.js.map +1 -1
- package/lib/blocks/blockESLintMarkdown.d.ts +2 -3
- package/lib/blocks/blockESLintMarkdown.d.ts.map +1 -1
- package/lib/blocks/blockESLintMarkdown.js.map +1 -1
- package/lib/blocks/blockESLintMoreStyling.d.ts +2 -3
- package/lib/blocks/blockESLintMoreStyling.d.ts.map +1 -1
- package/lib/blocks/blockESLintMoreStyling.js.map +1 -1
- package/lib/blocks/blockESLintNode.d.ts +2 -3
- package/lib/blocks/blockESLintNode.d.ts.map +1 -1
- package/lib/blocks/blockESLintNode.js.map +1 -1
- package/lib/blocks/blockESLintPackageJson.d.ts +2 -3
- package/lib/blocks/blockESLintPackageJson.d.ts.map +1 -1
- package/lib/blocks/blockESLintPackageJson.js.map +1 -1
- package/lib/blocks/blockESLintPerfectionist.d.ts +2 -3
- package/lib/blocks/blockESLintPerfectionist.d.ts.map +1 -1
- package/lib/blocks/blockESLintPerfectionist.js.map +1 -1
- package/lib/blocks/blockESLintPlugin.d.ts +2 -3
- package/lib/blocks/blockESLintPlugin.d.ts.map +1 -1
- package/lib/blocks/blockESLintPlugin.js.map +1 -1
- package/lib/blocks/blockESLintRegexp.d.ts +2 -3
- package/lib/blocks/blockESLintRegexp.d.ts.map +1 -1
- package/lib/blocks/blockESLintRegexp.js.map +1 -1
- package/lib/blocks/blockESLintYML.d.ts +2 -3
- package/lib/blocks/blockESLintYML.d.ts.map +1 -1
- package/lib/blocks/blockESLintYML.js.map +1 -1
- package/lib/blocks/blockExampleFiles.d.ts +2 -3
- package/lib/blocks/blockExampleFiles.d.ts.map +1 -1
- package/lib/blocks/blockExampleFiles.js.map +1 -1
- package/lib/blocks/blockFunding.d.ts +2 -3
- package/lib/blocks/blockFunding.d.ts.map +1 -1
- package/lib/blocks/blockFunding.js.map +1 -1
- package/lib/blocks/blockGitHubActionsCI.d.ts +3 -4
- package/lib/blocks/blockGitHubActionsCI.d.ts.map +1 -1
- package/lib/blocks/blockGitHubActionsCI.js +3 -3
- package/lib/blocks/blockGitHubActionsCI.js.map +1 -1
- package/lib/blocks/blockGitHubApps.d.ts +2 -3
- package/lib/blocks/blockGitHubApps.d.ts.map +1 -1
- package/lib/blocks/blockGitHubApps.js.map +1 -1
- package/lib/blocks/blockGitHubIssueTemplates.d.ts +2 -3
- package/lib/blocks/blockGitHubIssueTemplates.d.ts.map +1 -1
- package/lib/blocks/blockGitHubIssueTemplates.js.map +1 -1
- package/lib/blocks/blockGitHubPRTemplate.d.ts +2 -3
- package/lib/blocks/blockGitHubPRTemplate.d.ts.map +1 -1
- package/lib/blocks/blockGitHubPRTemplate.js.map +1 -1
- package/lib/blocks/blockGitignore.d.ts +2 -3
- package/lib/blocks/blockGitignore.d.ts.map +1 -1
- package/lib/blocks/blockGitignore.js.map +1 -1
- package/lib/blocks/blockKnip.d.ts +2 -3
- package/lib/blocks/blockKnip.d.ts.map +1 -1
- package/lib/blocks/blockKnip.js +1 -1
- package/lib/blocks/blockKnip.js.map +1 -1
- package/lib/blocks/blockMITLicense.d.ts +2 -3
- package/lib/blocks/blockMITLicense.d.ts.map +1 -1
- package/lib/blocks/blockMITLicense.js +1 -4
- package/lib/blocks/blockMITLicense.js.map +1 -1
- package/lib/blocks/blockMain.d.ts +2 -3
- package/lib/blocks/blockMain.d.ts.map +1 -1
- package/lib/blocks/blockMain.js.map +1 -1
- package/lib/blocks/blockMarkdownlint.d.ts +2 -3
- package/lib/blocks/blockMarkdownlint.d.ts.map +1 -1
- package/lib/blocks/blockMarkdownlint.js +3 -2
- package/lib/blocks/blockMarkdownlint.js.map +1 -1
- package/lib/blocks/blockNcc.d.ts +2 -3
- package/lib/blocks/blockNcc.d.ts.map +1 -1
- package/lib/blocks/blockNcc.js.map +1 -1
- package/lib/blocks/blockNvmrc.d.ts +2 -3
- package/lib/blocks/blockNvmrc.d.ts.map +1 -1
- package/lib/blocks/blockNvmrc.js.map +1 -1
- package/lib/blocks/blockOctoGuide.d.ts +2 -3
- package/lib/blocks/blockOctoGuide.d.ts.map +1 -1
- package/lib/blocks/blockOctoGuide.js +2 -2
- package/lib/blocks/blockOctoGuide.js.map +1 -1
- package/lib/blocks/blockOctoGuideStrict.d.ts +2 -3
- package/lib/blocks/blockOctoGuideStrict.d.ts.map +1 -1
- package/lib/blocks/blockOctoGuideStrict.js.map +1 -1
- package/lib/blocks/blockPackageJson.d.ts +10 -11
- package/lib/blocks/blockPackageJson.d.ts.map +1 -1
- package/lib/blocks/blockPackageJson.js +2 -8
- package/lib/blocks/blockPackageJson.js.map +1 -1
- package/lib/blocks/blockPnpmDedupe.d.ts +2 -3
- package/lib/blocks/blockPnpmDedupe.d.ts.map +1 -1
- package/lib/blocks/blockPnpmDedupe.js.map +1 -1
- package/lib/blocks/blockPrettier.d.ts +2 -3
- package/lib/blocks/blockPrettier.d.ts.map +1 -1
- package/lib/blocks/blockPrettier.js.map +1 -1
- package/lib/blocks/blockPrettierPluginCurly.d.ts +2 -3
- package/lib/blocks/blockPrettierPluginCurly.d.ts.map +1 -1
- package/lib/blocks/blockPrettierPluginCurly.js.map +1 -1
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts +2 -3
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts.map +1 -1
- package/lib/blocks/blockPrettierPluginPackageJson.js.map +1 -1
- package/lib/blocks/blockPrettierPluginSentencesPerLine.d.ts +2 -3
- package/lib/blocks/blockPrettierPluginSentencesPerLine.d.ts.map +1 -1
- package/lib/blocks/blockPrettierPluginSentencesPerLine.js.map +1 -1
- package/lib/blocks/blockPrettierPluginSh.d.ts +2 -3
- package/lib/blocks/blockPrettierPluginSh.d.ts.map +1 -1
- package/lib/blocks/blockPrettierPluginSh.js.map +1 -1
- package/lib/blocks/blockREADME.d.ts +3 -4
- package/lib/blocks/blockREADME.d.ts.map +1 -1
- package/lib/blocks/blockREADME.js +1 -2
- package/lib/blocks/blockREADME.js.map +1 -1
- package/lib/blocks/blockReleaseIt.d.ts +3 -4
- package/lib/blocks/blockReleaseIt.d.ts.map +1 -1
- package/lib/blocks/blockReleaseIt.js.map +1 -1
- package/lib/blocks/blockRemoveDependencies.d.ts +2 -3
- package/lib/blocks/blockRemoveDependencies.d.ts.map +1 -1
- package/lib/blocks/blockRemoveDependencies.js.map +1 -1
- package/lib/blocks/blockRemoveFiles.d.ts +2 -3
- package/lib/blocks/blockRemoveFiles.d.ts.map +1 -1
- package/lib/blocks/blockRemoveFiles.js.map +1 -1
- package/lib/blocks/blockRemoveWorkflows.d.ts +2 -3
- package/lib/blocks/blockRemoveWorkflows.d.ts.map +1 -1
- package/lib/blocks/blockRemoveWorkflows.js.map +1 -1
- package/lib/blocks/blockRenovate.d.ts +2 -3
- package/lib/blocks/blockRenovate.d.ts.map +1 -1
- package/lib/blocks/blockRenovate.js.map +1 -1
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts +2 -3
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts.map +1 -1
- package/lib/blocks/blockRepositoryBranchRuleset.js.map +1 -1
- package/lib/blocks/blockRepositoryLabels.d.ts +2 -3
- package/lib/blocks/blockRepositoryLabels.d.ts.map +1 -1
- package/lib/blocks/blockRepositoryLabels.js.map +1 -1
- package/lib/blocks/blockRepositorySecrets.d.ts +2 -3
- package/lib/blocks/blockRepositorySecrets.d.ts.map +1 -1
- package/lib/blocks/blockRepositorySecrets.js.map +1 -1
- package/lib/blocks/blockRepositorySettings.d.ts +2 -3
- package/lib/blocks/blockRepositorySettings.d.ts.map +1 -1
- package/lib/blocks/blockRepositorySettings.js +1 -2
- package/lib/blocks/blockRepositorySettings.js.map +1 -1
- package/lib/blocks/blockSecurityDocs.d.ts +2 -3
- package/lib/blocks/blockSecurityDocs.d.ts.map +1 -1
- package/lib/blocks/blockSecurityDocs.js.map +1 -1
- package/lib/blocks/blockTSDown.d.ts +2 -3
- package/lib/blocks/blockTSDown.d.ts.map +1 -1
- package/lib/blocks/blockTSDown.js +3 -2
- package/lib/blocks/blockTSDown.js.map +1 -1
- package/lib/blocks/blockTemplatedWith.d.ts +2 -3
- package/lib/blocks/blockTemplatedWith.d.ts.map +1 -1
- package/lib/blocks/blockTemplatedWith.js.map +1 -1
- package/lib/blocks/blockTypeScript.d.ts +2 -3
- package/lib/blocks/blockTypeScript.d.ts.map +1 -1
- package/lib/blocks/blockTypeScript.js +1 -1
- package/lib/blocks/blockTypeScript.js.map +1 -1
- package/lib/blocks/blockVSCode.d.ts +2 -3
- package/lib/blocks/blockVSCode.d.ts.map +1 -1
- package/lib/blocks/blockVSCode.js.map +1 -1
- package/lib/blocks/blockVitest.d.ts +2 -3
- package/lib/blocks/blockVitest.d.ts.map +1 -1
- package/lib/blocks/blockVitest.js +2 -2
- package/lib/blocks/blockVitest.js.map +1 -1
- package/lib/blocks/blockWebExt.d.ts +2 -3
- package/lib/blocks/blockWebExt.d.ts.map +1 -1
- package/lib/blocks/blockWebExt.js.map +1 -1
- package/lib/blocks/eslint/blockESLintIntake.d.ts +0 -1
- package/lib/blocks/eslint/blockESLintIntake.js +11 -13
- package/lib/blocks/eslint/blockESLintIntake.js.map +1 -1
- package/lib/blocks/eslint/blockESLintPluginIntake.d.ts +0 -1
- package/lib/blocks/eslint/blockESLintPluginIntake.js +3 -3
- package/lib/blocks/eslint/blockESLintPluginIntake.js.map +1 -1
- package/lib/blocks/eslint/schemas.d.ts +2 -4
- package/lib/blocks/eslint/schemas.d.ts.map +1 -1
- package/lib/blocks/eslint/schemas.js.map +1 -1
- package/lib/blocks/files/createJobName.d.ts +0 -2
- package/lib/blocks/files/createJobName.d.ts.map +1 -1
- package/lib/blocks/files/createJobName.js.map +1 -1
- package/lib/blocks/files/createMultiWorkflowFile.d.ts +0 -2
- package/lib/blocks/files/createMultiWorkflowFile.d.ts.map +1 -1
- package/lib/blocks/files/createMultiWorkflowFile.js.map +1 -1
- package/lib/blocks/files/createSoloWorkflowFile.d.ts.map +1 -1
- package/lib/blocks/files/createSoloWorkflowFile.js +1 -1
- package/lib/blocks/files/createSoloWorkflowFile.js.map +1 -1
- package/lib/blocks/files/formatIgnoreFile.d.ts +0 -2
- package/lib/blocks/files/formatIgnoreFile.d.ts.map +1 -1
- package/lib/blocks/files/formatIgnoreFile.js.map +1 -1
- package/lib/blocks/files/formatWorkflowYaml.d.ts +0 -2
- package/lib/blocks/files/formatWorkflowYaml.d.ts.map +1 -1
- package/lib/blocks/files/formatWorkflowYaml.js.map +1 -1
- package/lib/blocks/files/formatYaml.d.ts +0 -2
- package/lib/blocks/files/formatYaml.d.ts.map +1 -1
- package/lib/blocks/files/formatYaml.js.map +1 -1
- package/lib/blocks/files/removeUsesQuotes.d.ts +0 -2
- package/lib/blocks/files/removeUsesQuotes.d.ts.map +1 -1
- package/lib/blocks/files/removeUsesQuotes.js.map +1 -1
- package/lib/blocks/getInstallationSuggestions.d.ts +0 -2
- package/lib/blocks/getInstallationSuggestions.d.ts.map +1 -1
- package/lib/blocks/getInstallationSuggestions.js.map +1 -1
- package/lib/blocks/index.d.ts +73 -73
- package/lib/blocks/index.d.ts.map +1 -1
- package/lib/blocks/index.js.map +1 -1
- package/lib/blocks/intake/intakeFile.d.ts +0 -2
- package/lib/blocks/intake/intakeFile.js +3 -4
- package/lib/blocks/intake/intakeFile.js.map +1 -1
- package/lib/blocks/intake/intakeFileAsJson.d.ts +0 -2
- package/lib/blocks/intake/intakeFileAsJson.js +1 -1
- package/lib/blocks/intake/intakeFileAsJson.js.map +1 -1
- package/lib/blocks/intake/intakeFileAsYaml.d.ts +0 -2
- package/lib/blocks/intake/intakeFileAsYaml.js +1 -1
- package/lib/blocks/intake/intakeFileAsYaml.js.map +1 -1
- package/lib/blocks/intake/intakeFileDefineConfig.d.ts +0 -2
- package/lib/blocks/intake/intakeFileDefineConfig.js +4 -4
- package/lib/blocks/intake/intakeFileDefineConfig.js.map +1 -1
- package/lib/blocks/options.fakes.d.ts +0 -1
- package/lib/blocks/options.fakes.js.map +1 -1
- package/lib/blocks/outcomeLabels.d.ts +0 -1
- package/lib/blocks/outcomeLabels.js.map +1 -1
- package/lib/blocks/phases.d.ts +0 -1
- package/lib/blocks/phases.js.map +1 -1
- package/lib/constants.d.ts +0 -1
- package/lib/constants.js.map +1 -1
- package/lib/data/contributions.d.ts +0 -2
- package/lib/data/contributions.d.ts.map +1 -1
- package/lib/data/contributions.js.map +1 -1
- package/lib/data/packageData.d.ts +2 -4
- package/lib/data/packageData.d.ts.map +1 -1
- package/lib/data/packageData.js +1 -2
- package/lib/data/packageData.js.map +1 -1
- package/lib/index.d.ts +72 -72
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/inputs/inputFromDirectory.d.ts +2 -4
- package/lib/inputs/inputFromDirectory.d.ts.map +1 -1
- package/lib/inputs/inputFromDirectory.js.map +1 -1
- package/lib/inputs/inputFromOctokit.d.ts +2 -4
- package/lib/inputs/inputFromOctokit.d.ts.map +1 -1
- package/lib/inputs/inputFromOctokit.js +4 -4
- package/lib/inputs/inputFromOctokit.js.map +1 -1
- package/lib/options/readAccess.d.ts +0 -2
- package/lib/options/readAccess.js.map +1 -1
- package/lib/options/readAllContributors.d.ts +0 -2
- package/lib/options/readAllContributors.js.map +1 -1
- package/lib/options/readAuthor.d.ts +0 -2
- package/lib/options/readAuthor.js.map +1 -1
- package/lib/options/readBin.d.ts +0 -2
- package/lib/options/readBin.js.map +1 -1
- package/lib/options/readDescription.d.ts +0 -2
- package/lib/options/readDescription.js +3 -4
- package/lib/options/readDescription.js.map +1 -1
- package/lib/options/readDescriptionFromReadme.d.ts +0 -2
- package/lib/options/readDescriptionFromReadme.d.ts.map +1 -1
- package/lib/options/readDescriptionFromReadme.js +2 -2
- package/lib/options/readDescriptionFromReadme.js.map +1 -1
- package/lib/options/readDevelopmentDocumentation.d.ts +0 -2
- package/lib/options/readDevelopmentDocumentation.js +1 -1
- package/lib/options/readDevelopmentDocumentation.js.map +1 -1
- package/lib/options/readDocumentation.d.ts +0 -2
- package/lib/options/readDocumentation.js.map +1 -1
- package/lib/options/readEmailFromCodeOfConduct.d.ts +0 -2
- package/lib/options/readEmailFromCodeOfConduct.js.map +1 -1
- package/lib/options/readEmailFromGit.d.ts +0 -2
- package/lib/options/readEmailFromGit.js.map +1 -1
- package/lib/options/readEmailFromNpm.d.ts +0 -2
- package/lib/options/readEmailFromNpm.js.map +1 -1
- package/lib/options/readEmails.d.ts +0 -2
- package/lib/options/readEmails.d.ts.map +1 -1
- package/lib/options/readEmails.js.map +1 -1
- package/lib/options/readEmoji.d.ts +0 -2
- package/lib/options/readEmoji.d.ts.map +1 -1
- package/lib/options/readEmoji.js.map +1 -1
- package/lib/options/readExistingLabels.d.ts +0 -2
- package/lib/options/readExistingLabels.d.ts.map +1 -1
- package/lib/options/readExistingLabels.js.map +1 -1
- package/lib/options/readFileAsJson.d.ts +0 -2
- package/lib/options/readFileAsJson.d.ts.map +1 -1
- package/lib/options/readFileAsJson.js.map +1 -1
- package/lib/options/readFileSafe.d.ts +0 -2
- package/lib/options/readFileSafe.d.ts.map +1 -1
- package/lib/options/readFileSafe.js.map +1 -1
- package/lib/options/readFunding.d.ts +0 -2
- package/lib/options/readFunding.js.map +1 -1
- package/lib/options/readGitDefaults.d.ts +0 -2
- package/lib/options/readGitDefaults.js.map +1 -1
- package/lib/options/readGuide.d.ts +0 -2
- package/lib/options/readGuide.d.ts.map +1 -1
- package/lib/options/readGuide.js +2 -2
- package/lib/options/readGuide.js.map +1 -1
- package/lib/options/readKeywords.d.ts +0 -2
- package/lib/options/readKeywords.js.map +1 -1
- package/lib/options/readLogo.d.ts +0 -2
- package/lib/options/readLogo.d.ts.map +1 -1
- package/lib/options/readLogo.js +4 -5
- package/lib/options/readLogo.js.map +1 -1
- package/lib/options/readLogoSizing.d.ts +0 -2
- package/lib/options/readLogoSizing.d.ts.map +1 -1
- package/lib/options/readLogoSizing.js +2 -2
- package/lib/options/readLogoSizing.js.map +1 -1
- package/lib/options/readNode.d.ts +0 -2
- package/lib/options/readNode.d.ts.map +1 -1
- package/lib/options/readNode.js.map +1 -1
- package/lib/options/readNpmDefaults.d.ts +2 -4
- package/lib/options/readNpmDefaults.d.ts.map +1 -1
- package/lib/options/readNpmDefaults.js.map +1 -1
- package/lib/options/readOwner.d.ts +0 -2
- package/lib/options/readOwner.js.map +1 -1
- package/lib/options/readPackageAuthor.d.ts +0 -2
- package/lib/options/readPackageAuthor.d.ts.map +1 -1
- package/lib/options/readPackageAuthor.js.map +1 -1
- package/lib/options/readPackageData.d.ts +0 -2
- package/lib/options/readPackageData.js.map +1 -1
- package/lib/options/readPnpm.d.ts +0 -2
- package/lib/options/readPnpm.js.map +1 -1
- package/lib/options/readReadmeAdditional.d.ts +0 -2
- package/lib/options/readReadmeAdditional.d.ts.map +1 -1
- package/lib/options/readReadmeAdditional.js +2 -2
- package/lib/options/readReadmeAdditional.js.map +1 -1
- package/lib/options/readReadmeExplainer.d.ts +0 -2
- package/lib/options/readReadmeExplainer.d.ts.map +1 -1
- package/lib/options/readReadmeExplainer.js +2 -3
- package/lib/options/readReadmeExplainer.js.map +1 -1
- package/lib/options/readReadmeFootnotes.d.ts +0 -2
- package/lib/options/readReadmeFootnotes.d.ts.map +1 -1
- package/lib/options/readReadmeFootnotes.js +2 -2
- package/lib/options/readReadmeFootnotes.js.map +1 -1
- package/lib/options/readReadmeUsage.d.ts +0 -2
- package/lib/options/readReadmeUsage.d.ts.map +1 -1
- package/lib/options/readReadmeUsage.js +3 -4
- package/lib/options/readReadmeUsage.js.map +1 -1
- package/lib/options/readRepository.d.ts +0 -2
- package/lib/options/readRepository.d.ts.map +1 -1
- package/lib/options/readRepository.js.map +1 -1
- package/lib/options/readRulesetId.d.ts +0 -2
- package/lib/options/readRulesetId.js +2 -3
- package/lib/options/readRulesetId.js.map +1 -1
- package/lib/options/readTitle.d.ts +0 -2
- package/lib/options/readTitle.d.ts.map +1 -1
- package/lib/options/readTitle.js.map +1 -1
- package/lib/options/readWords.d.ts +0 -2
- package/lib/options/readWords.js +1 -2
- package/lib/options/readWords.js.map +1 -1
- package/lib/options/readWorkflowsVersions.d.ts +0 -2
- package/lib/options/readWorkflowsVersions.js.map +1 -1
- package/lib/package.d.ts +144 -0
- package/lib/package.d.ts.map +1 -0
- package/lib/presets/common.d.ts +69 -70
- package/lib/presets/common.d.ts.map +1 -1
- package/lib/presets/common.js.map +1 -1
- package/lib/presets/everything.d.ts +69 -70
- package/lib/presets/everything.d.ts.map +1 -1
- package/lib/presets/everything.js.map +1 -1
- package/lib/presets/index.d.ts +203 -203
- package/lib/presets/index.d.ts.map +1 -1
- package/lib/presets/index.js.map +1 -1
- package/lib/presets/minimal.d.ts +69 -70
- package/lib/presets/minimal.d.ts.map +1 -1
- package/lib/presets/minimal.js.map +1 -1
- package/lib/schemas.d.ts +0 -2
- package/lib/schemas.d.ts.map +1 -1
- package/lib/schemas.js.map +1 -1
- package/lib/template.d.ts +69 -70
- package/lib/template.d.ts.map +1 -1
- package/lib/template.js.map +1 -1
- package/lib/types.d.ts.map +1 -1
- package/lib/types.js +1 -0
- package/lib/utils/htmlToTextSafe.d.ts +0 -2
- package/lib/utils/htmlToTextSafe.d.ts.map +1 -1
- package/lib/utils/htmlToTextSafe.js.map +1 -1
- package/lib/utils/resolveBin.d.ts +0 -2
- package/lib/utils/resolveBin.d.ts.map +1 -1
- package/lib/utils/resolveBin.js.map +1 -1
- package/lib/utils/swallowError.d.ts +0 -2
- package/lib/utils/swallowError.d.ts.map +1 -1
- package/lib/utils/swallowError.js.map +1 -1
- package/lib/utils/swallowErrorAsync.d.ts +0 -2
- package/lib/utils/swallowErrorAsync.d.ts.map +1 -1
- package/lib/utils/swallowErrorAsync.js +1 -1
- package/lib/utils/swallowErrorAsync.js.map +1 -1
- package/lib/utils/trimPrecedingSlash.d.ts +0 -2
- package/lib/utils/trimPrecedingSlash.d.ts.map +1 -1
- package/lib/utils/trimPrecedingSlash.js.map +1 -1
- package/lib/utils/tryCatch.d.ts +0 -2
- package/lib/utils/tryCatch.d.ts.map +1 -1
- package/lib/utils/tryCatch.js +1 -1
- package/lib/utils/tryCatch.js.map +1 -1
- package/package.json +51 -55
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum94 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockESLintPlugin.d.ts
|
|
4
|
-
declare const blockESLintPlugin:
|
|
4
|
+
declare const blockESLintPlugin: bingo_stratum94.BlockWithAddons<{
|
|
5
5
|
configEmoji?: [string, string][] | undefined;
|
|
6
6
|
}, {
|
|
7
7
|
access: "public" | "restricted";
|
|
@@ -71,7 +71,6 @@ declare const blockESLintPlugin: bingo_stratum1070.BlockWithAddons<{
|
|
|
71
71
|
hash?: string | undefined;
|
|
72
72
|
}>> | undefined;
|
|
73
73
|
}>;
|
|
74
|
-
//# sourceMappingURL=blockESLintPlugin.d.ts.map
|
|
75
74
|
//#endregion
|
|
76
75
|
export { blockESLintPlugin };
|
|
77
76
|
//# sourceMappingURL=blockESLintPlugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockESLintPlugin.d.ts","names":[],"sources":["../../src/blocks/blockESLintPlugin.ts"],"sourcesContent":[],"mappings":";;;cAaa,
|
|
1
|
+
{"version":3,"file":"blockESLintPlugin.d.ts","names":[],"sources":["../../src/blocks/blockESLintPlugin.ts"],"sourcesContent":[],"mappings":";;;cAaa,mCAAiB;;;EAAjB,MAAA,EAAA,QAAA,GAAA,YA2QX;;;;;;;;;;IA3Q4B,WAAA,CAAA,EAAA,MAAA,GAAA,SAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockESLintPlugin.js","names":[],"sources":["../../src/blocks/blockESLintPlugin.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockCSpell } from \"./blockCSpell.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockESLint } from \"./blockESLint.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockREADME } from \"./blockREADME.js\";\nimport { blockVitest } from \"./blockVitest.js\";\nimport { blockESLintPluginIntake } from \"./eslint/blockESLintPluginIntake.js\";\nimport { zConfigEmoji } from \"./eslint/schemas.js\";\nimport { intakeFile } from \"./intake/intakeFile.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockESLintPlugin = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint Plugin\",\n\t},\n\taddons: {\n\t\tconfigEmoji: zConfigEmoji,\n\t},\n\tintake({ files }) {\n\t\tconst docGeneratorConfigRaw = intakeFile(files, [\n\t\t\t[\".eslint-doc-generatorrc.js\", \".eslint-doc-generatorrc.mjs\"],\n\t\t]);\n\n\t\treturn docGeneratorConfigRaw\n\t\t\t? blockESLintPluginIntake(docGeneratorConfigRaw[0])\n\t\t\t: undefined;\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { configEmoji } = addons;\n\t\tconst configFileName = `.eslint-doc-generatorrc.${options.type === \"commonjs\" ? \"mjs\" : \"js\"}`;\n\t\tconst pluginName = options.repository\n\t\t\t.replace(/^eslint-plugin-/, \"\")\n\t\t\t.replaceAll(/-\\w/g, (matched) => matched[1].toUpperCase());\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockCSpell({\n\t\t\t\t\twords: [\"eslint-doc-generatorrc\"],\n\t\t\t\t}),\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tBuilding: {\n\t\t\t\t\t\t\tinnerSections: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tcontents: `\nRun [\\`eslint-doc-generator\\`](https://github.com/bmish/eslint-doc-generator) to generate Markdown files documenting rules.\n\n\\`\\`\\`shell\npnpm build:docs\n\\`\\`\\`\n\t\t`,\n\t\t\t\t\t\t\t\t\theading: \"Building Docs\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tLinting: {\n\t\t\t\t\t\t\tcontents: {\n\t\t\t\t\t\t\t\titems: [\n\t\t\t\t\t\t\t\t\t`- \\`pnpm lint:docs\\` ([eslint-doc-generator](https://github.com/bmish/eslint-doc-generator)): Generates and validates documentation for ESLint rules`,\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockESLint({\n\t\t\t\t\textensions: ['eslintPlugin.configs[\"flat/recommended\"]'],\n\t\t\t\t\tignores: [configFileName, \"docs/rules/*/*.ts\"],\n\t\t\t\t\timports: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsource: {\n\t\t\t\t\t\t\t\tpackageName: \"eslint-plugin-eslint-plugin\",\n\t\t\t\t\t\t\t\tversion: \"6.4.0\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tspecifier: \"eslintPlugin\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Lint Docs\",\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t{ run: \"pnpm build || exit 0\" },\n\t\t\t\t\t\t\t\t{ run: \"pnpm lint:docs\" },\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockREADME({\n\t\t\t\t\tdefaultUsage: [\n\t\t\t\t\t\t`Add this plugin to the list of plugins in your [ESLint configuration file](https://eslint.org/docs/latest/use/configure/configuration-files):\n\n\\`\\`\\`shell\nnpm i ${options.repository} -D\n\\`\\`\\`\n\n\\`\\`\\`ts\nimport ${pluginName} from \"${options.repository}\";\n\nexport default [\n\t// (other plugins)\n\t${pluginName}.configs.recommended, // 👈\n];\n\\`\\`\\`\n\n### Rules\n\nThese are all set to \\`\"error\"\\` in the recommended config:\n\n<!-- begin auto-generated rules list --><!-- end auto-generated rules list -->`,\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdependencies: {\n\t\t\t\t\t\t\t\"@typescript-eslint/utils\": \"^8.29.0\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\t\t\"@typescript-eslint/rule-tester\": \"8.29.1\",\n\t\t\t\t\t\t\t\"eslint-doc-generator\": \"2.1.0\",\n\t\t\t\t\t\t\t\"eslint-plugin-eslint-plugin\": \"6.4.0\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\t\"build:docs\": \"pnpm build --no-dts && eslint-doc-generator\",\n\t\t\t\t\t\t\t\"lint:docs\": \"eslint-doc-generator --check\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockVitest({\n\t\t\t\t\tcoverage: {\n\t\t\t\t\t\texclude: [\"src/index.ts\", \"src/rules/index.ts\"],\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t[configFileName]: `import prettier from \"prettier\";\n\n/** @type {import('eslint-doc-generator').GenerateOptions} */\nconst config = {\n\t${configEmoji ? `configEmoji: ${JSON.stringify(configEmoji)},\\n\\t` : \"\"}postprocess: async (content, path) =>\n\t\tprettier.format(content, {\n\t\t\t...(await prettier.resolveConfig(path)),\n\t\t\tparser: \"markdown\",\n\t\t}),\n\truleDocTitleFormat: \"name\",\n};\n\nexport default config;\n`,\n\t\t\t},\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"pnpm build\"],\n\t\t\t\t\tphase: CommandPhase.Build,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"pnpm eslint-doc-generator --init-rule-docs\"],\n\t\t\t\t\tphase: CommandPhase.Process,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n\tsetup({ options }) {\n\t\tconst pluginName = options.repository.replace(\"eslint-plugin-\", \"\");\n\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\tsrc: {\n\t\t\t\t\t\"index.ts\": `import Module from \"node:module\";\n\nimport { rules } from \"./rules/index.js\";\n\nconst require = Module.createRequire(import.meta.url);\n\nconst { name, version } =\n\t// \\`import\\`ing here would bypass the TSConfig's \\`\"rootDir\": \"src\"\\`\n\trequire(\"../package.json\") as typeof import(\"../package.json\");\n\nexport const plugin = {\n\tconfigs: {\n\t\tget recommended() {\n\t\t\treturn recommended;\n\t\t},\n\t},\n\tmeta: { name, version },\n\trules,\n};\n\nconst recommended = {\n\tplugins: {\n\t\t\"${pluginName}\": plugin,\n\t},\n\trules: Object.fromEntries(\n\t\tObject.keys(rules).map((rule) => [\\`${pluginName}/\\${rule}\\`, \"error\"]),\n\t),\n};\n\nexport { rules };\n\nexport default plugin;\n`,\n\t\t\t\t\trules: {\n\t\t\t\t\t\t\"enums.test.ts\": `import { rule } from \"./enums.js\";\nimport { ruleTester } from \"./ruleTester.js\";\n\nruleTester.run(\"enums\", rule, {\n\tinvalid: [\n\t\t{\n\t\t\tcode: \\`enum Values {}\\`,\n\t\t\terrors: [\n\t\t\t\t{\n\t\t\t\t\tcolumn: 1,\n\t\t\t\t\tendColumn: 15,\n\t\t\t\t\tendLine: 1,\n\t\t\t\t\tline: 1,\n\t\t\t\t\tmessageId: \"enum\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t],\n\tvalid: [\\`const Values = {};\\`, \\`const Values = {} as const;\\`],\n});\n`,\n\t\t\t\t\t\t\"enums.ts\": `import { createRule } from \"../utils.js\";\n\nexport const rule = createRule({\n\tcreate(context) {\n\t\treturn {\n\t\t\tTSEnumDeclaration(node) {\n\t\t\t\tcontext.report({\n\t\t\t\t\tmessageId: \"enum\",\n\t\t\t\t\tnode,\n\t\t\t\t});\n\t\t\t},\n\t\t};\n\t},\n\tdefaultOptions: [],\n\tmeta: {\n\t\tdocs: {\n\t\t\tdescription: \"Avoid using TypeScript's enums.\",\n\t\t},\n\t\tmessages: {\n\t\t\tenum: \"This enum will not be allowed under TypeScript's --erasableSyntaxOnly.\",\n\t\t},\n\t\tschema: [],\n\t\ttype: \"problem\",\n\t},\n\tname: \"enums\",\n});\n`,\n\t\t\t\t\t\t\"index.ts\": `import { rule as enums } from \"./enums.js\";\n\nexport const rules = {\n\tenums,\n};\n`,\n\t\t\t\t\t\t\"ruleTester.ts\": `import { RuleTester } from \"@typescript-eslint/rule-tester\";\nimport * as vitest from \"vitest\";\n\nRuleTester.afterAll = vitest.afterAll;\nRuleTester.it = vitest.it;\nRuleTester.itOnly = vitest.it.only;\nRuleTester.describe = vitest.describe;\n\nexport const ruleTester = new RuleTester();\n`,\n\t\t\t\t\t},\n\t\t\t\t\t\"utils.ts\": `import { ESLintUtils } from \"@typescript-eslint/utils\";\n\nexport const createRule = ESLintUtils.RuleCreator(\n\t(name) =>\n\t\t\\`https://github.com/${options.owner}/${options.repository}/blob/main/docs/rules/\\${name}.md\\`,\n);\n`,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;;;;;;;;;AAaA,MAAa,oBAAoB,KAAK,YAAY;CACjD,OAAO,EACN,MAAM,
|
|
1
|
+
{"version":3,"file":"blockESLintPlugin.js","names":[],"sources":["../../src/blocks/blockESLintPlugin.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockCSpell } from \"./blockCSpell.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockESLint } from \"./blockESLint.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockREADME } from \"./blockREADME.js\";\nimport { blockVitest } from \"./blockVitest.js\";\nimport { blockESLintPluginIntake } from \"./eslint/blockESLintPluginIntake.js\";\nimport { zConfigEmoji } from \"./eslint/schemas.js\";\nimport { intakeFile } from \"./intake/intakeFile.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockESLintPlugin = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint Plugin\",\n\t},\n\taddons: {\n\t\tconfigEmoji: zConfigEmoji,\n\t},\n\tintake({ files }) {\n\t\tconst docGeneratorConfigRaw = intakeFile(files, [\n\t\t\t[\".eslint-doc-generatorrc.js\", \".eslint-doc-generatorrc.mjs\"],\n\t\t]);\n\n\t\treturn docGeneratorConfigRaw\n\t\t\t? blockESLintPluginIntake(docGeneratorConfigRaw[0])\n\t\t\t: undefined;\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { configEmoji } = addons;\n\t\tconst configFileName = `.eslint-doc-generatorrc.${options.type === \"commonjs\" ? \"mjs\" : \"js\"}`;\n\t\tconst pluginName = options.repository\n\t\t\t.replace(/^eslint-plugin-/, \"\")\n\t\t\t.replaceAll(/-\\w/g, (matched) => matched[1].toUpperCase());\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockCSpell({\n\t\t\t\t\twords: [\"eslint-doc-generatorrc\"],\n\t\t\t\t}),\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tBuilding: {\n\t\t\t\t\t\t\tinnerSections: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tcontents: `\nRun [\\`eslint-doc-generator\\`](https://github.com/bmish/eslint-doc-generator) to generate Markdown files documenting rules.\n\n\\`\\`\\`shell\npnpm build:docs\n\\`\\`\\`\n\t\t`,\n\t\t\t\t\t\t\t\t\theading: \"Building Docs\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tLinting: {\n\t\t\t\t\t\t\tcontents: {\n\t\t\t\t\t\t\t\titems: [\n\t\t\t\t\t\t\t\t\t`- \\`pnpm lint:docs\\` ([eslint-doc-generator](https://github.com/bmish/eslint-doc-generator)): Generates and validates documentation for ESLint rules`,\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockESLint({\n\t\t\t\t\textensions: ['eslintPlugin.configs[\"flat/recommended\"]'],\n\t\t\t\t\tignores: [configFileName, \"docs/rules/*/*.ts\"],\n\t\t\t\t\timports: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsource: {\n\t\t\t\t\t\t\t\tpackageName: \"eslint-plugin-eslint-plugin\",\n\t\t\t\t\t\t\t\tversion: \"6.4.0\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tspecifier: \"eslintPlugin\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Lint Docs\",\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t{ run: \"pnpm build || exit 0\" },\n\t\t\t\t\t\t\t\t{ run: \"pnpm lint:docs\" },\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockREADME({\n\t\t\t\t\tdefaultUsage: [\n\t\t\t\t\t\t`Add this plugin to the list of plugins in your [ESLint configuration file](https://eslint.org/docs/latest/use/configure/configuration-files):\n\n\\`\\`\\`shell\nnpm i ${options.repository} -D\n\\`\\`\\`\n\n\\`\\`\\`ts\nimport ${pluginName} from \"${options.repository}\";\n\nexport default [\n\t// (other plugins)\n\t${pluginName}.configs.recommended, // 👈\n];\n\\`\\`\\`\n\n### Rules\n\nThese are all set to \\`\"error\"\\` in the recommended config:\n\n<!-- begin auto-generated rules list --><!-- end auto-generated rules list -->`,\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdependencies: {\n\t\t\t\t\t\t\t\"@typescript-eslint/utils\": \"^8.29.0\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\t\t\"@typescript-eslint/rule-tester\": \"8.29.1\",\n\t\t\t\t\t\t\t\"eslint-doc-generator\": \"2.1.0\",\n\t\t\t\t\t\t\t\"eslint-plugin-eslint-plugin\": \"6.4.0\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\t\"build:docs\": \"pnpm build --no-dts && eslint-doc-generator\",\n\t\t\t\t\t\t\t\"lint:docs\": \"eslint-doc-generator --check\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockVitest({\n\t\t\t\t\tcoverage: {\n\t\t\t\t\t\texclude: [\"src/index.ts\", \"src/rules/index.ts\"],\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t[configFileName]: `import prettier from \"prettier\";\n\n/** @type {import('eslint-doc-generator').GenerateOptions} */\nconst config = {\n\t${configEmoji ? `configEmoji: ${JSON.stringify(configEmoji)},\\n\\t` : \"\"}postprocess: async (content, path) =>\n\t\tprettier.format(content, {\n\t\t\t...(await prettier.resolveConfig(path)),\n\t\t\tparser: \"markdown\",\n\t\t}),\n\truleDocTitleFormat: \"name\",\n};\n\nexport default config;\n`,\n\t\t\t},\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"pnpm build\"],\n\t\t\t\t\tphase: CommandPhase.Build,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"pnpm eslint-doc-generator --init-rule-docs\"],\n\t\t\t\t\tphase: CommandPhase.Process,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n\tsetup({ options }) {\n\t\tconst pluginName = options.repository.replace(\"eslint-plugin-\", \"\");\n\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\tsrc: {\n\t\t\t\t\t\"index.ts\": `import Module from \"node:module\";\n\nimport { rules } from \"./rules/index.js\";\n\nconst require = Module.createRequire(import.meta.url);\n\nconst { name, version } =\n\t// \\`import\\`ing here would bypass the TSConfig's \\`\"rootDir\": \"src\"\\`\n\trequire(\"../package.json\") as typeof import(\"../package.json\");\n\nexport const plugin = {\n\tconfigs: {\n\t\tget recommended() {\n\t\t\treturn recommended;\n\t\t},\n\t},\n\tmeta: { name, version },\n\trules,\n};\n\nconst recommended = {\n\tplugins: {\n\t\t\"${pluginName}\": plugin,\n\t},\n\trules: Object.fromEntries(\n\t\tObject.keys(rules).map((rule) => [\\`${pluginName}/\\${rule}\\`, \"error\"]),\n\t),\n};\n\nexport { rules };\n\nexport default plugin;\n`,\n\t\t\t\t\trules: {\n\t\t\t\t\t\t\"enums.test.ts\": `import { rule } from \"./enums.js\";\nimport { ruleTester } from \"./ruleTester.js\";\n\nruleTester.run(\"enums\", rule, {\n\tinvalid: [\n\t\t{\n\t\t\tcode: \\`enum Values {}\\`,\n\t\t\terrors: [\n\t\t\t\t{\n\t\t\t\t\tcolumn: 1,\n\t\t\t\t\tendColumn: 15,\n\t\t\t\t\tendLine: 1,\n\t\t\t\t\tline: 1,\n\t\t\t\t\tmessageId: \"enum\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t],\n\tvalid: [\\`const Values = {};\\`, \\`const Values = {} as const;\\`],\n});\n`,\n\t\t\t\t\t\t\"enums.ts\": `import { createRule } from \"../utils.js\";\n\nexport const rule = createRule({\n\tcreate(context) {\n\t\treturn {\n\t\t\tTSEnumDeclaration(node) {\n\t\t\t\tcontext.report({\n\t\t\t\t\tmessageId: \"enum\",\n\t\t\t\t\tnode,\n\t\t\t\t});\n\t\t\t},\n\t\t};\n\t},\n\tdefaultOptions: [],\n\tmeta: {\n\t\tdocs: {\n\t\t\tdescription: \"Avoid using TypeScript's enums.\",\n\t\t},\n\t\tmessages: {\n\t\t\tenum: \"This enum will not be allowed under TypeScript's --erasableSyntaxOnly.\",\n\t\t},\n\t\tschema: [],\n\t\ttype: \"problem\",\n\t},\n\tname: \"enums\",\n});\n`,\n\t\t\t\t\t\t\"index.ts\": `import { rule as enums } from \"./enums.js\";\n\nexport const rules = {\n\tenums,\n};\n`,\n\t\t\t\t\t\t\"ruleTester.ts\": `import { RuleTester } from \"@typescript-eslint/rule-tester\";\nimport * as vitest from \"vitest\";\n\nRuleTester.afterAll = vitest.afterAll;\nRuleTester.it = vitest.it;\nRuleTester.itOnly = vitest.it.only;\nRuleTester.describe = vitest.describe;\n\nexport const ruleTester = new RuleTester();\n`,\n\t\t\t\t\t},\n\t\t\t\t\t\"utils.ts\": `import { ESLintUtils } from \"@typescript-eslint/utils\";\n\nexport const createRule = ESLintUtils.RuleCreator(\n\t(name) =>\n\t\t\\`https://github.com/${options.owner}/${options.repository}/blob/main/docs/rules/\\${name}.md\\`,\n);\n`,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;;;;;;;;;AAaA,MAAa,oBAAoB,KAAK,YAAY;CACjD,OAAO,EACN,MAAM,iBACN;CACD,QAAQ,EACP,aAAa,cACb;CACD,OAAO,EAAE,SAAS;EACjB,MAAM,wBAAwB,WAAW,OAAO,CAC/C,CAAC,8BAA8B,8BAA8B,CAC7D,CAAC;AAEF,SAAO,wBACJ,wBAAwB,sBAAsB,GAAG,GACjD;;CAEJ,QAAQ,EAAE,QAAQ,WAAW;EAC5B,MAAM,EAAE,gBAAgB;EACxB,MAAM,iBAAiB,2BAA2B,QAAQ,SAAS,aAAa,QAAQ;EACxF,MAAM,aAAa,QAAQ,WACzB,QAAQ,mBAAmB,GAAG,CAC9B,WAAW,SAAS,YAAY,QAAQ,GAAG,aAAa,CAAC;AAE3D,SAAO;GACN,QAAQ;IACP,YAAY,EACX,OAAO,CAAC,yBAAyB,EACjC,CAAC;IACF,qBAAqB,EACpB,UAAU;KACT,UAAU,EACT,eAAe,CACd;MACC,UAAU;;;;;;;MAOV,SAAS;MACT,CACD,EACD;KACD,SAAS,EACR,UAAU,EACT,OAAO,CACN,uJACA,EACD,EACD;KACD,EACD,CAAC;IACF,YAAY;KACX,YAAY,CAAC,6CAA2C;KACxD,SAAS,CAAC,gBAAgB,oBAAoB;KAC9C,SAAS,CACR;MACC,QAAQ;OACP,aAAa;OACb,SAAS;OACT;MACD,WAAW;MACX,CACD;KACD,CAAC;IACF,qBAAqB,EACpB,MAAM,CACL;KACC,MAAM;KACN,OAAO,CACN,EAAE,KAAK,wBAAwB,EAC/B,EAAE,KAAK,kBAAkB,CACzB;KACD,CACD,EACD,CAAC;IACF,YAAY,EACX,cAAc,CACb;;;QAGE,QAAQ,WAAW;;;;SAIlB,WAAW,SAAS,QAAQ,WAAW;;;;GAI7C,WAAW;;;;;;;;gFASR,EACD,CAAC;IACF,iBAAiB,EAChB,YAAY;KACX,cAAc,EACb,4BAA4B,WAC5B;KACD,iBAAiB;MAChB,kCAAkC;MAClC,wBAAwB;MACxB,+BAA+B;MAC/B;KACD,SAAS;MACR,cAAc;MACd,aAAa;MACb;KACD,EACD,CAAC;IACF,YAAY,EACX,UAAU,EACT,SAAS,CAAC,gBAAgB,qBAAqB,EAC/C,EACD,CAAC;IACF;GACD,OAAO,GACL,iBAAiB;;;;GAInB,cAAc,gBAAgB,KAAK,UAAU,YAAY,CAAC,SAAS,GAAG;;;;;;;;;GAUrE;GACD,SAAS,CACR;IACC,UAAU,CAAC,aAAa;IACxB,OAAO,aAAa;IACpB,EACD;IACC,UAAU,CAAC,6CAA6C;IACxD,OAAO,aAAa;IACpB,CACD;GACD;;CAEF,MAAM,EAAE,WAAW;EAClB,MAAM,aAAa,QAAQ,WAAW,QAAQ,kBAAkB,GAAG;AAEnE,SAAO,EACN,OAAO,EACN,KAAK;GACJ,YAAY;;;;;;;;;;;;;;;;;;;;;;KAsBZ,WAAW;;;wCAGwB,WAAW;;;;;;;;GAQ9C,OAAO;IACN,iBAAiB;;;;;;;;;;;;;;;;;;;;;IAqBjB,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;IA2BZ,YAAY;;;;;;IAMZ,iBAAiB;;;;;;;;;;IAUjB;GACD,YAAY;;;;yBAIQ,QAAQ,MAAM,GAAG,QAAQ,WAAW;;;GAGxD,EACD,EACD;;CAEF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum95 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockESLintRegexp.d.ts
|
|
4
|
-
declare const blockESLintRegexp:
|
|
4
|
+
declare const blockESLintRegexp: bingo_stratum95.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -69,7 +69,6 @@ declare const blockESLintRegexp: bingo_stratum1072.BlockWithoutAddons<{
|
|
|
69
69
|
hash?: string | undefined;
|
|
70
70
|
}>> | undefined;
|
|
71
71
|
}>;
|
|
72
|
-
//# sourceMappingURL=blockESLintRegexp.d.ts.map
|
|
73
72
|
//#endregion
|
|
74
73
|
export { blockESLintRegexp };
|
|
75
74
|
//# sourceMappingURL=blockESLintRegexp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockESLintRegexp.d.ts","names":[],"sources":["../../src/blocks/blockESLintRegexp.ts"],"sourcesContent":[],"mappings":";;;cAGa,
|
|
1
|
+
{"version":3,"file":"blockESLintRegexp.d.ts","names":[],"sources":["../../src/blocks/blockESLintRegexp.ts"],"sourcesContent":[],"mappings":";;;cAGa,mCAAiB;;;EAAjB,SAAA,EAAA,MAAA;;;;;;;;;;EAAiB,KAAA,EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockESLintRegexp.js","names":[],"sources":["../../src/blocks/blockESLintRegexp.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockESLint } from \"./blockESLint.js\";\n\nexport const blockESLintRegexp = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint Regexp Plugin\",\n\t},\n\tproduce() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockESLint({\n\t\t\t\t\textensions: [`regexp.configs[\"flat/recommended\"]`],\n\t\t\t\t\timports: [\n\t\t\t\t\t\t{ source: \"eslint-plugin-regexp\", specifier: \"* as regexp\" },\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;AAGA,MAAa,oBAAoB,KAAK,YAAY;CACjD,OAAO,EACN,MAAM,
|
|
1
|
+
{"version":3,"file":"blockESLintRegexp.js","names":[],"sources":["../../src/blocks/blockESLintRegexp.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockESLint } from \"./blockESLint.js\";\n\nexport const blockESLintRegexp = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint Regexp Plugin\",\n\t},\n\tproduce() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockESLint({\n\t\t\t\t\textensions: [`regexp.configs[\"flat/recommended\"]`],\n\t\t\t\t\timports: [\n\t\t\t\t\t\t{ source: \"eslint-plugin-regexp\", specifier: \"* as regexp\" },\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;AAGA,MAAa,oBAAoB,KAAK,YAAY;CACjD,OAAO,EACN,MAAM,wBACN;CACD,UAAU;AACT,SAAO,EACN,QAAQ,CACP,YAAY;GACX,YAAY,CAAC,qCAAqC;GAClD,SAAS,CACR;IAAE,QAAQ;IAAwB,WAAW;IAAe,CAC5D;GACD,CAAC,CACF,EACD;;CAEF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum96 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockESLintYML.d.ts
|
|
4
|
-
declare const blockESLintYML:
|
|
4
|
+
declare const blockESLintYML: bingo_stratum96.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -69,7 +69,6 @@ declare const blockESLintYML: bingo_stratum1073.BlockWithoutAddons<{
|
|
|
69
69
|
hash?: string | undefined;
|
|
70
70
|
}>> | undefined;
|
|
71
71
|
}>;
|
|
72
|
-
//# sourceMappingURL=blockESLintYML.d.ts.map
|
|
73
72
|
//#endregion
|
|
74
73
|
export { blockESLintYML };
|
|
75
74
|
//# sourceMappingURL=blockESLintYML.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockESLintYML.d.ts","names":[],"sources":["../../src/blocks/blockESLintYML.ts"],"sourcesContent":[],"mappings":";;;cAGa,
|
|
1
|
+
{"version":3,"file":"blockESLintYML.d.ts","names":[],"sources":["../../src/blocks/blockESLintYML.ts"],"sourcesContent":[],"mappings":";;;cAGa,gCAAc;;;EAAd,SAAA,EAAA,MAuCX;;;;;;;;;;EAvCyB,KAAA,EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockESLintYML.js","names":[],"sources":["../../src/blocks/blockESLintYML.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockESLint } from \"./blockESLint.js\";\n\nexport const blockESLintYML = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint YML Plugin\",\n\t},\n\tproduce() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockESLint({\n\t\t\t\t\textensions: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\textends: [\n\t\t\t\t\t\t\t\t'yml.configs[\"flat/standard\"]',\n\t\t\t\t\t\t\t\t'yml.configs[\"flat/prettier\"]',\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tfiles: [\"**/*.{yml,yaml}\"],\n\t\t\t\t\t\t\trules: {\n\t\t\t\t\t\t\t\t\"yml/file-extension\": [\"error\", { extension: \"yml\" }],\n\t\t\t\t\t\t\t\t\"yml/sort-keys\": [\n\t\t\t\t\t\t\t\t\t\"error\",\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\torder: { type: \"asc\" },\n\t\t\t\t\t\t\t\t\t\tpathPattern: \"^.*$\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\"yml/sort-sequence-values\": [\n\t\t\t\t\t\t\t\t\t\"error\",\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\torder: { type: \"asc\" },\n\t\t\t\t\t\t\t\t\t\tpathPattern: \"^.*$\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\timports: [{ source: \"eslint-plugin-yml\", specifier: \"yml\" }],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;AAGA,MAAa,iBAAiB,KAAK,YAAY;CAC9C,OAAO,EACN,MAAM,
|
|
1
|
+
{"version":3,"file":"blockESLintYML.js","names":[],"sources":["../../src/blocks/blockESLintYML.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockESLint } from \"./blockESLint.js\";\n\nexport const blockESLintYML = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint YML Plugin\",\n\t},\n\tproduce() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockESLint({\n\t\t\t\t\textensions: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\textends: [\n\t\t\t\t\t\t\t\t'yml.configs[\"flat/standard\"]',\n\t\t\t\t\t\t\t\t'yml.configs[\"flat/prettier\"]',\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tfiles: [\"**/*.{yml,yaml}\"],\n\t\t\t\t\t\t\trules: {\n\t\t\t\t\t\t\t\t\"yml/file-extension\": [\"error\", { extension: \"yml\" }],\n\t\t\t\t\t\t\t\t\"yml/sort-keys\": [\n\t\t\t\t\t\t\t\t\t\"error\",\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\torder: { type: \"asc\" },\n\t\t\t\t\t\t\t\t\t\tpathPattern: \"^.*$\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\"yml/sort-sequence-values\": [\n\t\t\t\t\t\t\t\t\t\"error\",\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\torder: { type: \"asc\" },\n\t\t\t\t\t\t\t\t\t\tpathPattern: \"^.*$\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\timports: [{ source: \"eslint-plugin-yml\", specifier: \"yml\" }],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;AAGA,MAAa,iBAAiB,KAAK,YAAY;CAC9C,OAAO,EACN,MAAM,qBACN;CACD,UAAU;AACT,SAAO,EACN,QAAQ,CACP,YAAY;GACX,YAAY,CACX;IACC,SAAS,CACR,kCACA,iCACA;IACD,OAAO,CAAC,kBAAkB;IAC1B,OAAO;KACN,sBAAsB,CAAC,SAAS,EAAE,WAAW,OAAO,CAAC;KACrD,iBAAiB,CAChB,SACA;MACC,OAAO,EAAE,MAAM,OAAO;MACtB,aAAa;MACb,CACD;KACD,4BAA4B,CAC3B,SACA;MACC,OAAO,EAAE,MAAM,OAAO;MACtB,aAAa;MACb,CACD;KACD;IACD,CACD;GACD,SAAS,CAAC;IAAE,QAAQ;IAAqB,WAAW;IAAO,CAAC;GAC5D,CAAC,CACF,EACD;;CAEF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum97 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockExampleFiles.d.ts
|
|
4
|
-
declare const blockExampleFiles:
|
|
4
|
+
declare const blockExampleFiles: bingo_stratum97.BlockWithAddons<{
|
|
5
5
|
usage: string[];
|
|
6
6
|
files: Record<string, string>;
|
|
7
7
|
}, {
|
|
@@ -72,7 +72,6 @@ declare const blockExampleFiles: bingo_stratum1074.BlockWithAddons<{
|
|
|
72
72
|
hash?: string | undefined;
|
|
73
73
|
}>> | undefined;
|
|
74
74
|
}>;
|
|
75
|
-
//# sourceMappingURL=blockExampleFiles.d.ts.map
|
|
76
75
|
//#endregion
|
|
77
76
|
export { blockExampleFiles };
|
|
78
77
|
//# sourceMappingURL=blockExampleFiles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockExampleFiles.d.ts","names":[],"sources":["../../src/blocks/blockExampleFiles.ts"],"sourcesContent":[],"mappings":";;;cAKa,
|
|
1
|
+
{"version":3,"file":"blockExampleFiles.d.ts","names":[],"sources":["../../src/blocks/blockExampleFiles.ts"],"sourcesContent":[],"mappings":";;;cAKa,mCAAiB;;;AAA9B,CAAA,EAAA;;;;;;;;;;;IAA8B,WAAA,CAAA,EAAA,MAAA,GAAA,SAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockExampleFiles.js","names":[],"sources":["../../src/blocks/blockExampleFiles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { blockREADME } from \"./blockREADME.js\";\n\nexport const blockExampleFiles = base.createBlock({\n\tabout: {\n\t\tname: \"Example Files\",\n\t},\n\taddons: {\n\t\tfiles: z.record(z.string()).default({}),\n\t\tusage: z.array(z.string()).default([]),\n\t},\n\tsetup({ addons }) {\n\t\tconst { usage } = addons;\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockREADME({\n\t\t\t\t\tdefaultUsage: usage,\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\tsrc: addons.files,\n\t\t\t},\n\t\t};\n\t},\n\t// TODO: Make produce() optional, so this empty-ish produce() can be removed\n\t// https://github.com/JoshuaKGoldberg/bingo/issues/295\n\tproduce() {\n\t\treturn {};\n\t},\n});\n"],"mappings":";;;;;AAKA,MAAa,oBAAoB,KAAK,YAAY;CACjD,OAAO,EACN,MAAM,
|
|
1
|
+
{"version":3,"file":"blockExampleFiles.js","names":[],"sources":["../../src/blocks/blockExampleFiles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { blockREADME } from \"./blockREADME.js\";\n\nexport const blockExampleFiles = base.createBlock({\n\tabout: {\n\t\tname: \"Example Files\",\n\t},\n\taddons: {\n\t\tfiles: z.record(z.string()).default({}),\n\t\tusage: z.array(z.string()).default([]),\n\t},\n\tsetup({ addons }) {\n\t\tconst { usage } = addons;\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockREADME({\n\t\t\t\t\tdefaultUsage: usage,\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\tsrc: addons.files,\n\t\t\t},\n\t\t};\n\t},\n\t// TODO: Make produce() optional, so this empty-ish produce() can be removed\n\t// https://github.com/JoshuaKGoldberg/bingo/issues/295\n\tproduce() {\n\t\treturn {};\n\t},\n});\n"],"mappings":";;;;;AAKA,MAAa,oBAAoB,KAAK,YAAY;CACjD,OAAO,EACN,MAAM,iBACN;CACD,QAAQ;EACP,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC;EACvC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC;EACtC;CACD,MAAM,EAAE,UAAU;EACjB,MAAM,EAAE,UAAU;AAElB,SAAO;GACN,QAAQ,CACP,YAAY,EACX,cAAc,OACd,CAAC,CACF;GACD,OAAO,EACN,KAAK,OAAO,OACZ;GACD;;CAIF,UAAU;AACT,SAAO,EAAE;;CAEV,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum98 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockFunding.d.ts
|
|
4
|
-
declare const blockFunding:
|
|
4
|
+
declare const blockFunding: bingo_stratum98.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -69,7 +69,6 @@ declare const blockFunding: bingo_stratum1075.BlockWithoutAddons<{
|
|
|
69
69
|
hash?: string | undefined;
|
|
70
70
|
}>> | undefined;
|
|
71
71
|
}>;
|
|
72
|
-
//# sourceMappingURL=blockFunding.d.ts.map
|
|
73
72
|
//#endregion
|
|
74
73
|
export { blockFunding };
|
|
75
74
|
//# sourceMappingURL=blockFunding.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockFunding.d.ts","names":[],"sources":["../../src/blocks/blockFunding.ts"],"sourcesContent":[],"mappings":";;;cAGa,
|
|
1
|
+
{"version":3,"file":"blockFunding.d.ts","names":[],"sources":["../../src/blocks/blockFunding.ts"],"sourcesContent":[],"mappings":";;;cAGa,8BAAY;;;EAAZ,SAAA,EAAA,MAcX;;;;;;;;;;EAduB,KAAA,EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockFunding.js","names":[],"sources":["../../src/blocks/blockFunding.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { formatYaml } from \"./files/formatYaml.js\";\n\nexport const blockFunding = base.createBlock({\n\tabout: {\n\t\tname: \"Funding\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\t\"FUNDING.yml\":\n\t\t\t\t\t\toptions.funding && formatYaml({ github: options.funding }),\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":";;;;AAGA,MAAa,eAAe,KAAK,YAAY;CAC5C,OAAO,EACN,MAAM,
|
|
1
|
+
{"version":3,"file":"blockFunding.js","names":[],"sources":["../../src/blocks/blockFunding.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { formatYaml } from \"./files/formatYaml.js\";\n\nexport const blockFunding = base.createBlock({\n\tabout: {\n\t\tname: \"Funding\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\t\"FUNDING.yml\":\n\t\t\t\t\t\toptions.funding && formatYaml({ github: options.funding }),\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":";;;;AAGA,MAAa,eAAe,KAAK,YAAY;CAC5C,OAAO,EACN,MAAM,WACN;CACD,QAAQ,EAAE,WAAW;AACpB,SAAO,EACN,OAAO,EACN,WAAW,EACV,eACC,QAAQ,WAAW,WAAW,EAAE,QAAQ,QAAQ,SAAS,CAAC,EAC3D,EACD,EACD;;CAEF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum99 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockGitHubActionsCI.d.ts
|
|
4
|
-
declare const blockGitHubActionsCI:
|
|
4
|
+
declare const blockGitHubActionsCI: bingo_stratum99.BlockWithAddons<{
|
|
5
5
|
jobs?: {
|
|
6
6
|
name: string;
|
|
7
7
|
steps: ({
|
|
@@ -13,8 +13,8 @@ declare const blockGitHubActionsCI: bingo_stratum1076.BlockWithAddons<{
|
|
|
13
13
|
} | {
|
|
14
14
|
uses: string;
|
|
15
15
|
}))[];
|
|
16
|
-
if?: string | undefined;
|
|
17
16
|
checkoutWith?: Record<string, string> | undefined;
|
|
17
|
+
if?: string | undefined;
|
|
18
18
|
}[] | undefined;
|
|
19
19
|
nodeVersion?: string | number | undefined;
|
|
20
20
|
}, {
|
|
@@ -85,7 +85,6 @@ declare const blockGitHubActionsCI: bingo_stratum1076.BlockWithAddons<{
|
|
|
85
85
|
hash?: string | undefined;
|
|
86
86
|
}>> | undefined;
|
|
87
87
|
}>;
|
|
88
|
-
//# sourceMappingURL=blockGitHubActionsCI.d.ts.map
|
|
89
88
|
//#endregion
|
|
90
89
|
export { blockGitHubActionsCI };
|
|
91
90
|
//# sourceMappingURL=blockGitHubActionsCI.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockGitHubActionsCI.d.ts","names":[],"sources":["../../src/blocks/blockGitHubActionsCI.ts"],"sourcesContent":[],"mappings":";;;cAWa,
|
|
1
|
+
{"version":3,"file":"blockGitHubActionsCI.d.ts","names":[],"sources":["../../src/blocks/blockGitHubActionsCI.ts"],"sourcesContent":[],"mappings":";;;cAWa,sCAAoB;;;IAApB,KAAA,EAAA,CAAA;;;;;;;;;;;;gBAAoB,MAAA,GAAA,MAAA,GAAA,SAAA;CAAA,EAAA"}
|
|
@@ -27,11 +27,11 @@ const blockGitHubActionsCI = base.createBlock({
|
|
|
27
27
|
"prepare",
|
|
28
28
|
"action.yml"
|
|
29
29
|
], ["runs", "steps"]);
|
|
30
|
-
if (!steps) return
|
|
30
|
+
if (!steps) return;
|
|
31
31
|
const setupNodeStep = steps.find((step) => typeof step.uses === "string" && step.uses.startsWith("actions/setup-node"));
|
|
32
|
-
if (!setupNodeStep) return
|
|
32
|
+
if (!setupNodeStep) return;
|
|
33
33
|
const nodeVersion = setupNodeStep.with?.["node-version"];
|
|
34
|
-
if (!nodeVersion) return
|
|
34
|
+
if (!nodeVersion) return;
|
|
35
35
|
return { nodeVersion };
|
|
36
36
|
},
|
|
37
37
|
produce({ addons, options }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockGitHubActionsCI.js","names":[],"sources":["../../src/blocks/blockGitHubActionsCI.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { resolveUses } from \"./actions/resolveUses.js\";\nimport { intakeFileYamlSteps, zActionStep } from \"./actions/steps.js\";\nimport { blockRemoveFiles } from \"./blockRemoveFiles.js\";\nimport { blockRepositoryBranchRuleset } from \"./blockRepositoryBranchRuleset.js\";\nimport { createMultiWorkflowFile } from \"./files/createMultiWorkflowFile.js\";\nimport { createSoloWorkflowFile } from \"./files/createSoloWorkflowFile.js\";\nimport { formatYaml } from \"./files/formatYaml.js\";\n\nexport const blockGitHubActionsCI = base.createBlock({\n\tabout: {\n\t\tname: \"GitHub Actions CI\",\n\t},\n\taddons: {\n\t\tjobs: z\n\t\t\t.array(\n\t\t\t\tz.object({\n\t\t\t\t\tcheckoutWith: z.record(z.string(), z.string()).optional(),\n\t\t\t\t\tif: z.string().optional(),\n\t\t\t\t\tname: z.string(),\n\t\t\t\t\tsteps: z.array(zActionStep),\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.optional(),\n\t\tnodeVersion: z.union([z.number(), z.string()]).optional(),\n\t},\n\tintake({ files }) {\n\t\tconst steps = intakeFileYamlSteps(\n\t\t\tfiles,\n\t\t\t[\".github\", \"actions\", \"prepare\", \"action.yml\"],\n\t\t\t[\"runs\", \"steps\"],\n\t\t);\n\t\tif (!steps) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\tconst setupNodeStep = steps.find(\n\t\t\t(step) =>\n\t\t\t\ttypeof step.uses === \"string\" &&\n\t\t\t\tstep.uses.startsWith(\"actions/setup-node\"),\n\t\t);\n\t\tif (!setupNodeStep) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\tconst nodeVersion = setupNodeStep.with?.[\"node-version\"];\n\t\tif (!nodeVersion) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\treturn { nodeVersion };\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { jobs, nodeVersion = options.node.pinned ?? options.node.minimum } =\n\t\t\taddons;\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockRepositoryBranchRuleset({\n\t\t\t\t\trequiredStatusChecks: jobs?.map((job) => job.name),\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\tactions: {\n\t\t\t\t\t\tprepare: {\n\t\t\t\t\t\t\t\"action.yml\": formatYaml({\n\t\t\t\t\t\t\t\tdescription: \"Prepares the repo for a typical CI job\",\n\t\t\t\t\t\t\t\tname: \"Prepare\",\n\t\t\t\t\t\t\t\truns: {\n\t\t\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tuses: resolveUses(\n\t\t\t\t\t\t\t\t\t\t\t\t\"pnpm/action-setup\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"v4\",\n\t\t\t\t\t\t\t\t\t\t\t\toptions.workflowsVersions,\n\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tuses: resolveUses(\n\t\t\t\t\t\t\t\t\t\t\t\t\"actions/setup-node\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"v4\",\n\t\t\t\t\t\t\t\t\t\t\t\toptions.workflowsVersions,\n\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\twith: {\n\t\t\t\t\t\t\t\t\t\t\t\tcache: \"pnpm\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"node-version\": nodeVersion,\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\trun: \"pnpm install --frozen-lockfile\",\n\t\t\t\t\t\t\t\t\t\t\tshell: \"bash\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tusing: \"composite\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tworkflows: {\n\t\t\t\t\t\t\"ci.yml\":\n\t\t\t\t\t\t\tjobs &&\n\t\t\t\t\t\t\tcreateMultiWorkflowFile({\n\t\t\t\t\t\t\t\tjobs: jobs.sort((a, b) => a.name.localeCompare(b.name)),\n\t\t\t\t\t\t\t\tname: \"CI\",\n\t\t\t\t\t\t\t\tworkflowsVersions: options.workflowsVersions,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\"pr-review-requested.yml\": createSoloWorkflowFile({\n\t\t\t\t\t\t\tname: \"PR Review Requested\",\n\t\t\t\t\t\t\ton: {\n\t\t\t\t\t\t\t\tpull_request_target: {\n\t\t\t\t\t\t\t\t\ttypes: [\"review_requested\"],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tpermissions: {\n\t\t\t\t\t\t\t\t\"pull-requests\": \"write\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tuses: resolveUses(\n\t\t\t\t\t\t\t\t\t\t\"actions-ecosystem/action-remove-labels\",\n\t\t\t\t\t\t\t\t\t\t\"v1\",\n\t\t\t\t\t\t\t\t\t\toptions.workflowsVersions,\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\twith: {\n\t\t\t\t\t\t\t\t\t\tlabels: \"status: waiting for author\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif: \"failure()\",\n\t\t\t\t\t\t\t\t\trun: 'echo \"Don\\'t worry if the previous step failed.\"\\necho \"See https://github.com/actions-ecosystem/action-remove-labels/issues/221.\"\\n',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t}),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockRemoveFiles({\n\t\t\t\t\tfiles: [\".circleci\", \"travis.yml\"],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;;;;;;AAWA,MAAa,uBAAuB,KAAK,YAAY;CACpD,OAAO,EACN,MAAM,
|
|
1
|
+
{"version":3,"file":"blockGitHubActionsCI.js","names":[],"sources":["../../src/blocks/blockGitHubActionsCI.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { resolveUses } from \"./actions/resolveUses.js\";\nimport { intakeFileYamlSteps, zActionStep } from \"./actions/steps.js\";\nimport { blockRemoveFiles } from \"./blockRemoveFiles.js\";\nimport { blockRepositoryBranchRuleset } from \"./blockRepositoryBranchRuleset.js\";\nimport { createMultiWorkflowFile } from \"./files/createMultiWorkflowFile.js\";\nimport { createSoloWorkflowFile } from \"./files/createSoloWorkflowFile.js\";\nimport { formatYaml } from \"./files/formatYaml.js\";\n\nexport const blockGitHubActionsCI = base.createBlock({\n\tabout: {\n\t\tname: \"GitHub Actions CI\",\n\t},\n\taddons: {\n\t\tjobs: z\n\t\t\t.array(\n\t\t\t\tz.object({\n\t\t\t\t\tcheckoutWith: z.record(z.string(), z.string()).optional(),\n\t\t\t\t\tif: z.string().optional(),\n\t\t\t\t\tname: z.string(),\n\t\t\t\t\tsteps: z.array(zActionStep),\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.optional(),\n\t\tnodeVersion: z.union([z.number(), z.string()]).optional(),\n\t},\n\tintake({ files }) {\n\t\tconst steps = intakeFileYamlSteps(\n\t\t\tfiles,\n\t\t\t[\".github\", \"actions\", \"prepare\", \"action.yml\"],\n\t\t\t[\"runs\", \"steps\"],\n\t\t);\n\t\tif (!steps) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\tconst setupNodeStep = steps.find(\n\t\t\t(step) =>\n\t\t\t\ttypeof step.uses === \"string\" &&\n\t\t\t\tstep.uses.startsWith(\"actions/setup-node\"),\n\t\t);\n\t\tif (!setupNodeStep) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\tconst nodeVersion = setupNodeStep.with?.[\"node-version\"];\n\t\tif (!nodeVersion) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\treturn { nodeVersion };\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { jobs, nodeVersion = options.node.pinned ?? options.node.minimum } =\n\t\t\taddons;\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockRepositoryBranchRuleset({\n\t\t\t\t\trequiredStatusChecks: jobs?.map((job) => job.name),\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\tactions: {\n\t\t\t\t\t\tprepare: {\n\t\t\t\t\t\t\t\"action.yml\": formatYaml({\n\t\t\t\t\t\t\t\tdescription: \"Prepares the repo for a typical CI job\",\n\t\t\t\t\t\t\t\tname: \"Prepare\",\n\t\t\t\t\t\t\t\truns: {\n\t\t\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tuses: resolveUses(\n\t\t\t\t\t\t\t\t\t\t\t\t\"pnpm/action-setup\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"v4\",\n\t\t\t\t\t\t\t\t\t\t\t\toptions.workflowsVersions,\n\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tuses: resolveUses(\n\t\t\t\t\t\t\t\t\t\t\t\t\"actions/setup-node\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"v4\",\n\t\t\t\t\t\t\t\t\t\t\t\toptions.workflowsVersions,\n\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\twith: {\n\t\t\t\t\t\t\t\t\t\t\t\tcache: \"pnpm\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"node-version\": nodeVersion,\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\trun: \"pnpm install --frozen-lockfile\",\n\t\t\t\t\t\t\t\t\t\t\tshell: \"bash\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tusing: \"composite\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tworkflows: {\n\t\t\t\t\t\t\"ci.yml\":\n\t\t\t\t\t\t\tjobs &&\n\t\t\t\t\t\t\tcreateMultiWorkflowFile({\n\t\t\t\t\t\t\t\tjobs: jobs.sort((a, b) => a.name.localeCompare(b.name)),\n\t\t\t\t\t\t\t\tname: \"CI\",\n\t\t\t\t\t\t\t\tworkflowsVersions: options.workflowsVersions,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\"pr-review-requested.yml\": createSoloWorkflowFile({\n\t\t\t\t\t\t\tname: \"PR Review Requested\",\n\t\t\t\t\t\t\ton: {\n\t\t\t\t\t\t\t\tpull_request_target: {\n\t\t\t\t\t\t\t\t\ttypes: [\"review_requested\"],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tpermissions: {\n\t\t\t\t\t\t\t\t\"pull-requests\": \"write\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tuses: resolveUses(\n\t\t\t\t\t\t\t\t\t\t\"actions-ecosystem/action-remove-labels\",\n\t\t\t\t\t\t\t\t\t\t\"v1\",\n\t\t\t\t\t\t\t\t\t\toptions.workflowsVersions,\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\twith: {\n\t\t\t\t\t\t\t\t\t\tlabels: \"status: waiting for author\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif: \"failure()\",\n\t\t\t\t\t\t\t\t\trun: 'echo \"Don\\'t worry if the previous step failed.\"\\necho \"See https://github.com/actions-ecosystem/action-remove-labels/issues/221.\"\\n',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t}),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockRemoveFiles({\n\t\t\t\t\tfiles: [\".circleci\", \"travis.yml\"],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;;;;;;AAWA,MAAa,uBAAuB,KAAK,YAAY;CACpD,OAAO,EACN,MAAM,qBACN;CACD,QAAQ;EACP,MAAM,EACJ,MACA,EAAE,OAAO;GACR,cAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC,CAAC,UAAU;GACzD,IAAI,EAAE,QAAQ,CAAC,UAAU;GACzB,MAAM,EAAE,QAAQ;GAChB,OAAO,EAAE,MAAM,YAAY;GAC3B,CAAC,CACF,CACA,UAAU;EACZ,aAAa,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU;EACzD;CACD,OAAO,EAAE,SAAS;EACjB,MAAM,QAAQ,oBACb,OACA;GAAC;GAAW;GAAW;GAAW;GAAa,EAC/C,CAAC,QAAQ,QAAQ,CACjB;AACD,MAAI,CAAC,MACJ;EAGD,MAAM,gBAAgB,MAAM,MAC1B,SACA,OAAO,KAAK,SAAS,YACrB,KAAK,KAAK,WAAW,qBAAqB,CAC3C;AACD,MAAI,CAAC,cACJ;EAGD,MAAM,cAAc,cAAc,OAAO;AACzC,MAAI,CAAC,YACJ;AAGD,SAAO,EAAE,aAAa;;CAEvB,QAAQ,EAAE,QAAQ,WAAW;EAC5B,MAAM,EAAE,MAAM,cAAc,QAAQ,KAAK,UAAU,QAAQ,KAAK,YAC/D;AAED,SAAO;GACN,QAAQ,CACP,6BAA6B,EAC5B,sBAAsB,MAAM,KAAK,QAAQ,IAAI,KAAK,EAClD,CAAC,CACF;GACD,OAAO,EACN,WAAW;IACV,SAAS,EACR,SAAS,EACR,cAAc,WAAW;KACxB,aAAa;KACb,MAAM;KACN,MAAM;MACL,OAAO;OACN,EACC,MAAM,YACL,qBACA,MACA,QAAQ,kBACR,EACD;OACD;QACC,MAAM,YACL,sBACA,MACA,QAAQ,kBACR;QACD,MAAM;SACL,OAAO;SACP,gBAAgB;SAChB;QACD;OACD;QACC,KAAK;QACL,OAAO;QACP;OACD;MACD,OAAO;MACP;KACD,CAAC,EACF,EACD;IACD,WAAW;KACV,UACC,QACA,wBAAwB;MACvB,MAAM,KAAK,MAAM,GAAG,MAAM,EAAE,KAAK,cAAc,EAAE,KAAK,CAAC;MACvD,MAAM;MACN,mBAAmB,QAAQ;MAC3B,CAAC;KACH,2BAA2B,uBAAuB;MACjD,MAAM;MACN,IAAI,EACH,qBAAqB,EACpB,OAAO,CAAC,mBAAmB,EAC3B,EACD;MACD,aAAa,EACZ,iBAAiB,SACjB;MACD,OAAO,CACN;OACC,MAAM,YACL,0CACA,MACA,QAAQ,kBACR;OACD,MAAM,EACL,QAAQ,8BACR;OACD,EACD;OACC,IAAI;OACJ,KAAK;OACL,CACD;MACD,CAAC;KACF;IACD,EACD;GACD;;CAEF,aAAa;AACZ,SAAO,EACN,QAAQ,CACP,iBAAiB,EAChB,OAAO,CAAC,aAAa,aAAa,EAClC,CAAC,CACF,EACD;;CAEF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum100 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockGitHubApps.d.ts
|
|
4
|
-
declare const blockGitHubApps:
|
|
4
|
+
declare const blockGitHubApps: bingo_stratum100.BlockWithAddons<{
|
|
5
5
|
apps: {
|
|
6
6
|
name: string;
|
|
7
7
|
url: string;
|
|
@@ -74,7 +74,6 @@ declare const blockGitHubApps: bingo_stratum1077.BlockWithAddons<{
|
|
|
74
74
|
hash?: string | undefined;
|
|
75
75
|
}>> | undefined;
|
|
76
76
|
}>;
|
|
77
|
-
//# sourceMappingURL=blockGitHubApps.d.ts.map
|
|
78
77
|
//#endregion
|
|
79
78
|
export { blockGitHubApps };
|
|
80
79
|
//# sourceMappingURL=blockGitHubApps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockGitHubApps.d.ts","names":[],"sources":["../../src/blocks/blockGitHubApps.ts"],"sourcesContent":[],"mappings":";;;cAKa,
|
|
1
|
+
{"version":3,"file":"blockGitHubApps.d.ts","names":[],"sources":["../../src/blocks/blockGitHubApps.ts"],"sourcesContent":[],"mappings":";;;cAKa,kCAAe;;;IAAf,GAAA,EAAA,MAAA;;;;;;;;;eAAe,CAAA,EAAA,MAAA,GAAA,SAAA;MAAA,SAAA,CAAA,EAAA,MAAA,GAAA,SAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockGitHubApps.js","names":[],"sources":["../../src/blocks/blockGitHubApps.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getInstallationSuggestions } from \"./getInstallationSuggestions.js\";\n\nexport const blockGitHubApps = base.createBlock({\n\tabout: {\n\t\tname: \"GitHub Apps\",\n\t},\n\taddons: {\n\t\tapps: z\n\t\t\t.array(\n\t\t\t\tz.object({\n\t\t\t\t\tname: z.string(),\n\t\t\t\t\turl: z.string(),\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.default([]),\n\t},\n\tproduce({ addons, options }) {\n\t\treturn {\n\t\t\tsuggestions: getInstallationSuggestions(\n\t\t\t\t\"enable the GitHub app\",\n\t\t\t\taddons.apps.map((app) => `${app.name} (${app.url})`),\n\t\t\t\t`https://github.com/${options.owner}/${options.repository}/settings/installations`,\n\t\t\t),\n\t\t};\n\t},\n});\n"],"mappings":";;;;;AAKA,MAAa,kBAAkB,KAAK,YAAY;CAC/C,OAAO,EACN,MAAM,
|
|
1
|
+
{"version":3,"file":"blockGitHubApps.js","names":[],"sources":["../../src/blocks/blockGitHubApps.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getInstallationSuggestions } from \"./getInstallationSuggestions.js\";\n\nexport const blockGitHubApps = base.createBlock({\n\tabout: {\n\t\tname: \"GitHub Apps\",\n\t},\n\taddons: {\n\t\tapps: z\n\t\t\t.array(\n\t\t\t\tz.object({\n\t\t\t\t\tname: z.string(),\n\t\t\t\t\turl: z.string(),\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.default([]),\n\t},\n\tproduce({ addons, options }) {\n\t\treturn {\n\t\t\tsuggestions: getInstallationSuggestions(\n\t\t\t\t\"enable the GitHub app\",\n\t\t\t\taddons.apps.map((app) => `${app.name} (${app.url})`),\n\t\t\t\t`https://github.com/${options.owner}/${options.repository}/settings/installations`,\n\t\t\t),\n\t\t};\n\t},\n});\n"],"mappings":";;;;;AAKA,MAAa,kBAAkB,KAAK,YAAY;CAC/C,OAAO,EACN,MAAM,eACN;CACD,QAAQ,EACP,MAAM,EACJ,MACA,EAAE,OAAO;EACR,MAAM,EAAE,QAAQ;EAChB,KAAK,EAAE,QAAQ;EACf,CAAC,CACF,CACA,QAAQ,EAAE,CAAC,EACb;CACD,QAAQ,EAAE,QAAQ,WAAW;AAC5B,SAAO,EACN,aAAa,2BACZ,yBACA,OAAO,KAAK,KAAK,QAAQ,GAAG,IAAI,KAAK,IAAI,IAAI,IAAI,GAAG,EACpD,sBAAsB,QAAQ,MAAM,GAAG,QAAQ,WAAW,yBAC1D,EACD;;CAEF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum101 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockGitHubIssueTemplates.d.ts
|
|
4
|
-
declare const blockGitHubIssueTemplates:
|
|
4
|
+
declare const blockGitHubIssueTemplates: bingo_stratum101.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -69,7 +69,6 @@ declare const blockGitHubIssueTemplates: bingo_stratum1078.BlockWithoutAddons<{
|
|
|
69
69
|
hash?: string | undefined;
|
|
70
70
|
}>> | undefined;
|
|
71
71
|
}>;
|
|
72
|
-
//# sourceMappingURL=blockGitHubIssueTemplates.d.ts.map
|
|
73
72
|
//#endregion
|
|
74
73
|
export { blockGitHubIssueTemplates };
|
|
75
74
|
//# sourceMappingURL=blockGitHubIssueTemplates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockGitHubIssueTemplates.d.ts","names":[],"sources":["../../src/blocks/blockGitHubIssueTemplates.ts"],"sourcesContent":[],"mappings":";;;cAGa,
|
|
1
|
+
{"version":3,"file":"blockGitHubIssueTemplates.d.ts","names":[],"sources":["../../src/blocks/blockGitHubIssueTemplates.ts"],"sourcesContent":[],"mappings":";;;cAGa,4CAAyB;;;EAAzB,SAAA,EAAA,MAAA;;;;;;;;;;EAAyB,KAAA,EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockGitHubIssueTemplates.js","names":[],"sources":["../../src/blocks/blockGitHubIssueTemplates.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { formatYaml } from \"./files/formatYaml.js\";\n\nexport const blockGitHubIssueTemplates = base.createBlock({\n\tabout: {\n\t\tname: \"GitHub Issue Templates\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\tISSUE_TEMPLATE: {\n\t\t\t\t\t\t\"01-bug.yml\": formatYaml({\n\t\t\t\t\t\t\tbody: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\t\t\t\t\"If any of these required steps are not taken, we may not be able to review your issue. Help us to help you!\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Bug Report Checklist\",\n\t\t\t\t\t\t\t\t\t\toptions: [\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tlabel:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"I have tried restarting my IDE and the issue persists.\",\n\t\t\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tlabel:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"I have pulled the latest `main` branch of the repository.\",\n\t\t\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tlabel: `I have [searched for related issues](https://github.com/${options.owner}/${options.repository}/issues?q=is%3Aissue) and found none that matched my issue.`,\n\t\t\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"checkboxes\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription: \"What did you expect to happen?\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Expected\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"textarea\",\n\t\t\t\t\t\t\t\t\tvalidations: {\n\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription: \"What happened instead?\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Actual\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"textarea\",\n\t\t\t\t\t\t\t\t\tvalidations: {\n\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription: \"Any additional info you'd like to provide.\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Additional Info\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"textarea\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tdescription: \"Report a bug trying to run the code\",\n\t\t\t\t\t\t\tlabels: [\"type: bug\"],\n\t\t\t\t\t\t\tname: \"🐛 Bug\",\n\t\t\t\t\t\t\ttitle: \"🐛 Bug: <short description of the bug>\",\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t\"02-documentation.yml\": formatYaml({\n\t\t\t\t\t\t\tbody: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\t\t\t\t\"If any of these required steps are not taken, we may not be able to review your issue. Help us to help you!\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Documentation Report Checklist\",\n\t\t\t\t\t\t\t\t\t\toptions: [\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tlabel:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"I have pulled the latest `main` branch of the repository.\",\n\t\t\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tlabel: `I have [searched for related issues](https://github.com/${options.owner}/${options.repository}/issues?q=is%3Aissue) and found none that matched my issue.`,\n\t\t\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"checkboxes\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription: \"What would you like to report?\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Overview\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"textarea\",\n\t\t\t\t\t\t\t\t\tvalidations: {\n\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription: \"Any additional info you'd like to provide.\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Additional Info\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"textarea\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tdescription: \"Report a typo or missing area of documentation\",\n\t\t\t\t\t\t\tlabels: [\"area: documentation\"],\n\t\t\t\t\t\t\tname: \"📝 Documentation\",\n\t\t\t\t\t\t\ttitle: \"📝 Documentation: <short description of the request>\",\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t\"03-feature.yml\": formatYaml({\n\t\t\t\t\t\t\tbody: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\t\t\t\t\"If any of these required steps are not taken, we may not be able to review your issue. Help us to help you!\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Feature Request Checklist\",\n\t\t\t\t\t\t\t\t\t\toptions: [\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tlabel:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"I have pulled the latest `main` branch of the repository.\",\n\t\t\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tlabel: `I have [searched for related issues](https://github.com/${options.owner}/${options.repository}/issues?q=is%3Aissue) and found none that matched my issue.`,\n\t\t\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"checkboxes\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription: \"What did you expect to be able to do?\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Overview\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"textarea\",\n\t\t\t\t\t\t\t\t\tvalidations: {\n\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription: \"Any additional info you'd like to provide.\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Additional Info\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"textarea\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\t\"Request that a new feature be added or an existing feature improved\",\n\t\t\t\t\t\t\tlabels: [\"type: feature\"],\n\t\t\t\t\t\t\tname: \"🚀 Feature\",\n\t\t\t\t\t\t\ttitle: \"🚀 Feature: <short description of the feature>\",\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t\"04-tooling.yml\": formatYaml({\n\t\t\t\t\t\t\tbody: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\t\t\t\t\"If any of these required steps are not taken, we may not be able to review your issue. Help us to help you!\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Tooling Report Checklist\",\n\t\t\t\t\t\t\t\t\t\toptions: [\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tlabel:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"I have tried restarting my IDE and the issue persists.\",\n\t\t\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tlabel:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"I have pulled the latest `main` branch of the repository.\",\n\t\t\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tlabel: `I have [searched for related issues](https://github.com/${options.owner}/${options.repository}/issues?q=is%3Aissue) and found none that matched my issue.`,\n\t\t\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"checkboxes\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription: \"What did you expect to be able to do?\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Overview\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"textarea\",\n\t\t\t\t\t\t\t\t\tvalidations: {\n\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription: \"Any additional info you'd like to provide.\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Additional Info\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"textarea\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\t\"Report a bug or request an enhancement in repository tooling\",\n\t\t\t\t\t\t\tlabels: [\"area: tooling\"],\n\t\t\t\t\t\t\tname: \"🛠 Tooling\",\n\t\t\t\t\t\t\ttitle: \"🛠 Tooling: <short description of the change>\",\n\t\t\t\t\t\t}),\n\t\t\t\t\t},\n\t\t\t\t\t\"ISSUE_TEMPLATE.md\": `<!-- Note: Please must use one of our issue templates to file an issue! 🛑 -->\n<!-- 👉 https://github.com/${options.owner}/${options.repository}/issues/new/choose 👈 -->\n<!-- **Issues that should have been filed with a template will be closed without action, and we will ask you to use a template.** -->\n\n<!-- This blank issue template is only for issues that don't fit any of the templates. -->\n\n## Overview\n\n...\n`,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":";;;;AAGA,MAAa,4BAA4B,KAAK,YAAY;CACzD,OAAO,EACN,MAAM,yBACN;CACD,QAAQ,EAAE,SAAS,EAAE;AACpB,SAAO,EACN,OAAO,EACN,WAAW;GACV,gBAAgB;IACf,cAAc,WAAW;KACxB,MAAM;MACL;OACC,YAAY;QACX,aACC;QACD,OAAO;QACP,SAAS;SACR;UACC,OACC;UACD,UAAU;SACV;SACD;UACC,OACC;UACD,UAAU;SACV;SACD;UACC,QAAQ,0DAA0D,QAAQ,MAAM,GAAG,QAAQ,WAAW;UACtG,UAAU;SACV;QACD;OACD;OACD,MAAM;MACN;MACD;OACC,YAAY;QACX,aAAa;QACb,OAAO;OACP;OACD,MAAM;OACN,aAAa,EACZ,UAAU,KACV;MACD;MACD;OACC,YAAY;QACX,aAAa;QACb,OAAO;OACP;OACD,MAAM;OACN,aAAa,EACZ,UAAU,KACV;MACD;MACD;OACC,YAAY;QACX,aAAa;QACb,OAAO;OACP;OACD,MAAM;MACN;KACD;KACD,aAAa;KACb,QAAQ,CAAC,WAAY;KACrB,MAAM;KACN,OAAO;IACP,EAAC;IACF,wBAAwB,WAAW;KAClC,MAAM;MACL;OACC,YAAY;QACX,aACC;QACD,OAAO;QACP,SAAS,CACR;SACC,OACC;SACD,UAAU;QACV,GACD;SACC,QAAQ,0DAA0D,QAAQ,MAAM,GAAG,QAAQ,WAAW;SACtG,UAAU;QACV,CACD;OACD;OACD,MAAM;MACN;MACD;OACC,YAAY;QACX,aAAa;QACb,OAAO;OACP;OACD,MAAM;OACN,aAAa,EACZ,UAAU,KACV;MACD;MACD;OACC,YAAY;QACX,aAAa;QACb,OAAO;OACP;OACD,MAAM;MACN;KACD;KACD,aAAa;KACb,QAAQ,CAAC,qBAAsB;KAC/B,MAAM;KACN,OAAO;IACP,EAAC;IACF,kBAAkB,WAAW;KAC5B,MAAM;MACL;OACC,YAAY;QACX,aACC;QACD,OAAO;QACP,SAAS,CACR;SACC,OACC;SACD,UAAU;QACV,GACD;SACC,QAAQ,0DAA0D,QAAQ,MAAM,GAAG,QAAQ,WAAW;SACtG,UAAU;QACV,CACD;OACD;OACD,MAAM;MACN;MACD;OACC,YAAY;QACX,aAAa;QACb,OAAO;OACP;OACD,MAAM;OACN,aAAa,EACZ,UAAU,KACV;MACD;MACD;OACC,YAAY;QACX,aAAa;QACb,OAAO;OACP;OACD,MAAM;MACN;KACD;KACD,aACC;KACD,QAAQ,CAAC,eAAgB;KACzB,MAAM;KACN,OAAO;IACP,EAAC;IACF,kBAAkB,WAAW;KAC5B,MAAM;MACL;OACC,YAAY;QACX,aACC;QACD,OAAO;QACP,SAAS;SACR;UACC,OACC;UACD,UAAU;SACV;SACD;UACC,OACC;UACD,UAAU;SACV;SACD;UACC,QAAQ,0DAA0D,QAAQ,MAAM,GAAG,QAAQ,WAAW;UACtG,UAAU;SACV;QACD;OACD;OACD,MAAM;MACN;MACD;OACC,YAAY;QACX,aAAa;QACb,OAAO;OACP;OACD,MAAM;OACN,aAAa,EACZ,UAAU,KACV;MACD;MACD;OACC,YAAY;QACX,aAAa;QACb,OAAO;OACP;OACD,MAAM;MACN;KACD;KACD,aACC;KACD,QAAQ,CAAC,eAAgB;KACzB,MAAM;KACN,OAAO;IACP,EAAC;GACF;GACD,sBAAsB;6BACE,QAAQ,MAAM,GAAG,QAAQ,WAAW;;;;;;;;;EAS5D,EACD,EACD;CACD;AACD,EAAC"}
|
|
1
|
+
{"version":3,"file":"blockGitHubIssueTemplates.js","names":[],"sources":["../../src/blocks/blockGitHubIssueTemplates.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { formatYaml } from \"./files/formatYaml.js\";\n\nexport const blockGitHubIssueTemplates = base.createBlock({\n\tabout: {\n\t\tname: \"GitHub Issue Templates\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\tISSUE_TEMPLATE: {\n\t\t\t\t\t\t\"01-bug.yml\": formatYaml({\n\t\t\t\t\t\t\tbody: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\t\t\t\t\"If any of these required steps are not taken, we may not be able to review your issue. Help us to help you!\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Bug Report Checklist\",\n\t\t\t\t\t\t\t\t\t\toptions: [\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tlabel:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"I have tried restarting my IDE and the issue persists.\",\n\t\t\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tlabel:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"I have pulled the latest `main` branch of the repository.\",\n\t\t\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tlabel: `I have [searched for related issues](https://github.com/${options.owner}/${options.repository}/issues?q=is%3Aissue) and found none that matched my issue.`,\n\t\t\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"checkboxes\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription: \"What did you expect to happen?\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Expected\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"textarea\",\n\t\t\t\t\t\t\t\t\tvalidations: {\n\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription: \"What happened instead?\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Actual\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"textarea\",\n\t\t\t\t\t\t\t\t\tvalidations: {\n\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription: \"Any additional info you'd like to provide.\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Additional Info\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"textarea\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tdescription: \"Report a bug trying to run the code\",\n\t\t\t\t\t\t\tlabels: [\"type: bug\"],\n\t\t\t\t\t\t\tname: \"🐛 Bug\",\n\t\t\t\t\t\t\ttitle: \"🐛 Bug: <short description of the bug>\",\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t\"02-documentation.yml\": formatYaml({\n\t\t\t\t\t\t\tbody: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\t\t\t\t\"If any of these required steps are not taken, we may not be able to review your issue. Help us to help you!\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Documentation Report Checklist\",\n\t\t\t\t\t\t\t\t\t\toptions: [\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tlabel:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"I have pulled the latest `main` branch of the repository.\",\n\t\t\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tlabel: `I have [searched for related issues](https://github.com/${options.owner}/${options.repository}/issues?q=is%3Aissue) and found none that matched my issue.`,\n\t\t\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"checkboxes\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription: \"What would you like to report?\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Overview\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"textarea\",\n\t\t\t\t\t\t\t\t\tvalidations: {\n\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription: \"Any additional info you'd like to provide.\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Additional Info\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"textarea\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tdescription: \"Report a typo or missing area of documentation\",\n\t\t\t\t\t\t\tlabels: [\"area: documentation\"],\n\t\t\t\t\t\t\tname: \"📝 Documentation\",\n\t\t\t\t\t\t\ttitle: \"📝 Documentation: <short description of the request>\",\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t\"03-feature.yml\": formatYaml({\n\t\t\t\t\t\t\tbody: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\t\t\t\t\"If any of these required steps are not taken, we may not be able to review your issue. Help us to help you!\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Feature Request Checklist\",\n\t\t\t\t\t\t\t\t\t\toptions: [\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tlabel:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"I have pulled the latest `main` branch of the repository.\",\n\t\t\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tlabel: `I have [searched for related issues](https://github.com/${options.owner}/${options.repository}/issues?q=is%3Aissue) and found none that matched my issue.`,\n\t\t\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"checkboxes\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription: \"What did you expect to be able to do?\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Overview\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"textarea\",\n\t\t\t\t\t\t\t\t\tvalidations: {\n\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription: \"Any additional info you'd like to provide.\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Additional Info\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"textarea\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\t\"Request that a new feature be added or an existing feature improved\",\n\t\t\t\t\t\t\tlabels: [\"type: feature\"],\n\t\t\t\t\t\t\tname: \"🚀 Feature\",\n\t\t\t\t\t\t\ttitle: \"🚀 Feature: <short description of the feature>\",\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t\"04-tooling.yml\": formatYaml({\n\t\t\t\t\t\t\tbody: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\t\t\t\t\"If any of these required steps are not taken, we may not be able to review your issue. Help us to help you!\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Tooling Report Checklist\",\n\t\t\t\t\t\t\t\t\t\toptions: [\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tlabel:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"I have tried restarting my IDE and the issue persists.\",\n\t\t\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tlabel:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"I have pulled the latest `main` branch of the repository.\",\n\t\t\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tlabel: `I have [searched for related issues](https://github.com/${options.owner}/${options.repository}/issues?q=is%3Aissue) and found none that matched my issue.`,\n\t\t\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"checkboxes\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription: \"What did you expect to be able to do?\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Overview\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"textarea\",\n\t\t\t\t\t\t\t\t\tvalidations: {\n\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t\tdescription: \"Any additional info you'd like to provide.\",\n\t\t\t\t\t\t\t\t\t\tlabel: \"Additional Info\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttype: \"textarea\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\t\"Report a bug or request an enhancement in repository tooling\",\n\t\t\t\t\t\t\tlabels: [\"area: tooling\"],\n\t\t\t\t\t\t\tname: \"🛠 Tooling\",\n\t\t\t\t\t\t\ttitle: \"🛠 Tooling: <short description of the change>\",\n\t\t\t\t\t\t}),\n\t\t\t\t\t},\n\t\t\t\t\t\"ISSUE_TEMPLATE.md\": `<!-- Note: Please must use one of our issue templates to file an issue! 🛑 -->\n<!-- 👉 https://github.com/${options.owner}/${options.repository}/issues/new/choose 👈 -->\n<!-- **Issues that should have been filed with a template will be closed without action, and we will ask you to use a template.** -->\n\n<!-- This blank issue template is only for issues that don't fit any of the templates. -->\n\n## Overview\n\n...\n`,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":";;;;AAGA,MAAa,4BAA4B,KAAK,YAAY;CACzD,OAAO,EACN,MAAM,0BACN;CACD,QAAQ,EAAE,WAAW;AACpB,SAAO,EACN,OAAO,EACN,WAAW;GACV,gBAAgB;IACf,cAAc,WAAW;KACxB,MAAM;MACL;OACC,YAAY;QACX,aACC;QACD,OAAO;QACP,SAAS;SACR;UACC,OACC;UACD,UAAU;UACV;SACD;UACC,OACC;UACD,UAAU;UACV;SACD;UACC,OAAO,2DAA2D,QAAQ,MAAM,GAAG,QAAQ,WAAW;UACtG,UAAU;UACV;SACD;QACD;OACD,MAAM;OACN;MACD;OACC,YAAY;QACX,aAAa;QACb,OAAO;QACP;OACD,MAAM;OACN,aAAa,EACZ,UAAU,MACV;OACD;MACD;OACC,YAAY;QACX,aAAa;QACb,OAAO;QACP;OACD,MAAM;OACN,aAAa,EACZ,UAAU,MACV;OACD;MACD;OACC,YAAY;QACX,aAAa;QACb,OAAO;QACP;OACD,MAAM;OACN;MACD;KACD,aAAa;KACb,QAAQ,CAAC,YAAY;KACrB,MAAM;KACN,OAAO;KACP,CAAC;IACF,wBAAwB,WAAW;KAClC,MAAM;MACL;OACC,YAAY;QACX,aACC;QACD,OAAO;QACP,SAAS,CACR;SACC,OACC;SACD,UAAU;SACV,EACD;SACC,OAAO,2DAA2D,QAAQ,MAAM,GAAG,QAAQ,WAAW;SACtG,UAAU;SACV,CACD;QACD;OACD,MAAM;OACN;MACD;OACC,YAAY;QACX,aAAa;QACb,OAAO;QACP;OACD,MAAM;OACN,aAAa,EACZ,UAAU,MACV;OACD;MACD;OACC,YAAY;QACX,aAAa;QACb,OAAO;QACP;OACD,MAAM;OACN;MACD;KACD,aAAa;KACb,QAAQ,CAAC,sBAAsB;KAC/B,MAAM;KACN,OAAO;KACP,CAAC;IACF,kBAAkB,WAAW;KAC5B,MAAM;MACL;OACC,YAAY;QACX,aACC;QACD,OAAO;QACP,SAAS,CACR;SACC,OACC;SACD,UAAU;SACV,EACD;SACC,OAAO,2DAA2D,QAAQ,MAAM,GAAG,QAAQ,WAAW;SACtG,UAAU;SACV,CACD;QACD;OACD,MAAM;OACN;MACD;OACC,YAAY;QACX,aAAa;QACb,OAAO;QACP;OACD,MAAM;OACN,aAAa,EACZ,UAAU,MACV;OACD;MACD;OACC,YAAY;QACX,aAAa;QACb,OAAO;QACP;OACD,MAAM;OACN;MACD;KACD,aACC;KACD,QAAQ,CAAC,gBAAgB;KACzB,MAAM;KACN,OAAO;KACP,CAAC;IACF,kBAAkB,WAAW;KAC5B,MAAM;MACL;OACC,YAAY;QACX,aACC;QACD,OAAO;QACP,SAAS;SACR;UACC,OACC;UACD,UAAU;UACV;SACD;UACC,OACC;UACD,UAAU;UACV;SACD;UACC,OAAO,2DAA2D,QAAQ,MAAM,GAAG,QAAQ,WAAW;UACtG,UAAU;UACV;SACD;QACD;OACD,MAAM;OACN;MACD;OACC,YAAY;QACX,aAAa;QACb,OAAO;QACP;OACD,MAAM;OACN,aAAa,EACZ,UAAU,MACV;OACD;MACD;OACC,YAAY;QACX,aAAa;QACb,OAAO;QACP;OACD,MAAM;OACN;MACD;KACD,aACC;KACD,QAAQ,CAAC,gBAAgB;KACzB,MAAM;KACN,OAAO;KACP,CAAC;IACF;GACD,qBAAqB;6BACG,QAAQ,MAAM,GAAG,QAAQ,WAAW;;;;;;;;;GAS5D,EACD,EACD;;CAEF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum102 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockGitHubPRTemplate.d.ts
|
|
4
|
-
declare const blockGitHubPRTemplate:
|
|
4
|
+
declare const blockGitHubPRTemplate: bingo_stratum102.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -69,7 +69,6 @@ declare const blockGitHubPRTemplate: bingo_stratum1079.BlockWithoutAddons<{
|
|
|
69
69
|
hash?: string | undefined;
|
|
70
70
|
}>> | undefined;
|
|
71
71
|
}>;
|
|
72
|
-
//# sourceMappingURL=blockGitHubPRTemplate.d.ts.map
|
|
73
72
|
//#endregion
|
|
74
73
|
export { blockGitHubPRTemplate };
|
|
75
74
|
//# sourceMappingURL=blockGitHubPRTemplate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockGitHubPRTemplate.d.ts","names":[],"sources":["../../src/blocks/blockGitHubPRTemplate.ts"],"sourcesContent":[],"mappings":";;;cAEa,
|
|
1
|
+
{"version":3,"file":"blockGitHubPRTemplate.d.ts","names":[],"sources":["../../src/blocks/blockGitHubPRTemplate.ts"],"sourcesContent":[],"mappings":";;;cAEa,wCAAqB;;;EAArB,SAAA,EAAA,MAAA;;;;;;;;;;EAAqB,KAAA,EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockGitHubPRTemplate.js","names":[],"sources":["../../src/blocks/blockGitHubPRTemplate.ts"],"sourcesContent":["import { base } from \"../base.js\";\n\nexport const blockGitHubPRTemplate = base.createBlock({\n\tabout: {\n\t\tname: \"GitHub Issue Templates\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\t\"PULL_REQUEST_TEMPLATE.md\": `<!-- 👋 Hi, thanks for sending a PR to ${options.repository}! ${options.emoji}\nPlease fill out all fields below and make sure each item is true and [x] checked.\nOtherwise we may not be able to review your PR. -->\n\n## PR Checklist\n\n- [ ] Addresses an existing open issue: fixes #000\n- [ ] That issue was marked as [\\`status: accepting prs\\`](https://github.com/${options.owner}/${options.repository}/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)\n- [ ] Steps in [CONTRIBUTING.md](https://github.com/${options.owner}/${options.repository}/blob/main/.github/CONTRIBUTING.md) were taken\n\n## Overview\n\n<!-- Description of what is changed and how the code change does that. -->\n`,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":";;;AAEA,MAAa,wBAAwB,KAAK,YAAY;CACrD,OAAO,EACN,MAAM,
|
|
1
|
+
{"version":3,"file":"blockGitHubPRTemplate.js","names":[],"sources":["../../src/blocks/blockGitHubPRTemplate.ts"],"sourcesContent":["import { base } from \"../base.js\";\n\nexport const blockGitHubPRTemplate = base.createBlock({\n\tabout: {\n\t\tname: \"GitHub Issue Templates\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\t\"PULL_REQUEST_TEMPLATE.md\": `<!-- 👋 Hi, thanks for sending a PR to ${options.repository}! ${options.emoji}\nPlease fill out all fields below and make sure each item is true and [x] checked.\nOtherwise we may not be able to review your PR. -->\n\n## PR Checklist\n\n- [ ] Addresses an existing open issue: fixes #000\n- [ ] That issue was marked as [\\`status: accepting prs\\`](https://github.com/${options.owner}/${options.repository}/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)\n- [ ] Steps in [CONTRIBUTING.md](https://github.com/${options.owner}/${options.repository}/blob/main/.github/CONTRIBUTING.md) were taken\n\n## Overview\n\n<!-- Description of what is changed and how the code change does that. -->\n`,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":";;;AAEA,MAAa,wBAAwB,KAAK,YAAY;CACrD,OAAO,EACN,MAAM,0BACN;CACD,QAAQ,EAAE,WAAW;AACpB,SAAO,EACN,OAAO,EACN,WAAW,EACV,4BAA4B,0CAA0C,QAAQ,WAAW,IAAI,QAAQ,MAAM;;;;;;;gFAOhC,QAAQ,MAAM,GAAG,QAAQ,WAAW;sDAC9D,QAAQ,MAAM,GAAG,QAAQ,WAAW;;;;;GAMrF,EACD,EACD;;CAEF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum92 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockGitignore.d.ts
|
|
4
|
-
declare const blockGitignore:
|
|
4
|
+
declare const blockGitignore: bingo_stratum92.BlockWithAddons<{
|
|
5
5
|
ignores: string[];
|
|
6
6
|
}, {
|
|
7
7
|
access: "public" | "restricted";
|
|
@@ -71,7 +71,6 @@ declare const blockGitignore: bingo_stratum1080.BlockWithAddons<{
|
|
|
71
71
|
hash?: string | undefined;
|
|
72
72
|
}>> | undefined;
|
|
73
73
|
}>;
|
|
74
|
-
//# sourceMappingURL=blockGitignore.d.ts.map
|
|
75
74
|
//#endregion
|
|
76
75
|
export { blockGitignore };
|
|
77
76
|
//# sourceMappingURL=blockGitignore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockGitignore.d.ts","names":[],"sources":["../../src/blocks/blockGitignore.ts"],"sourcesContent":[],"mappings":";;;cAKa,
|
|
1
|
+
{"version":3,"file":"blockGitignore.d.ts","names":[],"sources":["../../src/blocks/blockGitignore.ts"],"sourcesContent":[],"mappings":";;;cAKa,gCAAc;;;EAAd,MAAA,EAAA,QAAA,GAgBX,YAAA;;;;;;;;;;IAhByB,WAAA,CAAA,EAAA,MAAA,GAAA,SAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockGitignore.js","names":[],"sources":["../../src/blocks/blockGitignore.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { formatIgnoreFile } from \"./files/formatIgnoreFile.js\";\n\nexport const blockGitignore = base.createBlock({\n\tabout: {\n\t\tname: \"Gitignore\",\n\t},\n\taddons: {\n\t\tignores: z.array(z.string()).default([]),\n\t},\n\tproduce({ addons }) {\n\t\tconst { ignores } = addons;\n\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\t\".gitignore\": formatIgnoreFile([\"/node_modules\", ...ignores].sort()),\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":";;;;;AAKA,MAAa,iBAAiB,KAAK,YAAY;CAC9C,OAAO,EACN,MAAM,
|
|
1
|
+
{"version":3,"file":"blockGitignore.js","names":[],"sources":["../../src/blocks/blockGitignore.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { formatIgnoreFile } from \"./files/formatIgnoreFile.js\";\n\nexport const blockGitignore = base.createBlock({\n\tabout: {\n\t\tname: \"Gitignore\",\n\t},\n\taddons: {\n\t\tignores: z.array(z.string()).default([]),\n\t},\n\tproduce({ addons }) {\n\t\tconst { ignores } = addons;\n\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\t\".gitignore\": formatIgnoreFile([\"/node_modules\", ...ignores].sort()),\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":";;;;;AAKA,MAAa,iBAAiB,KAAK,YAAY;CAC9C,OAAO,EACN,MAAM,aACN;CACD,QAAQ,EACP,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,EACxC;CACD,QAAQ,EAAE,UAAU;EACnB,MAAM,EAAE,YAAY;AAEpB,SAAO,EACN,OAAO,EACN,cAAc,iBAAiB,CAAC,iBAAiB,GAAG,QAAQ,CAAC,MAAM,CAAC,EACpE,EACD;;CAEF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum104 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockKnip.d.ts
|
|
4
|
-
declare const blockKnip:
|
|
4
|
+
declare const blockKnip: bingo_stratum104.BlockWithAddons<{
|
|
5
5
|
entry?: string[] | undefined;
|
|
6
6
|
ignoreDependencies?: string[] | undefined;
|
|
7
7
|
project?: string[] | undefined;
|
|
@@ -73,7 +73,6 @@ declare const blockKnip: bingo_stratum1084.BlockWithAddons<{
|
|
|
73
73
|
hash?: string | undefined;
|
|
74
74
|
}>> | undefined;
|
|
75
75
|
}>;
|
|
76
|
-
//# sourceMappingURL=blockKnip.d.ts.map
|
|
77
76
|
//#endregion
|
|
78
77
|
export { blockKnip };
|
|
79
78
|
//# sourceMappingURL=blockKnip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockKnip.d.ts","names":[],"sources":["../../src/blocks/blockKnip.ts"],"sourcesContent":[],"mappings":";;;cAiBa,
|
|
1
|
+
{"version":3,"file":"blockKnip.d.ts","names":[],"sources":["../../src/blocks/blockKnip.ts"],"sourcesContent":[],"mappings":";;;cAiBa,4BAAS;;;EAAT,OAAA,CAAA,EAAA,MAgFX,EAAA,GAAA,SAAA;;;;;;;;;eAhFoB,CAAA,EAAA,MAAA,GAAA,SAAA;MAAA,KAAA,CAAA,EAAA,MAAA,GAAA,SAAA"}
|
package/lib/blocks/blockKnip.js
CHANGED
|
@@ -20,7 +20,7 @@ const blockKnip = base.createBlock({
|
|
|
20
20
|
},
|
|
21
21
|
intake({ files }) {
|
|
22
22
|
const knipJson = intakeFileAsJson(files, ["knip.json"]);
|
|
23
|
-
if (!knipJson) return
|
|
23
|
+
if (!knipJson) return;
|
|
24
24
|
return removeUndefinedObjects({
|
|
25
25
|
entry: zStringArray.safeParse(knipJson.entry).data,
|
|
26
26
|
ignoreDependencies: zStringArray.safeParse(knipJson.ignoreDependencies).data,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockKnip.js","names":[],"sources":["../../src/blocks/blockKnip.ts"],"sourcesContent":["import removeUndefinedObjects from \"remove-undefined-objects\";\nimport { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport {\n\tgetPackageDependencies,\n\tgetPackageDependency,\n} from \"../data/packageData.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockRemoveFiles } from \"./blockRemoveFiles.js\";\nimport { blockRemoveWorkflows } from \"./blockRemoveWorkflows.js\";\nimport { intakeFileAsJson } from \"./intake/intakeFileAsJson.js\";\n\nconst zStringArray = z.array(z.string());\n\nexport const blockKnip = base.createBlock({\n\tabout: {\n\t\tname: \"Knip\",\n\t},\n\taddons: {\n\t\tentry: zStringArray.optional(),\n\t\tignoreDependencies: zStringArray.optional(),\n\t\tproject: zStringArray.optional(),\n\t},\n\tintake({ files }) {\n\t\tconst knipJson = intakeFileAsJson(files, [\"knip.json\"]);\n\t\tif (!knipJson) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\treturn removeUndefinedObjects({\n\t\t\tentry: zStringArray.safeParse(knipJson.entry).data,\n\t\t\tignoreDependencies: zStringArray.safeParse(knipJson.ignoreDependencies)\n\t\t\t\t.data,\n\t\t\tproject: zStringArray.safeParse(knipJson.project).data,\n\t\t});\n\t},\n\tproduce({ addons }) {\n\t\tconst { entry, ignoreDependencies, project } = addons;\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tLinting: {\n\t\t\t\t\t\t\tcontents: {\n\t\t\t\t\t\t\t\titems: [\n\t\t\t\t\t\t\t\t\t`- \\`pnpm lint:knip\\` ([knip](https://github.com/webpro/knip)): Detects unused files, dependencies, and code exports`,\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Lint Knip\",\n\t\t\t\t\t\t\tsteps: [{ run: \"pnpm lint:knip\" }],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\"knip\"),\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\t\"lint:knip\": \"knip\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\"knip.json\": JSON.stringify({\n\t\t\t\t\t$schema: `https://unpkg.com/knip@${getPackageDependency(\"knip\")}/schema.json`,\n\t\t\t\t\tentry: entry?.sort(),\n\t\t\t\t\tignoreDependencies,\n\t\t\t\t\tignoreExportsUsedInFile: {\n\t\t\t\t\t\tinterface: true,\n\t\t\t\t\t\ttype: true,\n\t\t\t\t\t},\n\t\t\t\t\tproject: project?.sort(),\n\t\t\t\t}),\n\t\t\t},\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockRemoveFiles({\n\t\t\t\t\tfiles: [\".knip*\", \"knip.{c,m,t}*\", \"knip.js\", \"knip.jsonc\"],\n\t\t\t\t}),\n\t\t\t\tblockRemoveWorkflows({\n\t\t\t\t\tworkflows: [\"knip\", \"lint-knip\"],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;;;;;;;AAeA,MAAM,eAAe,EAAE,MAAM,EAAE,QAAQ,CAAC;AAExC,MAAa,YAAY,KAAK,YAAY;CACzC,OAAO,EACN,MAAM,
|
|
1
|
+
{"version":3,"file":"blockKnip.js","names":[],"sources":["../../src/blocks/blockKnip.ts"],"sourcesContent":["import removeUndefinedObjects from \"remove-undefined-objects\";\nimport { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport {\n\tgetPackageDependencies,\n\tgetPackageDependency,\n} from \"../data/packageData.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockRemoveFiles } from \"./blockRemoveFiles.js\";\nimport { blockRemoveWorkflows } from \"./blockRemoveWorkflows.js\";\nimport { intakeFileAsJson } from \"./intake/intakeFileAsJson.js\";\n\nconst zStringArray = z.array(z.string());\n\nexport const blockKnip = base.createBlock({\n\tabout: {\n\t\tname: \"Knip\",\n\t},\n\taddons: {\n\t\tentry: zStringArray.optional(),\n\t\tignoreDependencies: zStringArray.optional(),\n\t\tproject: zStringArray.optional(),\n\t},\n\tintake({ files }) {\n\t\tconst knipJson = intakeFileAsJson(files, [\"knip.json\"]);\n\t\tif (!knipJson) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\treturn removeUndefinedObjects({\n\t\t\tentry: zStringArray.safeParse(knipJson.entry).data,\n\t\t\tignoreDependencies: zStringArray.safeParse(knipJson.ignoreDependencies)\n\t\t\t\t.data,\n\t\t\tproject: zStringArray.safeParse(knipJson.project).data,\n\t\t});\n\t},\n\tproduce({ addons }) {\n\t\tconst { entry, ignoreDependencies, project } = addons;\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tLinting: {\n\t\t\t\t\t\t\tcontents: {\n\t\t\t\t\t\t\t\titems: [\n\t\t\t\t\t\t\t\t\t`- \\`pnpm lint:knip\\` ([knip](https://github.com/webpro/knip)): Detects unused files, dependencies, and code exports`,\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Lint Knip\",\n\t\t\t\t\t\t\tsteps: [{ run: \"pnpm lint:knip\" }],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\"knip\"),\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\t\"lint:knip\": \"knip\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\"knip.json\": JSON.stringify({\n\t\t\t\t\t$schema: `https://unpkg.com/knip@${getPackageDependency(\"knip\")}/schema.json`,\n\t\t\t\t\tentry: entry?.sort(),\n\t\t\t\t\tignoreDependencies,\n\t\t\t\t\tignoreExportsUsedInFile: {\n\t\t\t\t\t\tinterface: true,\n\t\t\t\t\t\ttype: true,\n\t\t\t\t\t},\n\t\t\t\t\tproject: project?.sort(),\n\t\t\t\t}),\n\t\t\t},\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockRemoveFiles({\n\t\t\t\t\tfiles: [\".knip*\", \"knip.{c,m,t}*\", \"knip.js\", \"knip.jsonc\"],\n\t\t\t\t}),\n\t\t\t\tblockRemoveWorkflows({\n\t\t\t\t\tworkflows: [\"knip\", \"lint-knip\"],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;;;;;;;AAeA,MAAM,eAAe,EAAE,MAAM,EAAE,QAAQ,CAAC;AAExC,MAAa,YAAY,KAAK,YAAY;CACzC,OAAO,EACN,MAAM,QACN;CACD,QAAQ;EACP,OAAO,aAAa,UAAU;EAC9B,oBAAoB,aAAa,UAAU;EAC3C,SAAS,aAAa,UAAU;EAChC;CACD,OAAO,EAAE,SAAS;EACjB,MAAM,WAAW,iBAAiB,OAAO,CAAC,YAAY,CAAC;AACvD,MAAI,CAAC,SACJ;AAGD,SAAO,uBAAuB;GAC7B,OAAO,aAAa,UAAU,SAAS,MAAM,CAAC;GAC9C,oBAAoB,aAAa,UAAU,SAAS,mBAAmB,CACrE;GACF,SAAS,aAAa,UAAU,SAAS,QAAQ,CAAC;GAClD,CAAC;;CAEH,QAAQ,EAAE,UAAU;EACnB,MAAM,EAAE,OAAO,oBAAoB,YAAY;AAC/C,SAAO;GACN,QAAQ;IACP,qBAAqB,EACpB,UAAU,EACT,SAAS,EACR,UAAU,EACT,OAAO,CACN,sHACA,EACD,EACD,EACD,EACD,CAAC;IACF,qBAAqB,EACpB,MAAM,CACL;KACC,MAAM;KACN,OAAO,CAAC,EAAE,KAAK,kBAAkB,CAAC;KAClC,CACD,EACD,CAAC;IACF,iBAAiB,EAChB,YAAY;KACX,iBAAiB,uBAAuB,OAAO;KAC/C,SAAS,EACR,aAAa,QACb;KACD,EACD,CAAC;IACF;GACD,OAAO,EACN,aAAa,KAAK,UAAU;IAC3B,SAAS,0BAA0B,qBAAqB,OAAO,CAAC;IAChE,OAAO,OAAO,MAAM;IACpB;IACA,yBAAyB;KACxB,WAAW;KACX,MAAM;KACN;IACD,SAAS,SAAS,MAAM;IACxB,CAAC,EACF;GACD;;CAEF,aAAa;AACZ,SAAO,EACN,QAAQ,CACP,iBAAiB,EAChB,OAAO;GAAC;GAAU;GAAiB;GAAW;GAAa,EAC3D,CAAC,EACF,qBAAqB,EACpB,WAAW,CAAC,QAAQ,YAAY,EAChC,CAAC,CACF,EACD;;CAEF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum105 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockMITLicense.d.ts
|
|
4
|
-
declare const blockMITLicense:
|
|
4
|
+
declare const blockMITLicense: bingo_stratum105.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -69,7 +69,6 @@ declare const blockMITLicense: bingo_stratum1085.BlockWithoutAddons<{
|
|
|
69
69
|
hash?: string | undefined;
|
|
70
70
|
}>> | undefined;
|
|
71
71
|
}>;
|
|
72
|
-
//# sourceMappingURL=blockMITLicense.d.ts.map
|
|
73
72
|
//#endregion
|
|
74
73
|
export { blockMITLicense };
|
|
75
74
|
//# sourceMappingURL=blockMITLicense.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockMITLicense.d.ts","names":[],"sources":["../../src/blocks/blockMITLicense.ts"],"sourcesContent":[],"mappings":";;;cAIa,
|
|
1
|
+
{"version":3,"file":"blockMITLicense.d.ts","names":[],"sources":["../../src/blocks/blockMITLicense.ts"],"sourcesContent":[],"mappings":";;;cAIa,kCAAe;;;EAAf,SAAA,EAAA,MAAA;;;;;;;;;;EAAe,KAAA,EAAA"}
|
|
@@ -11,10 +11,7 @@ const blockMITLicense = base.createBlock({
|
|
|
11
11
|
alt: "📝 License: MIT",
|
|
12
12
|
href: `https://github.com/${options.owner}/${options.repository}/blob/main/LICENSE.md`,
|
|
13
13
|
src: "https://img.shields.io/badge/%F0%9F%93%9D_license-MIT-21bb42.svg"
|
|
14
|
-
}] }), blockPackageJson({ properties: {
|
|
15
|
-
files: ["LICENSE.md"],
|
|
16
|
-
license: "MIT"
|
|
17
|
-
} })],
|
|
14
|
+
}] }), blockPackageJson({ properties: { license: "MIT" } })],
|
|
18
15
|
files: { "LICENSE.md": `# MIT License
|
|
19
16
|
|
|
20
17
|
Permission is hereby granted, free of charge, to any person obtaining
|