create-typescript-app 2.62.0 → 2.63.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/README.md +1 -1
- package/lib/_virtual/_rolldown/runtime.js +14 -0
- package/lib/base.d.ts +175 -0
- package/lib/base.d.ts.map +1 -0
- package/lib/base.js +3 -3
- package/lib/base.js.map +1 -0
- package/lib/blocks/actions/resolveUses.d.ts +6 -0
- package/lib/blocks/actions/resolveUses.d.ts.map +1 -0
- package/lib/blocks/actions/resolveUses.js +3 -3
- package/lib/blocks/actions/resolveUses.js.map +1 -0
- package/lib/blocks/actions/steps.d.ts +37 -0
- package/lib/blocks/actions/steps.d.ts.map +1 -0
- package/lib/blocks/actions/steps.js +3 -3
- package/lib/blocks/actions/steps.js.map +1 -0
- package/lib/blocks/bin/getPrimaryBin.d.ts +5 -0
- package/lib/blocks/bin/getPrimaryBin.d.ts.map +1 -0
- package/lib/blocks/bin/getPrimaryBin.js +3 -2
- package/lib/blocks/bin/getPrimaryBin.js.map +1 -0
- package/lib/blocks/blockAllContributors.d.ts +72 -0
- package/lib/blocks/blockAllContributors.d.ts.map +1 -0
- package/lib/blocks/blockAllContributors.js +3 -3
- package/lib/blocks/blockAllContributors.js.map +1 -0
- package/lib/blocks/blockAreTheTypesWrong.d.ts +72 -0
- package/lib/blocks/blockAreTheTypesWrong.d.ts.map +1 -0
- package/lib/blocks/blockAreTheTypesWrong.js +3 -3
- package/lib/blocks/blockAreTheTypesWrong.js.map +1 -0
- package/lib/blocks/blockCSpell.d.ts +75 -0
- package/lib/blocks/blockCSpell.d.ts.map +1 -0
- package/lib/blocks/blockCSpell.js +7 -7
- package/lib/blocks/blockCSpell.js.map +1 -0
- package/lib/blocks/blockCTATransitions.d.ts +72 -0
- package/lib/blocks/blockCTATransitions.d.ts.map +1 -0
- package/lib/blocks/blockCTATransitions.js +3 -3
- package/lib/blocks/blockCTATransitions.js.map +1 -0
- package/lib/blocks/blockCodecov.d.ts +74 -0
- package/lib/blocks/blockCodecov.d.ts.map +1 -0
- package/lib/blocks/blockCodecov.js +4 -4
- package/lib/blocks/blockCodecov.js.map +1 -0
- package/lib/blocks/blockContributingDocs.d.ts +72 -0
- package/lib/blocks/blockContributingDocs.d.ts.map +1 -0
- package/lib/blocks/blockContributingDocs.js +5 -4
- package/lib/blocks/blockContributingDocs.js.map +1 -0
- package/lib/blocks/blockContributorCovenant.d.ts +72 -0
- package/lib/blocks/blockContributorCovenant.d.ts.map +1 -0
- package/lib/blocks/blockContributorCovenant.js +3 -3
- package/lib/blocks/blockContributorCovenant.js.map +1 -0
- package/lib/blocks/blockDevelopmentDocs.d.ts +86 -0
- package/lib/blocks/blockDevelopmentDocs.d.ts.map +1 -0
- package/lib/blocks/blockDevelopmentDocs.js +5 -6
- package/lib/blocks/blockDevelopmentDocs.js.map +1 -0
- package/lib/blocks/blockESLint.d.ts +96 -0
- package/lib/blocks/blockESLint.d.ts.map +1 -0
- package/lib/blocks/blockESLint.js +4 -4
- package/lib/blocks/blockESLint.js.map +1 -0
- package/lib/blocks/blockESLintComments.d.ts +72 -0
- package/lib/blocks/blockESLintComments.d.ts.map +1 -0
- package/lib/blocks/blockESLintComments.js +3 -3
- package/lib/blocks/blockESLintComments.js.map +1 -0
- package/lib/blocks/blockESLintJSDoc.d.ts +72 -0
- package/lib/blocks/blockESLintJSDoc.d.ts.map +1 -0
- package/lib/blocks/blockESLintJSDoc.js +3 -3
- package/lib/blocks/blockESLintJSDoc.js.map +1 -0
- package/lib/blocks/blockESLintJSONC.d.ts +72 -0
- package/lib/blocks/blockESLintJSONC.d.ts.map +1 -0
- package/lib/blocks/blockESLintJSONC.js +3 -3
- package/lib/blocks/blockESLintJSONC.js.map +1 -0
- package/lib/blocks/blockESLintMarkdown.d.ts +72 -0
- package/lib/blocks/blockESLintMarkdown.d.ts.map +1 -0
- package/lib/blocks/blockESLintMarkdown.js +3 -3
- package/lib/blocks/blockESLintMarkdown.js.map +1 -0
- package/lib/blocks/blockESLintMoreStyling.d.ts +73 -0
- package/lib/blocks/blockESLintMoreStyling.d.ts.map +1 -0
- package/lib/blocks/blockESLintMoreStyling.js +3 -3
- package/lib/blocks/blockESLintMoreStyling.js.map +1 -0
- package/lib/blocks/blockESLintNode.d.ts +72 -0
- package/lib/blocks/blockESLintNode.d.ts.map +1 -0
- package/lib/blocks/blockESLintNode.js +3 -3
- package/lib/blocks/blockESLintNode.js.map +1 -0
- package/lib/blocks/blockESLintPackageJson.d.ts +72 -0
- package/lib/blocks/blockESLintPackageJson.d.ts.map +1 -0
- package/lib/blocks/blockESLintPackageJson.js +3 -3
- package/lib/blocks/blockESLintPackageJson.js.map +1 -0
- package/lib/blocks/blockESLintPerfectionist.d.ts +72 -0
- package/lib/blocks/blockESLintPerfectionist.d.ts.map +1 -0
- package/lib/blocks/blockESLintPerfectionist.js +3 -3
- package/lib/blocks/blockESLintPerfectionist.js.map +1 -0
- package/lib/blocks/blockESLintPlugin.d.ts +74 -0
- package/lib/blocks/blockESLintPlugin.d.ts.map +1 -0
- package/lib/blocks/blockESLintPlugin.js +3 -3
- package/lib/blocks/blockESLintPlugin.js.map +1 -0
- package/lib/blocks/blockESLintRegexp.d.ts +72 -0
- package/lib/blocks/blockESLintRegexp.d.ts.map +1 -0
- package/lib/blocks/blockESLintRegexp.js +3 -3
- package/lib/blocks/blockESLintRegexp.js.map +1 -0
- package/lib/blocks/blockESLintYML.d.ts +72 -0
- package/lib/blocks/blockESLintYML.d.ts.map +1 -0
- package/lib/blocks/blockESLintYML.js +3 -3
- package/lib/blocks/blockESLintYML.js.map +1 -0
- package/lib/blocks/blockExampleFiles.d.ts +75 -0
- package/lib/blocks/blockExampleFiles.d.ts.map +1 -0
- package/lib/blocks/blockExampleFiles.js +3 -3
- package/lib/blocks/blockExampleFiles.js.map +1 -0
- package/lib/blocks/blockExports.d.ts +75 -0
- package/lib/blocks/blockExports.d.ts.map +1 -0
- package/lib/blocks/blockExports.js +3 -3
- package/lib/blocks/blockExports.js.map +1 -0
- package/lib/blocks/blockFunding.d.ts +72 -0
- package/lib/blocks/blockFunding.d.ts.map +1 -0
- package/lib/blocks/blockFunding.js +3 -3
- package/lib/blocks/blockFunding.js.map +1 -0
- package/lib/blocks/blockGitHubActionsCI.d.ts +88 -0
- package/lib/blocks/blockGitHubActionsCI.d.ts.map +1 -0
- package/lib/blocks/blockGitHubActionsCI.js +3 -3
- package/lib/blocks/blockGitHubActionsCI.js.map +1 -0
- package/lib/blocks/blockGitHubApps.d.ts +77 -0
- package/lib/blocks/blockGitHubApps.d.ts.map +1 -0
- package/lib/blocks/blockGitHubApps.js +3 -3
- package/lib/blocks/blockGitHubApps.js.map +1 -0
- package/lib/blocks/blockGitHubIssueTemplates.d.ts +72 -0
- package/lib/blocks/blockGitHubIssueTemplates.d.ts.map +1 -0
- package/lib/blocks/blockGitHubIssueTemplates.js +3 -3
- package/lib/blocks/blockGitHubIssueTemplates.js.map +1 -0
- package/lib/blocks/blockGitHubPRTemplate.d.ts +72 -0
- package/lib/blocks/blockGitHubPRTemplate.d.ts.map +1 -0
- package/lib/blocks/blockGitHubPRTemplate.js +3 -3
- package/lib/blocks/blockGitHubPRTemplate.js.map +1 -0
- package/lib/blocks/blockGitignore.d.ts +74 -0
- package/lib/blocks/blockGitignore.d.ts.map +1 -0
- package/lib/blocks/blockGitignore.js +3 -3
- package/lib/blocks/blockGitignore.js.map +1 -0
- package/lib/blocks/blockKnip.d.ts +76 -0
- package/lib/blocks/blockKnip.d.ts.map +1 -0
- package/lib/blocks/blockKnip.js +3 -3
- package/lib/blocks/blockKnip.js.map +1 -0
- package/lib/blocks/blockMITLicense.d.ts +72 -0
- package/lib/blocks/blockMITLicense.d.ts.map +1 -0
- package/lib/blocks/blockMITLicense.js +3 -3
- package/lib/blocks/blockMITLicense.js.map +1 -0
- package/lib/blocks/blockNcc.d.ts +74 -0
- package/lib/blocks/blockNcc.d.ts.map +1 -0
- package/lib/blocks/blockNcc.js +3 -3
- package/lib/blocks/blockNcc.js.map +1 -0
- package/lib/blocks/blockNvmrc.d.ts +72 -0
- package/lib/blocks/blockNvmrc.d.ts.map +1 -0
- package/lib/blocks/blockNvmrc.js +3 -3
- package/lib/blocks/blockNvmrc.js.map +1 -0
- package/lib/blocks/blockOctoGuide.d.ts +74 -0
- package/lib/blocks/blockOctoGuide.d.ts.map +1 -0
- package/lib/blocks/blockOctoGuide.js +3 -3
- package/lib/blocks/blockOctoGuide.js.map +1 -0
- package/lib/blocks/blockOctoGuideStrict.d.ts +72 -0
- package/lib/blocks/blockOctoGuideStrict.d.ts.map +1 -0
- package/lib/blocks/blockOctoGuideStrict.js +3 -3
- package/lib/blocks/blockOctoGuideStrict.js.map +1 -0
- package/lib/blocks/blockPackageJson.d.ts +149 -0
- package/lib/blocks/blockPackageJson.d.ts.map +1 -0
- package/lib/blocks/blockPackageJson.js +3 -3
- package/lib/blocks/blockPackageJson.js.map +1 -0
- package/lib/blocks/blockPnpmDedupe.d.ts +72 -0
- package/lib/blocks/blockPnpmDedupe.d.ts.map +1 -0
- package/lib/blocks/blockPnpmDedupe.js +3 -3
- package/lib/blocks/blockPnpmDedupe.js.map +1 -0
- package/lib/blocks/blockPrettier.d.ts +82 -0
- package/lib/blocks/blockPrettier.d.ts.map +1 -0
- package/lib/blocks/blockPrettier.js +3 -3
- package/lib/blocks/blockPrettier.js.map +1 -0
- package/lib/blocks/blockPrettierPluginCurly.d.ts +72 -0
- package/lib/blocks/blockPrettierPluginCurly.d.ts.map +1 -0
- package/lib/blocks/blockPrettierPluginCurly.js +3 -3
- package/lib/blocks/blockPrettierPluginCurly.js.map +1 -0
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts +72 -0
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts.map +1 -0
- package/lib/blocks/blockPrettierPluginPackageJson.js +3 -3
- package/lib/blocks/blockPrettierPluginPackageJson.js.map +1 -0
- package/lib/blocks/blockPrettierPluginSentencesPerLine.d.ts +72 -0
- package/lib/blocks/blockPrettierPluginSentencesPerLine.d.ts.map +1 -0
- package/lib/blocks/blockPrettierPluginSentencesPerLine.js +3 -3
- package/lib/blocks/blockPrettierPluginSentencesPerLine.js.map +1 -0
- package/lib/blocks/blockPrettierPluginSh.d.ts +72 -0
- package/lib/blocks/blockPrettierPluginSh.d.ts.map +1 -0
- package/lib/blocks/blockPrettierPluginSh.js +3 -3
- package/lib/blocks/blockPrettierPluginSh.js.map +1 -0
- package/lib/blocks/blockREADME.d.ts +85 -0
- package/lib/blocks/blockREADME.d.ts.map +1 -0
- package/lib/blocks/blockREADME.js +3 -3
- package/lib/blocks/blockREADME.js.map +1 -0
- package/lib/blocks/blockReleaseIt.d.ts +77 -0
- package/lib/blocks/blockReleaseIt.d.ts.map +1 -0
- package/lib/blocks/blockReleaseIt.js +3 -3
- package/lib/blocks/blockReleaseIt.js.map +1 -0
- package/lib/blocks/blockRemoveDependencies.d.ts +74 -0
- package/lib/blocks/blockRemoveDependencies.d.ts.map +1 -0
- package/lib/blocks/blockRemoveDependencies.js +3 -3
- package/lib/blocks/blockRemoveDependencies.js.map +1 -0
- package/lib/blocks/blockRemoveFiles.d.ts +74 -0
- package/lib/blocks/blockRemoveFiles.d.ts.map +1 -0
- package/lib/blocks/blockRemoveFiles.js +3 -3
- package/lib/blocks/blockRemoveFiles.js.map +1 -0
- package/lib/blocks/blockRemoveWorkflows.d.ts +74 -0
- package/lib/blocks/blockRemoveWorkflows.d.ts.map +1 -0
- package/lib/blocks/blockRemoveWorkflows.js +3 -3
- package/lib/blocks/blockRemoveWorkflows.js.map +1 -0
- package/lib/blocks/blockRenovate.d.ts +74 -0
- package/lib/blocks/blockRenovate.d.ts.map +1 -0
- package/lib/blocks/blockRenovate.js +4 -4
- package/lib/blocks/blockRenovate.js.map +1 -0
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts +74 -0
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts.map +1 -0
- package/lib/blocks/blockRepositoryBranchRuleset.js +3 -3
- package/lib/blocks/blockRepositoryBranchRuleset.js.map +1 -0
- package/lib/blocks/blockRepositoryLabels.d.ts +72 -0
- package/lib/blocks/blockRepositoryLabels.d.ts.map +1 -0
- package/lib/blocks/blockRepositoryLabels.js +3 -3
- package/lib/blocks/blockRepositoryLabels.js.map +1 -0
- package/lib/blocks/blockRepositorySecrets.d.ts +77 -0
- package/lib/blocks/blockRepositorySecrets.d.ts.map +1 -0
- package/lib/blocks/blockRepositorySecrets.js +3 -3
- package/lib/blocks/blockRepositorySecrets.js.map +1 -0
- package/lib/blocks/blockRepositorySettings.d.ts +72 -0
- package/lib/blocks/blockRepositorySettings.d.ts.map +1 -0
- package/lib/blocks/blockRepositorySettings.js +3 -3
- package/lib/blocks/blockRepositorySettings.js.map +1 -0
- package/lib/blocks/blockSecurityDocs.d.ts +72 -0
- package/lib/blocks/blockSecurityDocs.d.ts.map +1 -0
- package/lib/blocks/blockSecurityDocs.js +3 -3
- package/lib/blocks/blockSecurityDocs.js.map +1 -0
- package/lib/blocks/blockSideEffects.d.ts +74 -0
- package/lib/blocks/blockSideEffects.d.ts.map +1 -0
- package/lib/blocks/blockSideEffects.js +3 -3
- package/lib/blocks/blockSideEffects.js.map +1 -0
- package/lib/blocks/blockTSDown.d.ts +76 -0
- package/lib/blocks/blockTSDown.d.ts.map +1 -0
- package/lib/blocks/blockTSDown.js +4 -6
- package/lib/blocks/blockTSDown.js.map +1 -0
- package/lib/blocks/blockTemplatedWith.d.ts +72 -0
- package/lib/blocks/blockTemplatedWith.d.ts.map +1 -0
- package/lib/blocks/blockTemplatedWith.js +3 -3
- package/lib/blocks/blockTemplatedWith.js.map +1 -0
- package/lib/blocks/blockTypeScript.d.ts +184 -0
- package/lib/blocks/blockTypeScript.d.ts.map +1 -0
- package/lib/blocks/blockTypeScript.js +3 -3
- package/lib/blocks/blockTypeScript.js.map +1 -0
- package/lib/blocks/blockVSCode.d.ts +81 -0
- package/lib/blocks/blockVSCode.d.ts.map +1 -0
- package/lib/blocks/blockVSCode.js +3 -3
- package/lib/blocks/blockVSCode.js.map +1 -0
- package/lib/blocks/blockVitest.d.ts +89 -0
- package/lib/blocks/blockVitest.d.ts.map +1 -0
- package/lib/blocks/blockVitest.js +5 -5
- package/lib/blocks/blockVitest.js.map +1 -0
- package/lib/blocks/blockWebExt.d.ts +72 -0
- package/lib/blocks/blockWebExt.d.ts.map +1 -0
- package/lib/blocks/blockWebExt.js +3 -3
- package/lib/blocks/blockWebExt.js.map +1 -0
- package/lib/blocks/eslint/blockESLintIntake.d.ts +11 -0
- package/lib/blocks/eslint/blockESLintIntake.d.ts.map +1 -0
- package/lib/blocks/eslint/blockESLintIntake.js +10 -10
- package/lib/blocks/eslint/blockESLintIntake.js.map +1 -0
- package/lib/blocks/eslint/blockESLintPluginIntake.d.ts +7 -0
- package/lib/blocks/eslint/blockESLintPluginIntake.d.ts.map +1 -0
- package/lib/blocks/eslint/blockESLintPluginIntake.js +3 -3
- package/lib/blocks/eslint/blockESLintPluginIntake.js.map +1 -0
- package/lib/blocks/eslint/getScriptFileExtension.d.ts +8 -0
- package/lib/blocks/eslint/getScriptFileExtension.d.ts.map +1 -0
- package/lib/blocks/eslint/getScriptFileExtension.js +3 -2
- package/lib/blocks/eslint/getScriptFileExtension.js.map +1 -0
- package/lib/blocks/eslint/mergeAllExtensions.d.ts +17 -0
- package/lib/blocks/eslint/mergeAllExtensions.d.ts.map +1 -0
- package/lib/blocks/eslint/mergeAllExtensions.js +4 -3
- package/lib/blocks/eslint/mergeAllExtensions.js.map +1 -0
- package/lib/blocks/eslint/schemas.d.ts +112 -0
- package/lib/blocks/eslint/schemas.d.ts.map +1 -0
- package/lib/blocks/eslint/schemas.js +3 -3
- package/lib/blocks/eslint/schemas.js.map +1 -0
- package/lib/blocks/files/createJobName.d.ts +5 -0
- package/lib/blocks/files/createJobName.d.ts.map +1 -0
- package/lib/blocks/files/createJobName.js +3 -2
- package/lib/blocks/files/createJobName.js.map +1 -0
- package/lib/blocks/files/createMultiWorkflowFile.d.ts +24 -0
- package/lib/blocks/files/createMultiWorkflowFile.d.ts.map +1 -0
- package/lib/blocks/files/createMultiWorkflowFile.js +3 -3
- package/lib/blocks/files/createMultiWorkflowFile.js.map +1 -0
- package/lib/blocks/files/createSoloWorkflowFile.d.ts +65 -0
- package/lib/blocks/files/createSoloWorkflowFile.d.ts.map +1 -0
- package/lib/blocks/files/createSoloWorkflowFile.js +3 -3
- package/lib/blocks/files/createSoloWorkflowFile.js.map +1 -0
- package/lib/blocks/files/formatIgnoreFile.d.ts +5 -0
- package/lib/blocks/files/formatIgnoreFile.d.ts.map +1 -0
- package/lib/blocks/files/formatIgnoreFile.js +3 -2
- package/lib/blocks/files/formatIgnoreFile.js.map +1 -0
- package/lib/blocks/files/formatWorkflowYaml.d.ts +5 -0
- package/lib/blocks/files/formatWorkflowYaml.d.ts.map +1 -0
- package/lib/blocks/files/formatWorkflowYaml.js +3 -3
- package/lib/blocks/files/formatWorkflowYaml.js.map +1 -0
- package/lib/blocks/files/formatYaml.d.ts +5 -0
- package/lib/blocks/files/formatYaml.d.ts.map +1 -0
- package/lib/blocks/files/formatYaml.js +3 -3
- package/lib/blocks/files/formatYaml.js.map +1 -0
- package/lib/blocks/files/removeUsesQuotes.d.ts +5 -0
- package/lib/blocks/files/removeUsesQuotes.d.ts.map +1 -0
- package/lib/blocks/files/removeUsesQuotes.js +3 -2
- package/lib/blocks/files/removeUsesQuotes.js.map +1 -0
- package/lib/blocks/getInstallationSuggestions.d.ts +5 -0
- package/lib/blocks/getInstallationSuggestions.d.ts.map +1 -0
- package/lib/blocks/getInstallationSuggestions.js +3 -2
- package/lib/blocks/getInstallationSuggestions.js.map +1 -0
- package/lib/blocks/index.d.ts +3713 -0
- package/lib/blocks/index.d.ts.map +1 -0
- package/lib/blocks/index.js +3 -3
- package/lib/blocks/index.js.map +1 -0
- package/lib/blocks/intake/intakeFile.d.ts +6 -0
- package/lib/blocks/intake/intakeFile.d.ts.map +1 -0
- package/lib/blocks/intake/intakeFile.js +3 -2
- package/lib/blocks/intake/intakeFile.js.map +1 -0
- package/lib/blocks/intake/intakeFileAsJson.d.ts +6 -0
- package/lib/blocks/intake/intakeFileAsJson.d.ts.map +1 -0
- package/lib/blocks/intake/intakeFileAsJson.js +3 -3
- package/lib/blocks/intake/intakeFileAsJson.js.map +1 -0
- package/lib/blocks/intake/intakeFileAsYaml.d.ts +6 -0
- package/lib/blocks/intake/intakeFileAsYaml.d.ts.map +1 -0
- package/lib/blocks/intake/intakeFileAsYaml.js +3 -3
- package/lib/blocks/intake/intakeFileAsYaml.js.map +1 -0
- package/lib/blocks/intake/intakeFileDefineConfig.d.ts +6 -0
- package/lib/blocks/intake/intakeFileDefineConfig.d.ts.map +1 -0
- package/lib/blocks/intake/intakeFileDefineConfig.js +3 -3
- package/lib/blocks/intake/intakeFileDefineConfig.js.map +1 -0
- package/lib/blocks/intake/intakeFileExportObject.d.ts +6 -0
- package/lib/blocks/intake/intakeFileExportObject.d.ts.map +1 -0
- package/lib/blocks/intake/intakeFileExportObject.js +3 -3
- package/lib/blocks/intake/intakeFileExportObject.js.map +1 -0
- package/lib/blocks/options.fakes.d.ts +26 -0
- package/lib/blocks/options.fakes.d.ts.map +1 -0
- package/lib/blocks/options.fakes.js +3 -2
- package/lib/blocks/options.fakes.js.map +1 -0
- package/lib/blocks/outcomeLabels.d.ts +15 -0
- package/lib/blocks/outcomeLabels.d.ts.map +1 -0
- package/lib/blocks/outcomeLabels.js +3 -2
- package/lib/blocks/outcomeLabels.js.map +1 -0
- package/lib/blocks/phases.d.ts +11 -0
- package/lib/blocks/phases.d.ts.map +1 -0
- package/lib/blocks/phases.js +3 -2
- package/lib/blocks/phases.js.map +1 -0
- package/lib/constants.d.ts +10 -0
- package/lib/constants.d.ts.map +1 -0
- package/lib/constants.js +3 -2
- package/lib/constants.js.map +1 -0
- package/lib/data/contributions.d.ts +5 -0
- package/lib/data/contributions.d.ts.map +1 -0
- package/lib/data/contributions.js +3 -2
- package/lib/data/contributions.js.map +1 -0
- package/lib/data/packageData.d.ts +10 -0
- package/lib/data/packageData.d.ts.map +1 -0
- package/lib/data/packageData.js +4 -6
- package/lib/data/packageData.js.map +1 -0
- package/lib/index.d.ts +294 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +3 -3
- package/lib/index.js.map +1 -0
- package/lib/inputs/inputFromDirectory.d.ts +8 -0
- package/lib/inputs/inputFromDirectory.d.ts.map +1 -0
- package/lib/inputs/inputFromDirectory.js +3 -3
- package/lib/inputs/inputFromDirectory.js.map +1 -0
- package/lib/inputs/inputFromOctokit.d.ts +9 -0
- package/lib/inputs/inputFromOctokit.d.ts.map +1 -0
- package/lib/inputs/inputFromOctokit.js +3 -3
- package/lib/inputs/inputFromOctokit.js.map +1 -0
- package/lib/options/readAccess.d.ts +6 -0
- package/lib/options/readAccess.d.ts.map +1 -0
- package/lib/options/readAccess.js +3 -2
- package/lib/options/readAccess.js.map +1 -0
- package/lib/options/readAllContributors.d.ts +7 -0
- package/lib/options/readAllContributors.d.ts.map +1 -0
- package/lib/options/readAllContributors.js +3 -3
- package/lib/options/readAllContributors.js.map +1 -0
- package/lib/options/readAuthor.d.ts +9 -0
- package/lib/options/readAuthor.d.ts.map +1 -0
- package/lib/options/readAuthor.js +3 -2
- package/lib/options/readAuthor.js.map +1 -0
- package/lib/options/readBin.d.ts +6 -0
- package/lib/options/readBin.d.ts.map +1 -0
- package/lib/options/readBin.js +3 -3
- package/lib/options/readBin.js.map +1 -0
- package/lib/options/readDescription.d.ts +6 -0
- package/lib/options/readDescription.d.ts.map +1 -0
- package/lib/options/readDescription.js +3 -3
- package/lib/options/readDescription.js.map +1 -0
- package/lib/options/readDescriptionFromReadme.d.ts +5 -0
- package/lib/options/readDescriptionFromReadme.d.ts.map +1 -0
- package/lib/options/readDescriptionFromReadme.js +3 -2
- package/lib/options/readDescriptionFromReadme.js.map +1 -0
- package/lib/options/readDevelopmentDocumentation.d.ts +6 -0
- package/lib/options/readDevelopmentDocumentation.d.ts.map +1 -0
- package/lib/options/readDevelopmentDocumentation.js +4 -4
- package/lib/options/readDevelopmentDocumentation.js.map +1 -0
- package/lib/options/readDocumentation.d.ts +6 -0
- package/lib/options/readDocumentation.d.ts.map +1 -0
- package/lib/options/readDocumentation.js +3 -2
- package/lib/options/readDocumentation.js.map +1 -0
- package/lib/options/readEmailFromCodeOfConduct.d.ts +6 -0
- package/lib/options/readEmailFromCodeOfConduct.d.ts.map +1 -0
- package/lib/options/readEmailFromCodeOfConduct.js +3 -3
- package/lib/options/readEmailFromCodeOfConduct.js.map +1 -0
- package/lib/options/readEmailFromGit.d.ts +6 -0
- package/lib/options/readEmailFromGit.d.ts.map +1 -0
- package/lib/options/readEmailFromGit.js +3 -3
- package/lib/options/readEmailFromGit.js.map +1 -0
- package/lib/options/readEmailFromNpm.d.ts +7 -0
- package/lib/options/readEmailFromNpm.d.ts.map +1 -0
- package/lib/options/readEmailFromNpm.js +3 -2
- package/lib/options/readEmailFromNpm.js.map +1 -0
- package/lib/options/readEmails.d.ts +9 -0
- package/lib/options/readEmails.d.ts.map +1 -0
- package/lib/options/readEmails.js +3 -2
- package/lib/options/readEmails.js.map +1 -0
- package/lib/options/readEmoji.d.ts +5 -0
- package/lib/options/readEmoji.d.ts.map +1 -0
- package/lib/options/readEmoji.js +3 -2
- package/lib/options/readEmoji.js.map +1 -0
- package/lib/options/readExistingLabels.d.ts +10 -0
- package/lib/options/readExistingLabels.d.ts.map +1 -0
- package/lib/options/readExistingLabels.js +3 -3
- package/lib/options/readExistingLabels.js.map +1 -0
- package/lib/options/readFileAsJson.d.ts +5 -0
- package/lib/options/readFileAsJson.d.ts.map +1 -0
- package/lib/options/readFileAsJson.js +3 -3
- package/lib/options/readFileAsJson.js.map +1 -0
- package/lib/options/readFileSafe.d.ts +5 -0
- package/lib/options/readFileSafe.d.ts.map +1 -0
- package/lib/options/readFileSafe.js +3 -3
- package/lib/options/readFileSafe.js.map +1 -0
- package/lib/options/readFunding.d.ts +6 -0
- package/lib/options/readFunding.d.ts.map +1 -0
- package/lib/options/readFunding.js +3 -3
- package/lib/options/readFunding.js.map +1 -0
- package/lib/options/readGitDefaults.d.ts +7 -0
- package/lib/options/readGitDefaults.d.ts.map +1 -0
- package/lib/options/readGitDefaults.js +3 -3
- package/lib/options/readGitDefaults.js.map +1 -0
- package/lib/options/readGuide.d.ts +9 -0
- package/lib/options/readGuide.d.ts.map +1 -0
- package/lib/options/readGuide.js +3 -3
- package/lib/options/readGuide.js.map +1 -0
- package/lib/options/readKeywords.d.ts +6 -0
- package/lib/options/readKeywords.d.ts.map +1 -0
- package/lib/options/readKeywords.js +3 -2
- package/lib/options/readKeywords.js.map +1 -0
- package/lib/options/readLogo.d.ts +10 -0
- package/lib/options/readLogo.d.ts.map +1 -0
- package/lib/options/readLogo.js +5 -4
- package/lib/options/readLogo.js.map +1 -0
- package/lib/options/readLogoSizing.d.ts +9 -0
- package/lib/options/readLogoSizing.d.ts.map +1 -0
- package/lib/options/readLogoSizing.js +3 -3
- package/lib/options/readLogoSizing.js.map +1 -0
- package/lib/options/readNode.d.ts +9 -0
- package/lib/options/readNode.d.ts.map +1 -0
- package/lib/options/readNode.js +3 -3
- package/lib/options/readNode.js.map +1 -0
- package/lib/options/readNpmDefaults.d.ts +6 -0
- package/lib/options/readNpmDefaults.d.ts.map +1 -0
- package/lib/options/readNpmDefaults.js +3 -3
- package/lib/options/readNpmDefaults.js.map +1 -0
- package/lib/options/readOwner.d.ts +8 -0
- package/lib/options/readOwner.d.ts.map +1 -0
- package/lib/options/readOwner.js +3 -3
- package/lib/options/readOwner.js.map +1 -0
- package/lib/options/readPackageAuthor.d.ts +10 -0
- package/lib/options/readPackageAuthor.d.ts.map +1 -0
- package/lib/options/readPackageAuthor.js +3 -3
- package/lib/options/readPackageAuthor.js.map +1 -0
- package/lib/options/readPackageData.d.ts +7 -0
- package/lib/options/readPackageData.d.ts.map +1 -0
- package/lib/options/readPackageData.js +3 -3
- package/lib/options/readPackageData.js.map +1 -0
- package/lib/options/readPnpm.d.ts +6 -0
- package/lib/options/readPnpm.d.ts.map +1 -0
- package/lib/options/readPnpm.js +3 -2
- package/lib/options/readPnpm.js.map +1 -0
- package/lib/options/readReadmeAdditional.d.ts +5 -0
- package/lib/options/readReadmeAdditional.d.ts.map +1 -0
- package/lib/options/readReadmeAdditional.js +3 -3
- package/lib/options/readReadmeAdditional.js.map +1 -0
- package/lib/options/readReadmeExplainer.d.ts +5 -0
- package/lib/options/readReadmeExplainer.d.ts.map +1 -0
- package/lib/options/readReadmeExplainer.js +3 -2
- package/lib/options/readReadmeExplainer.js.map +1 -0
- package/lib/options/readReadmeFootnotes.d.ts +6 -0
- package/lib/options/readReadmeFootnotes.d.ts.map +1 -0
- package/lib/options/readReadmeFootnotes.js +3 -2
- package/lib/options/readReadmeFootnotes.js.map +1 -0
- package/lib/options/readReadmeUsage.d.ts +5 -0
- package/lib/options/readReadmeUsage.d.ts.map +1 -0
- package/lib/options/readReadmeUsage.js +3 -2
- package/lib/options/readReadmeUsage.js.map +1 -0
- package/lib/options/readRepository.d.ts +10 -0
- package/lib/options/readRepository.d.ts.map +1 -0
- package/lib/options/readRepository.js +3 -2
- package/lib/options/readRepository.js.map +1 -0
- package/lib/options/readRulesetId.d.ts +6 -0
- package/lib/options/readRulesetId.d.ts.map +1 -0
- package/lib/options/readRulesetId.js +3 -3
- package/lib/options/readRulesetId.js.map +1 -0
- package/lib/options/readTitle.d.ts +5 -0
- package/lib/options/readTitle.d.ts.map +1 -0
- package/lib/options/readTitle.js +3 -3
- package/lib/options/readTitle.js.map +1 -0
- package/lib/options/readWords.d.ts +6 -0
- package/lib/options/readWords.d.ts.map +1 -0
- package/lib/options/readWords.js +3 -3
- package/lib/options/readWords.js.map +1 -0
- package/lib/options/readWorkflowsVersions.d.ts +7 -0
- package/lib/options/readWorkflowsVersions.d.ts.map +1 -0
- package/lib/options/readWorkflowsVersions.js +3 -3
- package/lib/options/readWorkflowsVersions.js.map +1 -0
- package/lib/package.json.d.ts +138 -0
- package/lib/package.json.d.ts.map +1 -0
- package/lib/presets/common.d.ts +170 -0
- package/lib/presets/common.d.ts.map +1 -0
- package/lib/presets/common.js +3 -3
- package/lib/presets/common.js.map +1 -0
- package/lib/presets/everything.d.ts +170 -0
- package/lib/presets/everything.d.ts.map +1 -0
- package/lib/presets/everything.js +3 -3
- package/lib/presets/everything.js.map +1 -0
- package/lib/presets/index.d.ts +507 -0
- package/lib/presets/index.d.ts.map +1 -0
- package/lib/presets/index.js +3 -3
- package/lib/presets/index.js.map +1 -0
- package/lib/presets/minimal.d.ts +170 -0
- package/lib/presets/minimal.d.ts.map +1 -0
- package/lib/presets/minimal.js +3 -3
- package/lib/presets/minimal.js.map +1 -0
- package/lib/schemas.d.ts +111 -0
- package/lib/schemas.d.ts.map +1 -0
- package/lib/schemas.js +3 -3
- package/lib/schemas.js.map +1 -0
- package/lib/template.d.ts +170 -0
- package/lib/template.d.ts.map +1 -0
- package/lib/template.js +3 -3
- package/lib/template.js.map +1 -0
- package/lib/types.d.ts +42 -0
- package/lib/types.d.ts.map +1 -0
- package/lib/types.js +1 -1
- package/lib/utils/htmlToTextSafe.d.ts +5 -0
- package/lib/utils/htmlToTextSafe.d.ts.map +1 -0
- package/lib/utils/htmlToTextSafe.js +3 -3
- package/lib/utils/htmlToTextSafe.js.map +1 -0
- package/lib/utils/resolveBin.d.ts +5 -0
- package/lib/utils/resolveBin.d.ts.map +1 -0
- package/lib/utils/resolveBin.js +3 -3
- package/lib/utils/resolveBin.js.map +1 -0
- package/lib/utils/swallowError.d.ts +5 -0
- package/lib/utils/swallowError.d.ts.map +1 -0
- package/lib/utils/swallowError.js +3 -2
- package/lib/utils/swallowError.js.map +1 -0
- package/lib/utils/swallowErrorAsync.d.ts +5 -0
- package/lib/utils/swallowErrorAsync.d.ts.map +1 -0
- package/lib/utils/swallowErrorAsync.js +3 -2
- package/lib/utils/swallowErrorAsync.js.map +1 -0
- package/lib/utils/trimPrecedingSlash.d.ts +5 -0
- package/lib/utils/trimPrecedingSlash.d.ts.map +1 -0
- package/lib/utils/trimPrecedingSlash.js +3 -2
- package/lib/utils/trimPrecedingSlash.js.map +1 -0
- package/lib/utils/tryCatch.d.ts +5 -0
- package/lib/utils/tryCatch.d.ts.map +1 -0
- package/lib/utils/tryCatch.js +3 -2
- package/lib/utils/tryCatch.js.map +1 -0
- package/package.json +40 -40
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
//#region src/blocks/blockESLintRegexp.d.ts
|
|
2
|
+
declare const blockESLintRegexp: import("bingo-stratum").BlockWithoutAddons<{
|
|
3
|
+
access: "public" | "restricted";
|
|
4
|
+
description: string;
|
|
5
|
+
directory: string;
|
|
6
|
+
documentation: {
|
|
7
|
+
readme: {
|
|
8
|
+
additional?: string | undefined;
|
|
9
|
+
explainer?: string | undefined;
|
|
10
|
+
footnotes?: string | undefined;
|
|
11
|
+
usage?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
development?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
email: {
|
|
16
|
+
github: string;
|
|
17
|
+
npm: string;
|
|
18
|
+
};
|
|
19
|
+
title: string;
|
|
20
|
+
node: {
|
|
21
|
+
minimum: string;
|
|
22
|
+
pinned?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
owner: string;
|
|
25
|
+
repository: string;
|
|
26
|
+
type?: "commonjs" | "module" | undefined;
|
|
27
|
+
author?: string | undefined;
|
|
28
|
+
bin?: string | Record<string, string> | undefined;
|
|
29
|
+
contributors?: {
|
|
30
|
+
avatar_url: string;
|
|
31
|
+
contributions: string[];
|
|
32
|
+
login: string;
|
|
33
|
+
name: string;
|
|
34
|
+
profile: string;
|
|
35
|
+
}[] | undefined;
|
|
36
|
+
emoji?: string | undefined;
|
|
37
|
+
existingLabels?: {
|
|
38
|
+
name: string;
|
|
39
|
+
description: string;
|
|
40
|
+
color: string;
|
|
41
|
+
}[] | undefined;
|
|
42
|
+
funding?: string | undefined;
|
|
43
|
+
guide?: {
|
|
44
|
+
href: string;
|
|
45
|
+
title: string;
|
|
46
|
+
} | undefined;
|
|
47
|
+
keywords?: string[] | undefined;
|
|
48
|
+
logo?: {
|
|
49
|
+
alt: string;
|
|
50
|
+
src: string;
|
|
51
|
+
height?: number | undefined;
|
|
52
|
+
width?: number | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
packageData?: {
|
|
55
|
+
dependencies?: Record<string, string> | undefined;
|
|
56
|
+
devDependencies?: Record<string, string> | undefined;
|
|
57
|
+
peerDependencies?: Record<string, string> | undefined;
|
|
58
|
+
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
59
|
+
scripts?: Record<string, string | undefined> | undefined;
|
|
60
|
+
} | undefined;
|
|
61
|
+
pnpm?: string | undefined;
|
|
62
|
+
rulesetId?: string | undefined;
|
|
63
|
+
version?: string | undefined;
|
|
64
|
+
words?: string[] | undefined;
|
|
65
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
66
|
+
pinned?: boolean | undefined;
|
|
67
|
+
hash?: string | undefined;
|
|
68
|
+
}>> | undefined;
|
|
69
|
+
}>;
|
|
70
|
+
//#endregion
|
|
71
|
+
export { blockESLintRegexp };
|
|
72
|
+
//# sourceMappingURL=blockESLintRegexp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockESLintRegexp.d.ts","names":[],"sources":["../../src/blocks/blockESLintRegexp.ts"],"mappings":";cAIa,2CAAiB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { base } from "../base.js";
|
|
2
2
|
import { getScriptFileExtension } from "./eslint/getScriptFileExtension.js";
|
|
3
3
|
import { blockESLint } from "./blockESLint.js";
|
|
4
|
-
|
|
5
4
|
//#region src/blocks/blockESLintRegexp.ts
|
|
6
5
|
const blockESLintRegexp = base.createBlock({
|
|
7
6
|
about: { name: "ESLint Regexp Plugin" },
|
|
@@ -18,6 +17,7 @@ const blockESLintRegexp = base.createBlock({
|
|
|
18
17
|
})] };
|
|
19
18
|
}
|
|
20
19
|
});
|
|
21
|
-
|
|
22
20
|
//#endregion
|
|
23
|
-
export { blockESLintRegexp };
|
|
21
|
+
export { blockESLintRegexp };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=blockESLintRegexp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockESLintRegexp.js","names":[],"sources":["../../src/blocks/blockESLintRegexp.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockESLint } from \"./blockESLint.js\";\nimport { getScriptFileExtension } from \"./eslint/getScriptFileExtension.js\";\n\nexport const blockESLintRegexp = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint Regexp Plugin\",\n\t},\n\tproduce({ options }) {\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: [`regexp.configs[\"flat/recommended\"]`],\n\t\t\t\t\t\t\tfiles: [getScriptFileExtension(options)],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\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":";;;;AAIA,MAAa,oBAAoB,KAAK,YAAY;CACjD,OAAO,EACN,MAAM,uBACP;CACA,QAAQ,EAAE,WAAW;EACpB,OAAO,EACN,QAAQ,CACP,YAAY;GACX,YAAY,CACX;IACC,SAAS,CAAC,oCAAoC;IAC9C,OAAO,CAAC,uBAAuB,OAAO,CAAC;GACxC,CACD;GACA,SAAS,CACR;IAAE,QAAQ;IAAwB,WAAW;GAAc,CAC5D;EACD,CAAC,CACF,EACD;CACD;AACD,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
//#region src/blocks/blockESLintYML.d.ts
|
|
2
|
+
declare const blockESLintYML: import("bingo-stratum").BlockWithoutAddons<{
|
|
3
|
+
access: "public" | "restricted";
|
|
4
|
+
description: string;
|
|
5
|
+
directory: string;
|
|
6
|
+
documentation: {
|
|
7
|
+
readme: {
|
|
8
|
+
additional?: string | undefined;
|
|
9
|
+
explainer?: string | undefined;
|
|
10
|
+
footnotes?: string | undefined;
|
|
11
|
+
usage?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
development?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
email: {
|
|
16
|
+
github: string;
|
|
17
|
+
npm: string;
|
|
18
|
+
};
|
|
19
|
+
title: string;
|
|
20
|
+
node: {
|
|
21
|
+
minimum: string;
|
|
22
|
+
pinned?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
owner: string;
|
|
25
|
+
repository: string;
|
|
26
|
+
type?: "commonjs" | "module" | undefined;
|
|
27
|
+
author?: string | undefined;
|
|
28
|
+
bin?: string | Record<string, string> | undefined;
|
|
29
|
+
contributors?: {
|
|
30
|
+
avatar_url: string;
|
|
31
|
+
contributions: string[];
|
|
32
|
+
login: string;
|
|
33
|
+
name: string;
|
|
34
|
+
profile: string;
|
|
35
|
+
}[] | undefined;
|
|
36
|
+
emoji?: string | undefined;
|
|
37
|
+
existingLabels?: {
|
|
38
|
+
name: string;
|
|
39
|
+
description: string;
|
|
40
|
+
color: string;
|
|
41
|
+
}[] | undefined;
|
|
42
|
+
funding?: string | undefined;
|
|
43
|
+
guide?: {
|
|
44
|
+
href: string;
|
|
45
|
+
title: string;
|
|
46
|
+
} | undefined;
|
|
47
|
+
keywords?: string[] | undefined;
|
|
48
|
+
logo?: {
|
|
49
|
+
alt: string;
|
|
50
|
+
src: string;
|
|
51
|
+
height?: number | undefined;
|
|
52
|
+
width?: number | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
packageData?: {
|
|
55
|
+
dependencies?: Record<string, string> | undefined;
|
|
56
|
+
devDependencies?: Record<string, string> | undefined;
|
|
57
|
+
peerDependencies?: Record<string, string> | undefined;
|
|
58
|
+
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
59
|
+
scripts?: Record<string, string | undefined> | undefined;
|
|
60
|
+
} | undefined;
|
|
61
|
+
pnpm?: string | undefined;
|
|
62
|
+
rulesetId?: string | undefined;
|
|
63
|
+
version?: string | undefined;
|
|
64
|
+
words?: string[] | undefined;
|
|
65
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
66
|
+
pinned?: boolean | undefined;
|
|
67
|
+
hash?: string | undefined;
|
|
68
|
+
}>> | undefined;
|
|
69
|
+
}>;
|
|
70
|
+
//#endregion
|
|
71
|
+
export { blockESLintYML };
|
|
72
|
+
//# sourceMappingURL=blockESLintYML.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockESLintYML.d.ts","names":[],"sources":["../../src/blocks/blockESLintYML.ts"],"mappings":";cAGa,wCAAc"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { base } from "../base.js";
|
|
2
2
|
import { blockESLint } from "./blockESLint.js";
|
|
3
|
-
|
|
4
3
|
//#region src/blocks/blockESLintYML.ts
|
|
5
4
|
const blockESLintYML = base.createBlock({
|
|
6
5
|
about: { name: "ESLint YML Plugin" },
|
|
@@ -28,6 +27,7 @@ const blockESLintYML = base.createBlock({
|
|
|
28
27
|
})] };
|
|
29
28
|
}
|
|
30
29
|
});
|
|
31
|
-
|
|
32
30
|
//#endregion
|
|
33
|
-
export { blockESLintYML };
|
|
31
|
+
export { blockESLintYML };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=blockESLintYML.js.map
|
|
@@ -0,0 +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\",\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,oBACP;CACA,UAAU;EACT,OAAO,EACN,QAAQ,CACP,YAAY;GACX,YAAY,CACX;IACC,SAAS,CACR,kCACA,gCACD;IACA,OAAO,CAAC,iBAAiB;IACzB,OAAO;KACN,sBAAsB;KACtB,iBAAiB,CAChB,SACA;MACC,OAAO,EAAE,MAAM,MAAM;MACrB,aAAa;KACd,CACD;KACA,4BAA4B,CAC3B,SACA;MACC,OAAO,EAAE,MAAM,MAAM;MACrB,aAAa;KACd,CACD;IACD;GACD,CACD;GACA,SAAS,CAAC;IAAE,QAAQ;IAAqB,WAAW;GAAM,CAAC;EAC5D,CAAC,CACF,EACD;CACD;AACD,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
//#region src/blocks/blockExampleFiles.d.ts
|
|
2
|
+
declare const blockExampleFiles: import("bingo-stratum").BlockWithAddons<{
|
|
3
|
+
usage: string[];
|
|
4
|
+
files: Record<string, string>;
|
|
5
|
+
}, {
|
|
6
|
+
access: "public" | "restricted";
|
|
7
|
+
description: string;
|
|
8
|
+
directory: string;
|
|
9
|
+
documentation: {
|
|
10
|
+
readme: {
|
|
11
|
+
additional?: string | undefined;
|
|
12
|
+
explainer?: string | undefined;
|
|
13
|
+
footnotes?: string | undefined;
|
|
14
|
+
usage?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
development?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
email: {
|
|
19
|
+
github: string;
|
|
20
|
+
npm: string;
|
|
21
|
+
};
|
|
22
|
+
title: string;
|
|
23
|
+
node: {
|
|
24
|
+
minimum: string;
|
|
25
|
+
pinned?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
owner: string;
|
|
28
|
+
repository: string;
|
|
29
|
+
type?: "commonjs" | "module" | undefined;
|
|
30
|
+
author?: string | undefined;
|
|
31
|
+
bin?: string | Record<string, string> | undefined;
|
|
32
|
+
contributors?: {
|
|
33
|
+
avatar_url: string;
|
|
34
|
+
contributions: string[];
|
|
35
|
+
login: string;
|
|
36
|
+
name: string;
|
|
37
|
+
profile: string;
|
|
38
|
+
}[] | undefined;
|
|
39
|
+
emoji?: string | undefined;
|
|
40
|
+
existingLabels?: {
|
|
41
|
+
name: string;
|
|
42
|
+
description: string;
|
|
43
|
+
color: string;
|
|
44
|
+
}[] | undefined;
|
|
45
|
+
funding?: string | undefined;
|
|
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;
|
|
72
|
+
}>;
|
|
73
|
+
//#endregion
|
|
74
|
+
export { blockExampleFiles };
|
|
75
|
+
//# sourceMappingURL=blockExampleFiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockExampleFiles.d.ts","names":[],"sources":["../../src/blocks/blockExampleFiles.ts"],"mappings":";cAKa,2CAAiB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { base } from "../base.js";
|
|
2
2
|
import { blockREADME } from "./blockREADME.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
|
|
5
4
|
//#region src/blocks/blockExampleFiles.ts
|
|
6
5
|
const blockExampleFiles = base.createBlock({
|
|
7
6
|
about: { name: "Example Files" },
|
|
@@ -20,6 +19,7 @@ const blockExampleFiles = base.createBlock({
|
|
|
20
19
|
return {};
|
|
21
20
|
}
|
|
22
21
|
});
|
|
23
|
-
|
|
24
22
|
//#endregion
|
|
25
|
-
export { blockExampleFiles };
|
|
23
|
+
export { blockExampleFiles };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=blockExampleFiles.js.map
|
|
@@ -0,0 +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,gBACP;CACA,QAAQ;EACP,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;EACtC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;CACtC;CACA,MAAM,EAAE,UAAU;EACjB,MAAM,EAAE,UAAU;EAElB,OAAO;GACN,QAAQ,CACP,YAAY,EACX,cAAc,MACf,CAAC,CACF;GACA,OAAO,EACN,KAAK,OAAO,MACb;EACD;CACD;CAGA,UAAU;EACT,OAAO,CAAC;CACT;AACD,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
//#region src/blocks/blockExports.d.ts
|
|
2
|
+
declare const blockExports: import("bingo-stratum").BlockWithAddons<{
|
|
3
|
+
runArgs: string[];
|
|
4
|
+
filePath?: string | undefined;
|
|
5
|
+
}, {
|
|
6
|
+
access: "public" | "restricted";
|
|
7
|
+
description: string;
|
|
8
|
+
directory: string;
|
|
9
|
+
documentation: {
|
|
10
|
+
readme: {
|
|
11
|
+
additional?: string | undefined;
|
|
12
|
+
explainer?: string | undefined;
|
|
13
|
+
footnotes?: string | undefined;
|
|
14
|
+
usage?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
development?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
email: {
|
|
19
|
+
github: string;
|
|
20
|
+
npm: string;
|
|
21
|
+
};
|
|
22
|
+
title: string;
|
|
23
|
+
node: {
|
|
24
|
+
minimum: string;
|
|
25
|
+
pinned?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
owner: string;
|
|
28
|
+
repository: string;
|
|
29
|
+
type?: "commonjs" | "module" | undefined;
|
|
30
|
+
author?: string | undefined;
|
|
31
|
+
bin?: string | Record<string, string> | undefined;
|
|
32
|
+
contributors?: {
|
|
33
|
+
avatar_url: string;
|
|
34
|
+
contributions: string[];
|
|
35
|
+
login: string;
|
|
36
|
+
name: string;
|
|
37
|
+
profile: string;
|
|
38
|
+
}[] | undefined;
|
|
39
|
+
emoji?: string | undefined;
|
|
40
|
+
existingLabels?: {
|
|
41
|
+
name: string;
|
|
42
|
+
description: string;
|
|
43
|
+
color: string;
|
|
44
|
+
}[] | undefined;
|
|
45
|
+
funding?: string | undefined;
|
|
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;
|
|
72
|
+
}>;
|
|
73
|
+
//#endregion
|
|
74
|
+
export { blockExports };
|
|
75
|
+
//# sourceMappingURL=blockExports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockExports.d.ts","names":[],"sources":["../../src/blocks/blockExports.ts"],"mappings":";cAMa,sCAAY"}
|
|
@@ -2,7 +2,6 @@ import { base } from "../base.js";
|
|
|
2
2
|
import { blockPackageJson } from "./blockPackageJson.js";
|
|
3
3
|
import { blockTSDown } from "./blockTSDown.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
-
|
|
6
5
|
//#region src/blocks/blockExports.ts
|
|
7
6
|
const blockExports = base.createBlock({
|
|
8
7
|
about: { name: "Exports" },
|
|
@@ -15,6 +14,7 @@ const blockExports = base.createBlock({
|
|
|
15
14
|
return { addons: [blockPackageJson({ properties: { exports: { ".": filePath.startsWith(".") ? filePath : `./${filePath}` } } }), blockTSDown({ runInCI: [`node ${filePath}${runArgs.map((arg) => ` ${arg}`).join("")}`] })] };
|
|
16
15
|
}
|
|
17
16
|
});
|
|
18
|
-
|
|
19
17
|
//#endregion
|
|
20
|
-
export { blockExports };
|
|
18
|
+
export { blockExports };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=blockExports.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockExports.js","names":[],"sources":["../../src/blocks/blockExports.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockTSDown } from \"./blockTSDown.js\";\n\nexport const blockExports = base.createBlock({\n\tabout: {\n\t\tname: \"Exports\",\n\t},\n\taddons: {\n\t\tfilePath: z.string().optional(),\n\t\trunArgs: z.array(z.string()).default([]),\n\t},\n\tproduce({ addons }) {\n\t\tconst { filePath = \"./lib/index.js\", runArgs } = addons;\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\texports: {\n\t\t\t\t\t\t\t\".\": filePath.startsWith(\".\") ? filePath : `./${filePath}`,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockTSDown({\n\t\t\t\t\trunInCI: [\n\t\t\t\t\t\t`node ${filePath}${runArgs.map((arg) => ` ${arg}`).join(\"\")}`,\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;;AAMA,MAAa,eAAe,KAAK,YAAY;CAC5C,OAAO,EACN,MAAM,UACP;CACA,QAAQ;EACP,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS;EAC9B,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;CACxC;CACA,QAAQ,EAAE,UAAU;EACnB,MAAM,EAAE,WAAW,kBAAkB,YAAY;EAEjD,OAAO,EACN,QAAQ,CACP,iBAAiB,EAChB,YAAY,EACX,SAAS,EACR,KAAK,SAAS,WAAW,GAAG,IAAI,WAAW,KAAK,WACjD,EACD,EACD,CAAC,GACD,YAAY,EACX,SAAS,CACR,QAAQ,WAAW,QAAQ,KAAK,QAAQ,IAAI,KAAK,CAAC,CAAC,KAAK,EAAE,GAC3D,EACD,CAAC,CACF,EACD;CACD;AACD,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
//#region src/blocks/blockFunding.d.ts
|
|
2
|
+
declare const blockFunding: import("bingo-stratum").BlockWithoutAddons<{
|
|
3
|
+
access: "public" | "restricted";
|
|
4
|
+
description: string;
|
|
5
|
+
directory: string;
|
|
6
|
+
documentation: {
|
|
7
|
+
readme: {
|
|
8
|
+
additional?: string | undefined;
|
|
9
|
+
explainer?: string | undefined;
|
|
10
|
+
footnotes?: string | undefined;
|
|
11
|
+
usage?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
development?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
email: {
|
|
16
|
+
github: string;
|
|
17
|
+
npm: string;
|
|
18
|
+
};
|
|
19
|
+
title: string;
|
|
20
|
+
node: {
|
|
21
|
+
minimum: string;
|
|
22
|
+
pinned?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
owner: string;
|
|
25
|
+
repository: string;
|
|
26
|
+
type?: "commonjs" | "module" | undefined;
|
|
27
|
+
author?: string | undefined;
|
|
28
|
+
bin?: string | Record<string, string> | undefined;
|
|
29
|
+
contributors?: {
|
|
30
|
+
avatar_url: string;
|
|
31
|
+
contributions: string[];
|
|
32
|
+
login: string;
|
|
33
|
+
name: string;
|
|
34
|
+
profile: string;
|
|
35
|
+
}[] | undefined;
|
|
36
|
+
emoji?: string | undefined;
|
|
37
|
+
existingLabels?: {
|
|
38
|
+
name: string;
|
|
39
|
+
description: string;
|
|
40
|
+
color: string;
|
|
41
|
+
}[] | undefined;
|
|
42
|
+
funding?: string | undefined;
|
|
43
|
+
guide?: {
|
|
44
|
+
href: string;
|
|
45
|
+
title: string;
|
|
46
|
+
} | undefined;
|
|
47
|
+
keywords?: string[] | undefined;
|
|
48
|
+
logo?: {
|
|
49
|
+
alt: string;
|
|
50
|
+
src: string;
|
|
51
|
+
height?: number | undefined;
|
|
52
|
+
width?: number | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
packageData?: {
|
|
55
|
+
dependencies?: Record<string, string> | undefined;
|
|
56
|
+
devDependencies?: Record<string, string> | undefined;
|
|
57
|
+
peerDependencies?: Record<string, string> | undefined;
|
|
58
|
+
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
59
|
+
scripts?: Record<string, string | undefined> | undefined;
|
|
60
|
+
} | undefined;
|
|
61
|
+
pnpm?: string | undefined;
|
|
62
|
+
rulesetId?: string | undefined;
|
|
63
|
+
version?: string | undefined;
|
|
64
|
+
words?: string[] | undefined;
|
|
65
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
66
|
+
pinned?: boolean | undefined;
|
|
67
|
+
hash?: string | undefined;
|
|
68
|
+
}>> | undefined;
|
|
69
|
+
}>;
|
|
70
|
+
//#endregion
|
|
71
|
+
export { blockFunding };
|
|
72
|
+
//# sourceMappingURL=blockFunding.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockFunding.d.ts","names":[],"sources":["../../src/blocks/blockFunding.ts"],"mappings":";cAGa,sCAAY"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { base } from "../base.js";
|
|
2
2
|
import { formatYaml } from "./files/formatYaml.js";
|
|
3
|
-
|
|
4
3
|
//#region src/blocks/blockFunding.ts
|
|
5
4
|
const blockFunding = base.createBlock({
|
|
6
5
|
about: { name: "Funding" },
|
|
@@ -8,6 +7,7 @@ const blockFunding = base.createBlock({
|
|
|
8
7
|
return { files: { ".github": { "FUNDING.yaml": options.funding && formatYaml({ github: options.funding }) } } };
|
|
9
8
|
}
|
|
10
9
|
});
|
|
11
|
-
|
|
12
10
|
//#endregion
|
|
13
|
-
export { blockFunding };
|
|
11
|
+
export { blockFunding };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=blockFunding.js.map
|
|
@@ -0,0 +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.yaml\":\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,UACP;CACA,QAAQ,EAAE,WAAW;EACpB,OAAO,EACN,OAAO,EACN,WAAW,EACV,gBACC,QAAQ,WAAW,WAAW,EAAE,QAAQ,QAAQ,QAAQ,CAAC,EAC3D,EACD,EACD;CACD;AACD,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
//#region src/blocks/blockGitHubActionsCI.d.ts
|
|
2
|
+
declare const blockGitHubActionsCI: import("bingo-stratum").BlockWithAddons<{
|
|
3
|
+
jobs?: {
|
|
4
|
+
name: string;
|
|
5
|
+
steps: ({
|
|
6
|
+
env?: Record<string, string> | undefined;
|
|
7
|
+
if?: string | undefined;
|
|
8
|
+
with?: Record<string, string> | undefined;
|
|
9
|
+
} & ({
|
|
10
|
+
run: string;
|
|
11
|
+
} | {
|
|
12
|
+
uses: string;
|
|
13
|
+
}))[];
|
|
14
|
+
checkoutWith?: Record<string, string> | undefined;
|
|
15
|
+
if?: string | undefined;
|
|
16
|
+
}[] | undefined;
|
|
17
|
+
nodeVersion?: string | number | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
access: "public" | "restricted";
|
|
20
|
+
description: string;
|
|
21
|
+
directory: string;
|
|
22
|
+
documentation: {
|
|
23
|
+
readme: {
|
|
24
|
+
additional?: string | undefined;
|
|
25
|
+
explainer?: string | undefined;
|
|
26
|
+
footnotes?: string | undefined;
|
|
27
|
+
usage?: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
development?: string | undefined;
|
|
30
|
+
};
|
|
31
|
+
email: {
|
|
32
|
+
github: string;
|
|
33
|
+
npm: string;
|
|
34
|
+
};
|
|
35
|
+
title: string;
|
|
36
|
+
node: {
|
|
37
|
+
minimum: string;
|
|
38
|
+
pinned?: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
owner: string;
|
|
41
|
+
repository: string;
|
|
42
|
+
type?: "commonjs" | "module" | undefined;
|
|
43
|
+
author?: string | undefined;
|
|
44
|
+
bin?: string | Record<string, string> | undefined;
|
|
45
|
+
contributors?: {
|
|
46
|
+
avatar_url: string;
|
|
47
|
+
contributions: string[];
|
|
48
|
+
login: string;
|
|
49
|
+
name: string;
|
|
50
|
+
profile: string;
|
|
51
|
+
}[] | undefined;
|
|
52
|
+
emoji?: string | undefined;
|
|
53
|
+
existingLabels?: {
|
|
54
|
+
name: string;
|
|
55
|
+
description: string;
|
|
56
|
+
color: string;
|
|
57
|
+
}[] | undefined;
|
|
58
|
+
funding?: string | undefined;
|
|
59
|
+
guide?: {
|
|
60
|
+
href: string;
|
|
61
|
+
title: string;
|
|
62
|
+
} | undefined;
|
|
63
|
+
keywords?: string[] | undefined;
|
|
64
|
+
logo?: {
|
|
65
|
+
alt: string;
|
|
66
|
+
src: string;
|
|
67
|
+
height?: number | undefined;
|
|
68
|
+
width?: number | undefined;
|
|
69
|
+
} | undefined;
|
|
70
|
+
packageData?: {
|
|
71
|
+
dependencies?: Record<string, string> | undefined;
|
|
72
|
+
devDependencies?: Record<string, string> | undefined;
|
|
73
|
+
peerDependencies?: Record<string, string> | undefined;
|
|
74
|
+
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
75
|
+
scripts?: Record<string, string | undefined> | undefined;
|
|
76
|
+
} | undefined;
|
|
77
|
+
pnpm?: string | undefined;
|
|
78
|
+
rulesetId?: string | undefined;
|
|
79
|
+
version?: string | undefined;
|
|
80
|
+
words?: string[] | undefined;
|
|
81
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
82
|
+
pinned?: boolean | undefined;
|
|
83
|
+
hash?: string | undefined;
|
|
84
|
+
}>> | undefined;
|
|
85
|
+
}>;
|
|
86
|
+
//#endregion
|
|
87
|
+
export { blockGitHubActionsCI };
|
|
88
|
+
//# sourceMappingURL=blockGitHubActionsCI.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockGitHubActionsCI.d.ts","names":[],"sources":["../../src/blocks/blockGitHubActionsCI.ts"],"mappings":";cAWa,8CAAoB"}
|
|
@@ -7,7 +7,6 @@ import { formatYaml } from "./files/formatYaml.js";
|
|
|
7
7
|
import { createMultiWorkflowFile } from "./files/createMultiWorkflowFile.js";
|
|
8
8
|
import { createSoloWorkflowFile } from "./files/createSoloWorkflowFile.js";
|
|
9
9
|
import { z } from "zod";
|
|
10
|
-
|
|
11
10
|
//#region src/blocks/blockGitHubActionsCI.ts
|
|
12
11
|
const blockGitHubActionsCI = base.createBlock({
|
|
13
12
|
about: { name: "GitHub Actions CI" },
|
|
@@ -86,6 +85,7 @@ const blockGitHubActionsCI = base.createBlock({
|
|
|
86
85
|
return { addons: [blockRemoveFiles({ files: [".circleci", "travis.yaml"] })] };
|
|
87
86
|
}
|
|
88
87
|
});
|
|
89
|
-
|
|
90
88
|
//#endregion
|
|
91
|
-
export { blockGitHubActionsCI };
|
|
89
|
+
export { blockGitHubActionsCI };
|
|
90
|
+
|
|
91
|
+
//# sourceMappingURL=blockGitHubActionsCI.js.map
|
|
@@ -0,0 +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.yaml\"],\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.yaml\": 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.yaml\":\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.yaml\": 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.yaml\"],\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,oBACP;CACA,QAAQ;EACP,MAAM,EACJ,MACA,EAAE,OAAO;GACR,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS;GACxD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS;GACxB,MAAM,EAAE,OAAO;GACf,OAAO,EAAE,MAAM,WAAW;EAC3B,CAAC,CACF,CAAC,CACA,SAAS;EACX,aAAa,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;CACzD;CACA,OAAO,EAAE,SAAS;EACjB,MAAM,QAAQ,oBACb,OACA;GAAC;GAAW;GAAW;GAAW;EAAa,GAC/C,CAAC,QAAQ,OAAO,CACjB;EACA,IAAI,CAAC,OACJ;EAGD,MAAM,gBAAgB,MAAM,MAC1B,SACA,OAAO,KAAK,SAAS,YACrB,KAAK,KAAK,WAAW,oBAAoB,CAC3C;EACA,IAAI,CAAC,eACJ;EAGD,MAAM,cAAc,cAAc,OAAO;EACzC,IAAI,CAAC,aACJ;EAGD,OAAO,EAAE,YAAY;CACtB;CACA,QAAQ,EAAE,QAAQ,WAAW;EAC5B,MAAM,EAAE,MAAM,cAAc,QAAQ,KAAK,UAAU,QAAQ,KAAK,YAC/D;EAED,OAAO;GACN,QAAQ,CACP,6BAA6B,EAC5B,sBAAsB,MAAM,KAAK,QAAQ,IAAI,IAAI,EAClD,CAAC,CACF;GACA,OAAO,EACN,WAAW;IACV,SAAS,EACR,SAAS,EACR,eAAe,WAAW;KACzB,aAAa;KACb,MAAM;KACN,MAAM;MACL,OAAO;OACN,EACC,MAAM,YACL,qBACA,MACA,QAAQ,iBACT,EACD;OACA;QACC,MAAM,YACL,sBACA,MACA,QAAQ,iBACT;QACA,MAAM;SACL,OAAO;SACP,gBAAgB;QACjB;OACD;OACA;QACC,KAAK;QACL,OAAO;OACR;MACD;MACA,OAAO;KACR;IACD,CAAC,EACF,EACD;IACA,WAAW;KACV,WACC,QACA,wBAAwB;MACvB,MAAM,KAAK,MAAM,GAAG,MAAM,EAAE,KAAK,cAAc,EAAE,IAAI,CAAC;MACtD,MAAM;MACN,mBAAmB,QAAQ;KAC5B,CAAC;KACF,4BAA4B,uBAAuB;MAClD,MAAM;MACN,IAAI,EACH,qBAAqB,EACpB,OAAO,CAAC,kBAAkB,EAC3B,EACD;MACA,aAAa,EACZ,iBAAiB,QAClB;MACA,OAAO,CACN;OACC,MAAM,YACL,0CACA,MACA,QAAQ,iBACT;OACA,MAAM,EACL,QAAQ,6BACT;MACD,GACA;OACC,IAAI;OACJ,KAAK;MACN,CACD;KACD,CAAC;IACF;GACD,EACD;EACD;CACD;CACA,aAAa;EACZ,OAAO,EACN,QAAQ,CACP,iBAAiB,EAChB,OAAO,CAAC,aAAa,aAAa,EACnC,CAAC,CACF,EACD;CACD;AACD,CAAC"}
|