create-typescript-app 2.45.0 → 2.46.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/base.d.ts +170 -167
- package/lib/base.d.ts.map +1 -0
- package/lib/base.js +132 -204
- package/lib/base.js.map +1 -0
- package/lib/blocks/actions/resolveUses.d.ts +5 -2
- package/lib/blocks/actions/resolveUses.d.ts.map +1 -0
- package/lib/blocks/actions/resolveUses.js +13 -20
- package/lib/blocks/actions/resolveUses.js.map +1 -0
- package/lib/blocks/actions/steps.d.ts +25 -21
- package/lib/blocks/actions/steps.d.ts.map +1 -0
- package/lib/blocks/actions/steps.js +18 -23
- package/lib/blocks/actions/steps.js.map +1 -0
- package/lib/blocks/bin/getPrimaryBin.d.ts +4 -0
- package/lib/blocks/bin/getPrimaryBin.d.ts.map +1 -0
- package/lib/blocks/bin/getPrimaryBin.js +6 -4
- package/lib/blocks/bin/getPrimaryBin.js.map +1 -0
- package/lib/blocks/blockAllContributors.d.ts +70 -67
- package/lib/blocks/blockAllContributors.d.ts.map +1 -0
- package/lib/blocks/blockAllContributors.js +122 -170
- package/lib/blocks/blockAllContributors.js.map +1 -0
- package/lib/blocks/blockAreTheTypesWrong.d.ts +70 -67
- package/lib/blocks/blockAreTheTypesWrong.d.ts.map +1 -0
- package/lib/blocks/blockAreTheTypesWrong.js +13 -25
- package/lib/blocks/blockAreTheTypesWrong.js.map +1 -0
- package/lib/blocks/blockCSpell.d.ts +72 -69
- package/lib/blocks/blockCSpell.d.ts.map +1 -0
- package/lib/blocks/blockCSpell.js +68 -105
- package/lib/blocks/blockCSpell.js.map +1 -0
- package/lib/blocks/blockCTATransitions.d.ts +70 -67
- package/lib/blocks/blockCTATransitions.d.ts.map +1 -0
- package/lib/blocks/blockCTATransitions.js +108 -158
- package/lib/blocks/blockCTATransitions.js.map +1 -0
- package/lib/blocks/blockCodecov.d.ts +71 -68
- package/lib/blocks/blockCodecov.d.ts.map +1 -0
- package/lib/blocks/blockCodecov.js +48 -75
- package/lib/blocks/blockCodecov.js.map +1 -0
- package/lib/blocks/blockContributingDocs.d.ts +70 -67
- package/lib/blocks/blockContributingDocs.d.ts.map +1 -0
- package/lib/blocks/blockContributingDocs.js +14 -21
- package/lib/blocks/blockContributingDocs.js.map +1 -0
- package/lib/blocks/blockContributorCovenant.d.ts +70 -67
- package/lib/blocks/blockContributorCovenant.d.ts.map +1 -0
- package/lib/blocks/blockContributorCovenant.js +23 -37
- package/lib/blocks/blockContributorCovenant.js.map +1 -0
- package/lib/blocks/blockDevelopmentDocs.d.ts +83 -80
- package/lib/blocks/blockDevelopmentDocs.d.ts.map +1 -0
- package/lib/blocks/blockDevelopmentDocs.js +64 -74
- package/lib/blocks/blockDevelopmentDocs.js.map +1 -0
- package/lib/blocks/blockESLint.d.ts +95 -92
- package/lib/blocks/blockESLint.d.ts.map +1 -0
- package/lib/blocks/blockESLint.js +169 -263
- package/lib/blocks/blockESLint.js.map +1 -0
- package/lib/blocks/blockESLintComments.d.ts +70 -67
- package/lib/blocks/blockESLintComments.d.ts.map +1 -0
- package/lib/blocks/blockESLintComments.js +16 -21
- package/lib/blocks/blockESLintComments.js.map +1 -0
- package/lib/blocks/blockESLintJSDoc.d.ts +70 -67
- package/lib/blocks/blockESLintJSDoc.d.ts.map +1 -0
- package/lib/blocks/blockESLintJSDoc.js +20 -20
- package/lib/blocks/blockESLintJSDoc.js.map +1 -0
- package/lib/blocks/blockESLintJSONC.d.ts +70 -67
- package/lib/blocks/blockESLintJSONC.d.ts.map +1 -0
- package/lib/blocks/blockESLintJSONC.js +16 -16
- package/lib/blocks/blockESLintJSONC.js.map +1 -0
- package/lib/blocks/blockESLintMarkdown.d.ts +70 -67
- package/lib/blocks/blockESLintMarkdown.d.ts.map +1 -0
- package/lib/blocks/blockESLintMarkdown.js +17 -22
- package/lib/blocks/blockESLintMarkdown.js.map +1 -0
- package/lib/blocks/blockESLintMoreStyling.d.ts +70 -67
- package/lib/blocks/blockESLintMoreStyling.d.ts.map +1 -0
- package/lib/blocks/blockESLintMoreStyling.js +22 -30
- package/lib/blocks/blockESLintMoreStyling.js.map +1 -0
- package/lib/blocks/blockESLintNode.d.ts +70 -67
- package/lib/blocks/blockESLintNode.d.ts.map +1 -0
- package/lib/blocks/blockESLintNode.js +20 -23
- package/lib/blocks/blockESLintNode.js.map +1 -0
- package/lib/blocks/blockESLintPackageJson.d.ts +70 -67
- package/lib/blocks/blockESLintPackageJson.d.ts.map +1 -0
- package/lib/blocks/blockESLintPackageJson.js +26 -49
- package/lib/blocks/blockESLintPackageJson.js.map +1 -0
- package/lib/blocks/blockESLintPerfectionist.d.ts +70 -67
- package/lib/blocks/blockESLintPerfectionist.d.ts.map +1 -0
- package/lib/blocks/blockESLintPerfectionist.js +20 -27
- package/lib/blocks/blockESLintPerfectionist.js.map +1 -0
- package/lib/blocks/blockESLintPlugin.d.ts +71 -68
- package/lib/blocks/blockESLintPlugin.d.ts.map +1 -0
- package/lib/blocks/blockESLintPlugin.js +89 -137
- package/lib/blocks/blockESLintPlugin.js.map +1 -0
- package/lib/blocks/blockESLintRegexp.d.ts +70 -67
- package/lib/blocks/blockESLintRegexp.d.ts.map +1 -0
- package/lib/blocks/blockESLintRegexp.js +16 -18
- package/lib/blocks/blockESLintRegexp.js.map +1 -0
- package/lib/blocks/blockESLintYML.d.ts +70 -67
- package/lib/blocks/blockESLintYML.d.ts.map +1 -0
- package/lib/blocks/blockESLintYML.js +30 -41
- package/lib/blocks/blockESLintYML.js.map +1 -0
- package/lib/blocks/blockExampleFiles.d.ts +72 -69
- package/lib/blocks/blockExampleFiles.d.ts.map +1 -0
- package/lib/blocks/blockExampleFiles.js +22 -29
- package/lib/blocks/blockExampleFiles.js.map +1 -0
- package/lib/blocks/blockFunding.d.ts +70 -67
- package/lib/blocks/blockFunding.d.ts.map +1 -0
- package/lib/blocks/blockFunding.js +10 -15
- package/lib/blocks/blockFunding.js.map +1 -0
- package/lib/blocks/blockGitHubActionsCI.d.ts +85 -82
- package/lib/blocks/blockGitHubActionsCI.d.ts.map +1 -0
- package/lib/blocks/blockGitHubActionsCI.js +83 -134
- package/lib/blocks/blockGitHubActionsCI.js.map +1 -0
- package/lib/blocks/blockGitHubApps.d.ts +74 -71
- package/lib/blocks/blockGitHubApps.d.ts.map +1 -0
- package/lib/blocks/blockGitHubApps.js +15 -24
- package/lib/blocks/blockGitHubApps.js.map +1 -0
- package/lib/blocks/blockGitHubIssueTemplates.d.ts +70 -67
- package/lib/blocks/blockGitHubIssueTemplates.d.ts.map +1 -0
- package/lib/blocks/blockGitHubIssueTemplates.js +185 -204
- package/lib/blocks/blockGitHubIssueTemplates.js.map +1 -0
- package/lib/blocks/blockGitHubPRTemplate.d.ts +70 -67
- package/lib/blocks/blockGitHubPRTemplate.d.ts.map +1 -0
- package/lib/blocks/blockGitHubPRTemplate.js +11 -16
- package/lib/blocks/blockGitHubPRTemplate.js.map +1 -0
- package/lib/blocks/blockGitignore.d.ts +71 -68
- package/lib/blocks/blockGitignore.d.ts.map +1 -0
- package/lib/blocks/blockGitignore.js +13 -18
- package/lib/blocks/blockGitignore.js.map +1 -0
- package/lib/blocks/blockKnip.d.ts +73 -70
- package/lib/blocks/blockKnip.d.ts.map +1 -0
- package/lib/blocks/blockKnip.js +60 -88
- package/lib/blocks/blockKnip.js.map +1 -0
- package/lib/blocks/blockMITLicense.d.ts +70 -67
- package/lib/blocks/blockMITLicense.d.ts.map +1 -0
- package/lib/blocks/blockMITLicense.js +21 -31
- package/lib/blocks/blockMITLicense.js.map +1 -0
- package/lib/blocks/blockMain.d.ts +72 -69
- package/lib/blocks/blockMain.d.ts.map +1 -0
- package/lib/blocks/blockMain.js +17 -29
- package/lib/blocks/blockMain.js.map +1 -0
- package/lib/blocks/blockMarkdownlint.d.ts +71 -68
- package/lib/blocks/blockMarkdownlint.d.ts.map +1 -0
- package/lib/blocks/blockMarkdownlint.js +55 -94
- package/lib/blocks/blockMarkdownlint.js.map +1 -0
- package/lib/blocks/blockNcc.d.ts +71 -68
- package/lib/blocks/blockNcc.d.ts.map +1 -0
- package/lib/blocks/blockNcc.js +44 -72
- package/lib/blocks/blockNcc.js.map +1 -0
- package/lib/blocks/blockNvmrc.d.ts +70 -67
- package/lib/blocks/blockNvmrc.d.ts.map +1 -0
- package/lib/blocks/blockNvmrc.js +16 -21
- package/lib/blocks/blockNvmrc.js.map +1 -0
- package/lib/blocks/blockOctoGuide.d.ts +71 -68
- package/lib/blocks/blockOctoGuide.d.ts.map +1 -0
- package/lib/blocks/blockOctoGuide.js +65 -93
- package/lib/blocks/blockOctoGuide.js.map +1 -0
- package/lib/blocks/blockOctoGuideStrict.d.ts +70 -67
- package/lib/blocks/blockOctoGuideStrict.d.ts.map +1 -0
- package/lib/blocks/blockOctoGuideStrict.js +10 -15
- package/lib/blocks/blockOctoGuideStrict.js.map +1 -0
- package/lib/blocks/blockPackageJson.d.ts +144 -141
- package/lib/blocks/blockPackageJson.d.ts.map +1 -0
- package/lib/blocks/blockPackageJson.js +82 -113
- package/lib/blocks/blockPackageJson.js.map +1 -0
- package/lib/blocks/blockPnpmDedupe.d.ts +70 -67
- package/lib/blocks/blockPnpmDedupe.d.ts.map +1 -0
- package/lib/blocks/blockPnpmDedupe.js +24 -49
- package/lib/blocks/blockPnpmDedupe.js.map +1 -0
- package/lib/blocks/blockPrettier.d.ts +79 -76
- package/lib/blocks/blockPrettier.d.ts.map +1 -0
- package/lib/blocks/blockPrettier.js +82 -116
- package/lib/blocks/blockPrettier.js.map +1 -0
- package/lib/blocks/blockPrettierPluginCurly.d.ts +70 -67
- package/lib/blocks/blockPrettierPluginCurly.d.ts.map +1 -0
- package/lib/blocks/blockPrettierPluginCurly.js +10 -15
- package/lib/blocks/blockPrettierPluginCurly.js.map +1 -0
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts +70 -67
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts.map +1 -0
- package/lib/blocks/blockPrettierPluginPackageJson.js +10 -15
- package/lib/blocks/blockPrettierPluginPackageJson.js.map +1 -0
- package/lib/blocks/blockPrettierPluginSh.d.ts +70 -67
- package/lib/blocks/blockPrettierPluginSh.d.ts.map +1 -0
- package/lib/blocks/blockPrettierPluginSh.js +10 -15
- package/lib/blocks/blockPrettierPluginSh.js.map +1 -0
- package/lib/blocks/blockREADME.d.ts +82 -79
- package/lib/blocks/blockREADME.d.ts.map +1 -0
- package/lib/blocks/blockREADME.js +46 -60
- package/lib/blocks/blockREADME.js.map +1 -0
- package/lib/blocks/blockReleaseIt.d.ts +74 -71
- package/lib/blocks/blockReleaseIt.d.ts.map +1 -0
- package/lib/blocks/blockReleaseIt.js +152 -181
- package/lib/blocks/blockReleaseIt.js.map +1 -0
- package/lib/blocks/blockRemoveDependencies.d.ts +71 -68
- package/lib/blocks/blockRemoveDependencies.d.ts.map +1 -0
- package/lib/blocks/blockRemoveDependencies.js +18 -27
- package/lib/blocks/blockRemoveDependencies.js.map +1 -0
- package/lib/blocks/blockRemoveFiles.d.ts +71 -68
- package/lib/blocks/blockRemoveFiles.d.ts.map +1 -0
- package/lib/blocks/blockRemoveFiles.js +19 -28
- package/lib/blocks/blockRemoveFiles.js.map +1 -0
- package/lib/blocks/blockRemoveWorkflows.d.ts +71 -68
- package/lib/blocks/blockRemoveWorkflows.d.ts.map +1 -0
- package/lib/blocks/blockRemoveWorkflows.js +16 -27
- package/lib/blocks/blockRemoveWorkflows.js.map +1 -0
- package/lib/blocks/blockRenovate.d.ts +71 -68
- package/lib/blocks/blockRenovate.d.ts.map +1 -0
- package/lib/blocks/blockRenovate.js +37 -52
- package/lib/blocks/blockRenovate.js.map +1 -0
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts +71 -68
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts.map +1 -0
- package/lib/blocks/blockRepositoryBranchRuleset.js +77 -107
- package/lib/blocks/blockRepositoryBranchRuleset.js.map +1 -0
- package/lib/blocks/blockRepositoryLabels.d.ts +70 -67
- package/lib/blocks/blockRepositoryLabels.d.ts.map +1 -0
- package/lib/blocks/blockRepositoryLabels.js +51 -58
- package/lib/blocks/blockRepositoryLabels.js.map +1 -0
- package/lib/blocks/blockRepositorySecrets.d.ts +74 -71
- package/lib/blocks/blockRepositorySecrets.d.ts.map +1 -0
- package/lib/blocks/blockRepositorySecrets.js +15 -26
- package/lib/blocks/blockRepositorySecrets.js.map +1 -0
- package/lib/blocks/blockRepositorySettings.d.ts +70 -67
- package/lib/blocks/blockRepositorySettings.d.ts.map +1 -0
- package/lib/blocks/blockRepositorySettings.js +32 -39
- package/lib/blocks/blockRepositorySettings.js.map +1 -0
- package/lib/blocks/blockSecurityDocs.d.ts +70 -67
- package/lib/blocks/blockSecurityDocs.d.ts.map +1 -0
- package/lib/blocks/blockSecurityDocs.js +11 -16
- package/lib/blocks/blockSecurityDocs.js.map +1 -0
- package/lib/blocks/blockTSDown.d.ts +79 -0
- package/lib/blocks/blockTSDown.d.ts.map +1 -0
- package/lib/blocks/blockTSDown.js +111 -0
- package/lib/blocks/blockTSDown.js.map +1 -0
- package/lib/blocks/blockTemplatedWith.d.ts +70 -67
- package/lib/blocks/blockTemplatedWith.d.ts.map +1 -0
- package/lib/blocks/blockTemplatedWith.js +12 -20
- package/lib/blocks/blockTemplatedWith.js.map +1 -0
- package/lib/blocks/blockTypeScript.d.ts +181 -178
- package/lib/blocks/blockTypeScript.d.ts.map +1 -0
- package/lib/blocks/blockTypeScript.js +94 -127
- package/lib/blocks/blockTypeScript.js.map +1 -0
- package/lib/blocks/blockVSCode.d.ts +78 -75
- package/lib/blocks/blockVSCode.d.ts.map +1 -0
- package/lib/blocks/blockVSCode.js +51 -81
- package/lib/blocks/blockVSCode.js.map +1 -0
- package/lib/blocks/blockVitest.d.ts +86 -83
- package/lib/blocks/blockVitest.d.ts.map +1 -0
- package/lib/blocks/blockVitest.js +115 -168
- package/lib/blocks/blockVitest.js.map +1 -0
- package/lib/blocks/blockWebExt.d.ts +70 -67
- package/lib/blocks/blockWebExt.d.ts.map +1 -0
- package/lib/blocks/blockWebExt.js +59 -83
- package/lib/blocks/blockWebExt.js.map +1 -0
- package/lib/blocks/eslint/blockESLintIntake.d.ts +9 -6
- package/lib/blocks/eslint/blockESLintIntake.d.ts.map +1 -0
- package/lib/blocks/eslint/blockESLintIntake.js +84 -111
- package/lib/blocks/eslint/blockESLintIntake.js.map +1 -0
- package/lib/blocks/eslint/blockESLintPluginIntake.d.ts +5 -2
- package/lib/blocks/eslint/blockESLintPluginIntake.d.ts.map +1 -0
- package/lib/blocks/eslint/blockESLintPluginIntake.js +26 -44
- package/lib/blocks/eslint/blockESLintPluginIntake.js.map +1 -0
- package/lib/blocks/eslint/schemas.d.ts +77 -73
- package/lib/blocks/eslint/schemas.d.ts.map +1 -0
- package/lib/blocks/eslint/schemas.js +31 -36
- package/lib/blocks/eslint/schemas.js.map +1 -0
- package/lib/blocks/files/createJobName.d.ts +4 -0
- package/lib/blocks/files/createJobName.d.ts.map +1 -0
- package/lib/blocks/files/createJobName.js +6 -4
- package/lib/blocks/files/createJobName.js.map +1 -0
- package/lib/blocks/files/createMultiWorkflowFile.d.ts +21 -14
- package/lib/blocks/files/createMultiWorkflowFile.d.ts.map +1 -0
- package/lib/blocks/files/createMultiWorkflowFile.js +27 -35
- package/lib/blocks/files/createMultiWorkflowFile.js.map +1 -0
- package/lib/blocks/files/createSoloWorkflowFile.d.ts +61 -52
- package/lib/blocks/files/createSoloWorkflowFile.d.ts.map +1 -0
- package/lib/blocks/files/createSoloWorkflowFile.js +19 -25
- package/lib/blocks/files/createSoloWorkflowFile.js.map +1 -0
- package/lib/blocks/files/formatIgnoreFile.d.ts +4 -0
- package/lib/blocks/files/formatIgnoreFile.d.ts.map +1 -0
- package/lib/blocks/files/formatIgnoreFile.js +6 -4
- package/lib/blocks/files/formatIgnoreFile.js.map +1 -0
- package/lib/blocks/files/formatWorkflowYaml.d.ts +4 -0
- package/lib/blocks/files/formatWorkflowYaml.d.ts.map +1 -0
- package/lib/blocks/files/formatWorkflowYaml.js +7 -4
- package/lib/blocks/files/formatWorkflowYaml.js.map +1 -0
- package/lib/blocks/files/formatYaml.d.ts +4 -0
- package/lib/blocks/files/formatYaml.d.ts.map +1 -0
- package/lib/blocks/files/formatYaml.js +16 -21
- package/lib/blocks/files/formatYaml.js.map +1 -0
- package/lib/blocks/files/removeUsesQuotes.d.ts +4 -0
- package/lib/blocks/files/removeUsesQuotes.d.ts.map +1 -0
- package/lib/blocks/files/removeUsesQuotes.js +6 -7
- package/lib/blocks/files/removeUsesQuotes.js.map +1 -0
- package/lib/blocks/getInstallationSuggestions.d.ts +4 -0
- package/lib/blocks/getInstallationSuggestions.d.ts.map +1 -0
- package/lib/blocks/getInstallationSuggestions.js +11 -12
- package/lib/blocks/getInstallationSuggestions.js.map +1 -0
- package/lib/blocks/index.d.ts +3646 -3644
- package/lib/blocks/index.d.ts.map +1 -0
- package/lib/blocks/index.js +83 -177
- package/lib/blocks/index.js.map +1 -0
- package/lib/blocks/intake/intakeFile.d.ts +5 -1
- package/lib/blocks/intake/intakeFile.d.ts.map +1 -0
- package/lib/blocks/intake/intakeFile.js +12 -18
- package/lib/blocks/intake/intakeFile.js.map +1 -0
- package/lib/blocks/intake/intakeFileAsJson.d.ts +5 -1
- package/lib/blocks/intake/intakeFileAsJson.d.ts.map +1 -0
- package/lib/blocks/intake/intakeFileAsJson.js +13 -10
- package/lib/blocks/intake/intakeFileAsJson.js.map +1 -0
- package/lib/blocks/intake/intakeFileAsYaml.d.ts +5 -1
- package/lib/blocks/intake/intakeFileAsYaml.d.ts.map +1 -0
- package/lib/blocks/intake/intakeFileAsYaml.js +13 -10
- package/lib/blocks/intake/intakeFileAsYaml.js.map +1 -0
- package/lib/blocks/intake/intakeFileDefineConfig.d.ts +5 -1
- package/lib/blocks/intake/intakeFileDefineConfig.d.ts.map +1 -0
- package/lib/blocks/intake/intakeFileDefineConfig.js +20 -23
- package/lib/blocks/intake/intakeFileDefineConfig.js.map +1 -0
- package/lib/blocks/options.fakes.d.ts +23 -20
- package/lib/blocks/options.fakes.d.ts.map +1 -0
- package/lib/blocks/options.fakes.js +19 -23
- package/lib/blocks/options.fakes.js.map +1 -0
- package/lib/blocks/outcomeLabels.d.ts +12 -9
- package/lib/blocks/outcomeLabels.d.ts.map +1 -0
- package/lib/blocks/outcomeLabels.js +93 -92
- package/lib/blocks/outcomeLabels.js.map +1 -0
- package/lib/blocks/phases.d.ts +9 -6
- package/lib/blocks/phases.d.ts.map +1 -0
- package/lib/blocks/phases.js +10 -8
- package/lib/blocks/phases.js.map +1 -0
- package/lib/constants.d.ts +8 -5
- package/lib/constants.d.ts.map +1 -0
- package/lib/constants.js +9 -9
- package/lib/constants.js.map +1 -0
- package/lib/data/contributions.d.ts +4 -0
- package/lib/data/contributions.d.ts.map +1 -0
- package/lib/data/contributions.js +13 -11
- package/lib/data/contributions.js.map +1 -0
- package/lib/data/packageData.d.ts +7 -166
- package/lib/data/packageData.d.ts.map +1 -0
- package/lib/data/packageData.js +16 -24
- package/lib/data/packageData.js.map +1 -0
- package/lib/index.d.ts +290 -288
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +61 -7
- package/lib/index.js.map +1 -0
- package/lib/inputs/inputFromDirectory.d.ts +8 -4
- package/lib/inputs/inputFromDirectory.d.ts.map +1 -0
- package/lib/inputs/inputFromDirectory.js +11 -10
- package/lib/inputs/inputFromDirectory.js.map +1 -0
- package/lib/inputs/inputFromOctokit.d.ts +9 -5
- package/lib/inputs/inputFromOctokit.d.ts.map +1 -0
- package/lib/inputs/inputFromOctokit.js +23 -24
- package/lib/inputs/inputFromOctokit.js.map +1 -0
- package/lib/options/readAccess.d.ts +5 -1
- package/lib/options/readAccess.d.ts.map +1 -0
- package/lib/options/readAccess.js +6 -4
- package/lib/options/readAccess.js.map +1 -0
- package/lib/options/readAllContributors.d.ts +6 -2
- package/lib/options/readAllContributors.d.ts.map +1 -0
- package/lib/options/readAllContributors.js +17 -22
- package/lib/options/readAllContributors.js.map +1 -0
- package/lib/options/readAuthor.d.ts +6 -3
- package/lib/options/readAuthor.d.ts.map +1 -0
- package/lib/options/readAuthor.js +6 -4
- package/lib/options/readAuthor.js.map +1 -0
- package/lib/options/readBin.d.ts +5 -1
- package/lib/options/readBin.d.ts.map +1 -0
- package/lib/options/readBin.js +8 -10
- package/lib/options/readBin.js.map +1 -0
- package/lib/options/readDescription.d.ts +5 -1
- package/lib/options/readDescription.d.ts.map +1 -0
- package/lib/options/readDescription.js +16 -23
- package/lib/options/readDescription.js.map +1 -0
- package/lib/options/readDescriptionFromReadme.d.ts +4 -0
- package/lib/options/readDescriptionFromReadme.d.ts.map +1 -0
- package/lib/options/readDescriptionFromReadme.js +11 -13
- package/lib/options/readDescriptionFromReadme.js.map +1 -0
- package/lib/options/readDevelopmentDocumentation.d.ts +5 -1
- package/lib/options/readDevelopmentDocumentation.d.ts.map +1 -0
- package/lib/options/readDevelopmentDocumentation.js +18 -21
- package/lib/options/readDevelopmentDocumentation.js.map +1 -0
- package/lib/options/readDocumentation.d.ts +5 -2
- package/lib/options/readDocumentation.d.ts.map +1 -0
- package/lib/options/readDocumentation.js +21 -19
- package/lib/options/readDocumentation.js.map +1 -0
- package/lib/options/readEmailFromCodeOfConduct.d.ts +5 -1
- package/lib/options/readEmailFromCodeOfConduct.d.ts.map +1 -0
- package/lib/options/readEmailFromCodeOfConduct.js +8 -7
- package/lib/options/readEmailFromCodeOfConduct.js.map +1 -0
- package/lib/options/readEmailFromGit.d.ts +5 -1
- package/lib/options/readEmailFromGit.d.ts.map +1 -0
- package/lib/options/readEmailFromGit.js +7 -4
- package/lib/options/readEmailFromGit.js.map +1 -0
- package/lib/options/readEmailFromNpm.d.ts +6 -3
- package/lib/options/readEmailFromNpm.d.ts.map +1 -0
- package/lib/options/readEmailFromNpm.js +6 -4
- package/lib/options/readEmailFromNpm.js.map +1 -0
- package/lib/options/readEmails.d.ts +7 -4
- package/lib/options/readEmails.d.ts.map +1 -0
- package/lib/options/readEmails.js +11 -6
- package/lib/options/readEmails.js.map +1 -0
- package/lib/options/readEmoji.d.ts +4 -0
- package/lib/options/readEmoji.d.ts.map +1 -0
- package/lib/options/readEmoji.js +6 -4
- package/lib/options/readEmoji.js.map +1 -0
- package/lib/options/readExistingLabels.d.ts +8 -4
- package/lib/options/readExistingLabels.d.ts.map +1 -0
- package/lib/options/readExistingLabels.js +21 -20
- package/lib/options/readExistingLabels.js.map +1 -0
- package/lib/options/readFileAsJson.d.ts +4 -0
- package/lib/options/readFileAsJson.d.ts.map +1 -0
- package/lib/options/readFileAsJson.js +11 -11
- package/lib/options/readFileAsJson.js.map +1 -0
- package/lib/options/readFileSafe.d.ts +4 -0
- package/lib/options/readFileSafe.d.ts.map +1 -0
- package/lib/options/readFileSafe.js +11 -8
- package/lib/options/readFileSafe.js.map +1 -0
- package/lib/options/readFunding.d.ts +5 -1
- package/lib/options/readFunding.d.ts.map +1 -0
- package/lib/options/readFunding.js +8 -7
- package/lib/options/readFunding.js.map +1 -0
- package/lib/options/readGitDefaults.d.ts +6 -2
- package/lib/options/readGitDefaults.d.ts.map +1 -0
- package/lib/options/readGitDefaults.js +9 -8
- package/lib/options/readGitDefaults.js.map +1 -0
- package/lib/options/readGuide.d.ts +7 -3
- package/lib/options/readGuide.d.ts.map +1 -0
- package/lib/options/readGuide.js +14 -19
- package/lib/options/readGuide.js.map +1 -0
- package/lib/options/readKeywords.d.ts +5 -1
- package/lib/options/readKeywords.d.ts.map +1 -0
- package/lib/options/readKeywords.js +7 -5
- package/lib/options/readKeywords.js.map +1 -0
- package/lib/options/readLogo.d.ts +8 -4
- package/lib/options/readLogo.d.ts.map +1 -0
- package/lib/options/readLogo.js +19 -22
- package/lib/options/readLogo.js.map +1 -0
- package/lib/options/readLogoSizing.d.ts +7 -3
- package/lib/options/readLogoSizing.d.ts.map +1 -0
- package/lib/options/readLogoSizing.js +26 -22
- package/lib/options/readLogoSizing.js.map +1 -0
- package/lib/options/readNode.d.ts +7 -3
- package/lib/options/readNode.d.ts.map +1 -0
- package/lib/options/readNode.js +12 -9
- package/lib/options/readNode.js.map +1 -0
- package/lib/options/readNpmDefaults.d.ts +7 -3
- package/lib/options/readNpmDefaults.d.ts.map +1 -0
- package/lib/options/readNpmDefaults.js +9 -6
- package/lib/options/readNpmDefaults.js.map +1 -0
- package/lib/options/readOwner.d.ts +7 -4
- package/lib/options/readOwner.d.ts.map +1 -0
- package/lib/options/readOwner.js +7 -6
- package/lib/options/readOwner.js.map +1 -0
- package/lib/options/readPackageAuthor.d.ts +8 -4
- package/lib/options/readPackageAuthor.d.ts.map +1 -0
- package/lib/options/readPackageAuthor.js +12 -12
- package/lib/options/readPackageAuthor.js.map +1 -0
- package/lib/options/readPackageData.d.ts +6 -2
- package/lib/options/readPackageData.d.ts.map +1 -0
- package/lib/options/readPackageData.js +8 -9
- package/lib/options/readPackageData.js.map +1 -0
- package/lib/options/readPnpm.d.ts +5 -1
- package/lib/options/readPnpm.d.ts.map +1 -0
- package/lib/options/readPnpm.js +7 -5
- package/lib/options/readPnpm.js.map +1 -0
- package/lib/options/readReadmeAdditional.d.ts +4 -0
- package/lib/options/readReadmeAdditional.d.ts.map +1 -0
- package/lib/options/readReadmeAdditional.js +15 -22
- package/lib/options/readReadmeAdditional.js.map +1 -0
- package/lib/options/readReadmeExplainer.d.ts +4 -0
- package/lib/options/readReadmeExplainer.d.ts.map +1 -0
- package/lib/options/readReadmeExplainer.js +24 -25
- package/lib/options/readReadmeExplainer.js.map +1 -0
- package/lib/options/readReadmeFootnotes.d.ts +4 -0
- package/lib/options/readReadmeFootnotes.d.ts.map +1 -0
- package/lib/options/readReadmeFootnotes.js +15 -24
- package/lib/options/readReadmeFootnotes.js.map +1 -0
- package/lib/options/readReadmeUsage.d.ts +4 -0
- package/lib/options/readReadmeUsage.d.ts.map +1 -0
- package/lib/options/readReadmeUsage.js +13 -15
- package/lib/options/readReadmeUsage.js.map +1 -0
- package/lib/options/readRepository.d.ts +8 -4
- package/lib/options/readRepository.d.ts.map +1 -0
- package/lib/options/readRepository.js +6 -4
- package/lib/options/readRepository.js.map +1 -0
- package/lib/options/readRulesetId.d.ts +5 -1
- package/lib/options/readRulesetId.d.ts.map +1 -0
- package/lib/options/readRulesetId.js +14 -13
- package/lib/options/readRulesetId.js.map +1 -0
- package/lib/options/readTitle.d.ts +4 -0
- package/lib/options/readTitle.d.ts.map +1 -0
- package/lib/options/readTitle.js +11 -10
- package/lib/options/readTitle.js.map +1 -0
- package/lib/options/readWords.d.ts +5 -1
- package/lib/options/readWords.d.ts.map +1 -0
- package/lib/options/readWords.js +9 -10
- package/lib/options/readWords.js.map +1 -0
- package/lib/options/readWorkflowsVersions.d.ts +6 -3
- package/lib/options/readWorkflowsVersions.d.ts.map +1 -0
- package/lib/options/readWorkflowsVersions.js +45 -63
- package/lib/options/readWorkflowsVersions.js.map +1 -0
- package/lib/presets/common.d.ts +169 -166
- package/lib/presets/common.d.ts.map +1 -0
- package/lib/presets/common.js +21 -18
- package/lib/presets/common.js.map +1 -0
- package/lib/presets/everything.d.ts +169 -166
- package/lib/presets/everything.d.ts.map +1 -0
- package/lib/presets/everything.js +39 -36
- package/lib/presets/everything.js.map +1 -0
- package/lib/presets/index.d.ts +504 -502
- package/lib/presets/index.d.ts.map +1 -0
- package/lib/presets/index.js +10 -13
- package/lib/presets/index.js.map +1 -0
- package/lib/presets/minimal.d.ts +169 -166
- package/lib/presets/minimal.d.ts.map +1 -0
- package/lib/presets/minimal.js +51 -48
- package/lib/presets/minimal.js.map +1 -0
- package/lib/schemas.d.ts +75 -71
- package/lib/schemas.d.ts.map +1 -0
- package/lib/schemas.js +19 -21
- package/lib/schemas.js.map +1 -0
- package/lib/template.d.ts +169 -166
- package/lib/template.d.ts.map +1 -0
- package/lib/template.js +31 -24
- package/lib/template.js.map +1 -0
- package/lib/types.d.ts +32 -30
- package/lib/types.d.ts.map +1 -0
- package/lib/utils/htmlToTextSafe.d.ts +4 -0
- package/lib/utils/htmlToTextSafe.d.ts.map +1 -0
- package/lib/utils/htmlToTextSafe.js +13 -12
- package/lib/utils/htmlToTextSafe.js.map +1 -0
- package/lib/utils/resolveBin.d.ts +4 -0
- package/lib/utils/resolveBin.d.ts.map +1 -0
- package/lib/utils/resolveBin.js +7 -4
- package/lib/utils/resolveBin.js.map +1 -0
- package/lib/utils/swallowError.d.ts +4 -0
- package/lib/utils/swallowError.d.ts.map +1 -0
- package/lib/utils/swallowError.js +6 -4
- package/lib/utils/swallowError.js.map +1 -0
- package/lib/utils/swallowErrorAsync.d.ts +4 -0
- package/lib/utils/swallowErrorAsync.d.ts.map +1 -0
- package/lib/utils/swallowErrorAsync.js +10 -8
- package/lib/utils/swallowErrorAsync.js.map +1 -0
- package/lib/utils/trimPrecedingSlash.d.ts +4 -0
- package/lib/utils/trimPrecedingSlash.d.ts.map +1 -0
- package/lib/utils/trimPrecedingSlash.js +6 -4
- package/lib/utils/trimPrecedingSlash.js.map +1 -0
- package/lib/utils/tryCatch.d.ts +4 -0
- package/lib/utils/tryCatch.d.ts.map +1 -0
- package/lib/utils/tryCatch.js +10 -8
- package/lib/utils/tryCatch.js.map +1 -0
- package/package.json +3 -3
- package/lib/blocks/blockTSup.d.ts +0 -76
- package/lib/blocks/blockTSup.js +0 -139
|
@@ -1,164 +1,114 @@
|
|
|
1
|
-
import { base } from "../base.js";
|
|
2
1
|
import { packageData } from "../data/packageData.js";
|
|
2
|
+
import { base } from "../base.js";
|
|
3
3
|
import { resolveUses } from "./actions/resolveUses.js";
|
|
4
|
-
import { blockPackageJson } from "./blockPackageJson.js";
|
|
5
4
|
import { blockRepositoryBranchRuleset } from "./blockRepositoryBranchRuleset.js";
|
|
6
|
-
import { createSoloWorkflowFile } from "./files/createSoloWorkflowFile.js";
|
|
7
5
|
import { formatYaml } from "./files/formatYaml.js";
|
|
6
|
+
import { createSoloWorkflowFile } from "./files/createSoloWorkflowFile.js";
|
|
7
|
+
import { blockPackageJson } from "./blockPackageJson.js";
|
|
8
|
+
|
|
9
|
+
//#region src/blocks/blockCTATransitions.ts
|
|
8
10
|
const blockCTATransitions = base.createBlock({
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
],
|
|
110
|
-
using: "composite"
|
|
111
|
-
}
|
|
112
|
-
})
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
workflows: {
|
|
116
|
-
"cta.yml": createSoloWorkflowFile({
|
|
117
|
-
jobName: "Transition",
|
|
118
|
-
name: "CTA",
|
|
119
|
-
on: {
|
|
120
|
-
pull_request: {
|
|
121
|
-
branches: ["main"]
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
permissions: {
|
|
125
|
-
"pull-requests": "write"
|
|
126
|
-
},
|
|
127
|
-
steps: [
|
|
128
|
-
{
|
|
129
|
-
id: "checkout",
|
|
130
|
-
if: `(github.actor == '${options.owner}' || github.actor == 'renovate[bot]') && startsWith(github.head_ref, 'renovate/') && contains(github.event.pull_request.title, 'create-typescript-app')`,
|
|
131
|
-
uses: resolveUses(
|
|
132
|
-
"actions/checkout",
|
|
133
|
-
"v4",
|
|
134
|
-
options.workflowsVersions
|
|
135
|
-
),
|
|
136
|
-
with: {
|
|
137
|
-
"fetch-depth": 0,
|
|
138
|
-
ref: "${{github.event.pull_request.head.ref}}",
|
|
139
|
-
repository: "${{github.event.pull_request.head.repo.full_name}}",
|
|
140
|
-
token: "${{ secrets.ACCESS_TOKEN }}"
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
if: "steps.checkout.outcome != 'skipped'",
|
|
145
|
-
uses: "./.github/actions/transition",
|
|
146
|
-
with: {
|
|
147
|
-
token: "${{ secrets.ACCESS_TOKEN }}"
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
if: "steps.checkout.outcome == 'skipped'",
|
|
152
|
-
run: "echo 'Skipping transition mode because the PR does not appear to be an automated or owner-created update to create-typescript-app.'"
|
|
153
|
-
}
|
|
154
|
-
]
|
|
155
|
-
})
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
}
|
|
11
|
+
about: { name: "CTA Transitions" },
|
|
12
|
+
produce({ options }) {
|
|
13
|
+
return {
|
|
14
|
+
addons: [blockPackageJson({ properties: { devDependencies: { "create-typescript-app": packageData.version } } }), blockRepositoryBranchRuleset({ requiredStatusChecks: ["Transition"] })],
|
|
15
|
+
files: { ".github": {
|
|
16
|
+
actions: { transition: { "action.yml": formatYaml({
|
|
17
|
+
description: "Runs create-typescript-app in transition mode",
|
|
18
|
+
inputs: { token: {
|
|
19
|
+
description: "GitHub personal access token with repo, workflow, and read:org permissions.",
|
|
20
|
+
required: true
|
|
21
|
+
} },
|
|
22
|
+
name: "Transition",
|
|
23
|
+
runs: {
|
|
24
|
+
steps: [
|
|
25
|
+
{ uses: "./.github/actions/prepare" },
|
|
26
|
+
{
|
|
27
|
+
run: "npx create-typescript-app",
|
|
28
|
+
shell: "bash"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: "auto-commit-action",
|
|
32
|
+
uses: resolveUses("stefanzweifel/git-auto-commit-action", "v5", options.workflowsVersions),
|
|
33
|
+
with: {
|
|
34
|
+
commit_author: "The Friendly Bingo Bot <bot@create.bingo>",
|
|
35
|
+
commit_message: "Check in changes from re-running npx create-typescript-app",
|
|
36
|
+
commit_user_email: "bot@create.bingo",
|
|
37
|
+
commit_user_name: "The Friendly Bingo Bot"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
if: "steps.auto-commit-action.outputs.changes_detected == 'true'",
|
|
42
|
+
uses: resolveUses("mshick/add-pr-comment", "v2", options.workflowsVersions),
|
|
43
|
+
with: {
|
|
44
|
+
issue: "${{ github.event.pull_request.number }}",
|
|
45
|
+
message: [
|
|
46
|
+
"🤖 Beep boop! I ran `npx create-typescript-app` and it updated some files.",
|
|
47
|
+
"",
|
|
48
|
+
"I went ahead and checked those changes into this PR for you. Please review the latest commit to see if you want to merge it.",
|
|
49
|
+
"",
|
|
50
|
+
"Cheers!",
|
|
51
|
+
" — _The Friendly Bingo Bot_ 💝",
|
|
52
|
+
"",
|
|
53
|
+
"> ℹ️ These automatic commits keep your repository up-to-date with new versions of [create-typescript-app](https://github.com/JoshuaKGoldberg/create-typescript-app). If you want to opt out, delete your `.github/workflows/cta-transitions.yml` file."
|
|
54
|
+
].join("\n")
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
id: "package-change",
|
|
59
|
+
uses: resolveUses("JoshuaKGoldberg/package-change-detector-action", "0.1.0", options.workflowsVersions),
|
|
60
|
+
with: { properties: "engines" }
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
if: `steps.package-change.outputs.changed == 'true'`,
|
|
64
|
+
uses: resolveUses("JoshuaKGoldberg/draft-pull-request-once-action", "0.0.1", options.workflowsVersions),
|
|
65
|
+
with: {
|
|
66
|
+
"github-token": "${{ inputs.token }}",
|
|
67
|
+
message: [
|
|
68
|
+
"🤖 Beep boop! This PR changes the `engines` field in `package.json`. That might be a breaking change. It's been set to a draft so that it doesn't automatically merge. Go ahead and un-draft the PR if the change is ready for release.",
|
|
69
|
+
"",
|
|
70
|
+
"Cheers!",
|
|
71
|
+
" — _The Friendly Bingo Bot_ 💝"
|
|
72
|
+
].join("\n")
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
using: "composite"
|
|
77
|
+
}
|
|
78
|
+
}) } },
|
|
79
|
+
workflows: { "cta.yml": createSoloWorkflowFile({
|
|
80
|
+
jobName: "Transition",
|
|
81
|
+
name: "CTA",
|
|
82
|
+
on: { pull_request: { branches: ["main"] } },
|
|
83
|
+
permissions: { "pull-requests": "write" },
|
|
84
|
+
steps: [
|
|
85
|
+
{
|
|
86
|
+
id: "checkout",
|
|
87
|
+
if: `(github.actor == '${options.owner}' || github.actor == 'renovate[bot]') && startsWith(github.head_ref, 'renovate/') && contains(github.event.pull_request.title, 'create-typescript-app')`,
|
|
88
|
+
uses: resolveUses("actions/checkout", "v4", options.workflowsVersions),
|
|
89
|
+
with: {
|
|
90
|
+
"fetch-depth": 0,
|
|
91
|
+
ref: "${{github.event.pull_request.head.ref}}",
|
|
92
|
+
repository: "${{github.event.pull_request.head.repo.full_name}}",
|
|
93
|
+
token: "${{ secrets.ACCESS_TOKEN }}"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
if: "steps.checkout.outcome != 'skipped'",
|
|
98
|
+
uses: "./.github/actions/transition",
|
|
99
|
+
with: { token: "${{ secrets.ACCESS_TOKEN }}" }
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
if: "steps.checkout.outcome == 'skipped'",
|
|
103
|
+
run: "echo 'Skipping transition mode because the PR does not appear to be an automated or owner-created update to create-typescript-app.'"
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}) }
|
|
107
|
+
} }
|
|
108
|
+
};
|
|
109
|
+
}
|
|
161
110
|
});
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
};
|
|
111
|
+
|
|
112
|
+
//#endregion
|
|
113
|
+
export { blockCTATransitions };
|
|
114
|
+
//# sourceMappingURL=blockCTATransitions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockCTATransitions.js","names":[],"sources":["../../src/blocks/blockCTATransitions.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { packageData } from \"../data/packageData.js\";\nimport { resolveUses } from \"./actions/resolveUses.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockRepositoryBranchRuleset } from \"./blockRepositoryBranchRuleset.js\";\nimport { createSoloWorkflowFile } from \"./files/createSoloWorkflowFile.js\";\nimport { formatYaml } from \"./files/formatYaml.js\";\n\nexport const blockCTATransitions = base.createBlock({\n\tabout: {\n\t\tname: \"CTA Transitions\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\t\t\"create-typescript-app\": packageData.version,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockRepositoryBranchRuleset({\n\t\t\t\t\trequiredStatusChecks: [\"Transition\"],\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\ttransition: {\n\t\t\t\t\t\t\t\"action.yml\": formatYaml({\n\t\t\t\t\t\t\t\tdescription: \"Runs create-typescript-app in transition mode\",\n\t\t\t\t\t\t\t\tinputs: {\n\t\t\t\t\t\t\t\t\ttoken: {\n\t\t\t\t\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\t\t\t\t\"GitHub personal access token with repo, workflow, and read:org permissions.\",\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\tname: \"Transition\",\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{ uses: \"./.github/actions/prepare\" },\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\trun: \"npx create-typescript-app\",\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\t{\n\t\t\t\t\t\t\t\t\t\t\tid: \"auto-commit-action\",\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\"stefanzweifel/git-auto-commit-action\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"v5\",\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\tcommit_author:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"The Friendly Bingo Bot <bot@create.bingo>\",\n\t\t\t\t\t\t\t\t\t\t\t\tcommit_message:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"Check in changes from re-running npx create-typescript-app\",\n\t\t\t\t\t\t\t\t\t\t\t\tcommit_user_email: \"bot@create.bingo\",\n\t\t\t\t\t\t\t\t\t\t\t\tcommit_user_name: \"The Friendly Bingo Bot\",\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\tif: \"steps.auto-commit-action.outputs.changes_detected == 'true'\",\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\"mshick/add-pr-comment\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"v2\",\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\tissue: \"${{ github.event.pull_request.number }}\",\n\t\t\t\t\t\t\t\t\t\t\t\tmessage: [\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"🤖 Beep boop! I ran `npx create-typescript-app` and it updated some files.\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"I went ahead and checked those changes into this PR for you. Please review the latest commit to see if you want to merge it.\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"Cheers!\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\" — _The Friendly Bingo Bot_ 💝\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"> ℹ️ These automatic commits keep your repository up-to-date with new versions of [create-typescript-app](https://github.com/JoshuaKGoldberg/create-typescript-app). If you want to opt out, delete your `.github/workflows/cta-transitions.yml` file.\",\n\t\t\t\t\t\t\t\t\t\t\t\t].join(\"\\n\"),\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\tid: \"package-change\",\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\"JoshuaKGoldberg/package-change-detector-action\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"0.1.0\",\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\tproperties: \"engines\",\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\tif: `steps.package-change.outputs.changed == 'true'`,\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\"JoshuaKGoldberg/draft-pull-request-once-action\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"0.0.1\",\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\t\"github-token\": \"${{ inputs.token }}\",\n\t\t\t\t\t\t\t\t\t\t\t\tmessage: [\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"🤖 Beep boop! This PR changes the `engines` field in `package.json`. That might be a breaking change. It's been set to a draft so that it doesn't automatically merge. Go ahead and un-draft the PR if the change is ready for release.\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"Cheers!\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\" — _The Friendly Bingo Bot_ 💝\",\n\t\t\t\t\t\t\t\t\t\t\t\t].join(\"\\n\"),\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\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\"cta.yml\": createSoloWorkflowFile({\n\t\t\t\t\t\t\tjobName: \"Transition\",\n\t\t\t\t\t\t\tname: \"CTA\",\n\t\t\t\t\t\t\ton: {\n\t\t\t\t\t\t\t\tpull_request: {\n\t\t\t\t\t\t\t\t\tbranches: [\"main\"],\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\tid: \"checkout\",\n\t\t\t\t\t\t\t\t\tif: `(github.actor == '${options.owner}' || github.actor == 'renovate[bot]') && startsWith(github.head_ref, 'renovate/') && contains(github.event.pull_request.title, 'create-typescript-app')`,\n\t\t\t\t\t\t\t\t\tuses: resolveUses(\n\t\t\t\t\t\t\t\t\t\t\"actions/checkout\",\n\t\t\t\t\t\t\t\t\t\t\"v4\",\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\t\"fetch-depth\": 0,\n\t\t\t\t\t\t\t\t\t\tref: \"${{github.event.pull_request.head.ref}}\",\n\t\t\t\t\t\t\t\t\t\trepository:\n\t\t\t\t\t\t\t\t\t\t\t\"${{github.event.pull_request.head.repo.full_name}}\",\n\t\t\t\t\t\t\t\t\t\ttoken: \"${{ secrets.ACCESS_TOKEN }}\",\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: \"steps.checkout.outcome != 'skipped'\",\n\t\t\t\t\t\t\t\t\tuses: \"./.github/actions/transition\",\n\t\t\t\t\t\t\t\t\twith: {\n\t\t\t\t\t\t\t\t\t\ttoken: \"${{ secrets.ACCESS_TOKEN }}\",\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: \"steps.checkout.outcome == 'skipped'\",\n\t\t\t\t\t\t\t\t\trun: \"echo 'Skipping transition mode because the PR does not appear to be an automated or owner-created update to create-typescript-app.'\",\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});\n"],"mappings":";;;;;;;;;AAQA,MAAa,sBAAsB,KAAK,YAAY;CACnD,OAAO,EACN,MAAM,kBACN;CACD,QAAQ,EAAE,SAAS,EAAE;AACpB,SAAO;GACN,QAAQ,CACP,iBAAiB,EAChB,YAAY,EACX,iBAAiB,EAChB,yBAAyB,YAAY,QACrC,EACD,EACD,EAAC,EACF,6BAA6B,EAC5B,sBAAsB,CAAC,YAAa,EACpC,EAAC,AACF;GACD,OAAO,EACN,WAAW;IACV,SAAS,EACR,YAAY,EACX,cAAc,WAAW;KACxB,aAAa;KACb,QAAQ,EACP,OAAO;MACN,aACC;MACD,UAAU;KACV,EACD;KACD,MAAM;KACN,MAAM;MACL,OAAO;OACN,EAAE,MAAM,4BAA6B;OACrC;QACC,KAAK;QACL,OAAO;OACP;OACD;QACC,IAAI;QACJ,MAAM,YACL,wCACA,MACA,QAAQ,kBACR;QACD,MAAM;SACL,eACC;SACD,gBACC;SACD,mBAAmB;SACnB,kBAAkB;QAClB;OACD;OACD;QACC,IAAI;QACJ,MAAM,YACL,yBACA,MACA,QAAQ,kBACR;QACD,MAAM;SACL,OAAO;SACP,SAAS;UACR;UACA;UACA;UACA;UACA;UACA;UACA;UACA;SACA,EAAC,KAAK,KAAK;QACZ;OACD;OACD;QACC,IAAI;QACJ,MAAM,YACL,kDACA,SACA,QAAQ,kBACR;QACD,MAAM,EACL,YAAY,UACZ;OACD;OACD;QACC,KAAK;QACL,MAAM,YACL,kDACA,SACA,QAAQ,kBACR;QACD,MAAM;SACL,gBAAgB;SAChB,SAAS;UACR;UACA;UACA;UACA;SACA,EAAC,KAAK,KAAK;QACZ;OACD;MACD;MACD,OAAO;KACP;IACD,EAAC,CACF,EACD;IACD,WAAW,EACV,WAAW,uBAAuB;KACjC,SAAS;KACT,MAAM;KACN,IAAI,EACH,cAAc,EACb,UAAU,CAAC,MAAO,EAClB,EACD;KACD,aAAa,EACZ,iBAAiB,QACjB;KACD,OAAO;MACN;OACC,IAAI;OACJ,KAAK,oBAAoB,QAAQ,MAAM;OACvC,MAAM,YACL,oBACA,MACA,QAAQ,kBACR;OACD,MAAM;QACL,eAAe;QACf,KAAK;QACL,YACC;QACD,OAAO;OACP;MACD;MACD;OACC,IAAI;OACJ,MAAM;OACN,MAAM,EACL,OAAO,8BACP;MACD;MACD;OACC,IAAI;OACJ,KAAK;MACL;KACD;IACD,EAAC,CACF;GACD,EACD;EACD;CACD;AACD,EAAC"}
|
|
@@ -1,74 +1,77 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum268 from "bingo-stratum";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
//#region src/blocks/blockCodecov.d.ts
|
|
4
|
+
declare const blockCodecov: bingo_stratum268.BlockWithAddons<{
|
|
5
|
+
env?: Record<string, string> | undefined;
|
|
5
6
|
}, {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
development?: string | undefined;
|
|
17
|
-
};
|
|
18
|
-
email: {
|
|
19
|
-
github: string;
|
|
20
|
-
npm: string;
|
|
7
|
+
access: "public" | "restricted";
|
|
8
|
+
description: string;
|
|
9
|
+
directory: string;
|
|
10
|
+
documentation: {
|
|
11
|
+
readme: {
|
|
12
|
+
additional?: string | undefined;
|
|
13
|
+
explainer?: string | undefined;
|
|
14
|
+
footnotes?: string | undefined;
|
|
15
|
+
usage?: string | undefined;
|
|
21
16
|
};
|
|
17
|
+
development?: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
email: {
|
|
20
|
+
github: string;
|
|
21
|
+
npm: string;
|
|
22
|
+
};
|
|
23
|
+
title: string;
|
|
24
|
+
node: {
|
|
25
|
+
minimum: string;
|
|
26
|
+
pinned?: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
owner: string;
|
|
29
|
+
repository: string;
|
|
30
|
+
type?: "commonjs" | "module" | undefined;
|
|
31
|
+
author?: string | undefined;
|
|
32
|
+
bin?: string | Record<string, string> | undefined;
|
|
33
|
+
contributors?: {
|
|
34
|
+
avatar_url: string;
|
|
35
|
+
contributions: string[];
|
|
36
|
+
login: string;
|
|
37
|
+
name: string;
|
|
38
|
+
profile: string;
|
|
39
|
+
}[] | undefined;
|
|
40
|
+
emoji?: string | undefined;
|
|
41
|
+
existingLabels?: {
|
|
42
|
+
name: string;
|
|
43
|
+
description: string;
|
|
44
|
+
color: string;
|
|
45
|
+
}[] | undefined;
|
|
46
|
+
funding?: string | undefined;
|
|
47
|
+
guide?: {
|
|
48
|
+
href: string;
|
|
22
49
|
title: string;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
guide?: {
|
|
47
|
-
href: string;
|
|
48
|
-
title: string;
|
|
49
|
-
} | undefined;
|
|
50
|
-
keywords?: string[] | undefined;
|
|
51
|
-
logo?: {
|
|
52
|
-
alt: string;
|
|
53
|
-
src: string;
|
|
54
|
-
height?: number | undefined;
|
|
55
|
-
width?: number | undefined;
|
|
56
|
-
} | undefined;
|
|
57
|
-
packageData?: {
|
|
58
|
-
dependencies?: Record<string, string> | undefined;
|
|
59
|
-
devDependencies?: Record<string, string> | undefined;
|
|
60
|
-
peerDependencies?: Record<string, string> | undefined;
|
|
61
|
-
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
62
|
-
scripts?: Record<string, string | undefined> | undefined;
|
|
63
|
-
} | undefined;
|
|
64
|
-
pnpm?: string | undefined;
|
|
65
|
-
rulesetId?: string | undefined;
|
|
66
|
-
version?: string | undefined;
|
|
67
|
-
words?: string[] | undefined;
|
|
68
|
-
workflowsVersions?: Record<string, Record<string, {
|
|
69
|
-
pinned?: boolean | undefined;
|
|
70
|
-
hash?: string | undefined;
|
|
71
|
-
}>> | undefined;
|
|
50
|
+
} | undefined;
|
|
51
|
+
keywords?: string[] | undefined;
|
|
52
|
+
logo?: {
|
|
53
|
+
alt: string;
|
|
54
|
+
src: string;
|
|
55
|
+
height?: number | undefined;
|
|
56
|
+
width?: number | undefined;
|
|
57
|
+
} | undefined;
|
|
58
|
+
packageData?: {
|
|
59
|
+
dependencies?: Record<string, string> | undefined;
|
|
60
|
+
devDependencies?: Record<string, string> | undefined;
|
|
61
|
+
peerDependencies?: Record<string, string> | undefined;
|
|
62
|
+
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
63
|
+
scripts?: Record<string, string | undefined> | undefined;
|
|
64
|
+
} | undefined;
|
|
65
|
+
pnpm?: string | undefined;
|
|
66
|
+
rulesetId?: string | undefined;
|
|
67
|
+
version?: string | undefined;
|
|
68
|
+
words?: string[] | undefined;
|
|
69
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
70
|
+
pinned?: boolean | undefined;
|
|
71
|
+
hash?: string | undefined;
|
|
72
|
+
}>> | undefined;
|
|
72
73
|
}>;
|
|
73
|
-
|
|
74
|
+
//# sourceMappingURL=blockCodecov.d.ts.map
|
|
75
|
+
//#endregion
|
|
74
76
|
export { blockCodecov };
|
|
77
|
+
//# sourceMappingURL=blockCodecov.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockCodecov.d.ts","names":[],"sources":["../../src/blocks/blockCodecov.ts"],"sourcesContent":[],"mappings":";;;cAUa,+BAAY;QA0EvB;;EA1EW,MAAA,EAAA,QA0EX,GAAA,YAAA;EAAA,WAAA,EAAA,MAAA;EAAA,SAAA,EAAA,MAAA;;;;;;;;;;EA1EuB,KAAA,EAAA"}
|
|
@@ -1,82 +1,55 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import { base } from "../base.js";
|
|
3
2
|
import { resolveUses } from "./actions/resolveUses.js";
|
|
4
3
|
import { intakeFileYamlSteps } from "./actions/steps.js";
|
|
5
|
-
import { blockGitHubApps } from "./blockGitHubApps.js";
|
|
6
|
-
import { blockREADME } from "./blockREADME.js";
|
|
7
4
|
import { blockRemoveFiles } from "./blockRemoveFiles.js";
|
|
5
|
+
import { blockREADME } from "./blockREADME.js";
|
|
8
6
|
import { blockVitest } from "./blockVitest.js";
|
|
7
|
+
import { blockGitHubApps } from "./blockGitHubApps.js";
|
|
8
|
+
import { z } from "zod";
|
|
9
|
+
|
|
10
|
+
//#region src/blocks/blockCodecov.ts
|
|
9
11
|
const blockCodecov = base.createBlock({
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
{
|
|
50
|
-
alt: "\u{1F9EA} Coverage",
|
|
51
|
-
href: `https://codecov.io/gh/${options.owner}/${options.repository}`,
|
|
52
|
-
src: `https://img.shields.io/codecov/c/github/${options.owner}/${options.repository}?label=%F0%9F%A7%AA%20coverage`
|
|
53
|
-
}
|
|
54
|
-
]
|
|
55
|
-
}),
|
|
56
|
-
blockVitest({
|
|
57
|
-
actionSteps: [
|
|
58
|
-
{
|
|
59
|
-
...env && { env },
|
|
60
|
-
if: "always()",
|
|
61
|
-
uses: resolveUses(
|
|
62
|
-
"codecov/codecov-action",
|
|
63
|
-
"v3",
|
|
64
|
-
options.workflowsVersions
|
|
65
|
-
)
|
|
66
|
-
}
|
|
67
|
-
]
|
|
68
|
-
})
|
|
69
|
-
]
|
|
70
|
-
};
|
|
71
|
-
},
|
|
72
|
-
transition() {
|
|
73
|
-
return {
|
|
74
|
-
addons: [
|
|
75
|
-
blockRemoveFiles({ files: [".github/codecov.yml", "codecov.yml"] })
|
|
76
|
-
]
|
|
77
|
-
};
|
|
78
|
-
}
|
|
12
|
+
about: { name: "Codecov" },
|
|
13
|
+
addons: { env: z.record(z.string(), z.string()).optional() },
|
|
14
|
+
intake({ files }) {
|
|
15
|
+
const steps = intakeFileYamlSteps(files, [
|
|
16
|
+
".github",
|
|
17
|
+
"workflows",
|
|
18
|
+
"ci.yml"
|
|
19
|
+
], [
|
|
20
|
+
"jobs",
|
|
21
|
+
"test",
|
|
22
|
+
"steps"
|
|
23
|
+
]);
|
|
24
|
+
if (!steps) return void 0;
|
|
25
|
+
const step = steps.find((step$1) => typeof step$1.uses === "string" && step$1.uses.startsWith("codecov/codecov-action"));
|
|
26
|
+
if (!step) return void 0;
|
|
27
|
+
return { env: step.env };
|
|
28
|
+
},
|
|
29
|
+
produce({ addons, options }) {
|
|
30
|
+
const { env } = addons;
|
|
31
|
+
return { addons: [
|
|
32
|
+
blockGitHubApps({ apps: [{
|
|
33
|
+
name: "Codecov",
|
|
34
|
+
url: "https://github.com/apps/codecov"
|
|
35
|
+
}] }),
|
|
36
|
+
blockREADME({ badges: [{
|
|
37
|
+
alt: "🧪 Coverage",
|
|
38
|
+
href: `https://codecov.io/gh/${options.owner}/${options.repository}`,
|
|
39
|
+
src: `https://img.shields.io/codecov/c/github/${options.owner}/${options.repository}?label=%F0%9F%A7%AA%20coverage`
|
|
40
|
+
}] }),
|
|
41
|
+
blockVitest({ actionSteps: [{
|
|
42
|
+
...env && { env },
|
|
43
|
+
if: "always()",
|
|
44
|
+
uses: resolveUses("codecov/codecov-action", "v3", options.workflowsVersions)
|
|
45
|
+
}] })
|
|
46
|
+
] };
|
|
47
|
+
},
|
|
48
|
+
transition() {
|
|
49
|
+
return { addons: [blockRemoveFiles({ files: [".github/codecov.yml", "codecov.yml"] })] };
|
|
50
|
+
}
|
|
79
51
|
});
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
};
|
|
52
|
+
|
|
53
|
+
//#endregion
|
|
54
|
+
export { blockCodecov };
|
|
55
|
+
//# sourceMappingURL=blockCodecov.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockCodecov.js","names":["step"],"sources":["../../src/blocks/blockCodecov.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { resolveUses } from \"./actions/resolveUses.js\";\nimport { intakeFileYamlSteps } from \"./actions/steps.js\";\nimport { blockGitHubApps } from \"./blockGitHubApps.js\";\nimport { blockREADME } from \"./blockREADME.js\";\nimport { blockRemoveFiles } from \"./blockRemoveFiles.js\";\nimport { blockVitest } from \"./blockVitest.js\";\n\nexport const blockCodecov = base.createBlock({\n\tabout: {\n\t\tname: \"Codecov\",\n\t},\n\taddons: {\n\t\tenv: z.record(z.string(), z.string()).optional(),\n\t},\n\tintake({ files }) {\n\t\tconst steps = intakeFileYamlSteps(\n\t\t\tfiles,\n\t\t\t[\".github\", \"workflows\", \"ci.yml\"],\n\t\t\t[\"jobs\", \"test\", \"steps\"],\n\t\t);\n\t\tif (!steps) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\tconst step = steps.find(\n\t\t\t(step) =>\n\t\t\t\ttypeof step.uses === \"string\" &&\n\t\t\t\tstep.uses.startsWith(\"codecov/codecov-action\"),\n\t\t);\n\t\tif (!step) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\treturn {\n\t\t\tenv: step.env,\n\t\t};\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { env } = addons;\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockGitHubApps({\n\t\t\t\t\tapps: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Codecov\",\n\t\t\t\t\t\t\turl: \"https://github.com/apps/codecov\",\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\tbadges: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\talt: \"🧪 Coverage\",\n\t\t\t\t\t\t\thref: `https://codecov.io/gh/${options.owner}/${options.repository}`,\n\t\t\t\t\t\t\tsrc: `https://img.shields.io/codecov/c/github/${options.owner}/${options.repository}?label=%F0%9F%A7%AA%20coverage`,\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\tactionSteps: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t...(env && { env }),\n\t\t\t\t\t\t\tif: \"always()\",\n\t\t\t\t\t\t\tuses: resolveUses(\n\t\t\t\t\t\t\t\t\"codecov/codecov-action\",\n\t\t\t\t\t\t\t\t\"v3\",\n\t\t\t\t\t\t\t\toptions.workflowsVersions,\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({ files: [\".github/codecov.yml\", \"codecov.yml\"] }),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;;;;;AAUA,MAAa,eAAe,KAAK,YAAY;CAC5C,OAAO,EACN,MAAM,UACN;CACD,QAAQ,EACP,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC,CAAC,UAAU,CAChD;CACD,OAAO,EAAE,OAAO,EAAE;EACjB,MAAM,QAAQ,oBACb,OACA;GAAC;GAAW;GAAa;EAAS,GAClC;GAAC;GAAQ;GAAQ;EAAQ,EACzB;AACD,OAAK,MACJ;EAGD,MAAM,OAAO,MAAM,KAClB,CAACA,kBACOA,OAAK,SAAS,YACrB,OAAK,KAAK,WAAW,yBAAyB,CAC/C;AACD,OAAK,KACJ;AAGD,SAAO,EACN,KAAK,KAAK,IACV;CACD;CACD,QAAQ,EAAE,QAAQ,SAAS,EAAE;EAC5B,MAAM,EAAE,KAAK,GAAG;AAChB,SAAO,EACN,QAAQ;GACP,gBAAgB,EACf,MAAM,CACL;IACC,MAAM;IACN,KAAK;GACL,CACD,EACD,EAAC;GACF,YAAY,EACX,QAAQ,CACP;IACC,KAAK;IACL,OAAO,wBAAwB,QAAQ,MAAM,GAAG,QAAQ,WAAW;IACnE,MAAM,0CAA0C,QAAQ,MAAM,GAAG,QAAQ,WAAW;GACpF,CACD,EACD,EAAC;GACF,YAAY,EACX,aAAa,CACZ;IACC,GAAI,OAAO,EAAE,IAAK;IAClB,IAAI;IACJ,MAAM,YACL,0BACA,MACA,QAAQ,kBACR;GACD,CACD,EACD,EAAC;EACF,EACD;CACD;CACD,aAAa;AACZ,SAAO,EACN,QAAQ,CACP,iBAAiB,EAAE,OAAO,CAAC,uBAAuB,aAAc,EAAE,EAAC,AACnE,EACD;CACD;AACD,EAAC"}
|