create-typescript-app 2.0.0-beta.2 → 2.0.0-beta.20
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 +64 -57
- package/bin/index.js +4 -2
- package/lib/{next/base.d.ts → base.d.ts} +28 -7
- package/lib/{next/base.js → base.js} +40 -29
- package/lib/base.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockAllContributors.d.ts +10 -9
- package/lib/blocks/blockAllContributors.js +139 -0
- package/lib/blocks/blockAllContributors.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockAreTheTypesWrong.d.ts +10 -9
- package/lib/{next/blocks → blocks}/blockAreTheTypesWrong.js +2 -1
- package/lib/blocks/blockAreTheTypesWrong.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockCSpell.d.ts +10 -9
- package/lib/{next/blocks → blocks}/blockCSpell.js +14 -14
- package/lib/blocks/blockCSpell.js.map +1 -0
- package/lib/blocks/blockCodecov.d.ts +53 -0
- package/lib/blocks/blockCodecov.js +50 -0
- package/lib/blocks/blockCodecov.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockContributingDocs.d.ts +10 -9
- package/lib/{next/blocks → blocks}/blockContributingDocs.js +11 -10
- package/lib/{next/blocks → blocks}/blockContributingDocs.js.map +1 -1
- package/lib/{next/blocks → blocks}/blockContributorCovenant.d.ts +10 -9
- package/lib/{next/blocks → blocks}/blockContributorCovenant.js +11 -10
- package/lib/blocks/blockContributorCovenant.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockDevelopmentDocs.d.ts +12 -11
- package/lib/{next/blocks → blocks}/blockDevelopmentDocs.js +12 -11
- package/lib/blocks/blockDevelopmentDocs.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockESLint.d.ts +17 -15
- package/lib/{next/blocks → blocks}/blockESLint.js +23 -14
- package/lib/blocks/blockESLint.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockESLintComments.d.ts +10 -9
- package/lib/blocks/blockESLintComments.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockESLintJSDoc.d.ts +10 -9
- package/lib/blocks/blockESLintJSDoc.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockESLintJSONC.d.ts +10 -9
- package/lib/blocks/blockESLintJSONC.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockESLintMarkdown.d.ts +10 -9
- package/lib/blocks/blockESLintMarkdown.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockESLintMoreStyling.d.ts +10 -9
- package/lib/blocks/blockESLintMoreStyling.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockESLintNode.d.ts +10 -9
- package/lib/{next/blocks → blocks}/blockESLintNode.js +7 -5
- package/lib/blocks/blockESLintNode.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockESLintPackageJson.d.ts +10 -9
- package/lib/blocks/blockESLintPackageJson.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockESLintPerfectionist.d.ts +10 -9
- package/lib/blocks/blockESLintPerfectionist.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockESLintRegexp.d.ts +10 -9
- package/lib/blocks/blockESLintRegexp.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockESLintYML.d.ts +10 -9
- package/lib/blocks/blockESLintYML.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockExampleFiles.d.ts +10 -9
- package/lib/{next/blocks → blocks}/blockExampleFiles.js +3 -2
- package/lib/blocks/blockExampleFiles.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockFunding.d.ts +10 -9
- package/lib/{next/blocks → blocks}/blockFunding.js +1 -1
- package/lib/blocks/blockFunding.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockGitHubActionsCI.d.ts +38 -11
- package/lib/{next/blocks → blocks}/blockGitHubActionsCI.js +30 -26
- package/lib/blocks/blockGitHubActionsCI.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockGitHubApps.d.ts +11 -10
- package/lib/blocks/blockGitHubApps.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockGitHubIssueTemplates.d.ts +10 -9
- package/lib/{next/blocks → blocks}/blockGitHubIssueTemplates.js +1 -1
- package/lib/blocks/blockGitHubIssueTemplates.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockGitHubPRTemplate.d.ts +10 -9
- package/lib/blocks/blockGitHubPRTemplate.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockGitignore.d.ts +10 -9
- package/lib/{next/blocks → blocks}/blockGitignore.js +1 -1
- package/lib/blocks/blockGitignore.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockKnip.d.ts +12 -9
- package/lib/{next/blocks → blocks}/blockKnip.js +23 -13
- package/lib/blocks/blockKnip.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockMITLicense.d.ts +10 -9
- package/lib/blocks/blockMITLicense.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockMarkdownlint.d.ts +10 -9
- package/lib/{next/blocks → blocks}/blockMarkdownlint.js +10 -7
- package/lib/blocks/blockMarkdownlint.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockNvmrc.d.ts +10 -9
- package/lib/blocks/blockNvmrc.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockPRCompliance.d.ts +10 -9
- package/lib/{next/blocks → blocks}/blockPRCompliance.js +1 -1
- package/lib/blocks/blockPRCompliance.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockPackageJson.d.ts +12 -11
- package/lib/{next/blocks → blocks}/blockPackageJson.js +16 -13
- package/lib/blocks/blockPackageJson.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockPnpmDedupe.d.ts +10 -9
- package/lib/blocks/blockPnpmDedupe.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockPrettier.d.ts +11 -10
- package/lib/{next/blocks → blocks}/blockPrettier.js +17 -13
- package/lib/blocks/blockPrettier.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockPrettierPluginCurly.d.ts +10 -9
- package/lib/blocks/blockPrettierPluginCurly.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockPrettierPluginPackageJson.d.ts +10 -9
- package/lib/blocks/blockPrettierPluginPackageJson.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockPrettierPluginSh.d.ts +10 -9
- package/lib/blocks/blockPrettierPluginSh.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockREADME.d.ts +12 -9
- package/lib/{next/blocks → blocks}/blockREADME.js +16 -19
- package/lib/blocks/blockREADME.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockReleaseIt.d.ts +10 -9
- package/lib/{next/blocks → blocks}/blockReleaseIt.js +4 -4
- package/lib/blocks/blockReleaseIt.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockRenovate.d.ts +10 -9
- package/lib/{next/blocks → blocks}/blockRenovate.js +6 -1
- package/lib/blocks/blockRenovate.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockRepositoryBranchRuleset.d.ts +10 -9
- package/lib/blocks/blockRepositoryBranchRuleset.js +94 -0
- package/lib/blocks/blockRepositoryBranchRuleset.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockRepositoryLabels.d.ts +10 -9
- package/lib/{next/blocks → blocks}/blockRepositoryLabels.js +1 -1
- package/lib/blocks/blockRepositoryLabels.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockRepositorySecrets.d.ts +10 -9
- package/lib/blocks/blockRepositorySecrets.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockRepositorySettings.d.ts +10 -9
- package/lib/blocks/blockRepositorySettings.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockSecurityDocs.d.ts +10 -9
- package/lib/blocks/blockSecurityDocs.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockTSup.d.ts +11 -9
- package/lib/{next/blocks → blocks}/blockTSup.js +27 -13
- package/lib/blocks/blockTSup.js.map +1 -0
- package/lib/blocks/blockTemplatedWith.d.ts +51 -0
- package/lib/{next/blocks/blockTemplatedBy.js → blocks/blockTemplatedWith.js} +3 -3
- package/lib/blocks/blockTemplatedWith.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockTypeScript.d.ts +10 -9
- package/lib/{next/blocks → blocks}/blockTypeScript.js +2 -2
- package/lib/blocks/blockTypeScript.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockVSCode.d.ts +10 -9
- package/lib/blocks/blockVSCode.js.map +1 -0
- package/lib/{next/blocks → blocks}/blockVitest.d.ts +19 -13
- package/lib/{next/blocks → blocks}/blockVitest.js +29 -44
- package/lib/blocks/blockVitest.js.map +1 -0
- package/lib/blocks/files/createJobName.d.ts +3 -0
- package/lib/blocks/files/createJobName.js +7 -0
- package/lib/blocks/files/createJobName.js.map +1 -0
- package/lib/{steps/writing/creation/dotGitHub → blocks/files}/createMultiWorkflowFile.js +2 -1
- package/lib/blocks/files/createMultiWorkflowFile.js.map +1 -0
- package/lib/{steps/writing/creation/dotGitHub → blocks/files}/createSoloWorkflowFile.js +2 -1
- package/lib/blocks/files/createSoloWorkflowFile.js.map +1 -0
- package/lib/blocks/files/formatIgnoreFile.js.map +1 -0
- package/lib/{steps/writing/creation/dotGitHub → blocks/files}/formatWorkflowYaml.js +1 -1
- package/lib/blocks/files/formatWorkflowYaml.js.map +1 -0
- package/lib/{steps/writing/creation/formatters → blocks/files}/formatYaml.js +1 -3
- package/lib/blocks/files/formatYaml.js.map +1 -0
- package/lib/blocks/index.d.ts +2184 -0
- package/lib/blocks/index.js +178 -0
- package/lib/blocks/index.js.map +1 -0
- package/lib/blocks/options.fakes.js.map +1 -0
- package/lib/{steps/initializeGitHubRepository → blocks}/outcomeLabels.js +1 -0
- package/lib/blocks/outcomeLabels.js.map +1 -0
- package/lib/blocks/phases.js.map +1 -0
- package/lib/data/packageData.d.ts +159 -0
- package/lib/{next/blocks → data}/packageData.js +9 -3
- package/lib/data/packageData.js.map +1 -0
- package/lib/index.d.ts +52 -49
- package/lib/index.js +6 -6
- package/lib/index.js.map +1 -1
- package/lib/inputs/inputFromOctokit.d.ts +9 -0
- package/lib/inputs/inputFromOctokit.js +28 -0
- package/lib/inputs/inputFromOctokit.js.map +1 -0
- package/lib/options/getUsageFromReadme.js.map +1 -0
- package/lib/{shared/options/createOptionDefaults → options}/parsePackageAuthor.d.ts +1 -3
- package/lib/options/parsePackageAuthor.js.map +1 -0
- package/lib/{shared/options/createOptionDefaults → options}/readDefaultsFromReadme.d.ts +1 -0
- package/lib/{shared/options/createOptionDefaults → options}/readDefaultsFromReadme.js +12 -3
- package/lib/options/readDefaultsFromReadme.js.map +1 -0
- package/lib/{next → options}/readDescription.d.ts +1 -3
- package/lib/{next → options}/readDescription.js +2 -2
- package/lib/options/readDescription.js.map +1 -0
- package/lib/options/readDescriptionFromReadme.js.map +1 -0
- package/lib/{next → options}/readDocumentation.d.ts +1 -1
- package/lib/{next → options}/readDocumentation.js +1 -1
- package/lib/options/readDocumentation.js.map +1 -0
- package/lib/{shared/options/createOptionDefaults → options}/readEmails.js +1 -1
- package/lib/options/readEmails.js.map +1 -0
- package/lib/options/readFileAsJson.js.map +1 -0
- package/lib/options/readFileSafe.js.map +1 -0
- package/lib/{shared/options/createOptionDefaults → options}/readFunding.js +1 -1
- package/lib/options/readFunding.js.map +1 -0
- package/lib/{shared/options/createOptionDefaults → options}/readGitHubEmail.js +1 -1
- package/lib/options/readGitHubEmail.js.map +1 -0
- package/lib/{shared/options/createOptionDefaults → options}/readGuide.js +1 -1
- package/lib/options/readGuide.js.map +1 -0
- package/lib/{shared/options → options}/readLogoSizing.js +1 -1
- package/lib/options/readLogoSizing.js.map +1 -0
- package/lib/options/readPackageData.d.ts +5 -0
- package/lib/options/readPackageData.js +8 -0
- package/lib/options/readPackageData.js.map +1 -0
- package/lib/{next/presets/presetCommon.d.ts → presets/common.d.ts} +6 -5
- package/lib/{next/presets/presetCommon.js → presets/common.js} +6 -2
- package/lib/presets/common.js.map +1 -0
- package/lib/{next/presets/presetEverything.d.ts → presets/everything.d.ts} +6 -5
- package/lib/{next/presets/presetEverything.js → presets/everything.js} +2 -4
- package/lib/presets/everything.js.map +1 -0
- package/lib/presets/index.d.ts +313 -0
- package/lib/presets/index.js +18 -0
- package/lib/presets/index.js.map +1 -0
- package/lib/{next/presets/presetMinimal.d.ts → presets/minimal.d.ts} +6 -5
- package/lib/{next/presets/presetMinimal.js → presets/minimal.js} +5 -5
- package/lib/presets/minimal.js.map +1 -0
- package/lib/{next/template.d.ts → template.d.ts} +7 -6
- package/lib/template.js +19 -0
- package/lib/template.js.map +1 -0
- package/lib/types.d.ts +31 -5
- package/lib/utils/resolveBin.js.map +1 -0
- package/lib/utils/sortObject.js.map +1 -0
- package/lib/utils/swallowError.js.map +1 -0
- package/lib/utils/tryCatchAsync.js.map +1 -0
- package/lib/utils/tryCatchLazyValueAsync.js.map +1 -0
- package/package.json +43 -52
- package/lib/bin/help.d.ts +0 -3
- package/lib/bin/help.js +0 -117
- package/lib/bin/help.js.map +0 -1
- package/lib/bin/index.d.ts +0 -5
- package/lib/bin/index.js +0 -91
- package/lib/bin/index.js.map +0 -1
- package/lib/bin/packageJson.d.ts +0 -3
- package/lib/bin/packageJson.js +0 -13
- package/lib/bin/packageJson.js.map +0 -1
- package/lib/bin/promptForMode.d.ts +0 -11
- package/lib/bin/promptForMode.js +0 -108
- package/lib/bin/promptForMode.js.map +0 -1
- package/lib/create/createAndEnterGitDirectory.d.ts +0 -3
- package/lib/create/createAndEnterGitDirectory.js +0 -20
- package/lib/create/createAndEnterGitDirectory.js.map +0 -1
- package/lib/create/createRerunDirectorySuggestion.d.ts +0 -7
- package/lib/create/createRerunDirectorySuggestion.js +0 -8
- package/lib/create/createRerunDirectorySuggestion.js.map +0 -1
- package/lib/create/createRerunSuggestion.d.ts +0 -7
- package/lib/create/createRerunSuggestion.js +0 -56
- package/lib/create/createRerunSuggestion.js.map +0 -1
- package/lib/create/createWithOptions.d.ts +0 -11
- package/lib/create/createWithOptions.js +0 -68
- package/lib/create/createWithOptions.js.map +0 -1
- package/lib/create/index.d.ts +0 -7
- package/lib/create/index.js +0 -69
- package/lib/create/index.js.map +0 -1
- package/lib/greet.d.ts +0 -5
- package/lib/greet.js +0 -14
- package/lib/greet.js.map +0 -1
- package/lib/initialize/index.d.ts +0 -7
- package/lib/initialize/index.js +0 -43
- package/lib/initialize/index.js.map +0 -1
- package/lib/initialize/initializeWithOptions.d.ts +0 -9
- package/lib/initialize/initializeWithOptions.js +0 -66
- package/lib/initialize/initializeWithOptions.js.map +0 -1
- package/lib/migrate/index.d.ts +0 -7
- package/lib/migrate/index.js +0 -43
- package/lib/migrate/index.js.map +0 -1
- package/lib/migrate/migrateWithOptions.d.ts +0 -9
- package/lib/migrate/migrateWithOptions.js +0 -72
- package/lib/migrate/migrateWithOptions.js.map +0 -1
- package/lib/next/base.js.map +0 -1
- package/lib/next/blocks/blockAllContributors.js +0 -65
- package/lib/next/blocks/blockAllContributors.js.map +0 -1
- package/lib/next/blocks/blockAreTheTypesWrong.js.map +0 -1
- package/lib/next/blocks/blockCSpell.js.map +0 -1
- package/lib/next/blocks/blockContributorCovenant.js.map +0 -1
- package/lib/next/blocks/blockDevelopmentDocs.js.map +0 -1
- package/lib/next/blocks/blockESLint.js.map +0 -1
- package/lib/next/blocks/blockESLintComments.js.map +0 -1
- package/lib/next/blocks/blockESLintJSDoc.js.map +0 -1
- package/lib/next/blocks/blockESLintJSONC.js.map +0 -1
- package/lib/next/blocks/blockESLintMarkdown.js.map +0 -1
- package/lib/next/blocks/blockESLintMoreStyling.js.map +0 -1
- package/lib/next/blocks/blockESLintNode.js.map +0 -1
- package/lib/next/blocks/blockESLintPackageJson.js.map +0 -1
- package/lib/next/blocks/blockESLintPerfectionist.js.map +0 -1
- package/lib/next/blocks/blockESLintRegexp.js.map +0 -1
- package/lib/next/blocks/blockESLintYML.js.map +0 -1
- package/lib/next/blocks/blockExampleFiles.js.map +0 -1
- package/lib/next/blocks/blockFunding.js.map +0 -1
- package/lib/next/blocks/blockGitHubActionsCI.js.map +0 -1
- package/lib/next/blocks/blockGitHubApps.js.map +0 -1
- package/lib/next/blocks/blockGitHubIssueTemplates.js.map +0 -1
- package/lib/next/blocks/blockGitHubPRTemplate.js.map +0 -1
- package/lib/next/blocks/blockGitignore.js.map +0 -1
- package/lib/next/blocks/blockKnip.js.map +0 -1
- package/lib/next/blocks/blockMITLicense.js.map +0 -1
- package/lib/next/blocks/blockMarkdownlint.js.map +0 -1
- package/lib/next/blocks/blockNvmrc.js.map +0 -1
- package/lib/next/blocks/blockPRCompliance.js.map +0 -1
- package/lib/next/blocks/blockPackageJson.js.map +0 -1
- package/lib/next/blocks/blockPnpmDedupe.js.map +0 -1
- package/lib/next/blocks/blockPrettier.js.map +0 -1
- package/lib/next/blocks/blockPrettierPluginCurly.js.map +0 -1
- package/lib/next/blocks/blockPrettierPluginPackageJson.js.map +0 -1
- package/lib/next/blocks/blockPrettierPluginSh.js.map +0 -1
- package/lib/next/blocks/blockREADME.js.map +0 -1
- package/lib/next/blocks/blockReleaseIt.js.map +0 -1
- package/lib/next/blocks/blockRenovate.js.map +0 -1
- package/lib/next/blocks/blockRepositoryBranchRuleset.js +0 -71
- package/lib/next/blocks/blockRepositoryBranchRuleset.js.map +0 -1
- package/lib/next/blocks/blockRepositoryLabels.js.map +0 -1
- package/lib/next/blocks/blockRepositorySecrets.js.map +0 -1
- package/lib/next/blocks/blockRepositorySettings.js.map +0 -1
- package/lib/next/blocks/blockSecurityDocs.js.map +0 -1
- package/lib/next/blocks/blockTSup.js.map +0 -1
- package/lib/next/blocks/blockTemplatedBy.d.ts +0 -50
- package/lib/next/blocks/blockTemplatedBy.js.map +0 -1
- package/lib/next/blocks/blockTypeScript.js.map +0 -1
- package/lib/next/blocks/blockVSCode.js.map +0 -1
- package/lib/next/blocks/blockVitest.js.map +0 -1
- package/lib/next/blocks/index.d.ts +0 -43
- package/lib/next/blocks/index.js +0 -43
- package/lib/next/blocks/index.js.map +0 -1
- package/lib/next/blocks/options.fakes.js.map +0 -1
- package/lib/next/blocks/packageData.d.ts +0 -6
- package/lib/next/blocks/packageData.js.map +0 -1
- package/lib/next/blocks/phases.js.map +0 -1
- package/lib/next/blocks/sourcePackageJson.d.ts +0 -164
- package/lib/next/blocks/sourcePackageJson.js +0 -10
- package/lib/next/blocks/sourcePackageJson.js.map +0 -1
- package/lib/next/presets/index.d.ts +0 -5
- package/lib/next/presets/index.js +0 -4
- package/lib/next/presets/index.js.map +0 -1
- package/lib/next/presets/presetCommon.js.map +0 -1
- package/lib/next/presets/presetEverything.js.map +0 -1
- package/lib/next/presets/presetMinimal.js.map +0 -1
- package/lib/next/readDescription.js.map +0 -1
- package/lib/next/readDescriptionFromReadme.js.map +0 -1
- package/lib/next/readDocumentation.js.map +0 -1
- package/lib/next/runCreateEnginePreset.d.ts +0 -7
- package/lib/next/runCreateEnginePreset.js +0 -20
- package/lib/next/runCreateEnginePreset.js.map +0 -1
- package/lib/next/template.js +0 -17
- package/lib/next/template.js.map +0 -1
- package/lib/next/utils/resolveBin.js.map +0 -1
- package/lib/next/utils/sortObject.js.map +0 -1
- package/lib/next/utils/swallowError.js.map +0 -1
- package/lib/shared/cli/lines.d.ts +0 -5
- package/lib/shared/cli/lines.js +0 -17
- package/lib/shared/cli/lines.js.map +0 -1
- package/lib/shared/cli/lowerFirst.d.ts +0 -3
- package/lib/shared/cli/lowerFirst.js +0 -7
- package/lib/shared/cli/lowerFirst.js.map +0 -1
- package/lib/shared/cli/outro.d.ts +0 -8
- package/lib/shared/cli/outro.js +0 -21
- package/lib/shared/cli/outro.js.map +0 -1
- package/lib/shared/cli/spinners.d.ts +0 -6
- package/lib/shared/cli/spinners.js +0 -50
- package/lib/shared/cli/spinners.js.map +0 -1
- package/lib/shared/cli/startLineWithDots.d.ts +0 -3
- package/lib/shared/cli/startLineWithDots.js +0 -32
- package/lib/shared/cli/startLineWithDots.js.map +0 -1
- package/lib/shared/codes.d.ts +0 -8
- package/lib/shared/codes.js +0 -9
- package/lib/shared/codes.js.map +0 -1
- package/lib/shared/createCleanupCommands.d.ts +0 -3
- package/lib/shared/createCleanupCommands.js +0 -13
- package/lib/shared/createCleanupCommands.js.map +0 -1
- package/lib/shared/doesRepositoryExist.d.ts +0 -9
- package/lib/shared/doesRepositoryExist.js +0 -18
- package/lib/shared/doesRepositoryExist.js.map +0 -1
- package/lib/shared/ensureGitRepository.d.ts +0 -3
- package/lib/shared/ensureGitRepository.js +0 -12
- package/lib/shared/ensureGitRepository.js.map +0 -1
- package/lib/shared/generateNextSteps.d.ts +0 -8
- package/lib/shared/generateNextSteps.js +0 -60
- package/lib/shared/generateNextSteps.js.map +0 -1
- package/lib/shared/getGitHubUserAsAllContributor.d.ts +0 -8
- package/lib/shared/getGitHubUserAsAllContributor.js +0 -43
- package/lib/shared/getGitHubUserAsAllContributor.js.map +0 -1
- package/lib/shared/isUsingCreateEngine.d.ts +0 -3
- package/lib/shared/isUsingCreateEngine.js +0 -7
- package/lib/shared/isUsingCreateEngine.js.map +0 -1
- package/lib/shared/options/args.d.ts +0 -273
- package/lib/shared/options/args.js +0 -335
- package/lib/shared/options/args.js.map +0 -1
- package/lib/shared/options/augmentOptionsWithExcludes.d.ts +0 -7
- package/lib/shared/options/augmentOptionsWithExcludes.js +0 -94
- package/lib/shared/options/augmentOptionsWithExcludes.js.map +0 -1
- package/lib/shared/options/createOptionDefaults/getUsageFromReadme.js.map +0 -1
- package/lib/shared/options/createOptionDefaults/index.d.ts +0 -28
- package/lib/shared/options/createOptionDefaults/index.js +0 -49
- package/lib/shared/options/createOptionDefaults/index.js.map +0 -1
- package/lib/shared/options/createOptionDefaults/parsePackageAuthor.js.map +0 -1
- package/lib/shared/options/createOptionDefaults/readDefaultsFromReadme.js.map +0 -1
- package/lib/shared/options/createOptionDefaults/readEmails.js.map +0 -1
- package/lib/shared/options/createOptionDefaults/readFunding.js.map +0 -1
- package/lib/shared/options/createOptionDefaults/readGitHubEmail.js.map +0 -1
- package/lib/shared/options/createOptionDefaults/readGuide.js.map +0 -1
- package/lib/shared/options/createRepositoryWithApi.d.ts +0 -10
- package/lib/shared/options/createRepositoryWithApi.js +0 -32
- package/lib/shared/options/createRepositoryWithApi.js.map +0 -1
- package/lib/shared/options/detectEmailRedundancy.d.ts +0 -8
- package/lib/shared/options/detectEmailRedundancy.js +0 -16
- package/lib/shared/options/detectEmailRedundancy.js.map +0 -1
- package/lib/shared/options/ensureRepositoryExists.d.ts +0 -13
- package/lib/shared/options/ensureRepositoryExists.js +0 -64
- package/lib/shared/options/ensureRepositoryExists.js.map +0 -1
- package/lib/shared/options/exclusionKeys.d.ts +0 -15
- package/lib/shared/options/exclusionKeys.js +0 -129
- package/lib/shared/options/exclusionKeys.js.map +0 -1
- package/lib/shared/options/getBase.d.ts +0 -7
- package/lib/shared/options/getBase.js +0 -27
- package/lib/shared/options/getBase.js.map +0 -1
- package/lib/shared/options/getPrefillOrPromptedOption.d.ts +0 -16
- package/lib/shared/options/getPrefillOrPromptedOption.js +0 -37
- package/lib/shared/options/getPrefillOrPromptedOption.js.map +0 -1
- package/lib/shared/options/logInferredOptions.d.ts +0 -8
- package/lib/shared/options/logInferredOptions.js +0 -30
- package/lib/shared/options/logInferredOptions.js.map +0 -1
- package/lib/shared/options/optionsSchema.d.ts +0 -218
- package/lib/shared/options/optionsSchema.js +0 -63
- package/lib/shared/options/optionsSchema.js.map +0 -1
- package/lib/shared/options/readLogoSizing.js.map +0 -1
- package/lib/shared/options/readOptions.d.ts +0 -21
- package/lib/shared/options/readOptions.js +0 -235
- package/lib/shared/options/readOptions.js.map +0 -1
- package/lib/shared/packages.d.ts +0 -8
- package/lib/shared/packages.js +0 -18
- package/lib/shared/packages.js.map +0 -1
- package/lib/shared/prompts.d.ts +0 -3
- package/lib/shared/prompts.js +0 -8
- package/lib/shared/prompts.js.map +0 -1
- package/lib/shared/readFileAsJson.js.map +0 -1
- package/lib/shared/readFileSafe.js.map +0 -1
- package/lib/shared/readFileSafeAsJson.d.ts +0 -3
- package/lib/shared/readFileSafeAsJson.js +0 -8
- package/lib/shared/readFileSafeAsJson.js.map +0 -1
- package/lib/shared/runOrRestore.d.ts +0 -7
- package/lib/shared/runOrRestore.js +0 -37
- package/lib/shared/runOrRestore.js.map +0 -1
- package/lib/shared/tryCatchAsync.js.map +0 -1
- package/lib/shared/tryCatchLazyValueAsync.js.map +0 -1
- package/lib/shared/types.d.ts +0 -120
- package/lib/shared/types.js +0 -1
- package/lib/shared/types.js.map +0 -1
- package/lib/steps/addOwnerAsAllContributor.d.ts +0 -8
- package/lib/steps/addOwnerAsAllContributor.js +0 -43
- package/lib/steps/addOwnerAsAllContributor.js.map +0 -1
- package/lib/steps/addToolAllContributors.d.ts +0 -8
- package/lib/steps/addToolAllContributors.js +0 -12
- package/lib/steps/addToolAllContributors.js.map +0 -1
- package/lib/steps/clearChangelog.d.ts +0 -3
- package/lib/steps/clearChangelog.js +0 -12
- package/lib/steps/clearChangelog.js.map +0 -1
- package/lib/steps/clearLocalGitTags.d.ts +0 -3
- package/lib/steps/clearLocalGitTags.js +0 -9
- package/lib/steps/clearLocalGitTags.js.map +0 -1
- package/lib/steps/clearUnnecessaryFiles.d.ts +0 -3
- package/lib/steps/clearUnnecessaryFiles.js +0 -38
- package/lib/steps/clearUnnecessaryFiles.js.map +0 -1
- package/lib/steps/createJoshuaKGoldbergReplacement.d.ts +0 -11
- package/lib/steps/createJoshuaKGoldbergReplacement.js +0 -16
- package/lib/steps/createJoshuaKGoldbergReplacement.js.map +0 -1
- package/lib/steps/finalizeDependencies.d.ts +0 -7
- package/lib/steps/finalizeDependencies.js +0 -59
- package/lib/steps/finalizeDependencies.js.map +0 -1
- package/lib/steps/initializeGitHubRepository/index.d.ts +0 -8
- package/lib/steps/initializeGitHubRepository/index.js +0 -19
- package/lib/steps/initializeGitHubRepository/index.js.map +0 -1
- package/lib/steps/initializeGitHubRepository/initializeBranchProtectionSettings.d.ts +0 -8
- package/lib/steps/initializeGitHubRepository/initializeBranchProtectionSettings.js +0 -67
- package/lib/steps/initializeGitHubRepository/initializeBranchProtectionSettings.js.map +0 -1
- package/lib/steps/initializeGitHubRepository/outcomeLabels.js.map +0 -1
- package/lib/steps/initializeGitRemote.d.ts +0 -8
- package/lib/steps/initializeGitRemote.js +0 -15
- package/lib/steps/initializeGitRemote.js.map +0 -1
- package/lib/steps/initializeRepositorySettings.d.ts +0 -9
- package/lib/steps/initializeRepositorySettings.js +0 -27
- package/lib/steps/initializeRepositorySettings.js.map +0 -1
- package/lib/steps/populateCSpellDictionary.d.ts +0 -3
- package/lib/steps/populateCSpellDictionary.js +0 -36
- package/lib/steps/populateCSpellDictionary.js.map +0 -1
- package/lib/steps/removeSetupScripts.d.ts +0 -3
- package/lib/steps/removeSetupScripts.js +0 -29
- package/lib/steps/removeSetupScripts.js.map +0 -1
- package/lib/steps/resetGitTags.d.ts +0 -3
- package/lib/steps/resetGitTags.js +0 -12
- package/lib/steps/resetGitTags.js.map +0 -1
- package/lib/steps/runCleanup.d.ts +0 -7
- package/lib/steps/runCleanup.js +0 -37
- package/lib/steps/runCleanup.js.map +0 -1
- package/lib/steps/uninstallPackages.d.ts +0 -3
- package/lib/steps/uninstallPackages.js +0 -64
- package/lib/steps/uninstallPackages.js.map +0 -1
- package/lib/steps/updateAllContributorsTable.d.ts +0 -7
- package/lib/steps/updateAllContributorsTable.js +0 -24
- package/lib/steps/updateAllContributorsTable.js.map +0 -1
- package/lib/steps/updateLocalFiles.d.ts +0 -7
- package/lib/steps/updateLocalFiles.js +0 -84
- package/lib/steps/updateLocalFiles.js.map +0 -1
- package/lib/steps/updateReadme.d.ts +0 -10
- package/lib/steps/updateReadme.js +0 -27
- package/lib/steps/updateReadme.js.map +0 -1
- package/lib/steps/writeReadme/findExistingBadges.d.ts +0 -4
- package/lib/steps/writeReadme/findExistingBadges.js +0 -28
- package/lib/steps/writeReadme/findExistingBadges.js.map +0 -1
- package/lib/steps/writeReadme/findIntroSectionClose.d.ts +0 -3
- package/lib/steps/writeReadme/findIntroSectionClose.js +0 -22
- package/lib/steps/writeReadme/findIntroSectionClose.js.map +0 -1
- package/lib/steps/writeReadme/generateTopContent.d.ts +0 -7
- package/lib/steps/writeReadme/generateTopContent.js +0 -70
- package/lib/steps/writeReadme/generateTopContent.js.map +0 -1
- package/lib/steps/writeReadme/index.d.ts +0 -7
- package/lib/steps/writeReadme/index.js +0 -57
- package/lib/steps/writeReadme/index.js.map +0 -1
- package/lib/steps/writing/creation/createCSpellConfig.d.ts +0 -7
- package/lib/steps/writing/creation/createCSpellConfig.js +0 -27
- package/lib/steps/writing/creation/createCSpellConfig.js.map +0 -1
- package/lib/steps/writing/creation/createDotGitignore.d.ts +0 -7
- package/lib/steps/writing/creation/createDotGitignore.js +0 -14
- package/lib/steps/writing/creation/createDotGitignore.js.map +0 -1
- package/lib/steps/writing/creation/createESLintConfig.d.ts +0 -7
- package/lib/steps/writing/creation/createESLintConfig.js +0 -105
- package/lib/steps/writing/creation/createESLintConfig.js.map +0 -1
- package/lib/steps/writing/creation/createKnipConfig.d.ts +0 -3
- package/lib/steps/writing/creation/createKnipConfig.js +0 -20
- package/lib/steps/writing/creation/createKnipConfig.js.map +0 -1
- package/lib/steps/writing/creation/createTsupConfig.d.ts +0 -7
- package/lib/steps/writing/creation/createTsupConfig.js +0 -19
- package/lib/steps/writing/creation/createTsupConfig.js.map +0 -1
- package/lib/steps/writing/creation/dotGitHub/actions.d.ts +0 -7
- package/lib/steps/writing/creation/dotGitHub/actions.js +0 -32
- package/lib/steps/writing/creation/dotGitHub/actions.js.map +0 -1
- package/lib/steps/writing/creation/dotGitHub/createDevelopment/index.d.ts +0 -7
- package/lib/steps/writing/creation/dotGitHub/createDevelopment/index.js +0 -154
- package/lib/steps/writing/creation/dotGitHub/createDevelopment/index.js.map +0 -1
- package/lib/steps/writing/creation/dotGitHub/createDevelopment/splitIntoSections.d.ts +0 -3
- package/lib/steps/writing/creation/dotGitHub/createDevelopment/splitIntoSections.js +0 -24
- package/lib/steps/writing/creation/dotGitHub/createDevelopment/splitIntoSections.js.map +0 -1
- package/lib/steps/writing/creation/dotGitHub/createDotGitHubFiles.d.ts +0 -16
- package/lib/steps/writing/creation/dotGitHub/createDotGitHubFiles.js +0 -292
- package/lib/steps/writing/creation/dotGitHub/createDotGitHubFiles.js.map +0 -1
- package/lib/steps/writing/creation/dotGitHub/createMultiWorkflowFile.js.map +0 -1
- package/lib/steps/writing/creation/dotGitHub/createSoloWorkflowFile.js.map +0 -1
- package/lib/steps/writing/creation/dotGitHub/createWorkflows.d.ts +0 -15
- package/lib/steps/writing/creation/dotGitHub/createWorkflows.js +0 -236
- package/lib/steps/writing/creation/dotGitHub/createWorkflows.js.map +0 -1
- package/lib/steps/writing/creation/dotGitHub/formatWorkflowYaml.js.map +0 -1
- package/lib/steps/writing/creation/dotGitHub/index.d.ts +0 -36
- package/lib/steps/writing/creation/dotGitHub/index.js +0 -16
- package/lib/steps/writing/creation/dotGitHub/index.js.map +0 -1
- package/lib/steps/writing/creation/dotGitHub/issueTemplate.d.ts +0 -12
- package/lib/steps/writing/creation/dotGitHub/issueTemplate.js +0 -198
- package/lib/steps/writing/creation/dotGitHub/issueTemplate.js.map +0 -1
- package/lib/steps/writing/creation/dotHusky.d.ts +0 -6
- package/lib/steps/writing/creation/dotHusky.js +0 -11
- package/lib/steps/writing/creation/dotHusky.js.map +0 -1
- package/lib/steps/writing/creation/dotVSCode.d.ts +0 -12
- package/lib/steps/writing/creation/dotVSCode.js +0 -79
- package/lib/steps/writing/creation/dotVSCode.js.map +0 -1
- package/lib/steps/writing/creation/formatters/formatIgnoreFile.js.map +0 -1
- package/lib/steps/writing/creation/formatters/formatJson.d.ts +0 -3
- package/lib/steps/writing/creation/formatters/formatJson.js +0 -18
- package/lib/steps/writing/creation/formatters/formatJson.js.map +0 -1
- package/lib/steps/writing/creation/formatters/formatTypeScript.d.ts +0 -3
- package/lib/steps/writing/creation/formatters/formatTypeScript.js +0 -8
- package/lib/steps/writing/creation/formatters/formatTypeScript.js.map +0 -1
- package/lib/steps/writing/creation/formatters/formatYaml.js.map +0 -1
- package/lib/steps/writing/creation/index.d.ts +0 -9
- package/lib/steps/writing/creation/index.js +0 -78
- package/lib/steps/writing/creation/index.js.map +0 -1
- package/lib/steps/writing/creation/rootFiles.d.ts +0 -24
- package/lib/steps/writing/creation/rootFiles.js +0 -152
- package/lib/steps/writing/creation/rootFiles.js.map +0 -1
- package/lib/steps/writing/creation/src.d.ts +0 -12
- package/lib/steps/writing/creation/src.js +0 -90
- package/lib/steps/writing/creation/src.js.map +0 -1
- package/lib/steps/writing/creation/writeAllContributorsRC.d.ts +0 -7
- package/lib/steps/writing/creation/writeAllContributorsRC.js +0 -18
- package/lib/steps/writing/creation/writeAllContributorsRC.js.map +0 -1
- package/lib/steps/writing/creation/writePackageJson.d.ts +0 -7
- package/lib/steps/writing/creation/writePackageJson.js +0 -118
- package/lib/steps/writing/creation/writePackageJson.js.map +0 -1
- package/lib/steps/writing/types.d.ts +0 -5
- package/lib/steps/writing/types.js +0 -1
- package/lib/steps/writing/types.js.map +0 -1
- package/lib/steps/writing/writeStructure.d.ts +0 -7
- package/lib/steps/writing/writeStructure.js +0 -22
- package/lib/steps/writing/writeStructure.js.map +0 -1
- package/lib/steps/writing/writeStructureWorker.d.ts +0 -5
- package/lib/steps/writing/writeStructureWorker.js +0 -47
- package/lib/steps/writing/writeStructureWorker.js.map +0 -1
- /package/lib/{next/blocks → blocks}/blockESLintComments.js +0 -0
- /package/lib/{next/blocks → blocks}/blockESLintJSDoc.js +0 -0
- /package/lib/{next/blocks → blocks}/blockESLintJSONC.js +0 -0
- /package/lib/{next/blocks → blocks}/blockESLintMarkdown.js +0 -0
- /package/lib/{next/blocks → blocks}/blockESLintMoreStyling.js +0 -0
- /package/lib/{next/blocks → blocks}/blockESLintPackageJson.js +0 -0
- /package/lib/{next/blocks → blocks}/blockESLintPerfectionist.js +0 -0
- /package/lib/{next/blocks → blocks}/blockESLintRegexp.js +0 -0
- /package/lib/{next/blocks → blocks}/blockESLintYML.js +0 -0
- /package/lib/{next/blocks → blocks}/blockGitHubApps.js +0 -0
- /package/lib/{next/blocks → blocks}/blockGitHubPRTemplate.js +0 -0
- /package/lib/{next/blocks → blocks}/blockMITLicense.js +0 -0
- /package/lib/{next/blocks → blocks}/blockNvmrc.js +0 -0
- /package/lib/{next/blocks → blocks}/blockPnpmDedupe.js +0 -0
- /package/lib/{next/blocks → blocks}/blockPrettierPluginCurly.js +0 -0
- /package/lib/{next/blocks → blocks}/blockPrettierPluginPackageJson.js +0 -0
- /package/lib/{next/blocks → blocks}/blockPrettierPluginSh.js +0 -0
- /package/lib/{next/blocks → blocks}/blockRepositorySecrets.js +0 -0
- /package/lib/{next/blocks → blocks}/blockRepositorySettings.js +0 -0
- /package/lib/{next/blocks → blocks}/blockSecurityDocs.js +0 -0
- /package/lib/{next/blocks → blocks}/blockVSCode.js +0 -0
- /package/lib/{steps/writing/creation/dotGitHub → blocks/files}/createMultiWorkflowFile.d.ts +0 -0
- /package/lib/{steps/writing/creation/dotGitHub → blocks/files}/createSoloWorkflowFile.d.ts +0 -0
- /package/lib/{steps/writing/creation/formatters → blocks/files}/formatIgnoreFile.d.ts +0 -0
- /package/lib/{steps/writing/creation/formatters → blocks/files}/formatIgnoreFile.js +0 -0
- /package/lib/{steps/writing/creation/dotGitHub → blocks/files}/formatWorkflowYaml.d.ts +0 -0
- /package/lib/{steps/writing/creation/formatters → blocks/files}/formatYaml.d.ts +0 -0
- /package/lib/{next/blocks → blocks}/options.fakes.d.ts +0 -0
- /package/lib/{next/blocks → blocks}/options.fakes.js +0 -0
- /package/lib/{steps/initializeGitHubRepository → blocks}/outcomeLabels.d.ts +0 -0
- /package/lib/{next/blocks → blocks}/phases.d.ts +0 -0
- /package/lib/{next/blocks → blocks}/phases.js +0 -0
- /package/lib/{shared/options/createOptionDefaults → options}/getUsageFromReadme.d.ts +0 -0
- /package/lib/{shared/options/createOptionDefaults → options}/getUsageFromReadme.js +0 -0
- /package/lib/{shared/options/createOptionDefaults → options}/parsePackageAuthor.js +0 -0
- /package/lib/{next → options}/readDescriptionFromReadme.d.ts +0 -0
- /package/lib/{next → options}/readDescriptionFromReadme.js +0 -0
- /package/lib/{shared/options/createOptionDefaults → options}/readEmails.d.ts +0 -0
- /package/lib/{shared → options}/readFileAsJson.d.ts +0 -0
- /package/lib/{shared → options}/readFileAsJson.js +0 -0
- /package/lib/{shared → options}/readFileSafe.d.ts +0 -0
- /package/lib/{shared → options}/readFileSafe.js +0 -0
- /package/lib/{shared/options/createOptionDefaults → options}/readFunding.d.ts +0 -0
- /package/lib/{shared/options/createOptionDefaults → options}/readGitHubEmail.d.ts +0 -0
- /package/lib/{shared/options/createOptionDefaults → options}/readGuide.d.ts +0 -0
- /package/lib/{shared/options → options}/readLogoSizing.d.ts +0 -0
- /package/lib/{next/utils → utils}/resolveBin.d.ts +0 -0
- /package/lib/{next/utils → utils}/resolveBin.js +0 -0
- /package/lib/{next/utils → utils}/sortObject.d.ts +0 -0
- /package/lib/{next/utils → utils}/sortObject.js +0 -0
- /package/lib/{next/utils → utils}/swallowError.d.ts +0 -0
- /package/lib/{next/utils → utils}/swallowError.js +0 -0
- /package/lib/{shared → utils}/tryCatchAsync.d.ts +0 -0
- /package/lib/{shared → utils}/tryCatchAsync.js +0 -0
- /package/lib/{shared → utils}/tryCatchLazyValueAsync.d.ts +0 -0
- /package/lib/{shared → utils}/tryCatchLazyValueAsync.js +0 -0
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockAllContributors:
|
|
3
|
+
declare const blockAllContributors: bingo_stratum.BlockWithoutAddons<{
|
|
4
|
+
owner: string;
|
|
5
|
+
repository: string;
|
|
4
6
|
description: string;
|
|
5
|
-
access: "public" | "restricted";
|
|
6
|
-
directory: string;
|
|
7
7
|
email: {
|
|
8
8
|
github: string;
|
|
9
9
|
npm: string;
|
|
10
10
|
};
|
|
11
11
|
title: string;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
access: "public" | "restricted";
|
|
13
|
+
directory: string;
|
|
14
14
|
author?: string | undefined;
|
|
15
|
+
version?: string | undefined;
|
|
15
16
|
bin?: string | undefined;
|
|
16
17
|
contributors?: {
|
|
17
18
|
name: string;
|
|
@@ -21,12 +22,12 @@ declare const blockAllContributors: create.BlockWithoutAddons<{
|
|
|
21
22
|
profile: string;
|
|
22
23
|
}[] | undefined;
|
|
23
24
|
documentation?: string | undefined;
|
|
25
|
+
explainer?: string[] | undefined;
|
|
24
26
|
funding?: string | undefined;
|
|
25
27
|
guide?: {
|
|
26
|
-
href: string;
|
|
27
28
|
title: string;
|
|
29
|
+
href: string;
|
|
28
30
|
} | undefined;
|
|
29
|
-
hideTemplatedBy?: boolean | undefined;
|
|
30
31
|
keywords?: string[] | undefined;
|
|
31
32
|
logo?: {
|
|
32
33
|
alt: string;
|
|
@@ -43,8 +44,8 @@ declare const blockAllContributors: create.BlockWithoutAddons<{
|
|
|
43
44
|
devDependencies?: Record<string, string> | undefined;
|
|
44
45
|
scripts?: Record<string, string> | undefined;
|
|
45
46
|
} | undefined;
|
|
47
|
+
rulesetId?: string | undefined;
|
|
46
48
|
usage?: string | undefined;
|
|
47
|
-
version?: string | undefined;
|
|
48
49
|
}>;
|
|
49
50
|
|
|
50
51
|
export { blockAllContributors };
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import _ from "lodash";
|
|
2
|
+
import { base } from "../base.js";
|
|
3
|
+
import { blockREADME } from "./blockREADME.js";
|
|
4
|
+
import { blockRepositorySecrets } from "./blockRepositorySecrets.js";
|
|
5
|
+
import { createSoloWorkflowFile } from "./files/createSoloWorkflowFile.js";
|
|
6
|
+
import { CommandPhase } from "./phases.js";
|
|
7
|
+
const blockAllContributors = base.createBlock({
|
|
8
|
+
about: {
|
|
9
|
+
name: "AllContributors"
|
|
10
|
+
},
|
|
11
|
+
produce({ options }) {
|
|
12
|
+
const contributions = options.contributors?.length;
|
|
13
|
+
return {
|
|
14
|
+
addons: [
|
|
15
|
+
blockREADME({
|
|
16
|
+
badges: [
|
|
17
|
+
`<!-- prettier-ignore-start -->
|
|
18
|
+
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
19
|
+
<a href="#contributors" target="_blank"><img alt="\u{1F46A} All Contributors: ${contributions}" src="https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-${contributions}-21bb42.svg" /></a>
|
|
20
|
+
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
21
|
+
<!-- prettier-ignore-end -->`
|
|
22
|
+
],
|
|
23
|
+
sections: options.contributors ? [printAllContributorsTable(options.contributors)] : void 0
|
|
24
|
+
}),
|
|
25
|
+
blockRepositorySecrets({
|
|
26
|
+
secrets: [
|
|
27
|
+
{
|
|
28
|
+
description: "a GitHub PAT with repo and workflow permissions",
|
|
29
|
+
name: "ACCESS_TOKEN"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
})
|
|
33
|
+
],
|
|
34
|
+
files: {
|
|
35
|
+
".all-contributorsrc": JSON.stringify({
|
|
36
|
+
badgeTemplate: ' <a href="#contributors" target="_blank"><img alt="\u{1F46A} All Contributors: <%= contributors.length %>" src="https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-<%= contributors.length %>-21bb42.svg" /></a>',
|
|
37
|
+
contributors: options.contributors ?? [],
|
|
38
|
+
contributorsSortAlphabetically: true,
|
|
39
|
+
projectName: options.repository,
|
|
40
|
+
projectOwner: options.owner
|
|
41
|
+
}),
|
|
42
|
+
".github": {
|
|
43
|
+
workflows: {
|
|
44
|
+
"contributors.yml": createSoloWorkflowFile({
|
|
45
|
+
name: "Contributors",
|
|
46
|
+
on: {
|
|
47
|
+
push: {
|
|
48
|
+
branches: ["main"]
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
steps: [
|
|
52
|
+
{ uses: "actions/checkout@v4", with: { "fetch-depth": 0 } },
|
|
53
|
+
{ uses: "./.github/actions/prepare" },
|
|
54
|
+
{
|
|
55
|
+
env: { GITHUB_TOKEN: "${{ secrets.ACCESS_TOKEN }}" },
|
|
56
|
+
uses: `JoshuaKGoldberg/all-contributors-auto-action@v0.5.0`
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
})
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
scripts: [
|
|
64
|
+
{
|
|
65
|
+
commands: [
|
|
66
|
+
`pnpx all-contributors-cli add ${options.owner} code,content,doc,ideas,infra,maintenance,projectManagement,tool`
|
|
67
|
+
],
|
|
68
|
+
phase: CommandPhase.Process
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
function printAllContributorsTable(contributors) {
|
|
75
|
+
return [
|
|
76
|
+
`## Contributors`,
|
|
77
|
+
``,
|
|
78
|
+
`<!-- spellchecker: disable -->`,
|
|
79
|
+
`<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->`,
|
|
80
|
+
`<!-- prettier-ignore-start -->`,
|
|
81
|
+
`<!-- markdownlint-disable -->`,
|
|
82
|
+
`<table>`,
|
|
83
|
+
` <tbody>`,
|
|
84
|
+
` <tr>`,
|
|
85
|
+
// This intentionally uses the same sort as all-contributors-cli:
|
|
86
|
+
// https://github.com/all-contributors/cli/blob/74bc388bd6f0ae2658e6495e9d3781d737438a97/src/generate/index.js#L76
|
|
87
|
+
..._.sortBy(contributors, "name").flatMap((contributor, i) => {
|
|
88
|
+
const row = printContributorCell(contributor);
|
|
89
|
+
return i && i % 7 === 0 ? [` </tr>`, ` <tr>`, row] : [row];
|
|
90
|
+
}),
|
|
91
|
+
` </tr>`,
|
|
92
|
+
` </tbody>`,
|
|
93
|
+
`</table>`,
|
|
94
|
+
``,
|
|
95
|
+
`<!-- markdownlint-restore -->`,
|
|
96
|
+
`<!-- prettier-ignore-end -->`,
|
|
97
|
+
``,
|
|
98
|
+
`<!-- ALL-CONTRIBUTORS-LIST:END -->`,
|
|
99
|
+
`<!-- spellchecker: enable -->`
|
|
100
|
+
].join("\n");
|
|
101
|
+
}
|
|
102
|
+
function printContributorCell(contributor) {
|
|
103
|
+
return [
|
|
104
|
+
` <td align="center" valign="top" width="14.28%">`,
|
|
105
|
+
`<a href="${contributor.profile}">`,
|
|
106
|
+
`<img src="${contributor.avatar_url}?s=100" width="100px;" alt="${contributor.name}"/>`,
|
|
107
|
+
`<br />`,
|
|
108
|
+
`<sub><b>${contributor.name}</b></sub></a><br />`,
|
|
109
|
+
contributor.contributions.map((contribution) => {
|
|
110
|
+
switch (contribution) {
|
|
111
|
+
case "bug":
|
|
112
|
+
return `<a href="https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=author%3A${contributor.login}" title="Bug reports">\u{1F41B}</a>`;
|
|
113
|
+
case "code":
|
|
114
|
+
return `<a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=${contributor.login}" title="Code">\u{1F4BB}</a>`;
|
|
115
|
+
case "design":
|
|
116
|
+
return `<a href="#design-${contributor.login}" title="Design">\u{1F3A8}</a>`;
|
|
117
|
+
case "doc":
|
|
118
|
+
return `<a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=${contributor.login}" title="Documentation">\u{1F4D6}</a>`;
|
|
119
|
+
case "ideas":
|
|
120
|
+
return `<a href="#ideas-${contributor.login}" title="Ideas, Planning, & Feedback">\u{1F914}</a>`;
|
|
121
|
+
case "infra":
|
|
122
|
+
return `<a href="#infra-${contributor.login}" title="Infrastructure (Hosting, Build-Tools, etc)">\u{1F687}</a>`;
|
|
123
|
+
case "maintenance":
|
|
124
|
+
return `<a href="#maintenance-${contributor.login}" title="Maintenance">\u{1F6A7}</a>`;
|
|
125
|
+
case "review":
|
|
126
|
+
return `<a href="https://github.com/JoshuaKGoldberg/create-typescript-app/pulls?q=is%3Apr+reviewed-by%3A${contributor.login}" title="Reviewed Pull Requests">\u{1F440}</a>`;
|
|
127
|
+
case "test":
|
|
128
|
+
return `<a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=${contributor.login}" title="Tests">\u26A0\uFE0F</a>`;
|
|
129
|
+
case "tool":
|
|
130
|
+
return `<a href="#tool-${contributor.login}" title="Tools">\u{1F527}</a>`;
|
|
131
|
+
}
|
|
132
|
+
}).join(" "),
|
|
133
|
+
`</td>`
|
|
134
|
+
].join("");
|
|
135
|
+
}
|
|
136
|
+
export {
|
|
137
|
+
blockAllContributors
|
|
138
|
+
};
|
|
139
|
+
//# sourceMappingURL=blockAllContributors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/blocks/blockAllContributors.ts"],"sourcesContent":["import _ from \"lodash\";\n\nimport { base, Contributor } from \"../base.js\";\nimport { blockREADME } from \"./blockREADME.js\";\nimport { blockRepositorySecrets } from \"./blockRepositorySecrets.js\";\nimport { createSoloWorkflowFile } from \"./files/createSoloWorkflowFile.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockAllContributors = base.createBlock({\n\tabout: {\n\t\tname: \"AllContributors\",\n\t},\n\tproduce({ options }) {\n\t\tconst contributions = options.contributors?.length;\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockREADME({\n\t\t\t\t\tbadges: [\n\t\t\t\t\t\t`<!-- prettier-ignore-start -->\n\\t<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n\\t<a href=\"#contributors\" target=\"_blank\"><img alt=\"👪 All Contributors: ${contributions}\" src=\"https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-${contributions}-21bb42.svg\" /></a>\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n\\t<!-- prettier-ignore-end -->`,\n\t\t\t\t\t],\n\t\t\t\t\tsections: options.contributors\n\t\t\t\t\t\t? [printAllContributorsTable(options.contributors)]\n\t\t\t\t\t\t: undefined,\n\t\t\t\t}),\n\t\t\t\tblockRepositorySecrets({\n\t\t\t\t\tsecrets: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdescription: \"a GitHub PAT with repo and workflow permissions\",\n\t\t\t\t\t\t\tname: \"ACCESS_TOKEN\",\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\".all-contributorsrc\": JSON.stringify({\n\t\t\t\t\tbadgeTemplate:\n\t\t\t\t\t\t'\t<a href=\"#contributors\" target=\"_blank\"><img alt=\"👪 All Contributors: <%= contributors.length %>\" src=\"https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-<%= contributors.length %>-21bb42.svg\" /></a>',\n\t\t\t\t\tcontributors: options.contributors ?? [],\n\t\t\t\t\tcontributorsSortAlphabetically: true,\n\t\t\t\t\tprojectName: options.repository,\n\t\t\t\t\tprojectOwner: options.owner,\n\t\t\t\t}),\n\t\t\t\t\".github\": {\n\t\t\t\t\tworkflows: {\n\t\t\t\t\t\t\"contributors.yml\": createSoloWorkflowFile({\n\t\t\t\t\t\t\tname: \"Contributors\",\n\t\t\t\t\t\t\ton: {\n\t\t\t\t\t\t\t\tpush: {\n\t\t\t\t\t\t\t\t\tbranches: [\"main\"],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t{ uses: \"actions/checkout@v4\", with: { \"fetch-depth\": 0 } },\n\t\t\t\t\t\t\t\t{ uses: \"./.github/actions/prepare\" },\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tenv: { GITHUB_TOKEN: \"${{ secrets.ACCESS_TOKEN }}\" },\n\t\t\t\t\t\t\t\t\tuses: `JoshuaKGoldberg/all-contributors-auto-action@v0.5.0`,\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\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\n\t\t\t\t\t\t`pnpx all-contributors-cli add ${options.owner} code,content,doc,ideas,infra,maintenance,projectManagement,tool`,\n\t\t\t\t\t],\n\t\t\t\t\tphase: CommandPhase.Process,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n});\n\nfunction printAllContributorsTable(contributors: Contributor[]) {\n\treturn [\n\t\t`## Contributors`,\n\t\t``,\n\t\t`<!-- spellchecker: disable -->`,\n\t\t`<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->`,\n\t\t`<!-- prettier-ignore-start -->`,\n\t\t`<!-- markdownlint-disable -->`,\n\t\t`<table>`,\n\t\t` <tbody>`,\n\t\t` <tr>`,\n\t\t// This intentionally uses the same sort as all-contributors-cli:\n\t\t// https://github.com/all-contributors/cli/blob/74bc388bd6f0ae2658e6495e9d3781d737438a97/src/generate/index.js#L76\n\t\t..._.sortBy(contributors, \"name\").flatMap((contributor, i) => {\n\t\t\tconst row = printContributorCell(contributor);\n\n\t\t\treturn i && i % 7 === 0 ? [` </tr>`, ` <tr>`, row] : [row];\n\t\t}),\n\t\t` </tr>`,\n\t\t` </tbody>`,\n\t\t`</table>`,\n\t\t``,\n\t\t`<!-- markdownlint-restore -->`,\n\t\t`<!-- prettier-ignore-end -->`,\n\t\t``,\n\t\t`<!-- ALL-CONTRIBUTORS-LIST:END -->`,\n\t\t`<!-- spellchecker: enable -->`,\n\t].join(\"\\n\");\n}\n\nfunction printContributorCell(contributor: Contributor) {\n\treturn [\n\t\t` <td align=\"center\" valign=\"top\" width=\"14.28%\">`,\n\t\t`<a href=\"${contributor.profile}\">`,\n\t\t`<img src=\"${contributor.avatar_url}?s=100\" width=\"100px;\" alt=\"${contributor.name}\"/>`,\n\t\t`<br />`,\n\t\t`<sub><b>${contributor.name}</b></sub></a><br />`,\n\t\tcontributor.contributions\n\t\t\t.map((contribution) => {\n\t\t\t\tswitch (contribution) {\n\t\t\t\t\tcase \"bug\":\n\t\t\t\t\t\treturn `<a href=\"https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=author%3A${contributor.login}\" title=\"Bug reports\">🐛</a>`;\n\t\t\t\t\tcase \"code\":\n\t\t\t\t\t\treturn `<a href=\"https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=${contributor.login}\" title=\"Code\">💻</a>`;\n\t\t\t\t\tcase \"design\":\n\t\t\t\t\t\treturn `<a href=\"#design-${contributor.login}\" title=\"Design\">🎨</a>`;\n\t\t\t\t\tcase \"doc\":\n\t\t\t\t\t\treturn `<a href=\"https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=${contributor.login}\" title=\"Documentation\">📖</a>`;\n\t\t\t\t\tcase \"ideas\":\n\t\t\t\t\t\treturn `<a href=\"#ideas-${contributor.login}\" title=\"Ideas, Planning, & Feedback\">🤔</a>`;\n\t\t\t\t\tcase \"infra\":\n\t\t\t\t\t\treturn `<a href=\"#infra-${contributor.login}\" title=\"Infrastructure (Hosting, Build-Tools, etc)\">🚇</a>`;\n\t\t\t\t\tcase \"maintenance\":\n\t\t\t\t\t\treturn `<a href=\"#maintenance-${contributor.login}\" title=\"Maintenance\">🚧</a>`;\n\t\t\t\t\tcase \"review\":\n\t\t\t\t\t\treturn `<a href=\"https://github.com/JoshuaKGoldberg/create-typescript-app/pulls?q=is%3Apr+reviewed-by%3A${contributor.login}\" title=\"Reviewed Pull Requests\">👀</a>`;\n\t\t\t\t\tcase \"test\":\n\t\t\t\t\t\treturn `<a href=\"https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=${contributor.login}\" title=\"Tests\">⚠️</a>`;\n\t\t\t\t\tcase \"tool\":\n\t\t\t\t\t\treturn `<a href=\"#tool-${contributor.login}\" title=\"Tools\">🔧</a>`;\n\t\t\t\t}\n\t\t\t})\n\t\t\t.join(\" \"),\n\t\t`</td>`,\n\t].join(\"\");\n}\n"],"mappings":"AAAA,OAAO,OAAO;AAEd,SAAS,YAAyB;AAClC,SAAS,mBAAmB;AAC5B,SAAS,8BAA8B;AACvC,SAAS,8BAA8B;AACvC,SAAS,oBAAoB;AAEtB,MAAM,uBAAuB,KAAK,YAAY;AAAA,EACpD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ,EAAE,QAAQ,GAAG;AACpB,UAAM,gBAAgB,QAAQ,cAAc;AAC5C,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,YAAY;AAAA,UACX,QAAQ;AAAA,YACP;AAAA;AAAA,iFAEqE,aAAa,qEAAqE,aAAa;AAAA;AAAA;AAAA,UAGrK;AAAA,UACA,UAAU,QAAQ,eACf,CAAC,0BAA0B,QAAQ,YAAY,CAAC,IAChD;AAAA,QACJ,CAAC;AAAA,QACD,uBAAuB;AAAA,UACtB,SAAS;AAAA,YACR;AAAA,cACC,aAAa;AAAA,cACb,MAAM;AAAA,YACP;AAAA,UACD;AAAA,QACD,CAAC;AAAA,MACF;AAAA,MACA,OAAO;AAAA,QACN,uBAAuB,KAAK,UAAU;AAAA,UACrC,eACC;AAAA,UACD,cAAc,QAAQ,gBAAgB,CAAC;AAAA,UACvC,gCAAgC;AAAA,UAChC,aAAa,QAAQ;AAAA,UACrB,cAAc,QAAQ;AAAA,QACvB,CAAC;AAAA,QACD,WAAW;AAAA,UACV,WAAW;AAAA,YACV,oBAAoB,uBAAuB;AAAA,cAC1C,MAAM;AAAA,cACN,IAAI;AAAA,gBACH,MAAM;AAAA,kBACL,UAAU,CAAC,MAAM;AAAA,gBAClB;AAAA,cACD;AAAA,cACA,OAAO;AAAA,gBACN,EAAE,MAAM,uBAAuB,MAAM,EAAE,eAAe,EAAE,EAAE;AAAA,gBAC1D,EAAE,MAAM,4BAA4B;AAAA,gBACpC;AAAA,kBACC,KAAK,EAAE,cAAc,8BAA8B;AAAA,kBACnD,MAAM;AAAA,gBACP;AAAA,cACD;AAAA,YACD,CAAC;AAAA,UACF;AAAA,QACD;AAAA,MACD;AAAA,MACA,SAAS;AAAA,QACR;AAAA,UACC,UAAU;AAAA,YACT,iCAAiC,QAAQ,KAAK;AAAA,UAC/C;AAAA,UACA,OAAO,aAAa;AAAA,QACrB;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD,CAAC;AAED,SAAS,0BAA0B,cAA6B;AAC/D,SAAO;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAAA;AAAA,IAGA,GAAG,EAAE,OAAO,cAAc,MAAM,EAAE,QAAQ,CAAC,aAAa,MAAM;AAC7D,YAAM,MAAM,qBAAqB,WAAW;AAE5C,aAAO,KAAK,IAAI,MAAM,IAAI,CAAC,aAAa,YAAY,GAAG,IAAI,CAAC,GAAG;AAAA,IAChE,CAAC;AAAA,IACD;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD,EAAE,KAAK,IAAI;AACZ;AAEA,SAAS,qBAAqB,aAA0B;AACvD,SAAO;AAAA,IACN;AAAA,IACA,YAAY,YAAY,OAAO;AAAA,IAC/B,aAAa,YAAY,UAAU,+BAA+B,YAAY,IAAI;AAAA,IAClF;AAAA,IACA,WAAW,YAAY,IAAI;AAAA,IAC3B,YAAY,cACV,IAAI,CAAC,iBAAiB;AACtB,cAAQ,cAAc;AAAA,QACrB,KAAK;AACJ,iBAAO,uFAAuF,YAAY,KAAK;AAAA,QAChH,KAAK;AACJ,iBAAO,oFAAoF,YAAY,KAAK;AAAA,QAC7G,KAAK;AACJ,iBAAO,oBAAoB,YAAY,KAAK;AAAA,QAC7C,KAAK;AACJ,iBAAO,oFAAoF,YAAY,KAAK;AAAA,QAC7G,KAAK;AACJ,iBAAO,mBAAmB,YAAY,KAAK;AAAA,QAC5C,KAAK;AACJ,iBAAO,mBAAmB,YAAY,KAAK;AAAA,QAC5C,KAAK;AACJ,iBAAO,yBAAyB,YAAY,KAAK;AAAA,QAClD,KAAK;AACJ,iBAAO,mGAAmG,YAAY,KAAK;AAAA,QAC5H,KAAK;AACJ,iBAAO,oFAAoF,YAAY,KAAK;AAAA,QAC7G,KAAK;AACJ,iBAAO,kBAAkB,YAAY,KAAK;AAAA,MAC5C;AAAA,IACD,CAAC,EACA,KAAK,GAAG;AAAA,IACV;AAAA,EACD,EAAE,KAAK,EAAE;AACV;","names":[]}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockAreTheTypesWrong:
|
|
3
|
+
declare const blockAreTheTypesWrong: bingo_stratum.BlockWithoutAddons<{
|
|
4
|
+
owner: string;
|
|
5
|
+
repository: string;
|
|
4
6
|
description: string;
|
|
5
|
-
access: "public" | "restricted";
|
|
6
|
-
directory: string;
|
|
7
7
|
email: {
|
|
8
8
|
github: string;
|
|
9
9
|
npm: string;
|
|
10
10
|
};
|
|
11
11
|
title: string;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
access: "public" | "restricted";
|
|
13
|
+
directory: string;
|
|
14
14
|
author?: string | undefined;
|
|
15
|
+
version?: string | undefined;
|
|
15
16
|
bin?: string | undefined;
|
|
16
17
|
contributors?: {
|
|
17
18
|
name: string;
|
|
@@ -21,12 +22,12 @@ declare const blockAreTheTypesWrong: create.BlockWithoutAddons<{
|
|
|
21
22
|
profile: string;
|
|
22
23
|
}[] | undefined;
|
|
23
24
|
documentation?: string | undefined;
|
|
25
|
+
explainer?: string[] | undefined;
|
|
24
26
|
funding?: string | undefined;
|
|
25
27
|
guide?: {
|
|
26
|
-
href: string;
|
|
27
28
|
title: string;
|
|
29
|
+
href: string;
|
|
28
30
|
} | undefined;
|
|
29
|
-
hideTemplatedBy?: boolean | undefined;
|
|
30
31
|
keywords?: string[] | undefined;
|
|
31
32
|
logo?: {
|
|
32
33
|
alt: string;
|
|
@@ -43,8 +44,8 @@ declare const blockAreTheTypesWrong: create.BlockWithoutAddons<{
|
|
|
43
44
|
devDependencies?: Record<string, string> | undefined;
|
|
44
45
|
scripts?: Record<string, string> | undefined;
|
|
45
46
|
} | undefined;
|
|
47
|
+
rulesetId?: string | undefined;
|
|
46
48
|
usage?: string | undefined;
|
|
47
|
-
version?: string | undefined;
|
|
48
49
|
}>;
|
|
49
50
|
|
|
50
51
|
export { blockAreTheTypesWrong };
|
|
@@ -2,7 +2,7 @@ import { base } from "../base.js";
|
|
|
2
2
|
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.js";
|
|
3
3
|
const blockAreTheTypesWrong = base.createBlock({
|
|
4
4
|
about: {
|
|
5
|
-
name: "
|
|
5
|
+
name: "Are The Types Wrong"
|
|
6
6
|
},
|
|
7
7
|
produce() {
|
|
8
8
|
return {
|
|
@@ -12,6 +12,7 @@ const blockAreTheTypesWrong = base.createBlock({
|
|
|
12
12
|
{
|
|
13
13
|
name: "Are The Types Wrong?",
|
|
14
14
|
steps: [
|
|
15
|
+
{ run: "pnpm build" },
|
|
15
16
|
{
|
|
16
17
|
run: "npx --yes @arethetypeswrong/cli --pack . --ignore-rules cjs-resolves-to-esm"
|
|
17
18
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/blocks/blockAreTheTypesWrong.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\n\nexport const blockAreTheTypesWrong = base.createBlock({\n\tabout: {\n\t\tname: \"Are The Types Wrong\",\n\t},\n\tproduce() {\n\t\treturn {\n\t\t\taddons: [\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: \"Are The Types Wrong?\",\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t{ run: \"pnpm build\" },\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\trun: \"npx --yes @arethetypeswrong/cli --pack . --ignore-rules cjs-resolves-to-esm\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,YAAY;AACrB,SAAS,4BAA4B;AAE9B,MAAM,wBAAwB,KAAK,YAAY;AAAA,EACrD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AACT,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,qBAAqB;AAAA,UACpB,MAAM;AAAA,YACL;AAAA,cACC,MAAM;AAAA,cACN,OAAO;AAAA,gBACN,EAAE,KAAK,aAAa;AAAA,gBACpB;AAAA,kBACC,KAAK;AAAA,gBACN;AAAA,cACD;AAAA,YACD;AAAA,UACD;AAAA,QACD,CAAC;AAAA,MACF;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockCSpell:
|
|
3
|
+
declare const blockCSpell: bingo_stratum.BlockWithAddons<{
|
|
4
4
|
ignores: string[];
|
|
5
5
|
words: string[];
|
|
6
6
|
}, {
|
|
7
|
+
owner: string;
|
|
8
|
+
repository: string;
|
|
7
9
|
description: string;
|
|
8
|
-
access: "public" | "restricted";
|
|
9
|
-
directory: string;
|
|
10
10
|
email: {
|
|
11
11
|
github: string;
|
|
12
12
|
npm: string;
|
|
13
13
|
};
|
|
14
14
|
title: string;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
access: "public" | "restricted";
|
|
16
|
+
directory: string;
|
|
17
17
|
author?: string | undefined;
|
|
18
|
+
version?: string | undefined;
|
|
18
19
|
bin?: string | undefined;
|
|
19
20
|
contributors?: {
|
|
20
21
|
name: string;
|
|
@@ -24,12 +25,12 @@ declare const blockCSpell: create.BlockWithAddons<{
|
|
|
24
25
|
profile: string;
|
|
25
26
|
}[] | undefined;
|
|
26
27
|
documentation?: string | undefined;
|
|
28
|
+
explainer?: string[] | undefined;
|
|
27
29
|
funding?: string | undefined;
|
|
28
30
|
guide?: {
|
|
29
|
-
href: string;
|
|
30
31
|
title: string;
|
|
32
|
+
href: string;
|
|
31
33
|
} | undefined;
|
|
32
|
-
hideTemplatedBy?: boolean | undefined;
|
|
33
34
|
keywords?: string[] | undefined;
|
|
34
35
|
logo?: {
|
|
35
36
|
alt: string;
|
|
@@ -46,8 +47,8 @@ declare const blockCSpell: create.BlockWithAddons<{
|
|
|
46
47
|
devDependencies?: Record<string, string> | undefined;
|
|
47
48
|
scripts?: Record<string, string> | undefined;
|
|
48
49
|
} | undefined;
|
|
50
|
+
rulesetId?: string | undefined;
|
|
49
51
|
usage?: string | undefined;
|
|
50
|
-
version?: string | undefined;
|
|
51
52
|
}>;
|
|
52
53
|
|
|
53
54
|
export { blockCSpell };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { getObjectStringsDeep } from "object-strings-deep";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { base } from "../base.js";
|
|
4
|
+
import { getPackageDependencies } from "../data/packageData.js";
|
|
4
5
|
import { resolveBin } from "../utils/resolveBin.js";
|
|
5
6
|
import { blockDevelopmentDocs } from "./blockDevelopmentDocs.js";
|
|
6
7
|
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.js";
|
|
7
8
|
import { blockPackageJson } from "./blockPackageJson.js";
|
|
8
9
|
import { blockVSCode } from "./blockVSCode.js";
|
|
9
|
-
import { getPackageDependencies } from "./packageData.js";
|
|
10
10
|
import { CommandPhase } from "./phases.js";
|
|
11
11
|
const filesGlob = `"**" ".github/**/*"`;
|
|
12
12
|
const blockCSpell = base.createBlock({
|
|
@@ -17,19 +17,6 @@ const blockCSpell = base.createBlock({
|
|
|
17
17
|
ignores: z.array(z.string()).default([]),
|
|
18
18
|
words: z.array(z.string()).default([])
|
|
19
19
|
},
|
|
20
|
-
initialize({ options }) {
|
|
21
|
-
const wordArgs = getObjectStringsDeep(options).map((word) => `--words "${word.replaceAll(`"`, " ")}"`).join(" ");
|
|
22
|
-
return {
|
|
23
|
-
scripts: [
|
|
24
|
-
{
|
|
25
|
-
commands: [
|
|
26
|
-
`node ${resolveBin("cspell-populate-words/bin/index.mjs")} ${wordArgs}`
|
|
27
|
-
],
|
|
28
|
-
phase: CommandPhase.Process
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
};
|
|
32
|
-
},
|
|
33
20
|
produce({ addons }) {
|
|
34
21
|
const { ignores, words } = addons;
|
|
35
22
|
return {
|
|
@@ -80,6 +67,19 @@ const blockCSpell = base.createBlock({
|
|
|
80
67
|
})
|
|
81
68
|
}
|
|
82
69
|
};
|
|
70
|
+
},
|
|
71
|
+
setup({ options }) {
|
|
72
|
+
const wordArgs = getObjectStringsDeep(options).map((word) => `--words "${word.replaceAll(`"`, " ")}"`).join(" ");
|
|
73
|
+
return {
|
|
74
|
+
scripts: [
|
|
75
|
+
{
|
|
76
|
+
commands: [
|
|
77
|
+
`node ${resolveBin("cspell-populate-words/bin/index.mjs")} ${wordArgs}`
|
|
78
|
+
],
|
|
79
|
+
phase: CommandPhase.Process
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
};
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
export {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/blocks/blockCSpell.ts"],"sourcesContent":["import { getObjectStringsDeep } from \"object-strings-deep\";\nimport { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { resolveBin } from \"../utils/resolveBin.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockVSCode } from \"./blockVSCode.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nconst filesGlob = `\"**\" \".github/**/*\"`;\n\nexport const blockCSpell = base.createBlock({\n\tabout: {\n\t\tname: \"CSpell\",\n\t},\n\taddons: {\n\t\tignores: z.array(z.string()).default([]),\n\t\twords: z.array(z.string()).default([]),\n\t},\n\tproduce({ addons }) {\n\t\tconst { ignores, words } = addons;\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\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:spelling\\` ([cspell](https://cspell.org)): Spell checks across all source files`,\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\tblockVSCode({\n\t\t\t\t\textensions: [\"streetsidesoftware.code-spell-checker\"],\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 Spelling\",\n\t\t\t\t\t\t\tsteps: [{ run: \"pnpm lint:spelling\" }],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\"cspell\"),\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\t\"lint:spelling\": `cspell ${filesGlob}`,\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\"cspell.json\": JSON.stringify({\n\t\t\t\t\tdictionaries: [\"npm\", \"node\", \"typescript\"],\n\t\t\t\t\tignorePaths: [\n\t\t\t\t\t\t\".github\",\n\t\t\t\t\t\t\"CHANGELOG.md\",\n\t\t\t\t\t\t\"lib\",\n\t\t\t\t\t\t\"node_modules\",\n\t\t\t\t\t\t\"pnpm-lock.yaml\",\n\t\t\t\t\t\t...ignores,\n\t\t\t\t\t].sort(),\n\t\t\t\t\t...(words.length && { words: words.sort() }),\n\t\t\t\t}),\n\t\t\t},\n\t\t};\n\t},\n\tsetup({ options }) {\n\t\tconst wordArgs = getObjectStringsDeep(options)\n\t\t\t.map((word) => `--words \"${word.replaceAll(`\"`, \" \")}\"`)\n\t\t\t.join(\" \");\n\n\t\treturn {\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\n\t\t\t\t\t\t`node ${resolveBin(\"cspell-populate-words/bin/index.mjs\")} ${wordArgs}`,\n\t\t\t\t\t],\n\t\t\t\t\tphase: CommandPhase.Process,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,4BAA4B;AACrC,SAAS,SAAS;AAElB,SAAS,YAAY;AACrB,SAAS,8BAA8B;AACvC,SAAS,kBAAkB;AAC3B,SAAS,4BAA4B;AACrC,SAAS,4BAA4B;AACrC,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAE7B,MAAM,YAAY;AAEX,MAAM,cAAc,KAAK,YAAY;AAAA,EAC3C,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC;AAAA,IACvC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC;AAAA,EACtC;AAAA,EACA,QAAQ,EAAE,OAAO,GAAG;AACnB,UAAM,EAAE,SAAS,MAAM,IAAI;AAE3B,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,qBAAqB;AAAA,UACpB,UAAU;AAAA,YACT,SAAS;AAAA,cACR,UAAU;AAAA,gBACT,OAAO;AAAA,kBACN;AAAA,gBACD;AAAA,cACD;AAAA,YACD;AAAA,UACD;AAAA,QACD,CAAC;AAAA,QACD,YAAY;AAAA,UACX,YAAY,CAAC,uCAAuC;AAAA,QACrD,CAAC;AAAA,QACD,qBAAqB;AAAA,UACpB,MAAM;AAAA,YACL;AAAA,cACC,MAAM;AAAA,cACN,OAAO,CAAC,EAAE,KAAK,qBAAqB,CAAC;AAAA,YACtC;AAAA,UACD;AAAA,QACD,CAAC;AAAA,QACD,iBAAiB;AAAA,UAChB,YAAY;AAAA,YACX,iBAAiB,uBAAuB,QAAQ;AAAA,YAChD,SAAS;AAAA,cACR,iBAAiB,UAAU,SAAS;AAAA,YACrC;AAAA,UACD;AAAA,QACD,CAAC;AAAA,MACF;AAAA,MACA,OAAO;AAAA,QACN,eAAe,KAAK,UAAU;AAAA,UAC7B,cAAc,CAAC,OAAO,QAAQ,YAAY;AAAA,UAC1C,aAAa;AAAA,YACZ;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA,GAAG;AAAA,UACJ,EAAE,KAAK;AAAA,UACP,GAAI,MAAM,UAAU,EAAE,OAAO,MAAM,KAAK,EAAE;AAAA,QAC3C,CAAC;AAAA,MACF;AAAA,IACD;AAAA,EACD;AAAA,EACA,MAAM,EAAE,QAAQ,GAAG;AAClB,UAAM,WAAW,qBAAqB,OAAO,EAC3C,IAAI,CAAC,SAAS,YAAY,KAAK,WAAW,KAAK,GAAG,CAAC,GAAG,EACtD,KAAK,GAAG;AAEV,WAAO;AAAA,MACN,SAAS;AAAA,QACR;AAAA,UACC,UAAU;AAAA,YACT,QAAQ,WAAW,qCAAqC,CAAC,IAAI,QAAQ;AAAA,UACtE;AAAA,UACA,OAAO,aAAa;AAAA,QACrB;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
|
+
|
|
3
|
+
declare const blockCodecov: bingo_stratum.BlockWithAddons<{
|
|
4
|
+
env?: Record<string, string> | undefined;
|
|
5
|
+
}, {
|
|
6
|
+
owner: string;
|
|
7
|
+
repository: string;
|
|
8
|
+
description: string;
|
|
9
|
+
email: {
|
|
10
|
+
github: string;
|
|
11
|
+
npm: string;
|
|
12
|
+
};
|
|
13
|
+
title: string;
|
|
14
|
+
access: "public" | "restricted";
|
|
15
|
+
directory: string;
|
|
16
|
+
author?: string | undefined;
|
|
17
|
+
version?: string | undefined;
|
|
18
|
+
bin?: string | undefined;
|
|
19
|
+
contributors?: {
|
|
20
|
+
name: string;
|
|
21
|
+
avatar_url: string;
|
|
22
|
+
contributions: string[];
|
|
23
|
+
login: string;
|
|
24
|
+
profile: string;
|
|
25
|
+
}[] | undefined;
|
|
26
|
+
documentation?: string | undefined;
|
|
27
|
+
explainer?: string[] | undefined;
|
|
28
|
+
funding?: string | undefined;
|
|
29
|
+
guide?: {
|
|
30
|
+
title: string;
|
|
31
|
+
href: string;
|
|
32
|
+
} | undefined;
|
|
33
|
+
keywords?: string[] | undefined;
|
|
34
|
+
logo?: {
|
|
35
|
+
alt: string;
|
|
36
|
+
src: string;
|
|
37
|
+
height?: number | undefined;
|
|
38
|
+
width?: number | undefined;
|
|
39
|
+
} | undefined;
|
|
40
|
+
node?: {
|
|
41
|
+
minimum: string;
|
|
42
|
+
pinned?: string | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
packageData?: {
|
|
45
|
+
dependencies?: Record<string, string> | undefined;
|
|
46
|
+
devDependencies?: Record<string, string> | undefined;
|
|
47
|
+
scripts?: Record<string, string> | undefined;
|
|
48
|
+
} | undefined;
|
|
49
|
+
rulesetId?: string | undefined;
|
|
50
|
+
usage?: string | undefined;
|
|
51
|
+
}>;
|
|
52
|
+
|
|
53
|
+
export { blockCodecov };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { base } from "../base.js";
|
|
3
|
+
import { blockGitHubApps } from "./blockGitHubApps.js";
|
|
4
|
+
import { blockVitest } from "./blockVitest.js";
|
|
5
|
+
import { CommandPhase } from "./phases.js";
|
|
6
|
+
const blockCodecov = base.createBlock({
|
|
7
|
+
about: {
|
|
8
|
+
name: "Codecov"
|
|
9
|
+
},
|
|
10
|
+
addons: { env: z.record(z.string(), z.string()).optional() },
|
|
11
|
+
produce({ addons }) {
|
|
12
|
+
const { env } = addons;
|
|
13
|
+
return {
|
|
14
|
+
addons: [
|
|
15
|
+
blockGitHubApps({
|
|
16
|
+
apps: [
|
|
17
|
+
{
|
|
18
|
+
name: "Codecov",
|
|
19
|
+
url: "https://github.com/apps/codecov"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}),
|
|
23
|
+
blockVitest({
|
|
24
|
+
actionSteps: [
|
|
25
|
+
{
|
|
26
|
+
...env && { env },
|
|
27
|
+
if: "always()",
|
|
28
|
+
uses: "codecov/codecov-action@v3"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
})
|
|
32
|
+
]
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
transition() {
|
|
36
|
+
return {
|
|
37
|
+
scripts: [
|
|
38
|
+
{
|
|
39
|
+
commands: ["rm .github/codecov.yml codecov.yml"],
|
|
40
|
+
phase: CommandPhase.Migrations,
|
|
41
|
+
silent: true
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
blockCodecov
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=blockCodecov.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/blocks/blockCodecov.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { blockGitHubApps } from \"./blockGitHubApps.js\";\nimport { blockVitest } from \"./blockVitest.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockCodecov = base.createBlock({\n\tabout: {\n\t\tname: \"Codecov\",\n\t},\n\taddons: { env: z.record(z.string(), z.string()).optional() },\n\tproduce({ addons }) {\n\t\tconst { env } = addons;\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockGitHubApps({\n\t\t\t\t\tapps: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Codecov\",\n\t\t\t\t\t\t\turl: \"https://github.com/apps/codecov\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockVitest({\n\t\t\t\t\tactionSteps: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t...(env && { env }),\n\t\t\t\t\t\t\tif: \"always()\",\n\t\t\t\t\t\t\tuses: \"codecov/codecov-action@v3\",\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\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"rm .github/codecov.yml codecov.yml\"],\n\t\t\t\t\tphase: CommandPhase.Migrations,\n\t\t\t\t\tsilent: true,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,SAAS;AAElB,SAAS,YAAY;AACrB,SAAS,uBAAuB;AAChC,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAEtB,MAAM,eAAe,KAAK,YAAY;AAAA,EAC5C,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE;AAAA,EAC3D,QAAQ,EAAE,OAAO,GAAG;AACnB,UAAM,EAAE,IAAI,IAAI;AAChB,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,gBAAgB;AAAA,UACf,MAAM;AAAA,YACL;AAAA,cACC,MAAM;AAAA,cACN,KAAK;AAAA,YACN;AAAA,UACD;AAAA,QACD,CAAC;AAAA,QACD,YAAY;AAAA,UACX,aAAa;AAAA,YACZ;AAAA,cACC,GAAI,OAAO,EAAE,IAAI;AAAA,cACjB,IAAI;AAAA,cACJ,MAAM;AAAA,YACP;AAAA,UACD;AAAA,QACD,CAAC;AAAA,MACF;AAAA,IACD;AAAA,EACD;AAAA,EACA,aAAa;AACZ,WAAO;AAAA,MACN,SAAS;AAAA,QACR;AAAA,UACC,UAAU,CAAC,oCAAoC;AAAA,UAC/C,OAAO,aAAa;AAAA,UACpB,QAAQ;AAAA,QACT;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockContributingDocs:
|
|
3
|
+
declare const blockContributingDocs: bingo_stratum.BlockWithoutAddons<{
|
|
4
|
+
owner: string;
|
|
5
|
+
repository: string;
|
|
4
6
|
description: string;
|
|
5
|
-
access: "public" | "restricted";
|
|
6
|
-
directory: string;
|
|
7
7
|
email: {
|
|
8
8
|
github: string;
|
|
9
9
|
npm: string;
|
|
10
10
|
};
|
|
11
11
|
title: string;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
access: "public" | "restricted";
|
|
13
|
+
directory: string;
|
|
14
14
|
author?: string | undefined;
|
|
15
|
+
version?: string | undefined;
|
|
15
16
|
bin?: string | undefined;
|
|
16
17
|
contributors?: {
|
|
17
18
|
name: string;
|
|
@@ -21,12 +22,12 @@ declare const blockContributingDocs: create.BlockWithoutAddons<{
|
|
|
21
22
|
profile: string;
|
|
22
23
|
}[] | undefined;
|
|
23
24
|
documentation?: string | undefined;
|
|
25
|
+
explainer?: string[] | undefined;
|
|
24
26
|
funding?: string | undefined;
|
|
25
27
|
guide?: {
|
|
26
|
-
href: string;
|
|
27
28
|
title: string;
|
|
29
|
+
href: string;
|
|
28
30
|
} | undefined;
|
|
29
|
-
hideTemplatedBy?: boolean | undefined;
|
|
30
31
|
keywords?: string[] | undefined;
|
|
31
32
|
logo?: {
|
|
32
33
|
alt: string;
|
|
@@ -43,8 +44,8 @@ declare const blockContributingDocs: create.BlockWithoutAddons<{
|
|
|
43
44
|
devDependencies?: Record<string, string> | undefined;
|
|
44
45
|
scripts?: Record<string, string> | undefined;
|
|
45
46
|
} | undefined;
|
|
47
|
+
rulesetId?: string | undefined;
|
|
46
48
|
usage?: string | undefined;
|
|
47
|
-
version?: string | undefined;
|
|
48
49
|
}>;
|
|
49
50
|
|
|
50
51
|
export { blockContributingDocs };
|
|
@@ -4,16 +4,6 @@ const blockContributingDocs = base.createBlock({
|
|
|
4
4
|
about: {
|
|
5
5
|
name: "Contributing Docs"
|
|
6
6
|
},
|
|
7
|
-
migrate() {
|
|
8
|
-
return {
|
|
9
|
-
scripts: [
|
|
10
|
-
{
|
|
11
|
-
commands: ["rm CONTRIBUTING.md"],
|
|
12
|
-
phase: CommandPhase.Migrations
|
|
13
|
-
}
|
|
14
|
-
]
|
|
15
|
-
};
|
|
16
|
-
},
|
|
17
7
|
produce({ options }) {
|
|
18
8
|
return {
|
|
19
9
|
files: {
|
|
@@ -119,6 +109,17 @@ Please include your favorite emoji in the bottom of your issues and PRs to signa
|
|
|
119
109
|
}
|
|
120
110
|
}
|
|
121
111
|
};
|
|
112
|
+
},
|
|
113
|
+
transition() {
|
|
114
|
+
return {
|
|
115
|
+
scripts: [
|
|
116
|
+
{
|
|
117
|
+
commands: ["rm CONTRIBUTING.md"],
|
|
118
|
+
phase: CommandPhase.Migrations,
|
|
119
|
+
silent: true
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
};
|
|
122
123
|
}
|
|
123
124
|
});
|
|
124
125
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["../../src/blocks/blockContributingDocs.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockContributingDocs = base.createBlock({\n\tabout: {\n\t\tname: \"Contributing Docs\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\t\"CONTRIBUTING.md\": `# Contributing\n\nThanks for your interest in contributing to \\`${options.repository}\\`! 💖\n\n> After this page, see [DEVELOPMENT.md](./DEVELOPMENT.md) for local development instructions.\n\n## Code of Conduct\n\nThis project contains a [Contributor Covenant code of conduct](./CODE_OF_CONDUCT.md) all contributors are expected to follow.\n\n## Reporting Issues\n\nPlease do [report an issue on the issue tracker](https://github.com/${options.owner}/${options.repository}/issues/new/choose) if there's any bugfix, documentation improvement, or general enhancement you'd like to see in the repository! Please fully fill out all required fields in the most appropriate issue form.\n\n## Sending Contributions\n\nSending your own changes as contribution is always appreciated!\nThere are two steps involved:\n\n1. [Finding an Issue](#finding-an-issue)\n2. [Sending a Pull Request](#sending-a-pull-request)\n\n### Finding an Issue\n\nWith the exception of very small typos, all changes to this repository generally need to correspond to an [unassigned open issue marked as \\`status: accepting prs\\` on the issue tracker](https://github.com/${options.owner}/${options.repository}/issues?q=is%3Aissue+is%3Aopen+label%3A%22status%3A+accepting+prs%22+no%3Aassignee+).\nIf this is your first time contributing, consider searching for [unassigned issues that also have the \\`good first issue\\` label](https://github.com/${options.owner}/${options.repository}/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22+label%3A%22status%3A+accepting+prs%22+no%3Aassignee+).\nIf the issue you'd like to fix isn't found on the issue, see [Reporting Issues](#reporting-issues) for filing your own (please do!).\n\n#### Issue Claiming\n\nWe don't use any kind of issue claiming system.\nWe've found in the past that they result in accidental [\"licked cookie\"](https://devblogs.microsoft.com/oldnewthing/20091201-00/?p=15843) situations where contributors claim an issue but run out of time or energy trying before sending a PR.\n\nIf an unassigned issue has been marked as \\`status: accepting prs\\` and an open PR does not exist, feel free to send a PR.\nPlease don't post comments asking for permission or stating you will work on an issue.\n\n### Sending a Pull Request\n\nOnce you've identified an open issue accepting PRs that doesn't yet have a PR sent, you're free to send a pull request.\nBe sure to fill out the pull request template's requested information -- otherwise your PR will likely be closed.\n\nPRs are also expected to have a title that adheres to [conventional commits](https://www.conventionalcommits.org/en/v1.0.0).\nOnly PR titles need to be in that format, not individual commits.\nDon't worry if you get this wrong: you can always change the PR title after sending it.\nCheck [previously merged PRs](https://github.com/${options.owner}/${options.repository}/pulls?q=is%3Apr+is%3Amerged+-label%3Adependencies+) for reference.\n\n#### Draft PRs\n\nIf you don't think your PR is ready for review, [set it as a draft](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-stage-of-a-pull-request#converting-a-pull-request-to-a-draft).\nDraft PRs won't be reviewed.\n\n#### Granular PRs\n\nPlease keep pull requests single-purpose: in other words, don't attempt to solve multiple unrelated problems in one pull request.\nSend one PR per area of concern.\nMulti-purpose pull requests are harder and slower to review, block all changes from being merged until the whole pull request is reviewed, and are difficult to name well with semantic PR titles.\n\n#### Pull Request Reviews\n\nWhen a PR is not in draft, it's considered ready for review.\nPlease don't manually \\`@\\` tag anybody to request review.\nA maintainer will look at it when they're next able to.\n\nPRs should have passing [GitHub status checks](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/about-status-checks) before review is requested (unless there are explicit questions asked in the PR about any failures).\n\n#### Asking Questions\n\nIf you need help and/or have a question, posting a comment in the PR is a great way to do so.\nThere's no need to tag anybody individually.\nOne of us will drop by and help when we can.\n\nPlease post comments as [line comments](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request) when possible, so that they can be threaded.\nYou can [resolve conversations](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/commenting-on-a-pull-request#resolving-conversations) on your own when you feel they're resolved - no need to comment explicitly and/or wait for a maintainer.\n\n#### Requested Changes\n\nAfter a maintainer reviews your PR, they may request changes on it.\nOnce you've made those changes, [re-request review on GitHub](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/about-pull-request-reviews#re-requesting-a-review).\n\nPlease try not to force-push commits to PRs that have already been reviewed.\nDoing so makes it harder to review the changes.\nWe squash merge all commits so there's no need to try to preserve Git history within a PR branch.\n\nOnce you've addressed all our feedback by making code changes and/or started a followup discussion, [re-request review](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/about-pull-request-reviews#re-requesting-a-review) from each maintainer whose feedback you addressed.\n\nOnce all feedback is addressed and the PR is approved, we'll ensure the branch is up to date with \\`main\\` and merge it for you.\n\n#### Post-Merge Recognition\n\nOnce your PR is merged, if you haven't yet been added to the [_Contributors_ table in the README.md](../README.md#contributors) for its [type of contribution](https://allcontributors.org/docs/en/emoji-key \"Allcontributors emoji key\"), you should be soon.\nPlease do ping the maintainer who merged your PR if that doesn't happen within 24 hours - it was likely an oversight on our end!\n\n## Emojis & Appreciation\n\nIf you made it all the way to the end, bravo dear user, we love you.\nPlease include your favorite emoji in the bottom of your issues and PRs to signal to us that you did in fact read this file and are trying to conform to it as best as possible.\n💖 is a good starter if you're not sure which to use.\n`,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"rm CONTRIBUTING.md\"],\n\t\t\t\t\tphase: CommandPhase.Migrations,\n\t\t\t\t\tsilent: true,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,YAAY;AACrB,SAAS,oBAAoB;AAEtB,MAAM,wBAAwB,KAAK,YAAY;AAAA,EACrD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ,EAAE,QAAQ,GAAG;AACpB,WAAO;AAAA,MACN,OAAO;AAAA,QACN,WAAW;AAAA,UACV,mBAAmB;AAAA;AAAA,gDAEwB,QAAQ,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sEAUI,QAAQ,KAAK,IAAI,QAAQ,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gNAYuG,QAAQ,KAAK,IAAI,QAAQ,UAAU;AAAA,uJAC5F,QAAQ,KAAK,IAAI,QAAQ,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mDAmBvI,QAAQ,KAAK,IAAI,QAAQ,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAsDlF;AAAA,MACD;AAAA,IACD;AAAA,EACD;AAAA,EACA,aAAa;AACZ,WAAO;AAAA,MACN,SAAS;AAAA,QACR;AAAA,UACC,UAAU,CAAC,oBAAoB;AAAA,UAC/B,OAAO,aAAa;AAAA,UACpB,QAAQ;AAAA,QACT;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|