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 blockContributorCovenant:
|
|
3
|
+
declare const blockContributorCovenant: 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 blockContributorCovenant: 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 blockContributorCovenant: 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 { blockContributorCovenant };
|
|
@@ -4,16 +4,6 @@ const blockContributorCovenant = base.createBlock({
|
|
|
4
4
|
about: {
|
|
5
5
|
name: "Contributor Covenant"
|
|
6
6
|
},
|
|
7
|
-
migrate() {
|
|
8
|
-
return {
|
|
9
|
-
scripts: [
|
|
10
|
-
{
|
|
11
|
-
commands: ["rm CODE_OF_CONDUCT.md"],
|
|
12
|
-
phase: CommandPhase.Migrations
|
|
13
|
-
}
|
|
14
|
-
]
|
|
15
|
-
};
|
|
16
|
-
},
|
|
17
7
|
produce({ options }) {
|
|
18
8
|
return {
|
|
19
9
|
files: {
|
|
@@ -154,6 +144,17 @@ For answers to common questions about this code of conduct, see the FAQ at
|
|
|
154
144
|
}
|
|
155
145
|
}
|
|
156
146
|
};
|
|
147
|
+
},
|
|
148
|
+
transition() {
|
|
149
|
+
return {
|
|
150
|
+
scripts: [
|
|
151
|
+
{
|
|
152
|
+
commands: ["rm CODE_OF_CONDUCT.md"],
|
|
153
|
+
phase: CommandPhase.Migrations,
|
|
154
|
+
silent: true
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
};
|
|
157
158
|
}
|
|
158
159
|
});
|
|
159
160
|
export {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/blocks/blockContributorCovenant.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockContributorCovenant = base.createBlock({\n\tabout: {\n\t\tname: \"Contributor Covenant\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\t\"CODE_OF_CONDUCT.md\": `# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nWe as members, contributors, and leaders pledge to make participation in our\ncommunity a harassment-free experience for everyone, regardless of age, body\nsize, visible or invisible disability, ethnicity, sex characteristics, gender\nidentity and expression, level of experience, education, socio-economic status,\nnationality, personal appearance, race, caste, color, religion, or sexual\nidentity and orientation.\n\nWe pledge to act and interact in ways that contribute to an open, welcoming,\ndiverse, inclusive, and healthy community.\n\n## Our Standards\n\nExamples of behavior that contributes to a positive environment for our\ncommunity include:\n\n- Demonstrating empathy and kindness toward other people\n- Being respectful of differing opinions, viewpoints, and experiences\n- Giving and gracefully accepting constructive feedback\n- Accepting responsibility and apologizing to those affected by our mistakes,\n and learning from the experience\n- Focusing on what is best not just for us as individuals, but for the overall\n community\n\nExamples of unacceptable behavior include:\n\n- The use of sexualized language or imagery, and sexual attention or advances of\nany kind\n- Trolling, insulting or derogatory comments, and personal or political attacks\n- Public or private harassment\n- Publishing others' private information, such as a physical or email address,\nwithout their explicit permission\n- Other conduct which could reasonably be considered inappropriate in a\nprofessional setting\n\n## Enforcement Responsibilities\n\nCommunity leaders are responsible for clarifying and enforcing our standards of\nacceptable behavior and will take appropriate and fair corrective action in\nresponse to any behavior that they deem inappropriate, threatening, offensive,\nor harmful.\n\nCommunity leaders have the right and responsibility to remove, edit, or reject\ncomments, commits, code, wiki edits, issues, and other contributions that are\nnot aligned to this Code of Conduct, and will communicate reasons for moderation\ndecisions when appropriate.\n\n## Scope\n\nThis Code of Conduct applies within all community spaces, and also applies when\nan individual is officially representing the community in public spaces.\nExamples of representing our community include using an official e-mail address,\nposting via an official social media account, or acting as an appointed\nrepresentative at an online or offline event.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be\nreported to the community leaders responsible for enforcement at\n${options.email.github}.\nAll complaints will be reviewed and investigated promptly and fairly.\n\nAll community leaders are obligated to respect the privacy and security of the\nreporter of any incident.\n\n## Enforcement Guidelines\n\nCommunity leaders will follow these Community Impact Guidelines in determining\nthe consequences for any action they deem in violation of this Code of Conduct:\n\n### 1. Correction\n\n**Community Impact**: Use of inappropriate language or other behavior deemed\nunprofessional or unwelcome in the community.\n\n**Consequence**: A private, written warning from community leaders, providing\nclarity around the nature of the violation and an explanation of why the\nbehavior was inappropriate. A public apology may be requested.\n\n### 2. Warning\n\n**Community Impact**: A violation through a single incident or series of\nactions.\n\n**Consequence**: A warning with consequences for continued behavior. No\ninteraction with the people involved, including unsolicited interaction with\nthose enforcing the Code of Conduct, for a specified period of time. This\nincludes avoiding interactions in community spaces as well as external channels\nlike social media. Violating these terms may lead to a temporary or permanent\nban.\n\n### 3. Temporary Ban\n\n**Community Impact**: A serious violation of community standards, including\nsustained inappropriate behavior.\n\n**Consequence**: A temporary ban from any sort of interaction or public\ncommunication with the community for a specified period of time. No public or\nprivate interaction with the people involved, including unsolicited interaction\nwith those enforcing the Code of Conduct, is allowed during this period.\nViolating these terms may lead to a permanent ban.\n\n### 4. Permanent Ban\n\n**Community Impact**: Demonstrating a pattern of violation of community\nstandards, including sustained inappropriate behavior, harassment of an\nindividual, or aggression toward or disparagement of classes of individuals.\n\n**Consequence**: A permanent ban from any sort of public interaction within the\ncommunity.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant][homepage],\nversion 2.1, available at\n[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].\n\nCommunity Impact Guidelines were inspired by\n[Mozilla's code of conduct enforcement ladder][mozilla coc].\n\nFor answers to common questions about this code of conduct, see the FAQ at\n[https://www.contributor-covenant.org/faq][faq]. Translations are available at\n[https://www.contributor-covenant.org/translations][translations].\n\n[homepage]: https://www.contributor-covenant.org\n[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html\n[mozilla coc]: https://github.com/mozilla/diversity\n[faq]: https://www.contributor-covenant.org/faq\n[translations]: https://www.contributor-covenant.org/translations\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 CODE_OF_CONDUCT.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,2BAA2B,KAAK,YAAY;AAAA,EACxD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ,EAAE,QAAQ,GAAG;AACpB,WAAO;AAAA,MACN,OAAO;AAAA,QACN,WAAW;AAAA,UACV,sBAAsB;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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA8DzB,QAAQ,MAAM,MAAM;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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAuElB;AAAA,MACD;AAAA,IACD;AAAA,EACD;AAAA,EACA,aAAa;AACZ,WAAO;AAAA,MACN,SAAS;AAAA,QACR;AAAA,UACC,UAAU,CAAC,uBAAuB;AAAA,UAClC,OAAO,aAAa;AAAA,UACpB,QAAQ;AAAA,QACT;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockDevelopmentDocs:
|
|
4
|
-
hints: string[];
|
|
3
|
+
declare const blockDevelopmentDocs: bingo_stratum.BlockWithAddons<{
|
|
5
4
|
sections: Record<string, {
|
|
6
5
|
contents?: string | {
|
|
7
|
-
after?: string[] | undefined;
|
|
8
6
|
before?: string | undefined;
|
|
7
|
+
after?: string[] | undefined;
|
|
9
8
|
items?: string[] | undefined;
|
|
10
9
|
plural?: string | undefined;
|
|
11
10
|
} | undefined;
|
|
@@ -14,18 +13,20 @@ declare const blockDevelopmentDocs: create.BlockWithAddons<{
|
|
|
14
13
|
heading: string;
|
|
15
14
|
}[] | undefined;
|
|
16
15
|
}>;
|
|
16
|
+
hints: string[];
|
|
17
17
|
}, {
|
|
18
|
+
owner: string;
|
|
19
|
+
repository: string;
|
|
18
20
|
description: string;
|
|
19
|
-
access: "public" | "restricted";
|
|
20
|
-
directory: string;
|
|
21
21
|
email: {
|
|
22
22
|
github: string;
|
|
23
23
|
npm: string;
|
|
24
24
|
};
|
|
25
25
|
title: string;
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
access: "public" | "restricted";
|
|
27
|
+
directory: string;
|
|
28
28
|
author?: string | undefined;
|
|
29
|
+
version?: string | undefined;
|
|
29
30
|
bin?: string | undefined;
|
|
30
31
|
contributors?: {
|
|
31
32
|
name: string;
|
|
@@ -35,12 +36,12 @@ declare const blockDevelopmentDocs: create.BlockWithAddons<{
|
|
|
35
36
|
profile: string;
|
|
36
37
|
}[] | undefined;
|
|
37
38
|
documentation?: string | undefined;
|
|
39
|
+
explainer?: string[] | undefined;
|
|
38
40
|
funding?: string | undefined;
|
|
39
41
|
guide?: {
|
|
40
|
-
href: string;
|
|
41
42
|
title: string;
|
|
43
|
+
href: string;
|
|
42
44
|
} | undefined;
|
|
43
|
-
hideTemplatedBy?: boolean | undefined;
|
|
44
45
|
keywords?: string[] | undefined;
|
|
45
46
|
logo?: {
|
|
46
47
|
alt: string;
|
|
@@ -57,8 +58,8 @@ declare const blockDevelopmentDocs: create.BlockWithAddons<{
|
|
|
57
58
|
devDependencies?: Record<string, string> | undefined;
|
|
58
59
|
scripts?: Record<string, string> | undefined;
|
|
59
60
|
} | undefined;
|
|
61
|
+
rulesetId?: string | undefined;
|
|
60
62
|
usage?: string | undefined;
|
|
61
|
-
version?: string | undefined;
|
|
62
63
|
}>;
|
|
63
64
|
|
|
64
65
|
export { blockDevelopmentDocs };
|
|
@@ -46,16 +46,6 @@ const blockDevelopmentDocs = base.createBlock({
|
|
|
46
46
|
hints: z.array(z.string()).default([]),
|
|
47
47
|
sections: z.record(z.string(), zSection).default({})
|
|
48
48
|
},
|
|
49
|
-
migrate() {
|
|
50
|
-
return {
|
|
51
|
-
scripts: [
|
|
52
|
-
{
|
|
53
|
-
commands: ["rm DEVELOPMENT.md"],
|
|
54
|
-
phase: CommandPhase.Migrations
|
|
55
|
-
}
|
|
56
|
-
]
|
|
57
|
-
};
|
|
58
|
-
},
|
|
59
49
|
produce({ addons, options }) {
|
|
60
50
|
const lines = [
|
|
61
51
|
`# Development`,
|
|
@@ -68,7 +58,7 @@ const blockDevelopmentDocs = base.createBlock({
|
|
|
68
58
|
`After [forking the repo from GitHub](https://help.github.com/articles/fork-a-repo) and [installing pnpm](https://pnpm.io/installation):`,
|
|
69
59
|
``,
|
|
70
60
|
`\`\`\`shell`,
|
|
71
|
-
`git clone https://github.com
|
|
61
|
+
`git clone https://github.com/(your-name-here)/${options.repository}`,
|
|
72
62
|
`cd ${options.repository}`,
|
|
73
63
|
`pnpm install`,
|
|
74
64
|
`\`\`\``,
|
|
@@ -84,6 +74,17 @@ const blockDevelopmentDocs = base.createBlock({
|
|
|
84
74
|
}
|
|
85
75
|
}
|
|
86
76
|
};
|
|
77
|
+
},
|
|
78
|
+
transition() {
|
|
79
|
+
return {
|
|
80
|
+
scripts: [
|
|
81
|
+
{
|
|
82
|
+
commands: ["rm DEVELOPMENT.md"],
|
|
83
|
+
phase: CommandPhase.Migrations,
|
|
84
|
+
silent: true
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
};
|
|
87
88
|
}
|
|
88
89
|
});
|
|
89
90
|
export {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/blocks/blockDevelopmentDocs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nconst zInnerSection = z.object({\n\tcontents: z.string(),\n\theading: z.string(),\n});\n\ntype InnerSection = z.infer<typeof zInnerSection>;\n\nfunction printInnerSection(innerSection: InnerSection) {\n\treturn [`### ${innerSection.heading}`, ``, innerSection.contents];\n}\n\nconst zSection = z.object({\n\tcontents: z\n\t\t.union([\n\t\t\tz.string(),\n\t\t\tz.object({\n\t\t\t\tafter: z.array(z.string()).optional(),\n\t\t\t\tbefore: z.string().optional(),\n\t\t\t\titems: z.array(z.string()).optional(),\n\t\t\t\tplural: z.string().optional(),\n\t\t\t}),\n\t\t])\n\t\t.optional(),\n\tinnerSections: z.array(zInnerSection).optional(),\n});\n\ntype Section = z.infer<typeof zSection>;\n\nfunction printSection(heading: string, section: Section) {\n\tconst innerSections = section.innerSections?.flatMap(printInnerSection) ?? [];\n\n\tif (section.contents === undefined) {\n\t\treturn innerSections;\n\t}\n\n\tconst contents =\n\t\ttypeof section.contents === \"string\"\n\t\t\t? { before: section.contents }\n\t\t\t: section.contents;\n\n\treturn [\n\t\t`## ${heading}`,\n\t\t``,\n\t\t...(contents.before ? [contents.before] : []),\n\t\t...(contents.items?.sort((a, b) =>\n\t\t\ta.replaceAll(\"`\", \"\").localeCompare(b.replaceAll(\"`\", \"\")),\n\t\t) ?? []),\n\t\t...(contents.items?.length && contents.plural ? [``, contents.plural] : []),\n\t\t...(contents.after ?? []),\n\t\t...innerSections,\n\t];\n}\n\nexport const blockDevelopmentDocs = base.createBlock({\n\tabout: {\n\t\tname: \"Development Docs\",\n\t},\n\taddons: {\n\t\thints: z.array(z.string()).default([]),\n\t\tsections: z.record(z.string(), zSection).default({}),\n\t},\n\tproduce({ addons, options }) {\n\t\tconst lines = [\n\t\t\t`# Development`,\n\t\t\t``,\n\t\t\t...(options.guide\n\t\t\t\t? [\n\t\t\t\t\t\t`> If you'd like a more guided walkthrough, see [${options.guide.title}](${options.guide.href}).`,\n\t\t\t\t\t\t`> It'll walk you through the common activities you'll need to contribute.`,\n\t\t\t\t\t\t``,\n\t\t\t\t\t]\n\t\t\t\t: []),\n\t\t\t`After [forking the repo from GitHub](https://help.github.com/articles/fork-a-repo) and [installing pnpm](https://pnpm.io/installation):`,\n\t\t\t``,\n\t\t\t`\\`\\`\\`shell`,\n\t\t\t`git clone https://github.com/(your-name-here)/${options.repository}`,\n\t\t\t`cd ${options.repository}`,\n\t\t\t`pnpm install`,\n\t\t\t`\\`\\`\\``,\n\t\t\t``,\n\t\t\t...(addons.hints.length ? [...addons.hints, ``] : []),\n\t\t\t...Object.entries(addons.sections)\n\t\t\t\t.sort(([a], [b]) => a.localeCompare(b))\n\t\t\t\t.flatMap(([heading, section]) => printSection(heading, section)),\n\t\t\t...(options.documentation ? [options.documentation] : []),\n\t\t];\n\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\t\"DEVELOPMENT.md\": lines.join(\"\\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 DEVELOPMENT.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,SAAS;AAElB,SAAS,YAAY;AACrB,SAAS,oBAAoB;AAE7B,MAAM,gBAAgB,EAAE,OAAO;AAAA,EAC9B,UAAU,EAAE,OAAO;AAAA,EACnB,SAAS,EAAE,OAAO;AACnB,CAAC;AAID,SAAS,kBAAkB,cAA4B;AACtD,SAAO,CAAC,OAAO,aAAa,OAAO,IAAI,IAAI,aAAa,QAAQ;AACjE;AAEA,MAAM,WAAW,EAAE,OAAO;AAAA,EACzB,UAAU,EACR,MAAM;AAAA,IACN,EAAE,OAAO;AAAA,IACT,EAAE,OAAO;AAAA,MACR,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS;AAAA,MACpC,QAAQ,EAAE,OAAO,EAAE,SAAS;AAAA,MAC5B,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS;AAAA,MACpC,QAAQ,EA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QACA;AAAA,MACD,IACC,CAAC;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA,iDAAiD,QAAQ,UAAU;AAAA,MACnE,MAAM,QAAQ,UAAU;AAAA,MACxB;AAAA,MACA;AAAA,MACA;AAAA,MACA,GAAI,OAAO,MAAM,SAAS,CAAC,GAAG,OAAO,OAAO,EAAE,IAAI,CAAC;AAAA,MACnD,GAAG,OAAO,QAAQ,OAAO,QAAQ,EAC/B,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC,EACrC,QAAQ,CAAC,CAAC,SAAS,OAAO,MAAM,aAAa,SAAS,OAAO,CAAC;AAAA,MAChE,GAAI,QAAQ,gBAAgB,CAAC,QAAQ,aAAa,IAAI,CAAC;AAAA,IACxD;AAEA,WAAO;AAAA,MACN,OAAO;AAAA,QACN,WAAW;AAAA,UACV,kBAAkB,MAAM,KAAK,IAAI;AAAA,QAClC;AAAA,MACD;AAAA,IACD;AAAA,EACD;AAAA,EACA,aAAa;AACZ,WAAO;AAAA,MACN,SAAS;AAAA,QACR;AAAA,UACC,UAAU,CAAC,mBAAmB;AAAA,UAC9B,OAAO,aAAa;AAAA,UACpB,QAAQ;AAAA,QACT;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -1,42 +1,44 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockESLint:
|
|
3
|
+
declare const blockESLint: bingo_stratum.BlockWithAddons<{
|
|
4
4
|
extensions: (string | {
|
|
5
|
-
plugins?: Record<string, string> | undefined;
|
|
6
5
|
files?: string[] | undefined;
|
|
7
|
-
settings?: Record<string, unknown> | undefined;
|
|
8
|
-
extends?: string[] | undefined;
|
|
9
|
-
languageOptions?: unknown;
|
|
10
|
-
linterOptions?: unknown;
|
|
11
6
|
rules?: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]> | {
|
|
12
7
|
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
13
8
|
comment?: string | undefined;
|
|
14
9
|
}[] | undefined;
|
|
10
|
+
settings?: Record<string, unknown> | undefined;
|
|
11
|
+
extends?: string[] | undefined;
|
|
12
|
+
languageOptions?: unknown;
|
|
13
|
+
linterOptions?: unknown;
|
|
14
|
+
plugins?: Record<string, string> | undefined;
|
|
15
15
|
})[];
|
|
16
16
|
ignores: string[];
|
|
17
|
+
explanations: string[];
|
|
17
18
|
imports: {
|
|
18
19
|
source: string;
|
|
19
20
|
specifier: string;
|
|
20
21
|
types?: boolean | undefined;
|
|
21
22
|
}[];
|
|
22
|
-
settings?: Record<string, unknown> | undefined;
|
|
23
23
|
rules?: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]> | {
|
|
24
24
|
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
25
25
|
comment?: string | undefined;
|
|
26
26
|
}[] | undefined;
|
|
27
|
+
settings?: Record<string, unknown> | undefined;
|
|
27
28
|
beforeLint?: string | undefined;
|
|
28
29
|
}, {
|
|
30
|
+
owner: string;
|
|
31
|
+
repository: string;
|
|
29
32
|
description: string;
|
|
30
|
-
access: "public" | "restricted";
|
|
31
|
-
directory: string;
|
|
32
33
|
email: {
|
|
33
34
|
github: string;
|
|
34
35
|
npm: string;
|
|
35
36
|
};
|
|
36
37
|
title: string;
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
access: "public" | "restricted";
|
|
39
|
+
directory: string;
|
|
39
40
|
author?: string | undefined;
|
|
41
|
+
version?: string | undefined;
|
|
40
42
|
bin?: string | undefined;
|
|
41
43
|
contributors?: {
|
|
42
44
|
name: string;
|
|
@@ -46,12 +48,12 @@ declare const blockESLint: create.BlockWithAddons<{
|
|
|
46
48
|
profile: string;
|
|
47
49
|
}[] | undefined;
|
|
48
50
|
documentation?: string | undefined;
|
|
51
|
+
explainer?: string[] | undefined;
|
|
49
52
|
funding?: string | undefined;
|
|
50
53
|
guide?: {
|
|
51
|
-
href: string;
|
|
52
54
|
title: string;
|
|
55
|
+
href: string;
|
|
53
56
|
} | undefined;
|
|
54
|
-
hideTemplatedBy?: boolean | undefined;
|
|
55
57
|
keywords?: string[] | undefined;
|
|
56
58
|
logo?: {
|
|
57
59
|
alt: string;
|
|
@@ -68,8 +70,8 @@ declare const blockESLint: create.BlockWithAddons<{
|
|
|
68
70
|
devDependencies?: Record<string, string> | undefined;
|
|
69
71
|
scripts?: Record<string, string> | undefined;
|
|
70
72
|
} | undefined;
|
|
73
|
+
rulesetId?: string | undefined;
|
|
71
74
|
usage?: string | undefined;
|
|
72
|
-
version?: string | undefined;
|
|
73
75
|
}>;
|
|
74
76
|
|
|
75
77
|
export { blockESLint };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { parse as parsePackageName } from "parse-package-name";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { base } from "../base.js";
|
|
4
|
+
import { getPackageDependencies } from "../data/packageData.js";
|
|
4
5
|
import { blockCSpell } from "./blockCSpell.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 zRuleOptions = z.union([
|
|
12
12
|
z.literal("error"),
|
|
@@ -50,24 +50,20 @@ const blockESLint = base.createBlock({
|
|
|
50
50
|
},
|
|
51
51
|
addons: {
|
|
52
52
|
beforeLint: z.string().optional(),
|
|
53
|
+
explanations: z.array(z.string()).default([]),
|
|
53
54
|
extensions: z.array(z.union([z.string(), zExtension])).default([]),
|
|
54
55
|
ignores: z.array(z.string()).default([]),
|
|
55
56
|
imports: z.array(zPackageImport).default([]),
|
|
56
57
|
rules: zExtensionRules.optional(),
|
|
57
58
|
settings: z.record(z.string(), z.unknown()).optional()
|
|
58
59
|
},
|
|
59
|
-
migrate() {
|
|
60
|
-
return {
|
|
61
|
-
scripts: [
|
|
62
|
-
{
|
|
63
|
-
commands: ["rm .eslintrc* .eslintignore eslint.config.*"],
|
|
64
|
-
phase: CommandPhase.Migrations
|
|
65
|
-
}
|
|
66
|
-
]
|
|
67
|
-
};
|
|
68
|
-
},
|
|
69
60
|
produce({ addons, options }) {
|
|
70
|
-
const { extensions, ignores, imports, rules, settings } = addons;
|
|
61
|
+
const { explanations, extensions, ignores, imports, rules, settings } = addons;
|
|
62
|
+
const explanation = explanations.length > 0 ? `${explanations.map((explanation2) => `/*
|
|
63
|
+
${explanation2}
|
|
64
|
+
*/
|
|
65
|
+
`).join("")}
|
|
66
|
+
` : "";
|
|
71
67
|
const importLines = [
|
|
72
68
|
'import eslint from "@eslint/js";',
|
|
73
69
|
'import tseslint from "typescript-eslint";',
|
|
@@ -88,7 +84,9 @@ const blockESLint = base.createBlock({
|
|
|
88
84
|
languageOptions: {
|
|
89
85
|
parserOptions: {
|
|
90
86
|
projectService: {
|
|
91
|
-
allowDefaultProject:
|
|
87
|
+
allowDefaultProject: Array.from(
|
|
88
|
+
new Set(["*.config.*s", options.bin].filter(Boolean).sort())
|
|
89
|
+
)
|
|
92
90
|
},
|
|
93
91
|
tsconfigRootDir: "import.meta.dirname"
|
|
94
92
|
}
|
|
@@ -180,7 +178,7 @@ Each should be shown in VS Code, and can be run manually on the command-line:
|
|
|
180
178
|
})
|
|
181
179
|
],
|
|
182
180
|
files: {
|
|
183
|
-
"eslint.config.js": `${importLines.join("\n")}
|
|
181
|
+
"eslint.config.js": `${explanation}${importLines.join("\n")}
|
|
184
182
|
|
|
185
183
|
export default tseslint.config(
|
|
186
184
|
{ ignores: [${ignoreLines.join(", ")}] },
|
|
@@ -198,6 +196,17 @@ export default tseslint.config(
|
|
|
198
196
|
}
|
|
199
197
|
]
|
|
200
198
|
};
|
|
199
|
+
},
|
|
200
|
+
transition() {
|
|
201
|
+
return {
|
|
202
|
+
scripts: [
|
|
203
|
+
{
|
|
204
|
+
commands: ["rm .eslintrc* .eslintignore eslint.config.*"],
|
|
205
|
+
phase: CommandPhase.Migrations,
|
|
206
|
+
silent: true
|
|
207
|
+
}
|
|
208
|
+
]
|
|
209
|
+
};
|
|
201
210
|
}
|
|
202
211
|
});
|
|
203
212
|
function printExtension(extension) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/blocks/blockESLint.ts"],"sourcesContent":["// @ts-expect-error -- https://github.com/egoist/parse-package-name/issues/30\nimport { parse as parsePackageName } from \"parse-package-name\";\nimport { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { blockCSpell } from \"./blockCSpell.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 zRuleOptions = z.union([\n\tz.literal(\"error\"),\n\tz.literal(\"off\"),\n\tz.literal(\"warn\"),\n\tz.union([\n\t\tz.tuple([z.union([z.literal(\"error\"), z.literal(\"warn\")]), z.unknown()]),\n\t\tz.tuple([\n\t\t\tz.union([z.literal(\"error\"), z.literal(\"warn\")]),\n\t\t\tz.unknown(),\n\t\t\tz.unknown(),\n\t\t]),\n\t]),\n]);\n\nconst zExtensionRules = z.union([\n\tz.record(z.string(), zRuleOptions),\n\tz.array(\n\t\tz.object({\n\t\t\tcomment: z.string().optional(),\n\t\t\tentries: z.record(z.string(), zRuleOptions),\n\t\t}),\n\t),\n]);\n\nconst zExtension = z.object({\n\textends: z.array(z.string()).optional(),\n\tfiles: z.array(z.string()).optional(),\n\tlanguageOptions: z.unknown().optional(),\n\tlinterOptions: z.unknown().optional(),\n\tplugins: z.record(z.string(), z.string()).optional(),\n\trules: zExtensionRules.optional(),\n\tsettings: z.record(z.string(), z.unknown()).optional(),\n});\n\nconst zPackageImport = z.object({\n\tsource: z.string(),\n\tspecifier: z.string(),\n\ttypes: z.boolean().optional(),\n});\n\nexport const blockESLint = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint\",\n\t},\n\taddons: {\n\t\tbeforeLint: z.string().optional(),\n\t\texplanations: z.array(z.string()).default([]),\n\t\textensions: z.array(z.union([z.string(), zExtension])).default([]),\n\t\tignores: z.array(z.string()).default([]),\n\t\timports: z.array(zPackageImport).default([]),\n\t\trules: zExtensionRules.optional(),\n\t\tsettings: z.record(z.string(), z.unknown()).optional(),\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { explanations, extensions, ignores, imports, rules, settings } =\n\t\t\taddons;\n\n\t\tconst explanation =\n\t\t\texplanations.length > 0\n\t\t\t\t? `${explanations\n\t\t\t\t\t\t.map((explanation) => `/*\\n${explanation}\\n*/\\n`)\n\t\t\t\t\t\t.join(\"\")}\\n`\n\t\t\t\t: \"\";\n\n\t\tconst importLines = [\n\t\t\t'import eslint from \"@eslint/js\";',\n\t\t\t'import tseslint from \"typescript-eslint\";',\n\t\t\t...imports.map(\n\t\t\t\t(packageImport) =>\n\t\t\t\t\t`import ${packageImport.specifier} from \"${packageImport.source}\"`,\n\t\t\t),\n\t\t].sort((a, b) =>\n\t\t\ta.replace(/.+from/, \"\").localeCompare(b.replace(/.+from/, \"\")),\n\t\t);\n\n\t\tconst ignoreLines = [\"lib\", \"node_modules\", \"pnpm-lock.yaml\", ...ignores]\n\t\t\t.map((ignore) => JSON.stringify(ignore))\n\t\t\t.sort();\n\n\t\tconst extensionLines = [\n\t\t\tprintExtension({\n\t\t\t\textends: [\n\t\t\t\t\t\"tseslint.configs.strictTypeChecked\",\n\t\t\t\t\t\"tseslint.configs.stylisticTypeChecked\",\n\t\t\t\t],\n\t\t\t\tfiles: [\"**/*.js\", \"**/*.ts\"],\n\t\t\t\tlanguageOptions: {\n\t\t\t\t\tparserOptions: {\n\t\t\t\t\t\tprojectService: {\n\t\t\t\t\t\t\tallowDefaultProject: Array.from(\n\t\t\t\t\t\t\t\tnew Set([\"*.config.*s\", options.bin].filter(Boolean).sort()),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t},\n\t\t\t\t\t\ttsconfigRootDir: \"import.meta.dirname\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t...(rules && { rules }),\n\t\t\t\t...(settings && { settings }),\n\t\t\t}),\n\t\t\t...extensions.map((extension) =>\n\t\t\t\ttypeof extension === \"string\" ? extension : printExtension(extension),\n\t\t\t),\n\t\t]\n\t\t\t.sort((a, b) => processForSort(a).localeCompare(processForSort(b)))\n\t\t\t.map((t) => t);\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockCSpell({\n\t\t\t\t\twords: [\"tseslint\"],\n\t\t\t\t}),\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\tafter: [\n\t\t\t\t\t\t\t\t\t`\nFor example, ESLint can be run with \\`--fix\\` to auto-fix some lint rule complaints:\n\n\\`\\`\\`shell\npnpm run lint --fix\n\\`\\`\\`\n`,\n\t\t\t\t\t\t\t\t\t...(addons.beforeLint ? [addons.beforeLint] : []),\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tbefore: `\nThis package includes several forms of linting to enforce consistent code quality and styling.\nEach should be shown in VS Code, and can be run manually on the command-line:\n`,\n\t\t\t\t\t\t\t\titems: [\n\t\t\t\t\t\t\t\t\t`- \\`pnpm lint\\` ([ESLint](https://eslint.org) with [typescript-eslint](https://typescript-eslint.io)): Lints JavaScript and TypeScript source files`,\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tplural: `Read the individual documentation for each linter to understand how it can be configured and used best.`,\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\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Lint\",\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t...(options.bin ? [{ run: \"pnpm build\" }] : []),\n\t\t\t\t\t\t\t\t{ run: \"pnpm lint\" },\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\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\n\t\t\t\t\t\t\t\"@eslint/js\",\n\t\t\t\t\t\t\t\"@types/node\",\n\t\t\t\t\t\t\t\"eslint\",\n\t\t\t\t\t\t\t\"typescript-eslint\",\n\t\t\t\t\t\t\t...imports.flatMap(({ source, types }) => {\n\t\t\t\t\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-call -- https://github.com/egoist/parse-package-name/issues/30\n\t\t\t\t\t\t\t\tconst { name } = parsePackageName(source) as { name: string };\n\t\t\t\t\t\t\t\treturn types ? [name, `@types/${name}`] : [name];\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t),\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\tlint: \"eslint . --max-warnings 0\",\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: [\"dbaeumer.vscode-eslint\"],\n\t\t\t\t\tsettings: {\n\t\t\t\t\t\t\"editor.codeActionsOnSave\": {\n\t\t\t\t\t\t\t\"source.fixAll.eslint\": \"explicit\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"eslint.probe\": [\n\t\t\t\t\t\t\t\"javascript\",\n\t\t\t\t\t\t\t\"javascriptreact\",\n\t\t\t\t\t\t\t\"json\",\n\t\t\t\t\t\t\t\"jsonc\",\n\t\t\t\t\t\t\t\"markdown\",\n\t\t\t\t\t\t\t\"typescript\",\n\t\t\t\t\t\t\t\"typescriptreact\",\n\t\t\t\t\t\t\t\"yaml\",\n\t\t\t\t\t\t],\n\t\t\t\t\t\t\"eslint.rules.customizations\": [{ rule: \"*\", severity: \"warn\" }],\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\"eslint.config.js\": `${explanation}${importLines.join(\"\\n\")}\n\nexport default tseslint.config(\n\t{ ignores: [${ignoreLines.join(\", \")}] },\n\t${printExtension({\n\t\tlinterOptions: { reportUnusedDisableDirectives: \"error\" },\n\t})},\n\teslint.configs.recommended,\n\t${extensionLines.join(\",\")}\n);`,\n\t\t\t},\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"pnpm lint --fix\"],\n\t\t\t\t\tphase: CommandPhase.Process,\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 .eslintrc* .eslintignore eslint.config.*\"],\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\nfunction printExtension(extension: z.infer<typeof zExtension>) {\n\treturn [\n\t\t\"{\",\n\t\textension.extends && `extends: [${extension.extends.join(\", \")}],`,\n\t\textension.files &&\n\t\t\t`files: [${extension.files.map((glob) => JSON.stringify(glob)).join(\", \")}],`,\n\t\textension.languageOptions &&\n\t\t\t`languageOptions: ${JSON.stringify(extension.languageOptions).replace('\"import.meta.dirname\"', \"import.meta.dirname\")},`,\n\t\textension.linterOptions &&\n\t\t\t`linterOptions: ${JSON.stringify(extension.linterOptions)}`,\n\t\textension.rules && `rules: ${printExtensionRules(extension.rules)},`,\n\t\textension.settings && `settings: ${JSON.stringify(extension.settings)},`,\n\t\t\"}\",\n\t]\n\t\t.filter(Boolean)\n\t\t.join(\" \");\n}\n\nfunction printExtensionRules(rules: z.infer<typeof zExtensionRules>) {\n\tif (!Array.isArray(rules)) {\n\t\treturn JSON.stringify(rules);\n\t}\n\n\treturn [\n\t\t\"{\",\n\t\t...rules.flatMap((group) => [\n\t\t\tgroup.comment ? `\\n\\n// ${group.comment}\\n` : \"\",\n\t\t\t...Object.entries(group.entries).map(\n\t\t\t\t([ruleName, options]) => `\"${ruleName}\": ${JSON.stringify(options)},`,\n\t\t\t),\n\t\t]),\n\t\t\"}\",\n\t].join(\"\");\n}\n\nfunction processForSort(line: string) {\n\tif (line.startsWith(\"...\") || /\\w+/.test(line[0])) {\n\t\treturn `A\\n${line.replaceAll(/\\W+/g, \"\")}`;\n\t}\n\n\treturn `B\\n${(/files: (.+)/.exec(line)?.[1] ?? line).replaceAll(/\\W+/g, \"\")}`;\n}\n"],"mappings":"AACA,SAAS,SAAS,wBAAwB;AAC1C,SAAS,SAAS;AAElB,SAAS,YAAY;AACrB,SAAS,8BAA8B;AACvC,SAAS,mBAAmB;AAC5B,SAAS,4BAA4B;AACrC,SAAS,4BAA4B;AACrC,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAE7B,MAAM,eAAe,EAAE,MAAM;AAAA,EAC5B,EAAE,QAAQ,OAAO;AAAA,EACjB,EAAE,QAAQ,KAAK;AAAA,EACf,EAAE,QAAQ,MAAM;AAAA,EAChB,EAAE,MAAM;AAAA,IACP,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,EAAE,QAAQ,OAAO,GAAG,EAAE,QAAQ,MAAM,CAAC,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;AAAA,IACvE,EAAE,MAAM;AAAA,MACP,EAAE,MAAM,CAAC,EAAE,QAAQ,OAAO,GAAG,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
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockESLintComments:
|
|
3
|
+
declare const blockESLintComments: 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 blockESLintComments: 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 blockESLintComments: 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 { blockESLintComments };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/blocks/blockESLintComments.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockESLint } from \"./blockESLint.js\";\n\nexport const blockESLintComments = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint Comments Plugin\",\n\t},\n\tproduce() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockESLint({\n\t\t\t\t\textensions: [\"comments.recommended\"],\n\t\t\t\t\timports: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsource: \"@eslint-community/eslint-plugin-eslint-comments/configs\",\n\t\t\t\t\t\t\tspecifier: \"comments\",\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,mBAAmB;AAErB,MAAM,sBAAsB,KAAK,YAAY;AAAA,EACnD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AACT,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,YAAY;AAAA,UACX,YAAY,CAAC,sBAAsB;AAAA,UACnC,SAAS;AAAA,YACR;AAAA,cACC,QAAQ;AAAA,cACR,WAAW;AAAA,YACZ;AAAA,UACD;AAAA,QACD,CAAC;AAAA,MACF;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 blockESLintJSDoc:
|
|
3
|
+
declare const blockESLintJSDoc: 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 blockESLintJSDoc: 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 blockESLintJSDoc: 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 { blockESLintJSDoc };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/blocks/blockESLintJSDoc.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockESLint } from \"./blockESLint.js\";\n\nexport const blockESLintJSDoc = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint JSDoc 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'jsdoc.configs[\"flat/contents-typescript-error\"]',\n\t\t\t\t\t\t'jsdoc.configs[\"flat/logical-typescript-error\"]',\n\t\t\t\t\t\t'jsdoc.configs[\"flat/stylistic-typescript-error\"]',\n\t\t\t\t\t],\n\t\t\t\t\timports: [{ source: \"eslint-plugin-jsdoc\", specifier: \"jsdoc\" }],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,YAAY;AACrB,SAAS,mBAAmB;AAErB,MAAM,mBAAmB,KAAK,YAAY;AAAA,EAChD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AACT,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,YAAY;AAAA,UACX,YAAY;AAAA,YACX;AAAA,YACA;AAAA,YACA;AAAA,UACD;AAAA,UACA,SAAS,CAAC,EAAE,QAAQ,uBAAuB,WAAW,QAAQ,CAAC;AAAA,QAChE,CAAC;AAAA,MACF;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 blockESLintJSONC:
|
|
3
|
+
declare const blockESLintJSONC: 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 blockESLintJSONC: 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 blockESLintJSONC: 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 { blockESLintJSONC };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/blocks/blockESLintJSONC.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockESLint } from \"./blockESLint.js\";\n\nexport const blockESLintJSONC = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint JSONC Plugin\",\n\t},\n\tproduce() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockESLint({\n\t\t\t\t\textensions: [`jsonc.configs[\"flat/recommended-with-json\"]`],\n\t\t\t\t\timports: [{ source: \"eslint-plugin-jsonc\", specifier: \"jsonc\" }],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,YAAY;AACrB,SAAS,mBAAmB;AAErB,MAAM,mBAAmB,KAAK,YAAY;AAAA,EAChD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AACT,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,YAAY;AAAA,UACX,YAAY,CAAC,6CAA6C;AAAA,UAC1D,SAAS,CAAC,EAAE,QAAQ,uBAAuB,WAAW,QAAQ,CAAC;AAAA,QAChE,CAAC;AAAA,MACF;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 blockESLintMarkdown:
|
|
3
|
+
declare const blockESLintMarkdown: 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 blockESLintMarkdown: 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 blockESLintMarkdown: 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 { blockESLintMarkdown };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/blocks/blockESLintMarkdown.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockESLint } from \"./blockESLint.js\";\n\nexport const blockESLintMarkdown = base.createBlock({\n\tabout: {\n\t\tname: \"ESLint Markdown Plugin\",\n\t},\n\tproduce() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockESLint({\n\t\t\t\t\textensions: [\"markdown.configs.recommended\"],\n\t\t\t\t\timports: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsource: \"eslint-plugin-markdown\",\n\t\t\t\t\t\t\tspecifier: \"markdown\",\n\t\t\t\t\t\t\ttypes: true,\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,mBAAmB;AAErB,MAAM,sBAAsB,KAAK,YAAY;AAAA,EACnD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AACT,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,YAAY;AAAA,UACX,YAAY,CAAC,8BAA8B;AAAA,UAC3C,SAAS;AAAA,YACR;AAAA,cACC,QAAQ;AAAA,cACR,WAAW;AAAA,cACX,OAAO;AAAA,YACR;AAAA,UACD;AAAA,QACD,CAAC;AAAA,MACF;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|