create-typescript-app 2.61.1 → 2.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/base.js +1 -2
- package/lib/blocks/actions/resolveUses.js +1 -2
- package/lib/blocks/actions/steps.js +1 -2
- package/lib/blocks/bin/getPrimaryBin.js +1 -2
- package/lib/blocks/blockAllContributors.js +1 -2
- package/lib/blocks/blockAreTheTypesWrong.js +1 -2
- package/lib/blocks/blockCSpell.js +1 -2
- package/lib/blocks/blockCTATransitions.js +1 -2
- package/lib/blocks/blockCodecov.js +1 -2
- package/lib/blocks/blockContributingDocs.js +1 -2
- package/lib/blocks/blockContributorCovenant.js +1 -2
- package/lib/blocks/blockDevelopmentDocs.js +1 -2
- package/lib/blocks/blockESLint.js +1 -2
- package/lib/blocks/blockESLintComments.js +1 -2
- package/lib/blocks/blockESLintJSDoc.js +1 -2
- package/lib/blocks/blockESLintJSONC.js +1 -2
- package/lib/blocks/blockESLintMarkdown.js +1 -2
- package/lib/blocks/blockESLintMoreStyling.js +1 -2
- package/lib/blocks/blockESLintNode.js +1 -2
- package/lib/blocks/blockESLintPackageJson.js +1 -2
- package/lib/blocks/blockESLintPerfectionist.js +1 -2
- package/lib/blocks/blockESLintPlugin.js +1 -2
- package/lib/blocks/blockESLintRegexp.js +1 -2
- package/lib/blocks/blockESLintYML.js +1 -2
- package/lib/blocks/blockExampleFiles.js +1 -2
- package/lib/blocks/blockExports.js +1 -2
- package/lib/blocks/blockFunding.js +1 -2
- package/lib/blocks/blockGitHubActionsCI.js +1 -2
- package/lib/blocks/blockGitHubApps.js +1 -2
- package/lib/blocks/blockGitHubIssueTemplates.js +1 -2
- package/lib/blocks/blockGitHubPRTemplate.js +1 -2
- package/lib/blocks/blockGitignore.js +1 -2
- package/lib/blocks/blockKnip.js +10 -10
- package/lib/blocks/blockMITLicense.js +1 -2
- package/lib/blocks/blockNcc.js +1 -2
- package/lib/blocks/blockNvmrc.js +1 -2
- package/lib/blocks/blockOctoGuide.js +1 -2
- package/lib/blocks/blockOctoGuideStrict.js +1 -2
- package/lib/blocks/blockPackageJson.js +1 -2
- package/lib/blocks/blockPnpmDedupe.js +1 -2
- package/lib/blocks/blockPrettier.js +1 -2
- package/lib/blocks/blockPrettierPluginCurly.js +1 -2
- package/lib/blocks/blockPrettierPluginPackageJson.js +1 -2
- package/lib/blocks/blockPrettierPluginSentencesPerLine.js +1 -2
- package/lib/blocks/blockPrettierPluginSh.js +1 -2
- package/lib/blocks/blockREADME.js +1 -2
- package/lib/blocks/blockReleaseIt.js +1 -2
- package/lib/blocks/blockRemoveDependencies.js +1 -2
- package/lib/blocks/blockRemoveFiles.js +1 -2
- package/lib/blocks/blockRemoveWorkflows.js +1 -2
- package/lib/blocks/blockRenovate.js +1 -2
- package/lib/blocks/blockRepositoryBranchRuleset.js +1 -2
- package/lib/blocks/blockRepositoryLabels.js +1 -2
- package/lib/blocks/blockRepositorySecrets.js +1 -2
- package/lib/blocks/blockRepositorySettings.js +1 -2
- package/lib/blocks/blockSecurityDocs.js +1 -2
- package/lib/blocks/blockSideEffects.js +1 -2
- package/lib/blocks/blockTSDown.js +1 -3
- package/lib/blocks/blockTemplatedWith.js +1 -2
- package/lib/blocks/blockTypeScript.js +1 -2
- package/lib/blocks/blockVSCode.js +1 -2
- package/lib/blocks/blockVitest.js +1 -2
- package/lib/blocks/blockWebExt.js +1 -2
- package/lib/blocks/eslint/blockESLintIntake.js +1 -2
- package/lib/blocks/eslint/blockESLintPluginIntake.js +1 -2
- package/lib/blocks/eslint/getScriptFileExtension.js +1 -2
- package/lib/blocks/eslint/mergeAllExtensions.js +1 -2
- package/lib/blocks/eslint/schemas.js +1 -2
- package/lib/blocks/files/createJobName.js +1 -2
- package/lib/blocks/files/createMultiWorkflowFile.js +1 -2
- package/lib/blocks/files/createSoloWorkflowFile.js +1 -2
- package/lib/blocks/files/formatIgnoreFile.js +1 -2
- package/lib/blocks/files/formatWorkflowYaml.js +1 -2
- package/lib/blocks/files/formatYaml.js +1 -2
- package/lib/blocks/files/removeUsesQuotes.js +1 -2
- package/lib/blocks/getInstallationSuggestions.js +1 -2
- package/lib/blocks/index.js +1 -2
- package/lib/blocks/intake/intakeFile.js +1 -2
- package/lib/blocks/intake/intakeFileAsJson.js +1 -2
- package/lib/blocks/intake/intakeFileAsYaml.js +1 -2
- package/lib/blocks/intake/intakeFileDefineConfig.js +1 -2
- package/lib/blocks/intake/intakeFileExportObject.js +24 -0
- package/lib/blocks/options.fakes.js +1 -2
- package/lib/blocks/outcomeLabels.js +1 -2
- package/lib/blocks/phases.js +1 -2
- package/lib/constants.js +1 -2
- package/lib/data/contributions.js +1 -2
- package/lib/data/packageData.js +1 -2
- package/lib/index.js +1 -2
- package/lib/inputs/inputFromDirectory.js +1 -2
- package/lib/inputs/inputFromOctokit.js +1 -2
- package/lib/options/readAccess.js +1 -2
- package/lib/options/readAllContributors.js +1 -2
- package/lib/options/readAuthor.js +1 -2
- package/lib/options/readBin.js +1 -2
- package/lib/options/readDescription.js +1 -2
- package/lib/options/readDescriptionFromReadme.js +1 -2
- package/lib/options/readDevelopmentDocumentation.js +1 -2
- package/lib/options/readDocumentation.js +1 -2
- package/lib/options/readEmailFromCodeOfConduct.js +1 -2
- package/lib/options/readEmailFromGit.js +1 -2
- package/lib/options/readEmailFromNpm.js +1 -2
- package/lib/options/readEmails.js +1 -2
- package/lib/options/readEmoji.js +1 -2
- package/lib/options/readExistingLabels.js +1 -2
- package/lib/options/readFileAsJson.js +1 -2
- package/lib/options/readFileSafe.js +1 -2
- package/lib/options/readFunding.js +1 -2
- package/lib/options/readGitDefaults.js +1 -2
- package/lib/options/readGuide.js +1 -2
- package/lib/options/readKeywords.js +1 -2
- package/lib/options/readLogo.js +1 -2
- package/lib/options/readLogoSizing.js +1 -2
- package/lib/options/readNode.js +1 -2
- package/lib/options/readNpmDefaults.js +1 -2
- package/lib/options/readOwner.js +1 -2
- package/lib/options/readPackageAuthor.js +1 -2
- package/lib/options/readPackageData.js +1 -2
- package/lib/options/readPnpm.js +1 -2
- package/lib/options/readReadmeAdditional.js +1 -2
- package/lib/options/readReadmeExplainer.js +1 -2
- package/lib/options/readReadmeFootnotes.js +1 -2
- package/lib/options/readReadmeUsage.js +1 -2
- package/lib/options/readRepository.js +1 -2
- package/lib/options/readRulesetId.js +1 -2
- package/lib/options/readTitle.js +1 -2
- package/lib/options/readWords.js +1 -2
- package/lib/options/readWorkflowsVersions.js +1 -2
- package/lib/presets/common.js +1 -2
- package/lib/presets/everything.js +1 -2
- package/lib/presets/index.js +1 -2
- package/lib/presets/minimal.js +1 -2
- package/lib/schemas.js +1 -2
- package/lib/template.js +1 -2
- package/lib/utils/htmlToTextSafe.js +1 -2
- package/lib/utils/resolveBin.js +1 -2
- package/lib/utils/swallowError.js +1 -2
- package/lib/utils/swallowErrorAsync.js +1 -2
- package/lib/utils/trimPrecedingSlash.js +1 -2
- package/lib/utils/tryCatch.js +1 -2
- package/package.json +1 -1
- package/lib/_virtual/rolldown_runtime.js +0 -20
- package/lib/base.d.ts +0 -177
- package/lib/base.d.ts.map +0 -1
- package/lib/base.js.map +0 -1
- package/lib/blocks/actions/resolveUses.d.ts +0 -7
- package/lib/blocks/actions/resolveUses.d.ts.map +0 -1
- package/lib/blocks/actions/resolveUses.js.map +0 -1
- package/lib/blocks/actions/steps.d.ts +0 -38
- package/lib/blocks/actions/steps.d.ts.map +0 -1
- package/lib/blocks/actions/steps.js.map +0 -1
- package/lib/blocks/bin/getPrimaryBin.d.ts +0 -5
- package/lib/blocks/bin/getPrimaryBin.d.ts.map +0 -1
- package/lib/blocks/bin/getPrimaryBin.js.map +0 -1
- package/lib/blocks/blockAllContributors.d.ts +0 -74
- package/lib/blocks/blockAllContributors.d.ts.map +0 -1
- package/lib/blocks/blockAllContributors.js.map +0 -1
- package/lib/blocks/blockAreTheTypesWrong.d.ts +0 -74
- package/lib/blocks/blockAreTheTypesWrong.d.ts.map +0 -1
- package/lib/blocks/blockAreTheTypesWrong.js.map +0 -1
- package/lib/blocks/blockCSpell.d.ts +0 -77
- package/lib/blocks/blockCSpell.d.ts.map +0 -1
- package/lib/blocks/blockCSpell.js.map +0 -1
- package/lib/blocks/blockCTATransitions.d.ts +0 -74
- package/lib/blocks/blockCTATransitions.d.ts.map +0 -1
- package/lib/blocks/blockCTATransitions.js.map +0 -1
- package/lib/blocks/blockCodecov.d.ts +0 -76
- package/lib/blocks/blockCodecov.d.ts.map +0 -1
- package/lib/blocks/blockCodecov.js.map +0 -1
- package/lib/blocks/blockContributingDocs.d.ts +0 -74
- package/lib/blocks/blockContributingDocs.d.ts.map +0 -1
- package/lib/blocks/blockContributingDocs.js.map +0 -1
- package/lib/blocks/blockContributorCovenant.d.ts +0 -74
- package/lib/blocks/blockContributorCovenant.d.ts.map +0 -1
- package/lib/blocks/blockContributorCovenant.js.map +0 -1
- package/lib/blocks/blockDevelopmentDocs.d.ts +0 -88
- package/lib/blocks/blockDevelopmentDocs.d.ts.map +0 -1
- package/lib/blocks/blockDevelopmentDocs.js.map +0 -1
- package/lib/blocks/blockESLint.d.ts +0 -98
- package/lib/blocks/blockESLint.d.ts.map +0 -1
- package/lib/blocks/blockESLint.js.map +0 -1
- package/lib/blocks/blockESLintComments.d.ts +0 -74
- package/lib/blocks/blockESLintComments.d.ts.map +0 -1
- package/lib/blocks/blockESLintComments.js.map +0 -1
- package/lib/blocks/blockESLintJSDoc.d.ts +0 -74
- package/lib/blocks/blockESLintJSDoc.d.ts.map +0 -1
- package/lib/blocks/blockESLintJSDoc.js.map +0 -1
- package/lib/blocks/blockESLintJSONC.d.ts +0 -74
- package/lib/blocks/blockESLintJSONC.d.ts.map +0 -1
- package/lib/blocks/blockESLintJSONC.js.map +0 -1
- package/lib/blocks/blockESLintMarkdown.d.ts +0 -74
- package/lib/blocks/blockESLintMarkdown.d.ts.map +0 -1
- package/lib/blocks/blockESLintMarkdown.js.map +0 -1
- package/lib/blocks/blockESLintMoreStyling.d.ts +0 -75
- package/lib/blocks/blockESLintMoreStyling.d.ts.map +0 -1
- package/lib/blocks/blockESLintMoreStyling.js.map +0 -1
- package/lib/blocks/blockESLintNode.d.ts +0 -74
- package/lib/blocks/blockESLintNode.d.ts.map +0 -1
- package/lib/blocks/blockESLintNode.js.map +0 -1
- package/lib/blocks/blockESLintPackageJson.d.ts +0 -74
- package/lib/blocks/blockESLintPackageJson.d.ts.map +0 -1
- package/lib/blocks/blockESLintPackageJson.js.map +0 -1
- package/lib/blocks/blockESLintPerfectionist.d.ts +0 -74
- package/lib/blocks/blockESLintPerfectionist.d.ts.map +0 -1
- package/lib/blocks/blockESLintPerfectionist.js.map +0 -1
- package/lib/blocks/blockESLintPlugin.d.ts +0 -76
- package/lib/blocks/blockESLintPlugin.d.ts.map +0 -1
- package/lib/blocks/blockESLintPlugin.js.map +0 -1
- package/lib/blocks/blockESLintRegexp.d.ts +0 -74
- package/lib/blocks/blockESLintRegexp.d.ts.map +0 -1
- package/lib/blocks/blockESLintRegexp.js.map +0 -1
- package/lib/blocks/blockESLintYML.d.ts +0 -74
- package/lib/blocks/blockESLintYML.d.ts.map +0 -1
- package/lib/blocks/blockESLintYML.js.map +0 -1
- package/lib/blocks/blockExampleFiles.d.ts +0 -77
- package/lib/blocks/blockExampleFiles.d.ts.map +0 -1
- package/lib/blocks/blockExampleFiles.js.map +0 -1
- package/lib/blocks/blockExports.d.ts +0 -77
- package/lib/blocks/blockExports.d.ts.map +0 -1
- package/lib/blocks/blockExports.js.map +0 -1
- package/lib/blocks/blockFunding.d.ts +0 -74
- package/lib/blocks/blockFunding.d.ts.map +0 -1
- package/lib/blocks/blockFunding.js.map +0 -1
- package/lib/blocks/blockGitHubActionsCI.d.ts +0 -90
- package/lib/blocks/blockGitHubActionsCI.d.ts.map +0 -1
- package/lib/blocks/blockGitHubActionsCI.js.map +0 -1
- package/lib/blocks/blockGitHubApps.d.ts +0 -79
- package/lib/blocks/blockGitHubApps.d.ts.map +0 -1
- package/lib/blocks/blockGitHubApps.js.map +0 -1
- package/lib/blocks/blockGitHubIssueTemplates.d.ts +0 -74
- package/lib/blocks/blockGitHubIssueTemplates.d.ts.map +0 -1
- package/lib/blocks/blockGitHubIssueTemplates.js.map +0 -1
- package/lib/blocks/blockGitHubPRTemplate.d.ts +0 -74
- package/lib/blocks/blockGitHubPRTemplate.d.ts.map +0 -1
- package/lib/blocks/blockGitHubPRTemplate.js.map +0 -1
- package/lib/blocks/blockGitignore.d.ts +0 -76
- package/lib/blocks/blockGitignore.d.ts.map +0 -1
- package/lib/blocks/blockGitignore.js.map +0 -1
- package/lib/blocks/blockKnip.d.ts +0 -78
- package/lib/blocks/blockKnip.d.ts.map +0 -1
- package/lib/blocks/blockKnip.js.map +0 -1
- package/lib/blocks/blockMITLicense.d.ts +0 -74
- package/lib/blocks/blockMITLicense.d.ts.map +0 -1
- package/lib/blocks/blockMITLicense.js.map +0 -1
- package/lib/blocks/blockNcc.d.ts +0 -76
- package/lib/blocks/blockNcc.d.ts.map +0 -1
- package/lib/blocks/blockNcc.js.map +0 -1
- package/lib/blocks/blockNvmrc.d.ts +0 -74
- package/lib/blocks/blockNvmrc.d.ts.map +0 -1
- package/lib/blocks/blockNvmrc.js.map +0 -1
- package/lib/blocks/blockOctoGuide.d.ts +0 -76
- package/lib/blocks/blockOctoGuide.d.ts.map +0 -1
- package/lib/blocks/blockOctoGuide.js.map +0 -1
- package/lib/blocks/blockOctoGuideStrict.d.ts +0 -74
- package/lib/blocks/blockOctoGuideStrict.d.ts.map +0 -1
- package/lib/blocks/blockOctoGuideStrict.js.map +0 -1
- package/lib/blocks/blockPackageJson.d.ts +0 -151
- package/lib/blocks/blockPackageJson.d.ts.map +0 -1
- package/lib/blocks/blockPackageJson.js.map +0 -1
- package/lib/blocks/blockPnpmDedupe.d.ts +0 -74
- package/lib/blocks/blockPnpmDedupe.d.ts.map +0 -1
- package/lib/blocks/blockPnpmDedupe.js.map +0 -1
- package/lib/blocks/blockPrettier.d.ts +0 -84
- package/lib/blocks/blockPrettier.d.ts.map +0 -1
- package/lib/blocks/blockPrettier.js.map +0 -1
- package/lib/blocks/blockPrettierPluginCurly.d.ts +0 -74
- package/lib/blocks/blockPrettierPluginCurly.d.ts.map +0 -1
- package/lib/blocks/blockPrettierPluginCurly.js.map +0 -1
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts +0 -74
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts.map +0 -1
- package/lib/blocks/blockPrettierPluginPackageJson.js.map +0 -1
- package/lib/blocks/blockPrettierPluginSentencesPerLine.d.ts +0 -74
- package/lib/blocks/blockPrettierPluginSentencesPerLine.d.ts.map +0 -1
- package/lib/blocks/blockPrettierPluginSentencesPerLine.js.map +0 -1
- package/lib/blocks/blockPrettierPluginSh.d.ts +0 -74
- package/lib/blocks/blockPrettierPluginSh.d.ts.map +0 -1
- package/lib/blocks/blockPrettierPluginSh.js.map +0 -1
- package/lib/blocks/blockREADME.d.ts +0 -87
- package/lib/blocks/blockREADME.d.ts.map +0 -1
- package/lib/blocks/blockREADME.js.map +0 -1
- package/lib/blocks/blockReleaseIt.d.ts +0 -79
- package/lib/blocks/blockReleaseIt.d.ts.map +0 -1
- package/lib/blocks/blockReleaseIt.js.map +0 -1
- package/lib/blocks/blockRemoveDependencies.d.ts +0 -76
- package/lib/blocks/blockRemoveDependencies.d.ts.map +0 -1
- package/lib/blocks/blockRemoveDependencies.js.map +0 -1
- package/lib/blocks/blockRemoveFiles.d.ts +0 -76
- package/lib/blocks/blockRemoveFiles.d.ts.map +0 -1
- package/lib/blocks/blockRemoveFiles.js.map +0 -1
- package/lib/blocks/blockRemoveWorkflows.d.ts +0 -76
- package/lib/blocks/blockRemoveWorkflows.d.ts.map +0 -1
- package/lib/blocks/blockRemoveWorkflows.js.map +0 -1
- package/lib/blocks/blockRenovate.d.ts +0 -76
- package/lib/blocks/blockRenovate.d.ts.map +0 -1
- package/lib/blocks/blockRenovate.js.map +0 -1
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts +0 -76
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts.map +0 -1
- package/lib/blocks/blockRepositoryBranchRuleset.js.map +0 -1
- package/lib/blocks/blockRepositoryLabels.d.ts +0 -74
- package/lib/blocks/blockRepositoryLabels.d.ts.map +0 -1
- package/lib/blocks/blockRepositoryLabels.js.map +0 -1
- package/lib/blocks/blockRepositorySecrets.d.ts +0 -79
- package/lib/blocks/blockRepositorySecrets.d.ts.map +0 -1
- package/lib/blocks/blockRepositorySecrets.js.map +0 -1
- package/lib/blocks/blockRepositorySettings.d.ts +0 -74
- package/lib/blocks/blockRepositorySettings.d.ts.map +0 -1
- package/lib/blocks/blockRepositorySettings.js.map +0 -1
- package/lib/blocks/blockSecurityDocs.d.ts +0 -74
- package/lib/blocks/blockSecurityDocs.d.ts.map +0 -1
- package/lib/blocks/blockSecurityDocs.js.map +0 -1
- package/lib/blocks/blockSideEffects.d.ts +0 -76
- package/lib/blocks/blockSideEffects.d.ts.map +0 -1
- package/lib/blocks/blockSideEffects.js.map +0 -1
- package/lib/blocks/blockTSDown.d.ts +0 -78
- package/lib/blocks/blockTSDown.d.ts.map +0 -1
- package/lib/blocks/blockTSDown.js.map +0 -1
- package/lib/blocks/blockTemplatedWith.d.ts +0 -74
- package/lib/blocks/blockTemplatedWith.d.ts.map +0 -1
- package/lib/blocks/blockTemplatedWith.js.map +0 -1
- package/lib/blocks/blockTypeScript.d.ts +0 -186
- package/lib/blocks/blockTypeScript.d.ts.map +0 -1
- package/lib/blocks/blockTypeScript.js.map +0 -1
- package/lib/blocks/blockVSCode.d.ts +0 -83
- package/lib/blocks/blockVSCode.d.ts.map +0 -1
- package/lib/blocks/blockVSCode.js.map +0 -1
- package/lib/blocks/blockVitest.d.ts +0 -91
- package/lib/blocks/blockVitest.d.ts.map +0 -1
- package/lib/blocks/blockVitest.js.map +0 -1
- package/lib/blocks/blockWebExt.d.ts +0 -74
- package/lib/blocks/blockWebExt.d.ts.map +0 -1
- package/lib/blocks/blockWebExt.js.map +0 -1
- package/lib/blocks/eslint/blockESLintIntake.d.ts +0 -11
- package/lib/blocks/eslint/blockESLintIntake.d.ts.map +0 -1
- package/lib/blocks/eslint/blockESLintIntake.js.map +0 -1
- package/lib/blocks/eslint/blockESLintPluginIntake.d.ts +0 -7
- package/lib/blocks/eslint/blockESLintPluginIntake.d.ts.map +0 -1
- package/lib/blocks/eslint/blockESLintPluginIntake.js.map +0 -1
- package/lib/blocks/eslint/getScriptFileExtension.d.ts +0 -8
- package/lib/blocks/eslint/getScriptFileExtension.d.ts.map +0 -1
- package/lib/blocks/eslint/getScriptFileExtension.js.map +0 -1
- package/lib/blocks/eslint/mergeAllExtensions.d.ts +0 -18
- package/lib/blocks/eslint/mergeAllExtensions.d.ts.map +0 -1
- package/lib/blocks/eslint/mergeAllExtensions.js.map +0 -1
- package/lib/blocks/eslint/schemas.d.ts +0 -113
- package/lib/blocks/eslint/schemas.d.ts.map +0 -1
- package/lib/blocks/eslint/schemas.js.map +0 -1
- package/lib/blocks/files/createJobName.d.ts +0 -5
- package/lib/blocks/files/createJobName.d.ts.map +0 -1
- package/lib/blocks/files/createJobName.js.map +0 -1
- package/lib/blocks/files/createMultiWorkflowFile.d.ts +0 -29
- package/lib/blocks/files/createMultiWorkflowFile.d.ts.map +0 -1
- package/lib/blocks/files/createMultiWorkflowFile.js.map +0 -1
- package/lib/blocks/files/createSoloWorkflowFile.d.ts +0 -72
- package/lib/blocks/files/createSoloWorkflowFile.d.ts.map +0 -1
- package/lib/blocks/files/createSoloWorkflowFile.js.map +0 -1
- package/lib/blocks/files/formatIgnoreFile.d.ts +0 -5
- package/lib/blocks/files/formatIgnoreFile.d.ts.map +0 -1
- package/lib/blocks/files/formatIgnoreFile.js.map +0 -1
- package/lib/blocks/files/formatWorkflowYaml.d.ts +0 -5
- package/lib/blocks/files/formatWorkflowYaml.d.ts.map +0 -1
- package/lib/blocks/files/formatWorkflowYaml.js.map +0 -1
- package/lib/blocks/files/formatYaml.d.ts +0 -5
- package/lib/blocks/files/formatYaml.d.ts.map +0 -1
- package/lib/blocks/files/formatYaml.js.map +0 -1
- package/lib/blocks/files/removeUsesQuotes.d.ts +0 -5
- package/lib/blocks/files/removeUsesQuotes.d.ts.map +0 -1
- package/lib/blocks/files/removeUsesQuotes.js.map +0 -1
- package/lib/blocks/getInstallationSuggestions.d.ts +0 -5
- package/lib/blocks/getInstallationSuggestions.d.ts.map +0 -1
- package/lib/blocks/getInstallationSuggestions.js.map +0 -1
- package/lib/blocks/index.d.ts +0 -3715
- package/lib/blocks/index.d.ts.map +0 -1
- package/lib/blocks/index.js.map +0 -1
- package/lib/blocks/intake/intakeFile.d.ts +0 -7
- package/lib/blocks/intake/intakeFile.d.ts.map +0 -1
- package/lib/blocks/intake/intakeFile.js.map +0 -1
- package/lib/blocks/intake/intakeFileAsJson.d.ts +0 -7
- package/lib/blocks/intake/intakeFileAsJson.d.ts.map +0 -1
- package/lib/blocks/intake/intakeFileAsJson.js.map +0 -1
- package/lib/blocks/intake/intakeFileAsYaml.d.ts +0 -7
- package/lib/blocks/intake/intakeFileAsYaml.d.ts.map +0 -1
- package/lib/blocks/intake/intakeFileAsYaml.js.map +0 -1
- package/lib/blocks/intake/intakeFileDefineConfig.d.ts +0 -7
- package/lib/blocks/intake/intakeFileDefineConfig.d.ts.map +0 -1
- package/lib/blocks/intake/intakeFileDefineConfig.js.map +0 -1
- package/lib/blocks/options.fakes.d.ts +0 -26
- package/lib/blocks/options.fakes.d.ts.map +0 -1
- package/lib/blocks/options.fakes.js.map +0 -1
- package/lib/blocks/outcomeLabels.d.ts +0 -15
- package/lib/blocks/outcomeLabels.d.ts.map +0 -1
- package/lib/blocks/outcomeLabels.js.map +0 -1
- package/lib/blocks/phases.d.ts +0 -11
- package/lib/blocks/phases.d.ts.map +0 -1
- package/lib/blocks/phases.js.map +0 -1
- package/lib/constants.d.ts +0 -10
- package/lib/constants.d.ts.map +0 -1
- package/lib/constants.js.map +0 -1
- package/lib/data/contributions.d.ts +0 -5
- package/lib/data/contributions.d.ts.map +0 -1
- package/lib/data/contributions.js.map +0 -1
- package/lib/data/packageData.d.ts +0 -11
- package/lib/data/packageData.d.ts.map +0 -1
- package/lib/data/packageData.js.map +0 -1
- package/lib/index.d.ts +0 -299
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/inputs/inputFromDirectory.d.ts +0 -10
- package/lib/inputs/inputFromDirectory.d.ts.map +0 -1
- package/lib/inputs/inputFromDirectory.js.map +0 -1
- package/lib/inputs/inputFromOctokit.d.ts +0 -11
- package/lib/inputs/inputFromOctokit.d.ts.map +0 -1
- package/lib/inputs/inputFromOctokit.js.map +0 -1
- package/lib/options/readAccess.d.ts +0 -7
- package/lib/options/readAccess.d.ts.map +0 -1
- package/lib/options/readAccess.js.map +0 -1
- package/lib/options/readAllContributors.d.ts +0 -8
- package/lib/options/readAllContributors.d.ts.map +0 -1
- package/lib/options/readAllContributors.js.map +0 -1
- package/lib/options/readAuthor.d.ts +0 -10
- package/lib/options/readAuthor.d.ts.map +0 -1
- package/lib/options/readAuthor.js.map +0 -1
- package/lib/options/readBin.d.ts +0 -7
- package/lib/options/readBin.d.ts.map +0 -1
- package/lib/options/readBin.js.map +0 -1
- package/lib/options/readDescription.d.ts +0 -7
- package/lib/options/readDescription.d.ts.map +0 -1
- package/lib/options/readDescription.js.map +0 -1
- package/lib/options/readDescriptionFromReadme.d.ts +0 -5
- package/lib/options/readDescriptionFromReadme.d.ts.map +0 -1
- package/lib/options/readDescriptionFromReadme.js.map +0 -1
- package/lib/options/readDevelopmentDocumentation.d.ts +0 -7
- package/lib/options/readDevelopmentDocumentation.d.ts.map +0 -1
- package/lib/options/readDevelopmentDocumentation.js.map +0 -1
- package/lib/options/readDocumentation.d.ts +0 -7
- package/lib/options/readDocumentation.d.ts.map +0 -1
- package/lib/options/readDocumentation.js.map +0 -1
- package/lib/options/readEmailFromCodeOfConduct.d.ts +0 -7
- package/lib/options/readEmailFromCodeOfConduct.d.ts.map +0 -1
- package/lib/options/readEmailFromCodeOfConduct.js.map +0 -1
- package/lib/options/readEmailFromGit.d.ts +0 -7
- package/lib/options/readEmailFromGit.d.ts.map +0 -1
- package/lib/options/readEmailFromGit.js.map +0 -1
- package/lib/options/readEmailFromNpm.d.ts +0 -8
- package/lib/options/readEmailFromNpm.d.ts.map +0 -1
- package/lib/options/readEmailFromNpm.js.map +0 -1
- package/lib/options/readEmails.d.ts +0 -10
- package/lib/options/readEmails.d.ts.map +0 -1
- package/lib/options/readEmails.js.map +0 -1
- package/lib/options/readEmoji.d.ts +0 -5
- package/lib/options/readEmoji.d.ts.map +0 -1
- package/lib/options/readEmoji.js.map +0 -1
- package/lib/options/readExistingLabels.d.ts +0 -11
- package/lib/options/readExistingLabels.d.ts.map +0 -1
- package/lib/options/readExistingLabels.js.map +0 -1
- package/lib/options/readFileAsJson.d.ts +0 -5
- package/lib/options/readFileAsJson.d.ts.map +0 -1
- package/lib/options/readFileAsJson.js.map +0 -1
- package/lib/options/readFileSafe.d.ts +0 -5
- package/lib/options/readFileSafe.d.ts.map +0 -1
- package/lib/options/readFileSafe.js.map +0 -1
- package/lib/options/readFunding.d.ts +0 -7
- package/lib/options/readFunding.d.ts.map +0 -1
- package/lib/options/readFunding.js.map +0 -1
- package/lib/options/readGitDefaults.d.ts +0 -8
- package/lib/options/readGitDefaults.d.ts.map +0 -1
- package/lib/options/readGitDefaults.js.map +0 -1
- package/lib/options/readGuide.d.ts +0 -10
- package/lib/options/readGuide.d.ts.map +0 -1
- package/lib/options/readGuide.js.map +0 -1
- package/lib/options/readKeywords.d.ts +0 -7
- package/lib/options/readKeywords.d.ts.map +0 -1
- package/lib/options/readKeywords.js.map +0 -1
- package/lib/options/readLogo.d.ts +0 -10
- package/lib/options/readLogo.d.ts.map +0 -1
- package/lib/options/readLogo.js.map +0 -1
- package/lib/options/readLogoSizing.d.ts +0 -9
- package/lib/options/readLogoSizing.d.ts.map +0 -1
- package/lib/options/readLogoSizing.js.map +0 -1
- package/lib/options/readNode.d.ts +0 -10
- package/lib/options/readNode.d.ts.map +0 -1
- package/lib/options/readNode.js.map +0 -1
- package/lib/options/readNpmDefaults.d.ts +0 -8
- package/lib/options/readNpmDefaults.d.ts.map +0 -1
- package/lib/options/readNpmDefaults.js.map +0 -1
- package/lib/options/readOwner.d.ts +0 -9
- package/lib/options/readOwner.d.ts.map +0 -1
- package/lib/options/readOwner.js.map +0 -1
- package/lib/options/readPackageAuthor.d.ts +0 -11
- package/lib/options/readPackageAuthor.d.ts.map +0 -1
- package/lib/options/readPackageAuthor.js.map +0 -1
- package/lib/options/readPackageData.d.ts +0 -8
- package/lib/options/readPackageData.d.ts.map +0 -1
- package/lib/options/readPackageData.js.map +0 -1
- package/lib/options/readPnpm.d.ts +0 -7
- package/lib/options/readPnpm.d.ts.map +0 -1
- package/lib/options/readPnpm.js.map +0 -1
- package/lib/options/readReadmeAdditional.d.ts +0 -5
- package/lib/options/readReadmeAdditional.d.ts.map +0 -1
- package/lib/options/readReadmeAdditional.js.map +0 -1
- package/lib/options/readReadmeExplainer.d.ts +0 -5
- package/lib/options/readReadmeExplainer.d.ts.map +0 -1
- package/lib/options/readReadmeExplainer.js.map +0 -1
- package/lib/options/readReadmeFootnotes.d.ts +0 -6
- package/lib/options/readReadmeFootnotes.d.ts.map +0 -1
- package/lib/options/readReadmeFootnotes.js.map +0 -1
- package/lib/options/readReadmeUsage.d.ts +0 -5
- package/lib/options/readReadmeUsage.d.ts.map +0 -1
- package/lib/options/readReadmeUsage.js.map +0 -1
- package/lib/options/readRepository.d.ts +0 -11
- package/lib/options/readRepository.d.ts.map +0 -1
- package/lib/options/readRepository.js.map +0 -1
- package/lib/options/readRulesetId.d.ts +0 -7
- package/lib/options/readRulesetId.d.ts.map +0 -1
- package/lib/options/readRulesetId.js.map +0 -1
- package/lib/options/readTitle.d.ts +0 -5
- package/lib/options/readTitle.d.ts.map +0 -1
- package/lib/options/readTitle.js.map +0 -1
- package/lib/options/readWords.d.ts +0 -7
- package/lib/options/readWords.d.ts.map +0 -1
- package/lib/options/readWords.js.map +0 -1
- package/lib/options/readWorkflowsVersions.d.ts +0 -8
- package/lib/options/readWorkflowsVersions.d.ts.map +0 -1
- package/lib/options/readWorkflowsVersions.js.map +0 -1
- package/lib/package.d.ts +0 -138
- package/lib/package.d.ts.map +0 -1
- package/lib/presets/common.d.ts +0 -173
- package/lib/presets/common.d.ts.map +0 -1
- package/lib/presets/common.js.map +0 -1
- package/lib/presets/everything.d.ts +0 -173
- package/lib/presets/everything.d.ts.map +0 -1
- package/lib/presets/everything.js.map +0 -1
- package/lib/presets/index.d.ts +0 -510
- package/lib/presets/index.d.ts.map +0 -1
- package/lib/presets/index.js.map +0 -1
- package/lib/presets/minimal.d.ts +0 -173
- package/lib/presets/minimal.d.ts.map +0 -1
- package/lib/presets/minimal.js.map +0 -1
- package/lib/schemas.d.ts +0 -112
- package/lib/schemas.d.ts.map +0 -1
- package/lib/schemas.js.map +0 -1
- package/lib/template.d.ts +0 -173
- package/lib/template.d.ts.map +0 -1
- package/lib/template.js.map +0 -1
- package/lib/types.d.ts +0 -42
- package/lib/types.d.ts.map +0 -1
- package/lib/utils/htmlToTextSafe.d.ts +0 -5
- package/lib/utils/htmlToTextSafe.d.ts.map +0 -1
- package/lib/utils/htmlToTextSafe.js.map +0 -1
- package/lib/utils/resolveBin.d.ts +0 -5
- package/lib/utils/resolveBin.d.ts.map +0 -1
- package/lib/utils/resolveBin.js.map +0 -1
- package/lib/utils/swallowError.d.ts +0 -5
- package/lib/utils/swallowError.d.ts.map +0 -1
- package/lib/utils/swallowError.js.map +0 -1
- package/lib/utils/swallowErrorAsync.d.ts +0 -5
- package/lib/utils/swallowErrorAsync.d.ts.map +0 -1
- package/lib/utils/swallowErrorAsync.js.map +0 -1
- package/lib/utils/trimPrecedingSlash.d.ts +0 -5
- package/lib/utils/trimPrecedingSlash.d.ts.map +0 -1
- package/lib/utils/trimPrecedingSlash.js.map +0 -1
- package/lib/utils/tryCatch.d.ts +0 -5
- package/lib/utils/tryCatch.d.ts.map +0 -1
- package/lib/utils/tryCatch.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockESLintPlugin.js","names":[],"sources":["../../src/blocks/blockESLintPlugin.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockCSpell } from \"./blockCSpell.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockESLint } from \"./blockESLint.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockREADME } from \"./blockREADME.js\";\nimport { blockVitest } from \"./blockVitest.js\";\nimport { blockESLintPluginIntake } from \"./eslint/blockESLintPluginIntake.js\";\nimport { getScriptFileExtension } from \"./eslint/getScriptFileExtension.js\";\nimport { zConfigEmoji } from \"./eslint/schemas.js\";\nimport { intakeFile } from \"./intake/intakeFile.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockESLintPlugin = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint Plugin\",\n\t},\n\taddons: {\n\t\tconfigEmoji: zConfigEmoji,\n\t},\n\tintake({ files }) {\n\t\tconst docGeneratorConfigRaw = intakeFile(files, [\n\t\t\t[\".eslint-doc-generatorrc.js\", \".eslint-doc-generatorrc.mjs\"],\n\t\t]);\n\n\t\treturn docGeneratorConfigRaw\n\t\t\t? blockESLintPluginIntake(docGeneratorConfigRaw[0])\n\t\t\t: undefined;\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { configEmoji } = addons;\n\t\tconst configFileName = `.eslint-doc-generatorrc.${options.type === \"commonjs\" ? \"mjs\" : \"js\"}`;\n\t\tconst pluginName = options.repository\n\t\t\t.replace(/^eslint-plugin-/, \"\")\n\t\t\t.replaceAll(/-\\w/g, (matched) => matched[1].toUpperCase());\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockCSpell({\n\t\t\t\t\twords: [\"eslint-doc-generatorrc\"],\n\t\t\t\t}),\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tBuilding: {\n\t\t\t\t\t\t\tinnerSections: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tcontents: `\nRun [\\`eslint-doc-generator\\`](https://github.com/bmish/eslint-doc-generator) to generate Markdown files documenting rules.\n\n\\`\\`\\`shell\npnpm build:docs\n\\`\\`\\`\n\t\t`,\n\t\t\t\t\t\t\t\t\theading: \"Building Docs\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tLinting: {\n\t\t\t\t\t\t\tcontents: {\n\t\t\t\t\t\t\t\titems: [\n\t\t\t\t\t\t\t\t\t`- \\`pnpm lint:docs\\` ([eslint-doc-generator](https://github.com/bmish/eslint-doc-generator)): Generates and validates documentation for ESLint rules`,\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockESLint({\n\t\t\t\t\textensions: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\textends: ['eslintPlugin.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\tignores: [configFileName, \"docs/rules/*/*.ts\"],\n\t\t\t\t\timports: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsource: {\n\t\t\t\t\t\t\t\tpackageName: \"eslint-plugin-eslint-plugin\",\n\t\t\t\t\t\t\t\tversion: \"6.4.0\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tspecifier: \"eslintPlugin\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Lint Docs\",\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t{ run: \"pnpm build || exit 0\" },\n\t\t\t\t\t\t\t\t{ run: \"pnpm lint:docs\" },\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockREADME({\n\t\t\t\t\tdefaultUsage: [\n\t\t\t\t\t\t`Add this plugin to the list of plugins in your [ESLint configuration file](https://eslint.org/docs/latest/use/configure/configuration-files):\n\n\\`\\`\\`shell\nnpm i ${options.repository} -D\n\\`\\`\\`\n\n\\`\\`\\`ts\nimport ${pluginName} from \"${options.repository}\";\n\nexport default [\n\t// (other plugins)\n\t${pluginName}.configs.recommended, // 👈\n];\n\\`\\`\\`\n\n### Rules\n\nThese are all set to \\`\"error\"\\` in the recommended config:\n\n<!-- begin auto-generated rules list --><!-- end auto-generated rules list -->`,\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdependencies: {\n\t\t\t\t\t\t\t\"@typescript-eslint/utils\": \"^8.29.0\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\t\t\"@typescript-eslint/rule-tester\": \"8.29.1\",\n\t\t\t\t\t\t\t\"eslint-doc-generator\": \"2.1.0\",\n\t\t\t\t\t\t\t\"eslint-plugin-eslint-plugin\": \"6.4.0\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\t\"build:docs\": \"pnpm build --no-dts && eslint-doc-generator\",\n\t\t\t\t\t\t\t\"lint:docs\": \"eslint-doc-generator --check\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockVitest({\n\t\t\t\t\tcoverage: {\n\t\t\t\t\t\texclude: [\"src/index.ts\", \"src/rules/index.ts\"],\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t[configFileName]: `import prettier from \"prettier\";\n\n/** @type {import('eslint-doc-generator').GenerateOptions} */\nconst config = {\n\t${configEmoji ? `configEmoji: ${JSON.stringify(configEmoji)},\\n\\t` : \"\"}postprocess: async (content, path) =>\n\t\tprettier.format(content, {\n\t\t\t...(await prettier.resolveConfig(path)),\n\t\t\tparser: \"markdown\",\n\t\t}),\n\truleDocTitleFormat: \"name\",\n};\n\nexport default config;\n`,\n\t\t\t},\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"pnpm build\"],\n\t\t\t\t\tphase: CommandPhase.Build,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"pnpm eslint-doc-generator --init-rule-docs\"],\n\t\t\t\t\tphase: CommandPhase.Process,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n\tsetup({ options }) {\n\t\tconst pluginName = options.repository.replace(\"eslint-plugin-\", \"\");\n\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\tsrc: {\n\t\t\t\t\t\"index.ts\": `import Module from \"node:module\";\n\nimport { rules } from \"./rules/index.js\";\n\nconst require = Module.createRequire(import.meta.url);\n\nconst { name, version } =\n\t// \\`import\\`ing here would bypass the TSConfig's \\`\"rootDir\": \"src\"\\`\n\trequire(\"../package.json\") as typeof import(\"../package.json\");\n\nexport const plugin = {\n\tconfigs: {\n\t\tget recommended() {\n\t\t\treturn recommended;\n\t\t},\n\t},\n\tmeta: { name, version },\n\trules,\n};\n\nconst recommended = {\n\tplugins: {\n\t\t\"${pluginName}\": plugin,\n\t},\n\trules: Object.fromEntries(\n\t\tObject.keys(rules).map((rule) => [\\`${pluginName}/\\${rule}\\`, \"error\"]),\n\t),\n};\n\nexport { rules };\n\nexport default plugin;\n`,\n\t\t\t\t\trules: {\n\t\t\t\t\t\t\"enums.test.ts\": `import { rule } from \"./enums.js\";\nimport { ruleTester } from \"./ruleTester.js\";\n\nruleTester.run(\"enums\", rule, {\n\tinvalid: [\n\t\t{\n\t\t\tcode: \\`enum Values {}\\`,\n\t\t\terrors: [\n\t\t\t\t{\n\t\t\t\t\tcolumn: 1,\n\t\t\t\t\tendColumn: 15,\n\t\t\t\t\tendLine: 1,\n\t\t\t\t\tline: 1,\n\t\t\t\t\tmessageId: \"enum\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t],\n\tvalid: [\\`const Values = {};\\`, \\`const Values = {} as const;\\`],\n});\n`,\n\t\t\t\t\t\t\"enums.ts\": `import { createRule } from \"../utils.js\";\n\nexport const rule = createRule({\n\tcreate(context) {\n\t\treturn {\n\t\t\tTSEnumDeclaration(node) {\n\t\t\t\tcontext.report({\n\t\t\t\t\tmessageId: \"enum\",\n\t\t\t\t\tnode,\n\t\t\t\t});\n\t\t\t},\n\t\t};\n\t},\n\tdefaultOptions: [],\n\tmeta: {\n\t\tdocs: {\n\t\t\tdescription: \"Avoid using TypeScript's enums.\",\n\t\t},\n\t\tmessages: {\n\t\t\tenum: \"This enum will not be allowed under TypeScript's --erasableSyntaxOnly.\",\n\t\t},\n\t\tschema: [],\n\t\ttype: \"problem\",\n\t},\n\tname: \"enums\",\n});\n`,\n\t\t\t\t\t\t\"index.ts\": `import { rule as enums } from \"./enums.js\";\n\nexport const rules = {\n\tenums,\n};\n`,\n\t\t\t\t\t\t\"ruleTester.ts\": `import { RuleTester } from \"@typescript-eslint/rule-tester\";\nimport * as vitest from \"vitest\";\n\nRuleTester.afterAll = vitest.afterAll;\nRuleTester.it = vitest.it;\nRuleTester.itOnly = vitest.it.only;\nRuleTester.describe = vitest.describe;\n\nexport const ruleTester = new RuleTester();\n`,\n\t\t\t\t\t},\n\t\t\t\t\t\"utils.ts\": `import { ESLintUtils } from \"@typescript-eslint/utils\";\n\nexport const createRule = ESLintUtils.RuleCreator(\n\t(name) =>\n\t\t\\`https://github.com/${options.owner}/${options.repository}/blob/main/docs/rules/\\${name}.md\\`,\n);\n`,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;;;;;;;;;;AAcA,MAAa,oBAAoB,KAAK,YAAY;CACjD,OAAO,EACN,MAAM,iBACN;CACD,QAAQ,EACP,aAAa,cACb;CACD,OAAO,EAAE,SAAS;EACjB,MAAM,wBAAwB,WAAW,OAAO,CAC/C,CAAC,8BAA8B,8BAA8B,CAC7D,CAAC;AAEF,SAAO,wBACJ,wBAAwB,sBAAsB,GAAG,GACjD;;CAEJ,QAAQ,EAAE,QAAQ,WAAW;EAC5B,MAAM,EAAE,gBAAgB;EACxB,MAAM,iBAAiB,2BAA2B,QAAQ,SAAS,aAAa,QAAQ;EACxF,MAAM,aAAa,QAAQ,WACzB,QAAQ,mBAAmB,GAAG,CAC9B,WAAW,SAAS,YAAY,QAAQ,GAAG,aAAa,CAAC;AAE3D,SAAO;GACN,QAAQ;IACP,YAAY,EACX,OAAO,CAAC,yBAAyB,EACjC,CAAC;IACF,qBAAqB,EACpB,UAAU;KACT,UAAU,EACT,eAAe,CACd;MACC,UAAU;;;;;;;MAOV,SAAS;MACT,CACD,EACD;KACD,SAAS,EACR,UAAU,EACT,OAAO,CACN,uJACA,EACD,EACD;KACD,EACD,CAAC;IACF,YAAY;KACX,YAAY,CACX;MACC,SAAS,CAAC,6CAA2C;MACrD,OAAO,CAAC,uBAAuB,QAAQ,CAAC;MACxC,CACD;KACD,SAAS,CAAC,gBAAgB,oBAAoB;KAC9C,SAAS,CACR;MACC,QAAQ;OACP,aAAa;OACb,SAAS;OACT;MACD,WAAW;MACX,CACD;KACD,CAAC;IACF,qBAAqB,EACpB,MAAM,CACL;KACC,MAAM;KACN,OAAO,CACN,EAAE,KAAK,wBAAwB,EAC/B,EAAE,KAAK,kBAAkB,CACzB;KACD,CACD,EACD,CAAC;IACF,YAAY,EACX,cAAc,CACb;;;QAGE,QAAQ,WAAW;;;;SAIlB,WAAW,SAAS,QAAQ,WAAW;;;;GAI7C,WAAW;;;;;;;;gFASR,EACD,CAAC;IACF,iBAAiB,EAChB,YAAY;KACX,cAAc,EACb,4BAA4B,WAC5B;KACD,iBAAiB;MAChB,kCAAkC;MAClC,wBAAwB;MACxB,+BAA+B;MAC/B;KACD,SAAS;MACR,cAAc;MACd,aAAa;MACb;KACD,EACD,CAAC;IACF,YAAY,EACX,UAAU,EACT,SAAS,CAAC,gBAAgB,qBAAqB,EAC/C,EACD,CAAC;IACF;GACD,OAAO,GACL,iBAAiB;;;;GAInB,cAAc,gBAAgB,KAAK,UAAU,YAAY,CAAC,SAAS,GAAG;;;;;;;;;GAUrE;GACD,SAAS,CACR;IACC,UAAU,CAAC,aAAa;IACxB,OAAO,aAAa;IACpB,EACD;IACC,UAAU,CAAC,6CAA6C;IACxD,OAAO,aAAa;IACpB,CACD;GACD;;CAEF,MAAM,EAAE,WAAW;EAClB,MAAM,aAAa,QAAQ,WAAW,QAAQ,kBAAkB,GAAG;AAEnE,SAAO,EACN,OAAO,EACN,KAAK;GACJ,YAAY;;;;;;;;;;;;;;;;;;;;;;KAsBZ,WAAW;;;wCAGwB,WAAW;;;;;;;;GAQ9C,OAAO;IACN,iBAAiB;;;;;;;;;;;;;;;;;;;;;IAqBjB,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;IA2BZ,YAAY;;;;;;IAMZ,iBAAiB;;;;;;;;;;IAUjB;GACD,YAAY;;;;yBAIQ,QAAQ,MAAM,GAAG,QAAQ,WAAW;;;GAGxD,EACD,EACD;;CAEF,CAAC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import * as bingo_stratum103 from "bingo-stratum";
|
|
2
|
-
|
|
3
|
-
//#region src/blocks/blockESLintRegexp.d.ts
|
|
4
|
-
declare const blockESLintRegexp: bingo_stratum103.BlockWithoutAddons<{
|
|
5
|
-
access: "public" | "restricted";
|
|
6
|
-
description: string;
|
|
7
|
-
directory: string;
|
|
8
|
-
documentation: {
|
|
9
|
-
readme: {
|
|
10
|
-
additional?: string | undefined;
|
|
11
|
-
explainer?: string | undefined;
|
|
12
|
-
footnotes?: string | undefined;
|
|
13
|
-
usage?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
development?: string | undefined;
|
|
16
|
-
};
|
|
17
|
-
email: {
|
|
18
|
-
github: string;
|
|
19
|
-
npm: string;
|
|
20
|
-
};
|
|
21
|
-
title: string;
|
|
22
|
-
node: {
|
|
23
|
-
minimum: string;
|
|
24
|
-
pinned?: string | undefined;
|
|
25
|
-
};
|
|
26
|
-
owner: string;
|
|
27
|
-
repository: string;
|
|
28
|
-
type?: "commonjs" | "module" | undefined;
|
|
29
|
-
author?: string | undefined;
|
|
30
|
-
bin?: string | Record<string, string> | undefined;
|
|
31
|
-
contributors?: {
|
|
32
|
-
avatar_url: string;
|
|
33
|
-
contributions: string[];
|
|
34
|
-
login: string;
|
|
35
|
-
name: string;
|
|
36
|
-
profile: string;
|
|
37
|
-
}[] | undefined;
|
|
38
|
-
emoji?: string | undefined;
|
|
39
|
-
existingLabels?: {
|
|
40
|
-
name: string;
|
|
41
|
-
description: string;
|
|
42
|
-
color: string;
|
|
43
|
-
}[] | undefined;
|
|
44
|
-
funding?: string | undefined;
|
|
45
|
-
guide?: {
|
|
46
|
-
href: string;
|
|
47
|
-
title: string;
|
|
48
|
-
} | undefined;
|
|
49
|
-
keywords?: string[] | undefined;
|
|
50
|
-
logo?: {
|
|
51
|
-
alt: string;
|
|
52
|
-
src: string;
|
|
53
|
-
height?: number | undefined;
|
|
54
|
-
width?: number | undefined;
|
|
55
|
-
} | undefined;
|
|
56
|
-
packageData?: {
|
|
57
|
-
dependencies?: Record<string, string> | undefined;
|
|
58
|
-
devDependencies?: Record<string, string> | undefined;
|
|
59
|
-
peerDependencies?: Record<string, string> | undefined;
|
|
60
|
-
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
61
|
-
scripts?: Record<string, string | undefined> | undefined;
|
|
62
|
-
} | undefined;
|
|
63
|
-
pnpm?: string | undefined;
|
|
64
|
-
rulesetId?: string | undefined;
|
|
65
|
-
version?: string | undefined;
|
|
66
|
-
words?: string[] | undefined;
|
|
67
|
-
workflowsVersions?: Record<string, Record<string, {
|
|
68
|
-
pinned?: boolean | undefined;
|
|
69
|
-
hash?: string | undefined;
|
|
70
|
-
}>> | undefined;
|
|
71
|
-
}>;
|
|
72
|
-
//#endregion
|
|
73
|
-
export { blockESLintRegexp };
|
|
74
|
-
//# sourceMappingURL=blockESLintRegexp.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockESLintRegexp.d.ts","names":[],"sources":["../../src/blocks/blockESLintRegexp.ts"],"sourcesContent":[],"mappings":";;;cAIa,oCAAiB;;;EAAjB,SAAA,EAAA,MAAA;;;;;;;;;;EAAiB,KAAA,EAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
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,wBACN;CACD,QAAQ,EAAE,WAAW;AACpB,SAAO,EACN,QAAQ,CACP,YAAY;GACX,YAAY,CACX;IACC,SAAS,CAAC,qCAAqC;IAC/C,OAAO,CAAC,uBAAuB,QAAQ,CAAC;IACxC,CACD;GACD,SAAS,CACR;IAAE,QAAQ;IAAwB,WAAW;IAAe,CAC5D;GACD,CAAC,CACF,EACD;;CAEF,CAAC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import * as bingo_stratum105 from "bingo-stratum";
|
|
2
|
-
|
|
3
|
-
//#region src/blocks/blockESLintYML.d.ts
|
|
4
|
-
declare const blockESLintYML: bingo_stratum105.BlockWithoutAddons<{
|
|
5
|
-
access: "public" | "restricted";
|
|
6
|
-
description: string;
|
|
7
|
-
directory: string;
|
|
8
|
-
documentation: {
|
|
9
|
-
readme: {
|
|
10
|
-
additional?: string | undefined;
|
|
11
|
-
explainer?: string | undefined;
|
|
12
|
-
footnotes?: string | undefined;
|
|
13
|
-
usage?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
development?: string | undefined;
|
|
16
|
-
};
|
|
17
|
-
email: {
|
|
18
|
-
github: string;
|
|
19
|
-
npm: string;
|
|
20
|
-
};
|
|
21
|
-
title: string;
|
|
22
|
-
node: {
|
|
23
|
-
minimum: string;
|
|
24
|
-
pinned?: string | undefined;
|
|
25
|
-
};
|
|
26
|
-
owner: string;
|
|
27
|
-
repository: string;
|
|
28
|
-
type?: "commonjs" | "module" | undefined;
|
|
29
|
-
author?: string | undefined;
|
|
30
|
-
bin?: string | Record<string, string> | undefined;
|
|
31
|
-
contributors?: {
|
|
32
|
-
avatar_url: string;
|
|
33
|
-
contributions: string[];
|
|
34
|
-
login: string;
|
|
35
|
-
name: string;
|
|
36
|
-
profile: string;
|
|
37
|
-
}[] | undefined;
|
|
38
|
-
emoji?: string | undefined;
|
|
39
|
-
existingLabels?: {
|
|
40
|
-
name: string;
|
|
41
|
-
description: string;
|
|
42
|
-
color: string;
|
|
43
|
-
}[] | undefined;
|
|
44
|
-
funding?: string | undefined;
|
|
45
|
-
guide?: {
|
|
46
|
-
href: string;
|
|
47
|
-
title: string;
|
|
48
|
-
} | undefined;
|
|
49
|
-
keywords?: string[] | undefined;
|
|
50
|
-
logo?: {
|
|
51
|
-
alt: string;
|
|
52
|
-
src: string;
|
|
53
|
-
height?: number | undefined;
|
|
54
|
-
width?: number | undefined;
|
|
55
|
-
} | undefined;
|
|
56
|
-
packageData?: {
|
|
57
|
-
dependencies?: Record<string, string> | undefined;
|
|
58
|
-
devDependencies?: Record<string, string> | undefined;
|
|
59
|
-
peerDependencies?: Record<string, string> | undefined;
|
|
60
|
-
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
61
|
-
scripts?: Record<string, string | undefined> | undefined;
|
|
62
|
-
} | undefined;
|
|
63
|
-
pnpm?: string | undefined;
|
|
64
|
-
rulesetId?: string | undefined;
|
|
65
|
-
version?: string | undefined;
|
|
66
|
-
words?: string[] | undefined;
|
|
67
|
-
workflowsVersions?: Record<string, Record<string, {
|
|
68
|
-
pinned?: boolean | undefined;
|
|
69
|
-
hash?: string | undefined;
|
|
70
|
-
}>> | undefined;
|
|
71
|
-
}>;
|
|
72
|
-
//#endregion
|
|
73
|
-
export { blockESLintYML };
|
|
74
|
-
//# sourceMappingURL=blockESLintYML.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockESLintYML.d.ts","names":[],"sources":["../../src/blocks/blockESLintYML.ts"],"sourcesContent":[],"mappings":";;;cAGa,iCAAc;;;EAAd,SAAA,EAAA,MAuCX;;;;;;;;;;EAvCyB,KAAA,EAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
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,qBACN;CACD,UAAU;AACT,SAAO,EACN,QAAQ,CACP,YAAY;GACX,YAAY,CACX;IACC,SAAS,CACR,kCACA,iCACA;IACD,OAAO,CAAC,kBAAkB;IAC1B,OAAO;KACN,sBAAsB;KACtB,iBAAiB,CAChB,SACA;MACC,OAAO,EAAE,MAAM,OAAO;MACtB,aAAa;MACb,CACD;KACD,4BAA4B,CAC3B,SACA;MACC,OAAO,EAAE,MAAM,OAAO;MACtB,aAAa;MACb,CACD;KACD;IACD,CACD;GACD,SAAS,CAAC;IAAE,QAAQ;IAAqB,WAAW;IAAO,CAAC;GAC5D,CAAC,CACF,EACD;;CAEF,CAAC"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import * as bingo_stratum106 from "bingo-stratum";
|
|
2
|
-
|
|
3
|
-
//#region src/blocks/blockExampleFiles.d.ts
|
|
4
|
-
declare const blockExampleFiles: bingo_stratum106.BlockWithAddons<{
|
|
5
|
-
usage: string[];
|
|
6
|
-
files: Record<string, string>;
|
|
7
|
-
}, {
|
|
8
|
-
access: "public" | "restricted";
|
|
9
|
-
description: string;
|
|
10
|
-
directory: string;
|
|
11
|
-
documentation: {
|
|
12
|
-
readme: {
|
|
13
|
-
additional?: string | undefined;
|
|
14
|
-
explainer?: string | undefined;
|
|
15
|
-
footnotes?: string | undefined;
|
|
16
|
-
usage?: string | undefined;
|
|
17
|
-
};
|
|
18
|
-
development?: string | undefined;
|
|
19
|
-
};
|
|
20
|
-
email: {
|
|
21
|
-
github: string;
|
|
22
|
-
npm: string;
|
|
23
|
-
};
|
|
24
|
-
title: string;
|
|
25
|
-
node: {
|
|
26
|
-
minimum: string;
|
|
27
|
-
pinned?: string | undefined;
|
|
28
|
-
};
|
|
29
|
-
owner: string;
|
|
30
|
-
repository: string;
|
|
31
|
-
type?: "commonjs" | "module" | undefined;
|
|
32
|
-
author?: string | undefined;
|
|
33
|
-
bin?: string | Record<string, string> | undefined;
|
|
34
|
-
contributors?: {
|
|
35
|
-
avatar_url: string;
|
|
36
|
-
contributions: string[];
|
|
37
|
-
login: string;
|
|
38
|
-
name: string;
|
|
39
|
-
profile: string;
|
|
40
|
-
}[] | undefined;
|
|
41
|
-
emoji?: string | undefined;
|
|
42
|
-
existingLabels?: {
|
|
43
|
-
name: string;
|
|
44
|
-
description: string;
|
|
45
|
-
color: string;
|
|
46
|
-
}[] | undefined;
|
|
47
|
-
funding?: string | undefined;
|
|
48
|
-
guide?: {
|
|
49
|
-
href: string;
|
|
50
|
-
title: string;
|
|
51
|
-
} | undefined;
|
|
52
|
-
keywords?: string[] | undefined;
|
|
53
|
-
logo?: {
|
|
54
|
-
alt: string;
|
|
55
|
-
src: string;
|
|
56
|
-
height?: number | undefined;
|
|
57
|
-
width?: number | undefined;
|
|
58
|
-
} | undefined;
|
|
59
|
-
packageData?: {
|
|
60
|
-
dependencies?: Record<string, string> | undefined;
|
|
61
|
-
devDependencies?: Record<string, string> | undefined;
|
|
62
|
-
peerDependencies?: Record<string, string> | undefined;
|
|
63
|
-
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
64
|
-
scripts?: Record<string, string | undefined> | undefined;
|
|
65
|
-
} | undefined;
|
|
66
|
-
pnpm?: string | undefined;
|
|
67
|
-
rulesetId?: string | undefined;
|
|
68
|
-
version?: string | undefined;
|
|
69
|
-
words?: string[] | undefined;
|
|
70
|
-
workflowsVersions?: Record<string, Record<string, {
|
|
71
|
-
pinned?: boolean | undefined;
|
|
72
|
-
hash?: string | undefined;
|
|
73
|
-
}>> | undefined;
|
|
74
|
-
}>;
|
|
75
|
-
//#endregion
|
|
76
|
-
export { blockExampleFiles };
|
|
77
|
-
//# sourceMappingURL=blockExampleFiles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockExampleFiles.d.ts","names":[],"sources":["../../src/blocks/blockExampleFiles.ts"],"sourcesContent":[],"mappings":";;;cAKa,oCAAiB;;;AAA9B,CAAA,EAAA;;;;;;;;;;;IAA8B,WAAA,CAAA,EAAA,MAAA,GAAA,SAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockExampleFiles.js","names":[],"sources":["../../src/blocks/blockExampleFiles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { blockREADME } from \"./blockREADME.js\";\n\nexport const blockExampleFiles = base.createBlock({\n\tabout: {\n\t\tname: \"Example Files\",\n\t},\n\taddons: {\n\t\tfiles: z.record(z.string()).default({}),\n\t\tusage: z.array(z.string()).default([]),\n\t},\n\tsetup({ addons }) {\n\t\tconst { usage } = addons;\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockREADME({\n\t\t\t\t\tdefaultUsage: usage,\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\tsrc: addons.files,\n\t\t\t},\n\t\t};\n\t},\n\t// TODO: Make produce() optional, so this empty-ish produce() can be removed\n\t// https://github.com/JoshuaKGoldberg/bingo/issues/295\n\tproduce() {\n\t\treturn {};\n\t},\n});\n"],"mappings":";;;;;AAKA,MAAa,oBAAoB,KAAK,YAAY;CACjD,OAAO,EACN,MAAM,iBACN;CACD,QAAQ;EACP,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC;EACvC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC;EACtC;CACD,MAAM,EAAE,UAAU;EACjB,MAAM,EAAE,UAAU;AAElB,SAAO;GACN,QAAQ,CACP,YAAY,EACX,cAAc,OACd,CAAC,CACF;GACD,OAAO,EACN,KAAK,OAAO,OACZ;GACD;;CAIF,UAAU;AACT,SAAO,EAAE;;CAEV,CAAC"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import * as bingo_stratum108 from "bingo-stratum";
|
|
2
|
-
|
|
3
|
-
//#region src/blocks/blockExports.d.ts
|
|
4
|
-
declare const blockExports: bingo_stratum108.BlockWithAddons<{
|
|
5
|
-
runArgs: string[];
|
|
6
|
-
filePath?: string | undefined;
|
|
7
|
-
}, {
|
|
8
|
-
access: "public" | "restricted";
|
|
9
|
-
description: string;
|
|
10
|
-
directory: string;
|
|
11
|
-
documentation: {
|
|
12
|
-
readme: {
|
|
13
|
-
additional?: string | undefined;
|
|
14
|
-
explainer?: string | undefined;
|
|
15
|
-
footnotes?: string | undefined;
|
|
16
|
-
usage?: string | undefined;
|
|
17
|
-
};
|
|
18
|
-
development?: string | undefined;
|
|
19
|
-
};
|
|
20
|
-
email: {
|
|
21
|
-
github: string;
|
|
22
|
-
npm: string;
|
|
23
|
-
};
|
|
24
|
-
title: string;
|
|
25
|
-
node: {
|
|
26
|
-
minimum: string;
|
|
27
|
-
pinned?: string | undefined;
|
|
28
|
-
};
|
|
29
|
-
owner: string;
|
|
30
|
-
repository: string;
|
|
31
|
-
type?: "commonjs" | "module" | undefined;
|
|
32
|
-
author?: string | undefined;
|
|
33
|
-
bin?: string | Record<string, string> | undefined;
|
|
34
|
-
contributors?: {
|
|
35
|
-
avatar_url: string;
|
|
36
|
-
contributions: string[];
|
|
37
|
-
login: string;
|
|
38
|
-
name: string;
|
|
39
|
-
profile: string;
|
|
40
|
-
}[] | undefined;
|
|
41
|
-
emoji?: string | undefined;
|
|
42
|
-
existingLabels?: {
|
|
43
|
-
name: string;
|
|
44
|
-
description: string;
|
|
45
|
-
color: string;
|
|
46
|
-
}[] | undefined;
|
|
47
|
-
funding?: string | undefined;
|
|
48
|
-
guide?: {
|
|
49
|
-
href: string;
|
|
50
|
-
title: string;
|
|
51
|
-
} | undefined;
|
|
52
|
-
keywords?: string[] | undefined;
|
|
53
|
-
logo?: {
|
|
54
|
-
alt: string;
|
|
55
|
-
src: string;
|
|
56
|
-
height?: number | undefined;
|
|
57
|
-
width?: number | undefined;
|
|
58
|
-
} | undefined;
|
|
59
|
-
packageData?: {
|
|
60
|
-
dependencies?: Record<string, string> | undefined;
|
|
61
|
-
devDependencies?: Record<string, string> | undefined;
|
|
62
|
-
peerDependencies?: Record<string, string> | undefined;
|
|
63
|
-
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
64
|
-
scripts?: Record<string, string | undefined> | undefined;
|
|
65
|
-
} | undefined;
|
|
66
|
-
pnpm?: string | undefined;
|
|
67
|
-
rulesetId?: string | undefined;
|
|
68
|
-
version?: string | undefined;
|
|
69
|
-
words?: string[] | undefined;
|
|
70
|
-
workflowsVersions?: Record<string, Record<string, {
|
|
71
|
-
pinned?: boolean | undefined;
|
|
72
|
-
hash?: string | undefined;
|
|
73
|
-
}>> | undefined;
|
|
74
|
-
}>;
|
|
75
|
-
//#endregion
|
|
76
|
-
export { blockExports };
|
|
77
|
-
//# sourceMappingURL=blockExports.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockExports.d.ts","names":[],"sources":["../../src/blocks/blockExports.ts"],"sourcesContent":[],"mappings":";;;cAMa,+BAAY;;;AAAzB,CAAA,EAAA;;;;;;;;;YAAyB,EAAA,MAAA,GAAA,SAAA;IAAA,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
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,WACN;CACD,QAAQ;EACP,UAAU,EAAE,QAAQ,CAAC,UAAU;EAC/B,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC;EACxC;CACD,QAAQ,EAAE,UAAU;EACnB,MAAM,EAAE,WAAW,kBAAkB,YAAY;AAEjD,SAAO,EACN,QAAQ,CACP,iBAAiB,EAChB,YAAY,EACX,SAAS,EACR,KAAK,SAAS,WAAW,IAAI,GAAG,WAAW,KAAK,YAChD,EACD,EACD,CAAC,EACF,YAAY,EACX,SAAS,CACR,QAAQ,WAAW,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC,KAAK,GAAG,GAC3D,EACD,CAAC,CACF,EACD;;CAEF,CAAC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import * as bingo_stratum110 from "bingo-stratum";
|
|
2
|
-
|
|
3
|
-
//#region src/blocks/blockFunding.d.ts
|
|
4
|
-
declare const blockFunding: bingo_stratum110.BlockWithoutAddons<{
|
|
5
|
-
access: "public" | "restricted";
|
|
6
|
-
description: string;
|
|
7
|
-
directory: string;
|
|
8
|
-
documentation: {
|
|
9
|
-
readme: {
|
|
10
|
-
additional?: string | undefined;
|
|
11
|
-
explainer?: string | undefined;
|
|
12
|
-
footnotes?: string | undefined;
|
|
13
|
-
usage?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
development?: string | undefined;
|
|
16
|
-
};
|
|
17
|
-
email: {
|
|
18
|
-
github: string;
|
|
19
|
-
npm: string;
|
|
20
|
-
};
|
|
21
|
-
title: string;
|
|
22
|
-
node: {
|
|
23
|
-
minimum: string;
|
|
24
|
-
pinned?: string | undefined;
|
|
25
|
-
};
|
|
26
|
-
owner: string;
|
|
27
|
-
repository: string;
|
|
28
|
-
type?: "commonjs" | "module" | undefined;
|
|
29
|
-
author?: string | undefined;
|
|
30
|
-
bin?: string | Record<string, string> | undefined;
|
|
31
|
-
contributors?: {
|
|
32
|
-
avatar_url: string;
|
|
33
|
-
contributions: string[];
|
|
34
|
-
login: string;
|
|
35
|
-
name: string;
|
|
36
|
-
profile: string;
|
|
37
|
-
}[] | undefined;
|
|
38
|
-
emoji?: string | undefined;
|
|
39
|
-
existingLabels?: {
|
|
40
|
-
name: string;
|
|
41
|
-
description: string;
|
|
42
|
-
color: string;
|
|
43
|
-
}[] | undefined;
|
|
44
|
-
funding?: string | undefined;
|
|
45
|
-
guide?: {
|
|
46
|
-
href: string;
|
|
47
|
-
title: string;
|
|
48
|
-
} | undefined;
|
|
49
|
-
keywords?: string[] | undefined;
|
|
50
|
-
logo?: {
|
|
51
|
-
alt: string;
|
|
52
|
-
src: string;
|
|
53
|
-
height?: number | undefined;
|
|
54
|
-
width?: number | undefined;
|
|
55
|
-
} | undefined;
|
|
56
|
-
packageData?: {
|
|
57
|
-
dependencies?: Record<string, string> | undefined;
|
|
58
|
-
devDependencies?: Record<string, string> | undefined;
|
|
59
|
-
peerDependencies?: Record<string, string> | undefined;
|
|
60
|
-
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
61
|
-
scripts?: Record<string, string | undefined> | undefined;
|
|
62
|
-
} | undefined;
|
|
63
|
-
pnpm?: string | undefined;
|
|
64
|
-
rulesetId?: string | undefined;
|
|
65
|
-
version?: string | undefined;
|
|
66
|
-
words?: string[] | undefined;
|
|
67
|
-
workflowsVersions?: Record<string, Record<string, {
|
|
68
|
-
pinned?: boolean | undefined;
|
|
69
|
-
hash?: string | undefined;
|
|
70
|
-
}>> | undefined;
|
|
71
|
-
}>;
|
|
72
|
-
//#endregion
|
|
73
|
-
export { blockFunding };
|
|
74
|
-
//# sourceMappingURL=blockFunding.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockFunding.d.ts","names":[],"sources":["../../src/blocks/blockFunding.ts"],"sourcesContent":[],"mappings":";;;cAGa,+BAAY;;;EAAZ,SAAA,EAAA,MAcX;;;;;;;;;;EAduB,KAAA,EAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
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,WACN;CACD,QAAQ,EAAE,WAAW;AACpB,SAAO,EACN,OAAO,EACN,WAAW,EACV,gBACC,QAAQ,WAAW,WAAW,EAAE,QAAQ,QAAQ,SAAS,CAAC,EAC3D,EACD,EACD;;CAEF,CAAC"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import * as bingo_stratum62 from "bingo-stratum";
|
|
2
|
-
|
|
3
|
-
//#region src/blocks/blockGitHubActionsCI.d.ts
|
|
4
|
-
declare const blockGitHubActionsCI: bingo_stratum62.BlockWithAddons<{
|
|
5
|
-
jobs?: {
|
|
6
|
-
name: string;
|
|
7
|
-
steps: ({
|
|
8
|
-
env?: Record<string, string> | undefined;
|
|
9
|
-
if?: string | undefined;
|
|
10
|
-
with?: Record<string, string> | undefined;
|
|
11
|
-
} & ({
|
|
12
|
-
run: string;
|
|
13
|
-
} | {
|
|
14
|
-
uses: string;
|
|
15
|
-
}))[];
|
|
16
|
-
if?: string | undefined;
|
|
17
|
-
checkoutWith?: Record<string, string> | undefined;
|
|
18
|
-
}[] | undefined;
|
|
19
|
-
nodeVersion?: string | number | undefined;
|
|
20
|
-
}, {
|
|
21
|
-
access: "public" | "restricted";
|
|
22
|
-
description: string;
|
|
23
|
-
directory: string;
|
|
24
|
-
documentation: {
|
|
25
|
-
readme: {
|
|
26
|
-
additional?: string | undefined;
|
|
27
|
-
explainer?: string | undefined;
|
|
28
|
-
footnotes?: string | undefined;
|
|
29
|
-
usage?: string | undefined;
|
|
30
|
-
};
|
|
31
|
-
development?: string | undefined;
|
|
32
|
-
};
|
|
33
|
-
email: {
|
|
34
|
-
github: string;
|
|
35
|
-
npm: string;
|
|
36
|
-
};
|
|
37
|
-
title: string;
|
|
38
|
-
node: {
|
|
39
|
-
minimum: string;
|
|
40
|
-
pinned?: string | undefined;
|
|
41
|
-
};
|
|
42
|
-
owner: string;
|
|
43
|
-
repository: string;
|
|
44
|
-
type?: "commonjs" | "module" | undefined;
|
|
45
|
-
author?: string | undefined;
|
|
46
|
-
bin?: string | Record<string, string> | undefined;
|
|
47
|
-
contributors?: {
|
|
48
|
-
avatar_url: string;
|
|
49
|
-
contributions: string[];
|
|
50
|
-
login: string;
|
|
51
|
-
name: string;
|
|
52
|
-
profile: string;
|
|
53
|
-
}[] | undefined;
|
|
54
|
-
emoji?: string | undefined;
|
|
55
|
-
existingLabels?: {
|
|
56
|
-
name: string;
|
|
57
|
-
description: string;
|
|
58
|
-
color: string;
|
|
59
|
-
}[] | undefined;
|
|
60
|
-
funding?: string | undefined;
|
|
61
|
-
guide?: {
|
|
62
|
-
href: string;
|
|
63
|
-
title: string;
|
|
64
|
-
} | undefined;
|
|
65
|
-
keywords?: string[] | undefined;
|
|
66
|
-
logo?: {
|
|
67
|
-
alt: string;
|
|
68
|
-
src: string;
|
|
69
|
-
height?: number | undefined;
|
|
70
|
-
width?: number | undefined;
|
|
71
|
-
} | undefined;
|
|
72
|
-
packageData?: {
|
|
73
|
-
dependencies?: Record<string, string> | undefined;
|
|
74
|
-
devDependencies?: Record<string, string> | undefined;
|
|
75
|
-
peerDependencies?: Record<string, string> | undefined;
|
|
76
|
-
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
77
|
-
scripts?: Record<string, string | undefined> | undefined;
|
|
78
|
-
} | undefined;
|
|
79
|
-
pnpm?: string | undefined;
|
|
80
|
-
rulesetId?: string | undefined;
|
|
81
|
-
version?: string | undefined;
|
|
82
|
-
words?: string[] | undefined;
|
|
83
|
-
workflowsVersions?: Record<string, Record<string, {
|
|
84
|
-
pinned?: boolean | undefined;
|
|
85
|
-
hash?: string | undefined;
|
|
86
|
-
}>> | undefined;
|
|
87
|
-
}>;
|
|
88
|
-
//#endregion
|
|
89
|
-
export { blockGitHubActionsCI };
|
|
90
|
-
//# sourceMappingURL=blockGitHubActionsCI.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockGitHubActionsCI.d.ts","names":[],"sources":["../../src/blocks/blockGitHubActionsCI.ts"],"sourcesContent":[],"mappings":";;;cAWa,sCAAoB;;;IAApB,KAAA,EAAA,CAAA;;;;;;;;;;;;gBAAoB,MAAA,GAAA,MAAA,GAAA,SAAA;CAAA,EAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
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,qBACN;CACD,QAAQ;EACP,MAAM,EACJ,MACA,EAAE,OAAO;GACR,cAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC,CAAC,UAAU;GACzD,IAAI,EAAE,QAAQ,CAAC,UAAU;GACzB,MAAM,EAAE,QAAQ;GAChB,OAAO,EAAE,MAAM,YAAY;GAC3B,CAAC,CACF,CACA,UAAU;EACZ,aAAa,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU;EACzD;CACD,OAAO,EAAE,SAAS;EACjB,MAAM,QAAQ,oBACb,OACA;GAAC;GAAW;GAAW;GAAW;GAAc,EAChD,CAAC,QAAQ,QAAQ,CACjB;AACD,MAAI,CAAC,MACJ;EAGD,MAAM,gBAAgB,MAAM,MAC1B,SACA,OAAO,KAAK,SAAS,YACrB,KAAK,KAAK,WAAW,qBAAqB,CAC3C;AACD,MAAI,CAAC,cACJ;EAGD,MAAM,cAAc,cAAc,OAAO;AACzC,MAAI,CAAC,YACJ;AAGD,SAAO,EAAE,aAAa;;CAEvB,QAAQ,EAAE,QAAQ,WAAW;EAC5B,MAAM,EAAE,MAAM,cAAc,QAAQ,KAAK,UAAU,QAAQ,KAAK,YAC/D;AAED,SAAO;GACN,QAAQ,CACP,6BAA6B,EAC5B,sBAAsB,MAAM,KAAK,QAAQ,IAAI,KAAK,EAClD,CAAC,CACF;GACD,OAAO,EACN,WAAW;IACV,SAAS,EACR,SAAS,EACR,eAAe,WAAW;KACzB,aAAa;KACb,MAAM;KACN,MAAM;MACL,OAAO;OACN,EACC,MAAM,YACL,qBACA,MACA,QAAQ,kBACR,EACD;OACD;QACC,MAAM,YACL,sBACA,MACA,QAAQ,kBACR;QACD,MAAM;SACL,OAAO;SACP,gBAAgB;SAChB;QACD;OACD;QACC,KAAK;QACL,OAAO;QACP;OACD;MACD,OAAO;MACP;KACD,CAAC,EACF,EACD;IACD,WAAW;KACV,WACC,QACA,wBAAwB;MACvB,MAAM,KAAK,MAAM,GAAG,MAAM,EAAE,KAAK,cAAc,EAAE,KAAK,CAAC;MACvD,MAAM;MACN,mBAAmB,QAAQ;MAC3B,CAAC;KACH,4BAA4B,uBAAuB;MAClD,MAAM;MACN,IAAI,EACH,qBAAqB,EACpB,OAAO,CAAC,mBAAmB,EAC3B,EACD;MACD,aAAa,EACZ,iBAAiB,SACjB;MACD,OAAO,CACN;OACC,MAAM,YACL,0CACA,MACA,QAAQ,kBACR;OACD,MAAM,EACL,QAAQ,8BACR;OACD,EACD;OACC,IAAI;OACJ,KAAK;OACL,CACD;MACD,CAAC;KACF;IACD,EACD;GACD;;CAEF,aAAa;AACZ,SAAO,EACN,QAAQ,CACP,iBAAiB,EAChB,OAAO,CAAC,aAAa,cAAc,EACnC,CAAC,CACF,EACD;;CAEF,CAAC"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import * as bingo_stratum107 from "bingo-stratum";
|
|
2
|
-
|
|
3
|
-
//#region src/blocks/blockGitHubApps.d.ts
|
|
4
|
-
declare const blockGitHubApps: bingo_stratum107.BlockWithAddons<{
|
|
5
|
-
apps: {
|
|
6
|
-
name: string;
|
|
7
|
-
url: string;
|
|
8
|
-
}[];
|
|
9
|
-
}, {
|
|
10
|
-
access: "public" | "restricted";
|
|
11
|
-
description: string;
|
|
12
|
-
directory: string;
|
|
13
|
-
documentation: {
|
|
14
|
-
readme: {
|
|
15
|
-
additional?: string | undefined;
|
|
16
|
-
explainer?: string | undefined;
|
|
17
|
-
footnotes?: string | undefined;
|
|
18
|
-
usage?: string | undefined;
|
|
19
|
-
};
|
|
20
|
-
development?: string | undefined;
|
|
21
|
-
};
|
|
22
|
-
email: {
|
|
23
|
-
github: string;
|
|
24
|
-
npm: string;
|
|
25
|
-
};
|
|
26
|
-
title: string;
|
|
27
|
-
node: {
|
|
28
|
-
minimum: string;
|
|
29
|
-
pinned?: string | undefined;
|
|
30
|
-
};
|
|
31
|
-
owner: string;
|
|
32
|
-
repository: string;
|
|
33
|
-
type?: "commonjs" | "module" | undefined;
|
|
34
|
-
author?: string | undefined;
|
|
35
|
-
bin?: string | Record<string, string> | undefined;
|
|
36
|
-
contributors?: {
|
|
37
|
-
avatar_url: string;
|
|
38
|
-
contributions: string[];
|
|
39
|
-
login: string;
|
|
40
|
-
name: string;
|
|
41
|
-
profile: string;
|
|
42
|
-
}[] | undefined;
|
|
43
|
-
emoji?: string | undefined;
|
|
44
|
-
existingLabels?: {
|
|
45
|
-
name: string;
|
|
46
|
-
description: string;
|
|
47
|
-
color: string;
|
|
48
|
-
}[] | undefined;
|
|
49
|
-
funding?: string | undefined;
|
|
50
|
-
guide?: {
|
|
51
|
-
href: string;
|
|
52
|
-
title: string;
|
|
53
|
-
} | undefined;
|
|
54
|
-
keywords?: string[] | undefined;
|
|
55
|
-
logo?: {
|
|
56
|
-
alt: string;
|
|
57
|
-
src: string;
|
|
58
|
-
height?: number | undefined;
|
|
59
|
-
width?: number | undefined;
|
|
60
|
-
} | undefined;
|
|
61
|
-
packageData?: {
|
|
62
|
-
dependencies?: Record<string, string> | undefined;
|
|
63
|
-
devDependencies?: Record<string, string> | undefined;
|
|
64
|
-
peerDependencies?: Record<string, string> | undefined;
|
|
65
|
-
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
66
|
-
scripts?: Record<string, string | undefined> | undefined;
|
|
67
|
-
} | undefined;
|
|
68
|
-
pnpm?: string | undefined;
|
|
69
|
-
rulesetId?: string | undefined;
|
|
70
|
-
version?: string | undefined;
|
|
71
|
-
words?: string[] | undefined;
|
|
72
|
-
workflowsVersions?: Record<string, Record<string, {
|
|
73
|
-
pinned?: boolean | undefined;
|
|
74
|
-
hash?: string | undefined;
|
|
75
|
-
}>> | undefined;
|
|
76
|
-
}>;
|
|
77
|
-
//#endregion
|
|
78
|
-
export { blockGitHubApps };
|
|
79
|
-
//# sourceMappingURL=blockGitHubApps.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockGitHubApps.d.ts","names":[],"sources":["../../src/blocks/blockGitHubApps.ts"],"sourcesContent":[],"mappings":";;;cAKa,kCAAe;;;IAAf,GAAA,EAAA,MAAA;;;;;;;;;eAAe,CAAA,EAAA,MAAA,GAAA,SAAA;MAAA,SAAA,CAAA,EAAA,MAAA,GAAA,SAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockGitHubApps.js","names":[],"sources":["../../src/blocks/blockGitHubApps.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getInstallationSuggestions } from \"./getInstallationSuggestions.js\";\n\nexport const blockGitHubApps = base.createBlock({\n\tabout: {\n\t\tname: \"GitHub Apps\",\n\t},\n\taddons: {\n\t\tapps: z\n\t\t\t.array(\n\t\t\t\tz.object({\n\t\t\t\t\tname: z.string(),\n\t\t\t\t\turl: z.string(),\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.default([]),\n\t},\n\tproduce({ addons, options }) {\n\t\treturn {\n\t\t\tsuggestions: getInstallationSuggestions(\n\t\t\t\t\"enable the GitHub app\",\n\t\t\t\taddons.apps.map((app) => `${app.name} (${app.url})`),\n\t\t\t\t`https://github.com/${options.owner}/${options.repository}/settings/installations`,\n\t\t\t),\n\t\t};\n\t},\n});\n"],"mappings":";;;;;AAKA,MAAa,kBAAkB,KAAK,YAAY;CAC/C,OAAO,EACN,MAAM,eACN;CACD,QAAQ,EACP,MAAM,EACJ,MACA,EAAE,OAAO;EACR,MAAM,EAAE,QAAQ;EAChB,KAAK,EAAE,QAAQ;EACf,CAAC,CACF,CACA,QAAQ,EAAE,CAAC,EACb;CACD,QAAQ,EAAE,QAAQ,WAAW;AAC5B,SAAO,EACN,aAAa,2BACZ,yBACA,OAAO,KAAK,KAAK,QAAQ,GAAG,IAAI,KAAK,IAAI,IAAI,IAAI,GAAG,EACpD,sBAAsB,QAAQ,MAAM,GAAG,QAAQ,WAAW,yBAC1D,EACD;;CAEF,CAAC"}
|