create-typescript-app 2.62.0 → 2.63.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/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 +4 -8
- 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/blockTemplatedWith.d.ts
|
|
2
|
+
declare const blockTemplatedWith: 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
|
+
hash?: string | undefined;
|
|
67
|
+
pinned?: boolean | undefined;
|
|
68
|
+
}>> | undefined;
|
|
69
|
+
}>;
|
|
70
|
+
//#endregion
|
|
71
|
+
export { blockTemplatedWith };
|
|
72
|
+
//# sourceMappingURL=blockTemplatedWith.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockTemplatedWith.d.ts","names":[],"sources":["../../src/blocks/blockTemplatedWith.ts"],"mappings":";cAGa,4CAAkB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { base } from "../base.js";
|
|
2
2
|
import { blockREADME } from "./blockREADME.js";
|
|
3
|
-
|
|
4
3
|
//#region src/blocks/blockTemplatedWith.ts
|
|
5
4
|
const blockTemplatedWith = base.createBlock({
|
|
6
5
|
about: { name: "Templated With" },
|
|
@@ -10,6 +9,7 @@ const blockTemplatedWith = base.createBlock({
|
|
|
10
9
|
`].filter((notice) => typeof notice === "string") })] };
|
|
11
10
|
}
|
|
12
11
|
});
|
|
13
|
-
|
|
14
12
|
//#endregion
|
|
15
|
-
export { blockTemplatedWith };
|
|
13
|
+
export { blockTemplatedWith };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=blockTemplatedWith.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockTemplatedWith.js","names":[],"sources":["../../src/blocks/blockTemplatedWith.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockREADME } from \"./blockREADME.js\";\n\nexport const blockTemplatedWith = base.createBlock({\n\tabout: {\n\t\tname: \"Templated With\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockREADME({\n\t\t\t\t\tnotices: [\n\t\t\t\t\t\toptions.owner !== \"JoshuaKGoldberg\" &&\n\t\t\t\t\t\t\t`\n<!-- You can remove this notice if you don't want it 🙂 no worries! -->`,\n\t\t\t\t\t\t`> 💝 This package was templated with [\\`create-typescript-app\\`](https://github.com/JoshuaKGoldberg/create-typescript-app) using the [Bingo framework](https://create.bingo).\n`,\n\t\t\t\t\t].filter((notice) => typeof notice === \"string\"),\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;AAGA,MAAa,qBAAqB,KAAK,YAAY;CAClD,OAAO,EACN,MAAM,iBACP;CACA,QAAQ,EAAE,WAAW;EACpB,OAAO,EACN,QAAQ,CACP,YAAY,EACX,SAAS,CACR,QAAQ,UAAU,qBACjB;0EAED;CAED,CAAC,CAAC,QAAQ,WAAW,OAAO,WAAW,QAAQ,EAChD,CAAC,CACF,EACD;CACD;AACD,CAAC"}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
//#region src/blocks/blockTypeScript.d.ts
|
|
2
|
+
declare const blockTypeScript: import("bingo-stratum").BlockWithAddons<{
|
|
3
|
+
compilerOptions?: {
|
|
4
|
+
allowArbitraryExtensions?: boolean | undefined;
|
|
5
|
+
allowImportingTsExtensions?: boolean | undefined;
|
|
6
|
+
allowJs?: boolean | undefined;
|
|
7
|
+
allowSyntheticDefaultImports?: boolean | undefined;
|
|
8
|
+
allowUmdGlobalAccess?: boolean | undefined;
|
|
9
|
+
allowUnreachableCode?: boolean | undefined;
|
|
10
|
+
allowUnusedLabels?: boolean | undefined;
|
|
11
|
+
alwaysStrict?: boolean | undefined;
|
|
12
|
+
baseUrl?: string | undefined;
|
|
13
|
+
charset?: string | undefined;
|
|
14
|
+
checkJs?: boolean | undefined;
|
|
15
|
+
customConditions?: string[] | undefined;
|
|
16
|
+
declaration?: boolean | undefined;
|
|
17
|
+
declarationDir?: string | undefined;
|
|
18
|
+
declarationMap?: boolean | undefined;
|
|
19
|
+
disableReferencedProjectLoad?: boolean | undefined;
|
|
20
|
+
disableSizeLimit?: boolean | undefined;
|
|
21
|
+
disableSolutionSearching?: boolean | undefined;
|
|
22
|
+
disableSourceOfProjectReferenceRedirect?: boolean | undefined;
|
|
23
|
+
downlevelIteration?: boolean | undefined;
|
|
24
|
+
emitBOM?: boolean | undefined;
|
|
25
|
+
emitDeclarationOnly?: boolean | undefined;
|
|
26
|
+
emitDecoratorMetadata?: boolean | undefined;
|
|
27
|
+
erasableSyntaxOnly?: boolean | undefined;
|
|
28
|
+
esModuleInterop?: boolean | undefined;
|
|
29
|
+
exactOptionalPropertyTypes?: boolean | undefined;
|
|
30
|
+
experimentalDecorators?: boolean | undefined;
|
|
31
|
+
forceConsistentCasingInFileNames?: boolean | undefined;
|
|
32
|
+
ignoreDeprecations?: string | undefined;
|
|
33
|
+
importHelpers?: boolean | undefined;
|
|
34
|
+
importsNotUsedAsValues?: "error" | "preserve" | "remove" | undefined;
|
|
35
|
+
inlineSourceMap?: boolean | undefined;
|
|
36
|
+
inlineSources?: boolean | undefined;
|
|
37
|
+
isolatedDeclarations?: boolean | undefined;
|
|
38
|
+
isolatedModules?: boolean | undefined;
|
|
39
|
+
jsx?: "preserve" | "none" | "react" | "react-jsx" | "react-jsxdev" | "react-native" | undefined;
|
|
40
|
+
keyofStringsOnly?: boolean | undefined;
|
|
41
|
+
lib?: string[] | undefined;
|
|
42
|
+
libReplacement?: boolean | undefined;
|
|
43
|
+
locale?: string | undefined;
|
|
44
|
+
mapRoot?: string | undefined;
|
|
45
|
+
maxNodeModuleJsDepth?: number | undefined;
|
|
46
|
+
module?: "preserve" | "none" | "amd" | "AMD" | "commonjs" | "CommonJS" | "es2015" | "ES2015" | "es2020" | "ES2020" | "es2022" | "ES2022" | "es6" | "ES6" | "esnext" | "ESNext" | "node16" | "Node16" | "node18" | "Node18" | "nodenext" | "NodeNext" | "None" | "Preserve" | "system" | "System" | "umd" | "UMD" | undefined;
|
|
47
|
+
moduleDetection?: "auto" | "force" | "legacy" | undefined;
|
|
48
|
+
moduleResolution?: "node16" | "Node16" | "nodenext" | "NodeNext" | "bundler" | "Bundler" | "classic" | "Classic" | "node" | "Node" | "node10" | "Node10" | "NodeJs" | undefined;
|
|
49
|
+
moduleSuffixes?: string[] | undefined;
|
|
50
|
+
newLine?: "crlf" | "lf" | undefined;
|
|
51
|
+
noCheck?: boolean | undefined;
|
|
52
|
+
noEmit?: boolean | undefined;
|
|
53
|
+
noEmitHelpers?: boolean | undefined;
|
|
54
|
+
noEmitOnError?: boolean | undefined;
|
|
55
|
+
noErrorTruncation?: boolean | undefined;
|
|
56
|
+
noFallthroughCasesInSwitch?: boolean | undefined;
|
|
57
|
+
noImplicitAny?: boolean | undefined;
|
|
58
|
+
noImplicitReturns?: boolean | undefined;
|
|
59
|
+
noImplicitThis?: boolean | undefined;
|
|
60
|
+
noStrictGenericChecks?: boolean | undefined;
|
|
61
|
+
noUnusedLocals?: boolean | undefined;
|
|
62
|
+
noUnusedParameters?: boolean | undefined;
|
|
63
|
+
assumeChangesOnlyAffectDirectDependencies?: boolean | undefined;
|
|
64
|
+
noImplicitUseStrict?: boolean | undefined;
|
|
65
|
+
noLib?: boolean | undefined;
|
|
66
|
+
noPropertyAccessFromIndexSignature?: boolean | undefined;
|
|
67
|
+
noResolve?: boolean | undefined;
|
|
68
|
+
noUncheckedIndexedAccess?: boolean | undefined;
|
|
69
|
+
noImplicitOverride?: boolean | undefined;
|
|
70
|
+
out?: string | undefined;
|
|
71
|
+
outDir?: string | undefined;
|
|
72
|
+
outFile?: string | undefined;
|
|
73
|
+
paths?: Record<string, string> | undefined;
|
|
74
|
+
preserveConstEnums?: boolean | undefined;
|
|
75
|
+
preserveSymlinks?: boolean | undefined;
|
|
76
|
+
composite?: boolean | undefined;
|
|
77
|
+
incremental?: boolean | undefined;
|
|
78
|
+
jsxFactory?: string | undefined;
|
|
79
|
+
jsxFragmentFactory?: string | undefined;
|
|
80
|
+
jsxImportSource?: string | undefined;
|
|
81
|
+
preserveValueImports?: boolean | undefined;
|
|
82
|
+
project?: string | undefined;
|
|
83
|
+
reactNamespace?: string | undefined;
|
|
84
|
+
removeComments?: boolean | undefined;
|
|
85
|
+
resolvePackageJsonExports?: boolean | undefined;
|
|
86
|
+
resolvePackageJsonImports?: boolean | undefined;
|
|
87
|
+
rewriteRelativeImportExtensions?: boolean | undefined;
|
|
88
|
+
rootDir?: string | undefined;
|
|
89
|
+
rootDirs?: string[] | undefined;
|
|
90
|
+
skipDefaultLibCheck?: boolean | undefined;
|
|
91
|
+
skipLibCheck?: boolean | undefined;
|
|
92
|
+
sourceMap?: boolean | undefined;
|
|
93
|
+
sourceRoot?: string | undefined;
|
|
94
|
+
strict?: boolean | undefined;
|
|
95
|
+
strictBindCallApply?: boolean | undefined;
|
|
96
|
+
strictBuiltinIteratorReturn?: boolean | undefined;
|
|
97
|
+
strictFunctionTypes?: boolean | undefined;
|
|
98
|
+
strictNullChecks?: boolean | undefined;
|
|
99
|
+
strictPropertyInitialization?: boolean | undefined;
|
|
100
|
+
stripInternal?: boolean | undefined;
|
|
101
|
+
tsBuildInfoFile?: string | undefined;
|
|
102
|
+
suppressExcessPropertyErrors?: boolean | undefined;
|
|
103
|
+
noUncheckedSideEffectImports?: boolean | undefined;
|
|
104
|
+
resolveJsonModule?: boolean | undefined;
|
|
105
|
+
suppressImplicitAnyIndexErrors?: boolean | undefined;
|
|
106
|
+
target?: "es2015" | "ES2015" | "es2020" | "ES2020" | "es2022" | "ES2022" | "esnext" | "ESNext" | "es2016" | "ES2016" | "es2017" | "ES2017" | "es2018" | "ES2018" | "es2019" | "ES2019" | "es2021" | "ES2021" | "es2023" | "ES2023" | "es2024" | "ES2024" | "es3" | "ES3" | "es5" | "ES5" | "json" | "JSON" | "latest" | "Latest" | undefined;
|
|
107
|
+
traceResolution?: boolean | undefined;
|
|
108
|
+
typeRoots?: string[] | undefined;
|
|
109
|
+
types?: string[] | undefined;
|
|
110
|
+
useDefineForClassFields?: boolean | undefined;
|
|
111
|
+
useUnknownInCatchVariables?: boolean | undefined;
|
|
112
|
+
verbatimModuleSyntax?: boolean | undefined;
|
|
113
|
+
} | undefined;
|
|
114
|
+
}, {
|
|
115
|
+
access: "public" | "restricted";
|
|
116
|
+
description: string;
|
|
117
|
+
directory: string;
|
|
118
|
+
documentation: {
|
|
119
|
+
readme: {
|
|
120
|
+
additional?: string | undefined;
|
|
121
|
+
explainer?: string | undefined;
|
|
122
|
+
footnotes?: string | undefined;
|
|
123
|
+
usage?: string | undefined;
|
|
124
|
+
};
|
|
125
|
+
development?: string | undefined;
|
|
126
|
+
};
|
|
127
|
+
email: {
|
|
128
|
+
github: string;
|
|
129
|
+
npm: string;
|
|
130
|
+
};
|
|
131
|
+
title: string;
|
|
132
|
+
node: {
|
|
133
|
+
minimum: string;
|
|
134
|
+
pinned?: string | undefined;
|
|
135
|
+
};
|
|
136
|
+
owner: string;
|
|
137
|
+
repository: string;
|
|
138
|
+
type?: "commonjs" | "module" | undefined;
|
|
139
|
+
author?: string | undefined;
|
|
140
|
+
bin?: string | Record<string, string> | undefined;
|
|
141
|
+
contributors?: {
|
|
142
|
+
avatar_url: string;
|
|
143
|
+
contributions: string[];
|
|
144
|
+
login: string;
|
|
145
|
+
name: string;
|
|
146
|
+
profile: string;
|
|
147
|
+
}[] | undefined;
|
|
148
|
+
emoji?: string | undefined;
|
|
149
|
+
existingLabels?: {
|
|
150
|
+
name: string;
|
|
151
|
+
description: string;
|
|
152
|
+
color: string;
|
|
153
|
+
}[] | undefined;
|
|
154
|
+
funding?: string | undefined;
|
|
155
|
+
guide?: {
|
|
156
|
+
href: string;
|
|
157
|
+
title: string;
|
|
158
|
+
} | undefined;
|
|
159
|
+
keywords?: string[] | undefined;
|
|
160
|
+
logo?: {
|
|
161
|
+
alt: string;
|
|
162
|
+
src: string;
|
|
163
|
+
height?: number | undefined;
|
|
164
|
+
width?: number | undefined;
|
|
165
|
+
} | undefined;
|
|
166
|
+
packageData?: {
|
|
167
|
+
dependencies?: Record<string, string> | undefined;
|
|
168
|
+
devDependencies?: Record<string, string> | undefined;
|
|
169
|
+
peerDependencies?: Record<string, string> | undefined;
|
|
170
|
+
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
171
|
+
scripts?: Record<string, string | undefined> | undefined;
|
|
172
|
+
} | undefined;
|
|
173
|
+
pnpm?: string | undefined;
|
|
174
|
+
rulesetId?: string | undefined;
|
|
175
|
+
version?: string | undefined;
|
|
176
|
+
words?: string[] | undefined;
|
|
177
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
178
|
+
hash?: string | undefined;
|
|
179
|
+
pinned?: boolean | undefined;
|
|
180
|
+
}>> | undefined;
|
|
181
|
+
}>;
|
|
182
|
+
//#endregion
|
|
183
|
+
export { blockTypeScript };
|
|
184
|
+
//# sourceMappingURL=blockTypeScript.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockTypeScript.d.ts","names":[],"sources":["../../src/blocks/blockTypeScript.ts"],"mappings":";cAiBa,yCAAe"}
|
|
@@ -13,7 +13,6 @@ import { blockKnip } from "./blockKnip.js";
|
|
|
13
13
|
import { blockVitest } from "./blockVitest.js";
|
|
14
14
|
import sortKeys from "sort-keys";
|
|
15
15
|
import { CompilerOptionsSchema } from "zod-tsconfig";
|
|
16
|
-
|
|
17
16
|
//#region src/blocks/blockTypeScript.ts
|
|
18
17
|
const blockTypeScript = base.createBlock({
|
|
19
18
|
about: { name: "TypeScript" },
|
|
@@ -133,6 +132,7 @@ greet("Hello, world! ${options.emoji}");
|
|
|
133
132
|
return { addons: [blockRemoveWorkflows({ workflows: ["tsc"] })] };
|
|
134
133
|
}
|
|
135
134
|
});
|
|
136
|
-
|
|
137
135
|
//#endregion
|
|
138
|
-
export { blockTypeScript };
|
|
136
|
+
export { blockTypeScript };
|
|
137
|
+
|
|
138
|
+
//# sourceMappingURL=blockTypeScript.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockTypeScript.js","names":[],"sources":["../../src/blocks/blockTypeScript.ts"],"sourcesContent":["import sortKeys from \"sort-keys\";\nimport { CompilerOptionsSchema } from \"zod-tsconfig\";\n\nimport { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { getPrimaryBin } from \"./bin/getPrimaryBin.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockExampleFiles } from \"./blockExampleFiles.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockGitignore } from \"./blockGitignore.js\";\nimport { blockKnip } from \"./blockKnip.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockRemoveWorkflows } from \"./blockRemoveWorkflows.js\";\nimport { blockVitest } from \"./blockVitest.js\";\nimport { blockVSCode } from \"./blockVSCode.js\";\nimport { intakeFileAsJson } from \"./intake/intakeFileAsJson.js\";\n\nexport const blockTypeScript = base.createBlock({\n\tabout: {\n\t\tname: \"TypeScript\",\n\t},\n\taddons: {\n\t\tcompilerOptions: CompilerOptionsSchema.optional(),\n\t},\n\tintake({ files }) {\n\t\tconst raw = intakeFileAsJson(files, [\"tsconfig.json\"]);\n\t\tconst { data } = CompilerOptionsSchema.safeParse(raw?.compilerOptions);\n\t\tif (!data) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\treturn {\n\t\t\tcompilerOptions: data,\n\t\t};\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { compilerOptions } = addons;\n\t\tconst primaryBin = getPrimaryBin(options.bin, options.repository);\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\t\"Type Checking\": {\n\t\t\t\t\t\t\tcontents: `\nYou should be able to see suggestions from [TypeScript](https://typescriptlang.org) in your editor for all open files.\n\nHowever, it can be useful to run the TypeScript command-line (\\`tsc\\`) to type check all files in \\`src/\\`:\n\n\\`\\`\\`shell\npnpm tsc\n\\`\\`\\`\n\nAdd \\`--watch\\` to keep the type checker running in a watch mode that updates the display as you save files:\n\n\\`\\`\\`shell\npnpm tsc --watch\n\\`\\`\\`\n`,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockExampleFiles({\n\t\t\t\t\tfiles: {\n\t\t\t\t\t\t\"greet.ts\": `import { GreetOptions } from \"./types.js\";\n\n\texport function greet(options: GreetOptions | string) {\n\t\tconst {\n\t\t\tlogger = console.log.bind(console),\n\t\t\tmessage,\n\t\t\ttimes = 1,\n\t\t} = typeof options === \"string\" ? { message: options } : options;\n\n\t\tfor (let i = 0; i < times; i += 1) {\n\t\t\tlogger(message);\n\t\t}\n\t}\n\t`,\n\t\t\t\t\t\t\"index.ts\": `export * from \"./greet.js\";\nexport * from \"./types.js\";\n`,\n\t\t\t\t\t\t\"types.ts\": `export interface GreetOptions {\n\t\tlogger?: (message: string) => void;\n\t\tmessage: string;\n\t\ttimes?: number;\n\t}\n\t`,\n\t\t\t\t\t},\n\t\t\t\t\tusage: [\n\t\t\t\t\t\t`\\`\\`\\`shell\nnpm i ${options.repository}\n\\`\\`\\`\n\\`\\`\\`ts\nimport { greet } from \"${options.repository}\";\n\ngreet(\"Hello, world! ${options.emoji}\");\n\\`\\`\\``,\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockGitignore({\n\t\t\t\t\tignores: [\"/lib\"],\n\t\t\t\t}),\n\t\t\t\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [{ name: \"Type Check\", steps: [{ run: \"pnpm tsc\" }] }],\n\t\t\t\t}),\n\t\t\t\tblockKnip({\n\t\t\t\t\tproject: [\"src/**/*.ts\"],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\"typescript\"),\n\t\t\t\t\t\tfiles: [\"lib/\"],\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockVitest({ coverage: { include: [\"src\"] }, exclude: [\"lib\"] }),\n\t\t\t\tblockVSCode({\n\t\t\t\t\tdebuggers: primaryBin\n\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tname: \"Debug Program\",\n\t\t\t\t\t\t\t\t\tpreLaunchTask: \"build\",\n\t\t\t\t\t\t\t\t\tprogram: primaryBin,\n\t\t\t\t\t\t\t\t\trequest: \"launch\",\n\t\t\t\t\t\t\t\t\tskipFiles: [\"<node_internals>/**\"],\n\t\t\t\t\t\t\t\t\ttype: \"node\",\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\tsettings: {\n\t\t\t\t\t\t\"typescript.tsdk\": \"node_modules/typescript/lib\",\n\t\t\t\t\t},\n\t\t\t\t\ttasks: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdetail: \"Build the project\",\n\t\t\t\t\t\t\tlabel: \"build\",\n\t\t\t\t\t\t\tscript: \"build\",\n\t\t\t\t\t\t\ttype: \"npm\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\"tsconfig.json\": JSON.stringify({\n\t\t\t\t\tcompilerOptions: sortKeys({\n\t\t\t\t\t\tdeclaration: true,\n\t\t\t\t\t\tdeclarationMap: true,\n\t\t\t\t\t\tesModuleInterop: true,\n\t\t\t\t\t\tmodule: \"NodeNext\",\n\t\t\t\t\t\tmoduleResolution: \"NodeNext\",\n\t\t\t\t\t\tnoEmit: true,\n\t\t\t\t\t\tresolveJsonModule: true,\n\t\t\t\t\t\tskipLibCheck: true,\n\t\t\t\t\t\tstrict: true,\n\t\t\t\t\t\ttarget: \"ES2022\",\n\t\t\t\t\t\t...compilerOptions,\n\t\t\t\t\t}),\n\t\t\t\t\tinclude: [\"src\"],\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\tblockRemoveWorkflows({\n\t\t\t\t\tworkflows: [\"tsc\"],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;;;;;;;;;;;AAiBA,MAAa,kBAAkB,KAAK,YAAY;CAC/C,OAAO,EACN,MAAM,aACP;CACA,QAAQ,EACP,iBAAiB,sBAAsB,SAAS,EACjD;CACA,OAAO,EAAE,SAAS;EACjB,MAAM,MAAM,iBAAiB,OAAO,CAAC,eAAe,CAAC;EACrD,MAAM,EAAE,SAAS,sBAAsB,UAAU,KAAK,eAAe;EACrE,IAAI,CAAC,MACJ;EAGD,OAAO,EACN,iBAAiB,KAClB;CACD;CACA,QAAQ,EAAE,QAAQ,WAAW;EAC5B,MAAM,EAAE,oBAAoB;EAC5B,MAAM,aAAa,cAAc,QAAQ,KAAK,QAAQ,UAAU;EAEhE,OAAO;GACN,QAAQ;IACP,qBAAqB,EACpB,UAAU,EACT,iBAAiB,EAChB,UAAU;;;;;;;;;;;;;;EAeX,EACD,EACD,CAAC;IACD,kBAAkB;KACjB,OAAO;MACN,YAAY;;;;;;;;;;;;;;MAcZ,YAAY;;;MAGZ,YAAY;;;;;;KAMb;KACA,OAAO,CACN;QACE,QAAQ,WAAW;;;yBAGF,QAAQ,WAAW;;uBAErB,QAAQ,MAAM;OAEhC;IACD,CAAC;IACD,eAAe,EACd,SAAS,CAAC,MAAM,EACjB,CAAC;IACD,qBAAqB,EACpB,MAAM,CAAC;KAAE,MAAM;KAAc,OAAO,CAAC,EAAE,KAAK,WAAW,CAAC;IAAE,CAAC,EAC5D,CAAC;IACD,UAAU,EACT,SAAS,CAAC,aAAa,EACxB,CAAC;IACD,iBAAiB,EAChB,YAAY;KACX,iBAAiB,uBAAuB,YAAY;KACpD,OAAO,CAAC,MAAM;IACf,EACD,CAAC;IACD,YAAY;KAAE,UAAU,EAAE,SAAS,CAAC,KAAK,EAAE;KAAG,SAAS,CAAC,KAAK;IAAE,CAAC;IAChE,YAAY;KACX,WAAW,aACR,CACA;MACC,MAAM;MACN,eAAe;MACf,SAAS;MACT,SAAS;MACT,WAAW,CAAC,qBAAqB;MACjC,MAAM;KACP,CACD,IACC,CAAC;KACJ,UAAU,EACT,mBAAmB,8BACpB;KACA,OAAO,CACN;MACC,QAAQ;MACR,OAAO;MACP,QAAQ;MACR,MAAM;KACP,CACD;IACD,CAAC;GACF;GACA,OAAO,EACN,iBAAiB,KAAK,UAAU;IAC/B,iBAAiB,SAAS;KACzB,aAAa;KACb,gBAAgB;KAChB,iBAAiB;KACjB,QAAQ;KACR,kBAAkB;KAClB,QAAQ;KACR,mBAAmB;KACnB,cAAc;KACd,QAAQ;KACR,QAAQ;KACR,GAAG;IACJ,CAAC;IACD,SAAS,CAAC,KAAK;GAChB,CAAC,EACF;EACD;CACD;CACA,aAAa;EACZ,OAAO,EACN,QAAQ,CACP,qBAAqB,EACpB,WAAW,CAAC,KAAK,EAClB,CAAC,CACF,EACD;CACD;AACD,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
//#region src/blocks/blockVSCode.d.ts
|
|
2
|
+
declare const blockVSCode: import("bingo-stratum").BlockWithAddons<{
|
|
3
|
+
settings: Record<string, unknown>;
|
|
4
|
+
debuggers?: (Record<string, unknown> & {
|
|
5
|
+
name: string;
|
|
6
|
+
})[] | undefined;
|
|
7
|
+
extensions?: string[] | undefined;
|
|
8
|
+
tasks?: ({
|
|
9
|
+
detail: string;
|
|
10
|
+
} & Record<string, unknown>)[] | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
access: "public" | "restricted";
|
|
13
|
+
description: string;
|
|
14
|
+
directory: string;
|
|
15
|
+
documentation: {
|
|
16
|
+
readme: {
|
|
17
|
+
additional?: string | undefined;
|
|
18
|
+
explainer?: string | undefined;
|
|
19
|
+
footnotes?: string | undefined;
|
|
20
|
+
usage?: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
development?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
email: {
|
|
25
|
+
github: string;
|
|
26
|
+
npm: string;
|
|
27
|
+
};
|
|
28
|
+
title: string;
|
|
29
|
+
node: {
|
|
30
|
+
minimum: string;
|
|
31
|
+
pinned?: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
owner: string;
|
|
34
|
+
repository: string;
|
|
35
|
+
type?: "commonjs" | "module" | undefined;
|
|
36
|
+
author?: string | undefined;
|
|
37
|
+
bin?: string | Record<string, string> | undefined;
|
|
38
|
+
contributors?: {
|
|
39
|
+
avatar_url: string;
|
|
40
|
+
contributions: string[];
|
|
41
|
+
login: string;
|
|
42
|
+
name: string;
|
|
43
|
+
profile: string;
|
|
44
|
+
}[] | undefined;
|
|
45
|
+
emoji?: string | undefined;
|
|
46
|
+
existingLabels?: {
|
|
47
|
+
name: string;
|
|
48
|
+
description: string;
|
|
49
|
+
color: string;
|
|
50
|
+
}[] | undefined;
|
|
51
|
+
funding?: string | undefined;
|
|
52
|
+
guide?: {
|
|
53
|
+
href: string;
|
|
54
|
+
title: string;
|
|
55
|
+
} | undefined;
|
|
56
|
+
keywords?: string[] | undefined;
|
|
57
|
+
logo?: {
|
|
58
|
+
alt: string;
|
|
59
|
+
src: string;
|
|
60
|
+
height?: number | undefined;
|
|
61
|
+
width?: number | undefined;
|
|
62
|
+
} | undefined;
|
|
63
|
+
packageData?: {
|
|
64
|
+
dependencies?: Record<string, string> | undefined;
|
|
65
|
+
devDependencies?: Record<string, string> | undefined;
|
|
66
|
+
peerDependencies?: Record<string, string> | undefined;
|
|
67
|
+
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
68
|
+
scripts?: Record<string, string | undefined> | undefined;
|
|
69
|
+
} | undefined;
|
|
70
|
+
pnpm?: string | undefined;
|
|
71
|
+
rulesetId?: string | undefined;
|
|
72
|
+
version?: string | undefined;
|
|
73
|
+
words?: string[] | undefined;
|
|
74
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
75
|
+
hash?: string | undefined;
|
|
76
|
+
pinned?: boolean | undefined;
|
|
77
|
+
}>> | undefined;
|
|
78
|
+
}>;
|
|
79
|
+
//#endregion
|
|
80
|
+
export { blockVSCode };
|
|
81
|
+
//# sourceMappingURL=blockVSCode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockVSCode.d.ts","names":[],"sources":["../../src/blocks/blockVSCode.ts"],"mappings":";cAOa,qCAAW"}
|
|
@@ -3,7 +3,6 @@ import { blockDevelopmentDocs } from "./blockDevelopmentDocs.js";
|
|
|
3
3
|
import { getPrimaryBin } from "./bin/getPrimaryBin.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import sortKeys from "sort-keys";
|
|
6
|
-
|
|
7
6
|
//#region src/blocks/blockVSCode.ts
|
|
8
7
|
const blockVSCode = base.createBlock({
|
|
9
8
|
about: { name: "VS Code" },
|
|
@@ -56,6 +55,7 @@ To launch it, open a test file, then run _Debug Current Test File_ from the VS C
|
|
|
56
55
|
};
|
|
57
56
|
}
|
|
58
57
|
});
|
|
59
|
-
|
|
60
58
|
//#endregion
|
|
61
|
-
export { blockVSCode };
|
|
59
|
+
export { blockVSCode };
|
|
60
|
+
|
|
61
|
+
//# sourceMappingURL=blockVSCode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockVSCode.js","names":[],"sources":["../../src/blocks/blockVSCode.ts"],"sourcesContent":["import sortKeys from \"sort-keys\";\nimport { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getPrimaryBin } from \"./bin/getPrimaryBin.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\n\nexport const blockVSCode = base.createBlock({\n\tabout: {\n\t\tname: \"VS Code\",\n\t},\n\taddons: {\n\t\tdebuggers: z\n\t\t\t.array(\n\t\t\t\tz.intersection(\n\t\t\t\t\tz.record(z.string(), z.unknown()),\n\t\t\t\t\tz.object({ name: z.string() }),\n\t\t\t\t),\n\t\t\t)\n\t\t\t.optional(),\n\t\textensions: z.array(z.string()).optional(),\n\t\tsettings: z.record(z.string(), z.unknown()).default({}),\n\t\ttasks: z\n\t\t\t.array(\n\t\t\t\tz.intersection(\n\t\t\t\t\tz.object({ detail: z.string() }),\n\t\t\t\t\tz.record(z.string(), z.unknown()),\n\t\t\t\t),\n\t\t\t)\n\t\t\t.optional(),\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { debuggers, extensions, settings, tasks } = addons;\n\t\tconst primaryBin = getPrimaryBin(options.bin, options.repository);\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\thints: [\n\t\t\t\t\t\t`> This repository includes a list of suggested VS Code extensions.`,\n\t\t\t\t\t\t`> It's a good idea to use [VS Code](https://code.visualstudio.com) and accept its suggestion to install them, as they'll help with development.`,\n\t\t\t\t\t],\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tBuilding: {\n\t\t\t\t\t\t\tinnerSections: primaryBin\n\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\tcontents: `\nThis repository includes a [VS Code launch configuration](https://code.visualstudio.com/docs/editor/debugging) for debugging.\nTo debug a \\`bin\\` app, add a breakpoint to your code, then run _Debug Program_ from the VS Code Debug panel (or press F5).\nVS Code will automatically run the \\`build\\` task in the background before running \\`${primaryBin}\\`.\n`,\n\t\t\t\t\t\t\t\t\t\t\theading: \"Built App Debugging\",\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: [],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tTesting: {\n\t\t\t\t\t\t\tinnerSections: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tcontents: `\nThis repository includes a [VS Code launch configuration](https://code.visualstudio.com/docs/editor/debugging) for debugging unit tests.\nTo launch it, open a test file, then run _Debug Current Test File_ from the VS Code Debug panel (or press F5).\n`,\n\t\t\t\t\t\t\t\t\theading: \"Debugging Tests\",\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\tfiles: {\n\t\t\t\t\".vscode\": {\n\t\t\t\t\t\"extensions.json\": extensions?.length\n\t\t\t\t\t\t? JSON.stringify({\n\t\t\t\t\t\t\t\trecommendations: [...extensions].sort(),\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t: undefined,\n\t\t\t\t\t\"launch.json\": debuggers?.length\n\t\t\t\t\t\t? JSON.stringify({\n\t\t\t\t\t\t\t\tconfigurations: [...debuggers].sort((a, b) =>\n\t\t\t\t\t\t\t\t\ta.name.localeCompare(b.name),\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tversion: \"0.2.0\",\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t: undefined,\n\t\t\t\t\t\"settings.json\": JSON.stringify(\n\t\t\t\t\t\tsortKeys({\n\t\t\t\t\t\t\t\"editor.formatOnSave\": true,\n\t\t\t\t\t\t\t\"editor.rulers\": [80],\n\t\t\t\t\t\t\t...settings,\n\t\t\t\t\t\t}),\n\t\t\t\t\t),\n\t\t\t\t\t\"tasks.json\": tasks?.length\n\t\t\t\t\t\t? JSON.stringify({\n\t\t\t\t\t\t\t\ttasks: tasks.sort((a, b) => a.detail.localeCompare(b.detail)),\n\t\t\t\t\t\t\t\tversion: \"2.0.0\",\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t: undefined,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;AAOA,MAAa,cAAc,KAAK,YAAY;CAC3C,OAAO,EACN,MAAM,UACP;CACA,QAAQ;EACP,WAAW,EACT,MACA,EAAE,aACD,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,GAChC,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAC9B,CACD,CAAC,CACA,SAAS;EACX,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS;EACzC,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;EACtD,OAAO,EACL,MACA,EAAE,aACD,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,GAC/B,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CACjC,CACD,CAAC,CACA,SAAS;CACZ;CACA,QAAQ,EAAE,QAAQ,WAAW;EAC5B,MAAM,EAAE,WAAW,YAAY,UAAU,UAAU;EACnD,MAAM,aAAa,cAAc,QAAQ,KAAK,QAAQ,UAAU;EAEhE,OAAO;GACN,QAAQ,CACP,qBAAqB;IACpB,OAAO,CACN,sEACA,iJACD;IACA,UAAU;KACT,UAAU,EACT,eAAe,aACZ,CACA;MACC,UAAU;;;uFAGkE,WAAW;;MAEvF,SAAS;KACV,CACD,IACC,CAAC,EACL;KACA,SAAS,EACR,eAAe,CACd;MACC,UAAU;;;;MAIV,SAAS;KACV,CACD,EACD;IACD;GACD,CAAC,CACF;GACA,OAAO,EACN,WAAW;IACV,mBAAmB,YAAY,SAC5B,KAAK,UAAU,EACf,iBAAiB,CAAC,GAAG,UAAU,CAAC,CAAC,KAAK,EACvC,CAAC,IACA,KAAA;IACH,eAAe,WAAW,SACvB,KAAK,UAAU;KACf,gBAAgB,CAAC,GAAG,SAAS,CAAC,CAAC,MAAM,GAAG,MACvC,EAAE,KAAK,cAAc,EAAE,IAAI,CAC5B;KACA,SAAS;IACV,CAAC,IACA,KAAA;IACH,iBAAiB,KAAK,UACrB,SAAS;KACR,uBAAuB;KACvB,iBAAiB,CAAC,EAAE;KACpB,GAAG;IACJ,CAAC,CACF;IACA,cAAc,OAAO,SAClB,KAAK,UAAU;KACf,OAAO,MAAM,MAAM,GAAG,MAAM,EAAE,OAAO,cAAc,EAAE,MAAM,CAAC;KAC5D,SAAS;IACV,CAAC,IACA,KAAA;GACJ,EACD;EACD;CACD;AACD,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
//#region src/blocks/blockVitest.d.ts
|
|
2
|
+
declare const blockVitest: import("bingo-stratum").BlockWithAddons<{
|
|
3
|
+
exclude: string[];
|
|
4
|
+
actionSteps: ({
|
|
5
|
+
env?: Record<string, string> | undefined;
|
|
6
|
+
if?: string | undefined;
|
|
7
|
+
with?: Record<string, string> | undefined;
|
|
8
|
+
} & ({
|
|
9
|
+
run: string;
|
|
10
|
+
} | {
|
|
11
|
+
uses: string;
|
|
12
|
+
}))[];
|
|
13
|
+
coverage: {
|
|
14
|
+
exclude?: string[] | undefined;
|
|
15
|
+
include?: string[] | undefined;
|
|
16
|
+
};
|
|
17
|
+
flags: string[];
|
|
18
|
+
environment?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
access: "public" | "restricted";
|
|
21
|
+
description: string;
|
|
22
|
+
directory: string;
|
|
23
|
+
documentation: {
|
|
24
|
+
readme: {
|
|
25
|
+
additional?: string | undefined;
|
|
26
|
+
explainer?: string | undefined;
|
|
27
|
+
footnotes?: string | undefined;
|
|
28
|
+
usage?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
development?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
email: {
|
|
33
|
+
github: string;
|
|
34
|
+
npm: string;
|
|
35
|
+
};
|
|
36
|
+
title: string;
|
|
37
|
+
node: {
|
|
38
|
+
minimum: string;
|
|
39
|
+
pinned?: string | undefined;
|
|
40
|
+
};
|
|
41
|
+
owner: string;
|
|
42
|
+
repository: string;
|
|
43
|
+
type?: "commonjs" | "module" | undefined;
|
|
44
|
+
author?: string | undefined;
|
|
45
|
+
bin?: string | Record<string, string> | undefined;
|
|
46
|
+
contributors?: {
|
|
47
|
+
avatar_url: string;
|
|
48
|
+
contributions: string[];
|
|
49
|
+
login: string;
|
|
50
|
+
name: string;
|
|
51
|
+
profile: string;
|
|
52
|
+
}[] | undefined;
|
|
53
|
+
emoji?: string | undefined;
|
|
54
|
+
existingLabels?: {
|
|
55
|
+
name: string;
|
|
56
|
+
description: string;
|
|
57
|
+
color: string;
|
|
58
|
+
}[] | undefined;
|
|
59
|
+
funding?: string | undefined;
|
|
60
|
+
guide?: {
|
|
61
|
+
href: string;
|
|
62
|
+
title: string;
|
|
63
|
+
} | undefined;
|
|
64
|
+
keywords?: string[] | undefined;
|
|
65
|
+
logo?: {
|
|
66
|
+
alt: string;
|
|
67
|
+
src: string;
|
|
68
|
+
height?: number | undefined;
|
|
69
|
+
width?: number | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
packageData?: {
|
|
72
|
+
dependencies?: Record<string, string> | undefined;
|
|
73
|
+
devDependencies?: Record<string, string> | undefined;
|
|
74
|
+
peerDependencies?: Record<string, string> | undefined;
|
|
75
|
+
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
76
|
+
scripts?: Record<string, string | undefined> | undefined;
|
|
77
|
+
} | undefined;
|
|
78
|
+
pnpm?: string | undefined;
|
|
79
|
+
rulesetId?: string | undefined;
|
|
80
|
+
version?: string | undefined;
|
|
81
|
+
words?: string[] | undefined;
|
|
82
|
+
workflowsVersions?: Record<string, Record<string, {
|
|
83
|
+
hash?: string | undefined;
|
|
84
|
+
pinned?: boolean | undefined;
|
|
85
|
+
}>> | undefined;
|
|
86
|
+
}>;
|
|
87
|
+
//#endregion
|
|
88
|
+
export { blockVitest };
|
|
89
|
+
//# sourceMappingURL=blockVitest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockVitest.d.ts","names":[],"sources":["../../src/blocks/blockVitest.ts"],"mappings":";cAyDa,qCAAW"}
|
|
@@ -17,7 +17,6 @@ import { blockPrettier } from "./blockPrettier.js";
|
|
|
17
17
|
import { intakeFileDefineConfig } from "./intake/intakeFileDefineConfig.js";
|
|
18
18
|
import { blockTSDown } from "./blockTSDown.js";
|
|
19
19
|
import { z } from "zod";
|
|
20
|
-
|
|
21
20
|
//#region src/blocks/blockVitest.ts
|
|
22
21
|
const zCoverage = z.object({
|
|
23
22
|
exclude: z.array(z.string()).optional(),
|
|
@@ -57,8 +56,8 @@ const blockVitest = base.createBlock({
|
|
|
57
56
|
};
|
|
58
57
|
},
|
|
59
58
|
produce({ addons }) {
|
|
60
|
-
const { actionSteps, coverage, environment, exclude
|
|
61
|
-
const excludeText = JSON.stringify(Array.from(new Set(["node_modules", ...exclude])).sort());
|
|
59
|
+
const { actionSteps, coverage, environment, exclude } = addons;
|
|
60
|
+
const excludeText = JSON.stringify(Array.from(/* @__PURE__ */ new Set(["node_modules", ...exclude])).sort());
|
|
62
61
|
return {
|
|
63
62
|
addons: [
|
|
64
63
|
blockCSpell({ ignorePaths: ["coverage"] }),
|
|
@@ -202,6 +201,7 @@ export default defineConfig({
|
|
|
202
201
|
] };
|
|
203
202
|
}
|
|
204
203
|
});
|
|
205
|
-
|
|
206
204
|
//#endregion
|
|
207
|
-
export { blockVitest };
|
|
205
|
+
export { blockVitest };
|
|
206
|
+
|
|
207
|
+
//# sourceMappingURL=blockVitest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockVitest.js","names":[],"sources":["../../src/blocks/blockVitest.ts"],"sourcesContent":["import { IntakeDirectory } from \"bingo-fs\";\nimport { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { zActionStep } from \"./actions/steps.js\";\nimport { blockCSpell } from \"./blockCSpell.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockESLint } from \"./blockESLint.js\";\nimport { blockExampleFiles } from \"./blockExampleFiles.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockGitignore } from \"./blockGitignore.js\";\nimport { blockKnip } from \"./blockKnip.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockPrettier } from \"./blockPrettier.js\";\nimport { blockRemoveDependencies } from \"./blockRemoveDependencies.js\";\nimport { blockRemoveFiles } from \"./blockRemoveFiles.js\";\nimport { blockRemoveWorkflows } from \"./blockRemoveWorkflows.js\";\nimport { blockTSDown } from \"./blockTSDown.js\";\nimport { blockVSCode } from \"./blockVSCode.js\";\nimport { intakeFileDefineConfig } from \"./intake/intakeFileDefineConfig.js\";\n\nconst zCoverage = z.object({\n\texclude: z.array(z.string()).optional(),\n\tinclude: z.array(z.string()).optional(),\n});\n\nconst zEnvironment = z.string();\n\nconst zExclude = z.array(z.string());\n\nconst zTest = z\n\t.object({\n\t\tcoverage: zCoverage,\n\t\tenvironment: zEnvironment,\n\t\texclude: zExclude,\n\t})\n\t.partial();\n\nfunction intakeFromConfig(files: IntakeDirectory) {\n\tconst rawData = intakeFileDefineConfig(files, [\"vitest.config.ts\"]);\n\tif (typeof rawData?.test !== \"object\") {\n\t\treturn undefined;\n\t}\n\n\tconst parsedData = zTest.safeParse(rawData.test).data;\n\tif (!parsedData) {\n\t\treturn undefined;\n\t}\n\n\treturn {\n\t\tcoverage: parsedData.coverage,\n\t\tenvironment: parsedData.environment,\n\t\texclude: parsedData.exclude,\n\t};\n}\n\nexport const blockVitest = base.createBlock({\n\tabout: {\n\t\tname: \"Vitest\",\n\t},\n\taddons: {\n\t\tactionSteps: z.array(zActionStep).default([]),\n\t\tcoverage: zCoverage.default({}),\n\t\tenvironment: zEnvironment.optional(),\n\t\texclude: zExclude.default([]),\n\t\tflags: z.array(z.string()).default([]),\n\t},\n\tintake({ files, options }) {\n\t\treturn {\n\t\t\t...intakeFromConfig(files),\n\t\t\tflags: options.packageData?.scripts?.test\n\t\t\t\t?.match(/^vitest (.+)/)?.[1]\n\t\t\t\t.split(\" \"),\n\t\t};\n\t},\n\tproduce({ addons }) {\n\t\tconst { actionSteps, coverage, environment, exclude } = addons;\n\t\tconst excludeText = JSON.stringify(\n\t\t\tArray.from(new Set([\"node_modules\", ...exclude])).sort(),\n\t\t);\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockCSpell({\n\t\t\t\t\tignorePaths: [\"coverage\"],\n\t\t\t\t}),\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tTesting: {\n\t\t\t\t\t\t\tcontents: `\n[Vitest](https://vitest.dev) is used for tests.\nYou can run it locally on the command-line:\n\n\\`\\`\\`shell\npnpm run test\n\\`\\`\\`\n\nAdd the \\`--coverage\\` flag to compute test coverage and place reports in the \\`coverage/\\` directory:\n\n\\`\\`\\`shell\npnpm run test --coverage\n\\`\\`\\`\n\nNote that [console-fail-test](https://github.com/JoshuaKGoldberg/console-fail-test) is enabled for all test runs.\nCalls to \\`console.log\\`, \\`console.warn\\`, and other console methods will cause a test to fail.\n\n\n\t\t`,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockESLint({\n\t\t\t\t\textensions: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\textends: [\"vitest.configs.recommended\"],\n\t\t\t\t\t\t\tfiles: [\"**/*.test.*\"],\n\t\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tentries: {\n\t\t\t\t\t\t\t\t\t\t\"@typescript-eslint/no-unsafe-assignment\": \"off\",\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\tsettings: {\n\t\t\t\t\t\t\t\tvitest: { typecheck: true },\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\tignores: [\"coverage\", \"**/*.snap\"],\n\t\t\t\t\timports: [{ source: \"@vitest/eslint-plugin\", specifier: \"vitest\" }],\n\t\t\t\t}),\n\t\t\t\tblockExampleFiles({\n\t\t\t\t\tfiles: {\n\t\t\t\t\t\t\"greet.test.ts\": `import { describe, expect, it, vi } from \"vitest\";\n\nimport { greet } from \"./greet.js\";\n\nconst message = \"Yay, testing!\";\n\ndescribe(greet, () => {\n\tit(\"logs to the console once when message is provided as a string\", () => {\n\t\tconst logger = vi.spyOn(console, \"log\").mockImplementation(() => undefined);\n\n\t\tgreet(message);\n\n\t\texpect(logger).toHaveBeenCalledWith(message);\n\t\texpect(logger).toHaveBeenCalledTimes(1);\n\t});\n\n\tit(\"logs to the console once when message is provided as an object\", () => {\n\t\tconst logger = vi.spyOn(console, \"log\").mockImplementation(() => undefined);\n\n\t\tgreet({ message });\n\n\t\texpect(logger).toHaveBeenCalledWith(message);\n\t\texpect(logger).toHaveBeenCalledTimes(1);\n\t});\n\n\tit(\"logs once when times is not provided in an object\", () => {\n\t\tconst logger = vi.fn();\n\n\t\tgreet({ logger, message });\n\n\t\texpect(logger).toHaveBeenCalledWith(message);\n\t\texpect(logger).toHaveBeenCalledTimes(1);\n\t});\n\n\tit(\"logs a specified number of times when times is provided\", () => {\n\t\tconst logger = vi.fn();\n\t\tconst times = 7;\n\n\t\tgreet({ logger, message, times });\n\n\t\texpect(logger).toHaveBeenCalledWith(message);\n\t\texpect(logger).toHaveBeenCalledTimes(7);\n\t});\n});\n`,\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockGitignore({\n\t\t\t\t\tignores: [\"/coverage\"],\n\t\t\t\t}),\n\t\t\t\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Test\",\n\t\t\t\t\t\t\tsteps: [{ run: \"pnpm run test --coverage\" }, ...actionSteps],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockKnip({\n\t\t\t\t\tentry: [\"src/**/*.test.*\"],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\n\t\t\t\t\t\t\t\"@vitest/coverage-v8\",\n\t\t\t\t\t\t\t\"@vitest/eslint-plugin\",\n\t\t\t\t\t\t\t\"console-fail-test\",\n\t\t\t\t\t\t\t\"vitest\",\n\t\t\t\t\t\t),\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\ttest: `vitest ${addons.flags.join(\" \")}`.trim(),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockPrettier({\n\t\t\t\t\tignores: [\"/coverage\"],\n\t\t\t\t}),\n\t\t\t\tblockTSDown({\n\t\t\t\t\tentry: [\"!src/**/*.test.*\"],\n\t\t\t\t}),\n\t\t\t\tblockVSCode({\n\t\t\t\t\tdebuggers: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\targs: [\"run\", \"${relativeFile}\"],\n\t\t\t\t\t\t\tautoAttachChildProcesses: true,\n\t\t\t\t\t\t\tconsole: \"integratedTerminal\",\n\t\t\t\t\t\t\tname: \"Debug Current Test File\",\n\t\t\t\t\t\t\tprogram: \"${workspaceRoot}/node_modules/vitest/vitest.mjs\",\n\t\t\t\t\t\t\trequest: \"launch\",\n\t\t\t\t\t\t\tskipFiles: [\"<node_internals>/**\", \"**/node_modules/**\"],\n\t\t\t\t\t\t\tsmartStep: true,\n\t\t\t\t\t\t\ttype: \"node\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\textensions: [\"vitest.explorer\"],\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\"vitest.config.ts\": `import { defineConfig } from \"vitest/config\";\n\nexport default defineConfig({\n\ttest: {\n\t\tclearMocks: true,\n\t\tcoverage: {\n\t\t\t${\n\t\t\t\tcoverage.exclude?.length\n\t\t\t\t\t? `exclude: ${JSON.stringify(coverage.exclude)},\n\t\t\t`\n\t\t\t\t\t: \"\"\n\t\t\t}include: ${JSON.stringify(coverage.include)},\n\t\t\treporter: [\"html\", \"lcov\"],\n\t\t},${\n\t\t\tenvironment\n\t\t\t\t? `\n\t\tenvironment: \"${environment}\",`\n\t\t\t\t: \"\"\n\t\t}\n\t\texclude: [${excludeText.slice(1, excludeText.length - 1)}],\n\t\tsetupFiles: [\"console-fail-test/setup\"],\n\t},\n});\n\t`,\n\t\t\t},\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockRemoveDependencies({\n\t\t\t\t\tdependencies: [\n\t\t\t\t\t\t\"@vitest/coverage-istanbul\",\n\t\t\t\t\t\t\"eslint-plugin-jest\",\n\t\t\t\t\t\t\"eslint-plugin-mocha\",\n\t\t\t\t\t\t\"eslint-plugin-vitest\",\n\t\t\t\t\t\t\"jest mocha\",\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockRemoveFiles({\n\t\t\t\t\tfiles: [\".mocha*\", \"jest.config.*\", \"vitest.config.{c,j,m}*\"],\n\t\t\t\t}),\n\t\t\t\tblockRemoveWorkflows({\n\t\t\t\t\tworkflows: [\"test\"],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAsBA,MAAM,YAAY,EAAE,OAAO;CAC1B,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS;CACtC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS;AACvC,CAAC;AAED,MAAM,eAAe,EAAE,OAAO;AAE9B,MAAM,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC;AAEnC,MAAM,QAAQ,EACZ,OAAO;CACP,UAAU;CACV,aAAa;CACb,SAAS;AACV,CAAC,CAAC,CACD,QAAQ;AAEV,SAAS,iBAAiB,OAAwB;CACjD,MAAM,UAAU,uBAAuB,OAAO,CAAC,kBAAkB,CAAC;CAClE,IAAI,OAAO,SAAS,SAAS,UAC5B;CAGD,MAAM,aAAa,MAAM,UAAU,QAAQ,IAAI,CAAC,CAAC;CACjD,IAAI,CAAC,YACJ;CAGD,OAAO;EACN,UAAU,WAAW;EACrB,aAAa,WAAW;EACxB,SAAS,WAAW;CACrB;AACD;AAEA,MAAa,cAAc,KAAK,YAAY;CAC3C,OAAO,EACN,MAAM,SACP;CACA,QAAQ;EACP,aAAa,EAAE,MAAM,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;EAC5C,UAAU,UAAU,QAAQ,CAAC,CAAC;EAC9B,aAAa,aAAa,SAAS;EACnC,SAAS,SAAS,QAAQ,CAAC,CAAC;EAC5B,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;CACtC;CACA,OAAO,EAAE,OAAO,WAAW;EAC1B,OAAO;GACN,GAAG,iBAAiB,KAAK;GACzB,OAAO,QAAQ,aAAa,SAAS,MAClC,MAAM,cAAc,CAAC,GAAG,EAAE,CAC3B,MAAM,GAAG;EACZ;CACD;CACA,QAAQ,EAAE,UAAU;EACnB,MAAM,EAAE,aAAa,UAAU,aAAa,YAAY;EACxD,MAAM,cAAc,KAAK,UACxB,MAAM,qBAAK,IAAI,IAAI,CAAC,gBAAgB,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CACxD;EAEA,OAAO;GACN,QAAQ;IACP,YAAY,EACX,aAAa,CAAC,UAAU,EACzB,CAAC;IACD,qBAAqB,EACpB,UAAU,EACT,SAAS,EACR,UAAU;;;;;;;;;;;;;;;;;;IAmBX,EACD,EACD,CAAC;IACD,YAAY;KACX,YAAY,CACX;MACC,SAAS,CAAC,4BAA4B;MACtC,OAAO,CAAC,aAAa;MACrB,OAAO,CACN,EACC,SAAS,EACR,2CAA2C,MAC5C,EACD,CACD;MACA,UAAU,EACT,QAAQ,EAAE,WAAW,KAAK,EAC3B;KACD,CACD;KACA,SAAS,CAAC,YAAY,WAAW;KACjC,SAAS,CAAC;MAAE,QAAQ;MAAyB,WAAW;KAAS,CAAC;IACnE,CAAC;IACD,kBAAkB,EACjB,OAAO,EACN,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6ClB,EACD,CAAC;IACD,eAAe,EACd,SAAS,CAAC,WAAW,EACtB,CAAC;IACD,qBAAqB,EACpB,MAAM,CACL;KACC,MAAM;KACN,OAAO,CAAC,EAAE,KAAK,2BAA2B,GAAG,GAAG,WAAW;IAC5D,CACD,EACD,CAAC;IACD,UAAU,EACT,OAAO,CAAC,iBAAiB,EAC1B,CAAC;IACD,iBAAiB,EAChB,YAAY;KACX,iBAAiB,uBAChB,uBACA,yBACA,qBACA,QACD;KACA,SAAS,EACR,MAAM,UAAU,OAAO,MAAM,KAAK,GAAG,IAAI,KAAK,EAC/C;IACD,EACD,CAAC;IACD,cAAc,EACb,SAAS,CAAC,WAAW,EACtB,CAAC;IACD,YAAY,EACX,OAAO,CAAC,kBAAkB,EAC3B,CAAC;IACD,YAAY;KACX,WAAW,CACV;MACC,MAAM,CAAC,OAAO,iBAAiB;MAC/B,0BAA0B;MAC1B,SAAS;MACT,MAAM;MACN,SAAS;MACT,SAAS;MACT,WAAW,CAAC,uBAAuB,oBAAoB;MACvD,WAAW;MACX,MAAM;KACP,CACD;KACA,YAAY,CAAC,iBAAiB;IAC/B,CAAC;GACF;GACA,OAAO,EACN,oBAAoB;;;;;;KAOpB,SAAS,SAAS,SACf,YAAY,KAAK,UAAU,SAAS,OAAO,EAAE;OAE7C,GACH,WAAW,KAAK,UAAU,SAAS,OAAO,EAAE;;MAG7C,cACG;kBACY,YAAY,MACxB,GACH;cACW,YAAY,MAAM,GAAG,YAAY,SAAS,CAAC,EAAE;;;;GAKxD;EACD;CACD;CACA,aAAa;EACZ,OAAO,EACN,QAAQ;GACP,wBAAwB,EACvB,cAAc;IACb;IACA;IACA;IACA;IACA;GACD,EACD,CAAC;GACD,iBAAiB,EAChB,OAAO;IAAC;IAAW;IAAiB;GAAwB,EAC7D,CAAC;GACD,qBAAqB,EACpB,WAAW,CAAC,MAAM,EACnB,CAAC;EACF,EACD;CACD;AACD,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
//#region src/blocks/blockWebExt.d.ts
|
|
2
|
+
declare const blockWebExt: import("bingo-stratum").BlockWithoutAddons<{
|
|
3
|
+
access: "public" | "restricted";
|
|
4
|
+
description: string;
|
|
5
|
+
directory: string;
|
|
6
|
+
documentation: {
|
|
7
|
+
readme: {
|
|
8
|
+
additional?: string | undefined;
|
|
9
|
+
explainer?: string | undefined;
|
|
10
|
+
footnotes?: string | undefined;
|
|
11
|
+
usage?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
development?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
email: {
|
|
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
|
+
hash?: string | undefined;
|
|
67
|
+
pinned?: boolean | undefined;
|
|
68
|
+
}>> | undefined;
|
|
69
|
+
}>;
|
|
70
|
+
//#endregion
|
|
71
|
+
export { blockWebExt };
|
|
72
|
+
//# sourceMappingURL=blockWebExt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockWebExt.d.ts","names":[],"sources":["../../src/blocks/blockWebExt.ts"],"mappings":";cAQa,qCAAW"}
|