create-typescript-app 2.74.2 → 2.74.4
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/dist/_virtual/_rolldown/runtime.mjs +1 -2
- package/dist/base.d.mts +1 -3
- package/dist/base.mjs +2 -3
- package/dist/blocks/actions/resolveUses.d.mts +1 -3
- package/dist/blocks/actions/resolveUses.mjs +1 -2
- package/dist/blocks/actions/steps.d.mts +1 -3
- package/dist/blocks/actions/steps.mjs +1 -2
- package/dist/blocks/bin/getPrimaryBin.d.mts +1 -3
- package/dist/blocks/bin/getPrimaryBin.mjs +1 -2
- package/dist/blocks/blockAllContributors.d.mts +1 -3
- package/dist/blocks/blockAllContributors.mjs +5 -6
- package/dist/blocks/blockAreTheTypesWrong.d.mts +1 -3
- package/dist/blocks/blockAreTheTypesWrong.mjs +1 -2
- package/dist/blocks/blockBin.d.mts +1 -3
- package/dist/blocks/blockBin.mjs +2 -3
- package/dist/blocks/blockCSpell.d.mts +1 -3
- package/dist/blocks/blockCSpell.mjs +6 -7
- package/dist/blocks/blockCTATransitions.d.mts +1 -3
- package/dist/blocks/blockCTATransitions.mjs +6 -7
- package/dist/blocks/blockCodecov.d.mts +1 -3
- package/dist/blocks/blockCodecov.mjs +5 -6
- package/dist/blocks/blockContributingDocs.d.mts +1 -3
- package/dist/blocks/blockContributingDocs.mjs +1 -2
- package/dist/blocks/blockContributorCovenant.d.mts +1 -3
- package/dist/blocks/blockContributorCovenant.mjs +2 -3
- package/dist/blocks/blockDevelopmentDocs.d.mts +1 -3
- package/dist/blocks/blockDevelopmentDocs.mjs +1 -2
- package/dist/blocks/blockESLint.d.mts +1 -3
- package/dist/blocks/blockESLint.mjs +10 -11
- package/dist/blocks/blockESLintComments.d.mts +1 -3
- package/dist/blocks/blockESLintComments.mjs +2 -3
- package/dist/blocks/blockESLintJSDoc.d.mts +1 -3
- package/dist/blocks/blockESLintJSDoc.mjs +2 -3
- package/dist/blocks/blockESLintJSONC.d.mts +1 -3
- package/dist/blocks/blockESLintJSONC.mjs +1 -2
- package/dist/blocks/blockESLintMarkdown.d.mts +1 -3
- package/dist/blocks/blockESLintMarkdown.mjs +3 -4
- package/dist/blocks/blockESLintMarkdownLinks.d.mts +1 -3
- package/dist/blocks/blockESLintMarkdownLinks.mjs +1 -2
- package/dist/blocks/blockESLintMoreStyling.d.mts +1 -3
- package/dist/blocks/blockESLintMoreStyling.mjs +2 -3
- package/dist/blocks/blockESLintNode.d.mts +1 -3
- package/dist/blocks/blockESLintNode.mjs +2 -3
- package/dist/blocks/blockESLintPackageJson.d.mts +1 -3
- package/dist/blocks/blockESLintPackageJson.mjs +4 -5
- package/dist/blocks/blockESLintPerfectionist.d.mts +1 -3
- package/dist/blocks/blockESLintPerfectionist.mjs +2 -3
- package/dist/blocks/blockESLintPlugin.d.mts +1 -3
- package/dist/blocks/blockESLintPlugin.mjs +8 -9
- package/dist/blocks/blockESLintRegexp.d.mts +1 -3
- package/dist/blocks/blockESLintRegexp.mjs +2 -3
- package/dist/blocks/blockESLintYML.d.mts +1 -3
- package/dist/blocks/blockESLintYML.mjs +1 -2
- package/dist/blocks/blockExampleFiles.d.mts +1 -3
- package/dist/blocks/blockExampleFiles.mjs +1 -2
- package/dist/blocks/blockExports.d.mts +1 -3
- package/dist/blocks/blockExports.mjs +2 -3
- package/dist/blocks/blockFunding.d.mts +1 -3
- package/dist/blocks/blockFunding.mjs +2 -3
- package/dist/blocks/blockGitHubActionsCI.d.mts +1 -3
- package/dist/blocks/blockGitHubActionsCI.mjs +3 -4
- package/dist/blocks/blockGitHubApps.d.mts +1 -3
- package/dist/blocks/blockGitHubApps.mjs +1 -2
- package/dist/blocks/blockGitHubIssueTemplates.d.mts +1 -3
- package/dist/blocks/blockGitHubIssueTemplates.mjs +1 -2
- package/dist/blocks/blockGitHubPRTemplate.d.mts +1 -3
- package/dist/blocks/blockGitHubPRTemplate.mjs +1 -2
- package/dist/blocks/blockGitignore.d.mts +1 -3
- package/dist/blocks/blockGitignore.mjs +2 -3
- package/dist/blocks/blockKnip.d.mts +1 -3
- package/dist/blocks/blockKnip.mjs +6 -7
- package/dist/blocks/blockMITLicense.d.mts +1 -3
- package/dist/blocks/blockMITLicense.mjs +1 -2
- package/dist/blocks/blockNcc.d.mts +1 -3
- package/dist/blocks/blockNcc.mjs +6 -7
- package/dist/blocks/blockNvmrc.d.mts +1 -3
- package/dist/blocks/blockNvmrc.mjs +1 -2
- package/dist/blocks/blockOctoGuide.d.mts +1 -3
- package/dist/blocks/blockOctoGuide.mjs +3 -4
- package/dist/blocks/blockOctoGuideStrict.d.mts +1 -3
- package/dist/blocks/blockOctoGuideStrict.mjs +1 -2
- package/dist/blocks/blockPackageJson.d.mts +1 -3
- package/dist/blocks/blockPackageJson.mjs +4 -5
- package/dist/blocks/blockPnpmDedupe.d.mts +1 -3
- package/dist/blocks/blockPnpmDedupe.mjs +1 -2
- package/dist/blocks/blockPrettier.d.mts +1 -3
- package/dist/blocks/blockPrettier.mjs +8 -9
- package/dist/blocks/blockPrettierPluginCurly.d.mts +1 -3
- package/dist/blocks/blockPrettierPluginCurly.mjs +1 -2
- package/dist/blocks/blockPrettierPluginPackageJson.d.mts +1 -3
- package/dist/blocks/blockPrettierPluginPackageJson.mjs +1 -2
- package/dist/blocks/blockPrettierPluginPaddingLines.d.mts +1 -3
- package/dist/blocks/blockPrettierPluginPaddingLines.mjs +1 -2
- package/dist/blocks/blockPrettierPluginSentencesPerLine.d.mts +1 -3
- package/dist/blocks/blockPrettierPluginSentencesPerLine.mjs +1 -2
- package/dist/blocks/blockPrettierPluginSh.d.mts +1 -3
- package/dist/blocks/blockPrettierPluginSh.mjs +1 -2
- package/dist/blocks/blockREADME.d.mts +1 -3
- package/dist/blocks/blockREADME.mjs +1 -2
- package/dist/blocks/blockReleaseIt.d.mts +1 -3
- package/dist/blocks/blockReleaseIt.mjs +7 -8
- package/dist/blocks/blockRemoveDependencies.d.mts +1 -3
- package/dist/blocks/blockRemoveDependencies.mjs +1 -2
- package/dist/blocks/blockRemoveFiles.d.mts +1 -3
- package/dist/blocks/blockRemoveFiles.mjs +1 -2
- package/dist/blocks/blockRemoveWorkflows.d.mts +1 -3
- package/dist/blocks/blockRemoveWorkflows.mjs +1 -2
- package/dist/blocks/blockRenovate.d.mts +1 -3
- package/dist/blocks/blockRenovate.mjs +2 -3
- package/dist/blocks/blockRepositoryBranchRuleset.d.mts +1 -3
- package/dist/blocks/blockRepositoryBranchRuleset.mjs +1 -2
- package/dist/blocks/blockRepositoryLabels.d.mts +1 -3
- package/dist/blocks/blockRepositoryLabels.mjs +1 -2
- package/dist/blocks/blockRepositorySecrets.d.mts +1 -3
- package/dist/blocks/blockRepositorySecrets.mjs +1 -2
- package/dist/blocks/blockRepositorySettings.d.mts +1 -3
- package/dist/blocks/blockRepositorySettings.mjs +2 -3
- package/dist/blocks/blockSecurityDocs.d.mts +1 -3
- package/dist/blocks/blockSecurityDocs.mjs +1 -2
- package/dist/blocks/blockSideEffects.d.mts +1 -3
- package/dist/blocks/blockSideEffects.mjs +1 -2
- package/dist/blocks/blockTSDown.d.mts +1 -3
- package/dist/blocks/blockTSDown.mjs +11 -12
- package/dist/blocks/blockTemplatedWith.d.mts +1 -3
- package/dist/blocks/blockTemplatedWith.mjs +1 -2
- package/dist/blocks/blockTypeScript.d.mts +1 -3
- package/dist/blocks/blockTypeScript.mjs +8 -9
- package/dist/blocks/blockVSCode.d.mts +1 -3
- package/dist/blocks/blockVSCode.mjs +2 -3
- package/dist/blocks/blockVitest.d.mts +1 -3
- package/dist/blocks/blockVitest.mjs +11 -12
- package/dist/blocks/blockWebExt.d.mts +1 -3
- package/dist/blocks/blockWebExt.mjs +5 -6
- package/dist/blocks/codecov/findCodecovStep.d.mts +1 -3
- package/dist/blocks/codecov/findCodecovStep.mjs +1 -2
- package/dist/blocks/eslint/blockESLintIntake.d.mts +1 -3
- package/dist/blocks/eslint/blockESLintIntake.mjs +1 -2
- package/dist/blocks/eslint/blockESLintPluginIntake.d.mts +1 -3
- package/dist/blocks/eslint/blockESLintPluginIntake.mjs +1 -2
- package/dist/blocks/eslint/getScriptFileExtension.d.mts +1 -3
- package/dist/blocks/eslint/getScriptFileExtension.mjs +1 -2
- package/dist/blocks/eslint/mergeAllExtensions.d.mts +1 -3
- package/dist/blocks/eslint/mergeAllExtensions.mjs +1 -2
- package/dist/blocks/eslint/schemas.d.mts +1 -3
- package/dist/blocks/eslint/schemas.mjs +1 -2
- package/dist/blocks/files/createJobName.d.mts +1 -3
- package/dist/blocks/files/createJobName.mjs +1 -2
- package/dist/blocks/files/createMultiWorkflowFile.d.mts +1 -3
- package/dist/blocks/files/createMultiWorkflowFile.mjs +1 -2
- package/dist/blocks/files/createSoloWorkflowFile.d.mts +1 -2
- package/dist/blocks/files/createSoloWorkflowFile.mjs +1 -2
- package/dist/blocks/files/formatIgnoreFile.d.mts +1 -3
- package/dist/blocks/files/formatIgnoreFile.mjs +1 -2
- package/dist/blocks/files/formatWorkflowYaml.d.mts +1 -3
- package/dist/blocks/files/formatWorkflowYaml.mjs +1 -2
- package/dist/blocks/files/formatYaml.d.mts +1 -3
- package/dist/blocks/files/formatYaml.mjs +1 -2
- package/dist/blocks/files/removeUsesQuotes.d.mts +1 -3
- package/dist/blocks/files/removeUsesQuotes.mjs +1 -2
- package/dist/blocks/files/withPreviously.d.mts +1 -3
- package/dist/blocks/files/withPreviously.mjs +1 -2
- package/dist/blocks/getInstallationSuggestions.d.mts +1 -3
- package/dist/blocks/getInstallationSuggestions.mjs +1 -2
- package/dist/blocks/index.d.mts +4 -6
- package/dist/blocks/index.mjs +31 -32
- package/dist/blocks/intake/intakeFile.d.mts +1 -3
- package/dist/blocks/intake/intakeFile.mjs +1 -2
- package/dist/blocks/intake/intakeFileAsJson.d.mts +1 -3
- package/dist/blocks/intake/intakeFileAsJson.mjs +1 -2
- package/dist/blocks/intake/intakeFileAsYaml.d.mts +1 -3
- package/dist/blocks/intake/intakeFileAsYaml.mjs +1 -2
- package/dist/blocks/intake/intakeFileDefineConfig.d.mts +1 -3
- package/dist/blocks/intake/intakeFileDefineConfig.mjs +1 -2
- package/dist/blocks/intake/intakeFileExportObject.d.mts +1 -3
- package/dist/blocks/intake/intakeFileExportObject.mjs +1 -2
- package/dist/blocks/options.fakes.d.mts +1 -3
- package/dist/blocks/options.fakes.mjs +1 -2
- package/dist/blocks/outcomeLabels.d.mts +1 -3
- package/dist/blocks/outcomeLabels.mjs +1 -2
- package/dist/blocks/phases.d.mts +1 -3
- package/dist/blocks/phases.mjs +1 -2
- package/dist/constants.d.mts +1 -3
- package/dist/constants.mjs +1 -2
- package/dist/data/contributions.d.mts +1 -3
- package/dist/data/contributions.mjs +1 -2
- package/dist/data/packageData.d.mts +1 -3
- package/dist/data/packageData.mjs +0 -1
- package/dist/index.d.mts +2 -4
- package/dist/index.mjs +3 -4
- package/dist/inputs/inputFromDirectory.d.mts +1 -3
- package/dist/inputs/inputFromDirectory.mjs +1 -2
- package/dist/inputs/inputFromOctokit.d.mts +1 -3
- package/dist/inputs/inputFromOctokit.mjs +1 -2
- package/dist/options/readAccess.d.mts +1 -3
- package/dist/options/readAccess.mjs +1 -2
- package/dist/options/readAllContributors.d.mts +1 -3
- package/dist/options/readAllContributors.mjs +1 -2
- package/dist/options/readAuthor.d.mts +1 -3
- package/dist/options/readAuthor.mjs +1 -2
- package/dist/options/readBin.d.mts +1 -3
- package/dist/options/readBin.mjs +1 -2
- package/dist/options/readBundle.d.mts +1 -3
- package/dist/options/readBundle.mjs +1 -2
- package/dist/options/readCodecovToken.d.mts +1 -3
- package/dist/options/readCodecovToken.mjs +3 -4
- package/dist/options/readDescription.d.mts +1 -3
- package/dist/options/readDescription.mjs +1 -2
- package/dist/options/readDescriptionFromReadme.d.mts +1 -3
- package/dist/options/readDescriptionFromReadme.mjs +1 -2
- package/dist/options/readDevelopmentDocumentation.d.mts +1 -3
- package/dist/options/readDevelopmentDocumentation.mjs +1 -2
- package/dist/options/readDocumentation.d.mts +1 -3
- package/dist/options/readDocumentation.mjs +1 -2
- package/dist/options/readEmailFromCodeOfConduct.d.mts +1 -3
- package/dist/options/readEmailFromCodeOfConduct.mjs +1 -2
- package/dist/options/readEmailFromGit.d.mts +1 -3
- package/dist/options/readEmailFromGit.mjs +1 -2
- package/dist/options/readEmailFromNpm.d.mts +1 -3
- package/dist/options/readEmailFromNpm.mjs +1 -2
- package/dist/options/readEmails.d.mts +1 -3
- package/dist/options/readEmails.mjs +1 -2
- package/dist/options/readEmoji.d.mts +1 -3
- package/dist/options/readEmoji.mjs +1 -2
- package/dist/options/readExistingLabels.d.mts +1 -3
- package/dist/options/readExistingLabels.mjs +1 -2
- package/dist/options/readFileAsJson.d.mts +1 -3
- package/dist/options/readFileAsJson.mjs +1 -2
- package/dist/options/readFileSafe.d.mts +1 -3
- package/dist/options/readFileSafe.mjs +1 -2
- package/dist/options/readFunding.d.mts +1 -3
- package/dist/options/readFunding.mjs +1 -2
- package/dist/options/readGitDefaults.d.mts +1 -3
- package/dist/options/readGitDefaults.mjs +1 -2
- package/dist/options/readGuide.d.mts +1 -3
- package/dist/options/readGuide.mjs +1 -2
- package/dist/options/readKeywords.d.mts +1 -3
- package/dist/options/readKeywords.mjs +1 -2
- package/dist/options/readLogo.d.mts +1 -3
- package/dist/options/readLogo.mjs +1 -2
- package/dist/options/readLogoSizing.d.mts +1 -3
- package/dist/options/readLogoSizing.mjs +1 -2
- package/dist/options/readNode.d.mts +1 -3
- package/dist/options/readNode.mjs +2 -3
- package/dist/options/readNpmDefaults.d.mts +1 -3
- package/dist/options/readNpmDefaults.mjs +1 -2
- package/dist/options/readOwner.d.mts +1 -3
- package/dist/options/readOwner.mjs +1 -2
- package/dist/options/readPackageAuthor.d.mts +1 -3
- package/dist/options/readPackageAuthor.mjs +1 -2
- package/dist/options/readPackageData.d.mts +1 -3
- package/dist/options/readPackageData.mjs +1 -2
- package/dist/options/readPnpm.d.mts +1 -3
- package/dist/options/readPnpm.mjs +1 -2
- package/dist/options/readReadmeAdditional.d.mts +1 -3
- package/dist/options/readReadmeAdditional.mjs +1 -2
- package/dist/options/readReadmeExplainer.d.mts +1 -3
- package/dist/options/readReadmeExplainer.mjs +1 -2
- package/dist/options/readReadmeFootnotes.d.mts +1 -3
- package/dist/options/readReadmeFootnotes.mjs +1 -2
- package/dist/options/readReadmeUsage.d.mts +1 -3
- package/dist/options/readReadmeUsage.mjs +1 -2
- package/dist/options/readRepository.d.mts +1 -3
- package/dist/options/readRepository.mjs +1 -2
- package/dist/options/readRulesetId.d.mts +1 -3
- package/dist/options/readRulesetId.mjs +1 -2
- package/dist/options/readTitle.d.mts +1 -3
- package/dist/options/readTitle.mjs +1 -2
- package/dist/options/readWords.d.mts +1 -3
- package/dist/options/readWords.mjs +1 -2
- package/dist/options/readWorkflowsVersions.d.mts +1 -3
- package/dist/options/readWorkflowsVersions.mjs +2 -3
- package/dist/package.json.d.mts +0 -1
- package/dist/presets/common.d.mts +1 -3
- package/dist/presets/common.mjs +3 -4
- package/dist/presets/everything.d.mts +1 -3
- package/dist/presets/everything.mjs +5 -6
- package/dist/presets/index.d.mts +0 -2
- package/dist/presets/index.mjs +2 -3
- package/dist/presets/minimal.d.mts +1 -3
- package/dist/presets/minimal.mjs +18 -19
- package/dist/schemas.d.mts +1 -3
- package/dist/schemas.mjs +1 -2
- package/dist/template.d.mts +1 -3
- package/dist/template.mjs +4 -5
- package/dist/types.d.mts +1 -2
- package/dist/utils/formatFile.d.mts +1 -3
- package/dist/utils/formatFile.mjs +1 -2
- package/dist/utils/htmlToTextSafe.d.mts +1 -3
- package/dist/utils/htmlToTextSafe.mjs +1 -2
- package/dist/utils/parseDefineConfig.d.mts +1 -3
- package/dist/utils/parseDefineConfig.mjs +1 -2
- package/dist/utils/resolveBin.d.mts +1 -3
- package/dist/utils/resolveBin.mjs +1 -2
- package/dist/utils/resolveEmails.d.mts +1 -3
- package/dist/utils/resolveEmails.mjs +1 -2
- package/dist/utils/swallowError.d.mts +1 -3
- package/dist/utils/swallowError.mjs +1 -2
- package/dist/utils/swallowErrorAsync.d.mts +1 -3
- package/dist/utils/swallowErrorAsync.mjs +1 -2
- package/dist/utils/trimPrecedingSlash.d.mts +1 -3
- package/dist/utils/trimPrecedingSlash.mjs +1 -2
- package/dist/utils/tryCatch.d.mts +1 -3
- package/dist/utils/tryCatch.mjs +1 -2
- package/package.json +13 -13
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { getPackageDependencies } from "../data/packageData.mjs";
|
|
2
1
|
import { base } from "../base.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { blockRemoveFiles } from "./blockRemoveFiles.mjs";
|
|
5
|
-
import { withPreviously } from "./files/withPreviously.mjs";
|
|
6
|
-
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.mjs";
|
|
2
|
+
import { getPackageDependencies } from "../data/packageData.mjs";
|
|
7
3
|
import { formatFile } from "../utils/formatFile.mjs";
|
|
8
4
|
import { blockDevelopmentDocs } from "./blockDevelopmentDocs.mjs";
|
|
9
|
-
import { intakeFileAsJson } from "./intake/intakeFileAsJson.mjs";
|
|
10
|
-
import { blockPackageJson } from "./blockPackageJson.mjs";
|
|
11
|
-
import { blockRemoveWorkflows } from "./blockRemoveWorkflows.mjs";
|
|
12
|
-
import { blockGitHubIssueTemplates } from "./blockGitHubIssueTemplates.mjs";
|
|
13
|
-
import { blockRemoveDependencies } from "./blockRemoveDependencies.mjs";
|
|
14
5
|
import { blockESLint } from "./blockESLint.mjs";
|
|
6
|
+
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.mjs";
|
|
7
|
+
import { blockGitHubIssueTemplates } from "./blockGitHubIssueTemplates.mjs";
|
|
15
8
|
import { blockGitignore } from "./blockGitignore.mjs";
|
|
9
|
+
import { blockPackageJson } from "./blockPackageJson.mjs";
|
|
16
10
|
import { blockReleaseIt } from "./blockReleaseIt.mjs";
|
|
11
|
+
import { blockRemoveDependencies } from "./blockRemoveDependencies.mjs";
|
|
12
|
+
import { blockRemoveFiles } from "./blockRemoveFiles.mjs";
|
|
13
|
+
import { blockRemoveWorkflows } from "./blockRemoveWorkflows.mjs";
|
|
14
|
+
import { withPreviously } from "./files/withPreviously.mjs";
|
|
15
|
+
import { intakeFileAsJson } from "./intake/intakeFileAsJson.mjs";
|
|
17
16
|
import { intakeFileDefineConfig } from "./intake/intakeFileDefineConfig.mjs";
|
|
17
|
+
import { CommandPhase } from "./phases.mjs";
|
|
18
18
|
import { z } from "zod";
|
|
19
19
|
import removeUndefinedObjects from "remove-undefined-objects";
|
|
20
|
-
|
|
20
|
+
// src/blocks/blockTSDown.ts
|
|
21
21
|
const zEntry = z.array(z.string());
|
|
22
22
|
const zProperties = z.record(z.string(), z.unknown());
|
|
23
23
|
const defaultEntries = /* @__PURE__ */ new Set(["src/**/*.ts", "src/index.ts"]);
|
|
@@ -137,5 +137,4 @@ export default defineConfig(${JSON.stringify({
|
|
|
137
137
|
] };
|
|
138
138
|
}
|
|
139
139
|
});
|
|
140
|
-
//#endregion
|
|
141
140
|
export { blockTSDown };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/blocks/blockTemplatedWith.d.ts
|
|
2
1
|
export declare const blockTemplatedWith: import("bingo-stratum").BlockWithoutAddons<{
|
|
3
2
|
access: "public" | "restricted";
|
|
4
3
|
description: string;
|
|
@@ -69,5 +68,4 @@ export declare const blockTemplatedWith: import("bingo-stratum").BlockWithoutAdd
|
|
|
69
68
|
hash?: string | undefined;
|
|
70
69
|
pinned?: boolean | undefined;
|
|
71
70
|
}>> | undefined;
|
|
72
|
-
}>;
|
|
73
|
-
//#endregion
|
|
71
|
+
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { base } from "../base.mjs";
|
|
2
2
|
import { blockREADME } from "./blockREADME.mjs";
|
|
3
|
-
|
|
3
|
+
// src/blocks/blockTemplatedWith.ts
|
|
4
4
|
const blockTemplatedWith = base.createBlock({
|
|
5
5
|
about: { name: "Templated With" },
|
|
6
6
|
produce({ options }) {
|
|
@@ -9,5 +9,4 @@ const blockTemplatedWith = base.createBlock({
|
|
|
9
9
|
`].filter((notice) => typeof notice === "string") })] };
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
//#endregion
|
|
13
12
|
export { blockTemplatedWith };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/blocks/blockTypeScript.d.ts
|
|
2
1
|
export declare const blockTypeScript: import("bingo-stratum").BlockWithAddons<{
|
|
3
2
|
compilerOptions?: {
|
|
4
3
|
allowArbitraryExtensions?: boolean | undefined;
|
|
@@ -186,5 +185,4 @@ export declare const blockTypeScript: import("bingo-stratum").BlockWithAddons<{
|
|
|
186
185
|
hash?: string | undefined;
|
|
187
186
|
pinned?: boolean | undefined;
|
|
188
187
|
}>> | undefined;
|
|
189
|
-
}>;
|
|
190
|
-
//#endregion
|
|
188
|
+
}>;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { getPackageDependencies } from "../data/packageData.mjs";
|
|
2
1
|
import { base } from "../base.mjs";
|
|
3
|
-
import {
|
|
2
|
+
import { getPackageDependencies } from "../data/packageData.mjs";
|
|
4
3
|
import { formatFile } from "../utils/formatFile.mjs";
|
|
5
|
-
import { blockDevelopmentDocs } from "./blockDevelopmentDocs.mjs";
|
|
6
|
-
import { intakeFileAsJson } from "./intake/intakeFileAsJson.mjs";
|
|
7
|
-
import { blockPackageJson } from "./blockPackageJson.mjs";
|
|
8
|
-
import { blockRemoveWorkflows } from "./blockRemoveWorkflows.mjs";
|
|
9
4
|
import { getPrimaryBin } from "./bin/getPrimaryBin.mjs";
|
|
10
|
-
import {
|
|
5
|
+
import { blockDevelopmentDocs } from "./blockDevelopmentDocs.mjs";
|
|
11
6
|
import { blockExampleFiles } from "./blockExampleFiles.mjs";
|
|
7
|
+
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.mjs";
|
|
12
8
|
import { blockKnip } from "./blockKnip.mjs";
|
|
9
|
+
import { blockPackageJson } from "./blockPackageJson.mjs";
|
|
10
|
+
import { blockRemoveWorkflows } from "./blockRemoveWorkflows.mjs";
|
|
13
11
|
import { blockVitest } from "./blockVitest.mjs";
|
|
12
|
+
import { blockVSCode } from "./blockVSCode.mjs";
|
|
13
|
+
import { intakeFileAsJson } from "./intake/intakeFileAsJson.mjs";
|
|
14
14
|
import { z } from "zod";
|
|
15
15
|
import sortKeys from "sort-keys";
|
|
16
16
|
import { CompilerOptionsSchema } from "zod-tsconfig";
|
|
17
|
-
|
|
17
|
+
// src/blocks/blockTypeScript.ts
|
|
18
18
|
const blockTypeScript = base.createBlock({
|
|
19
19
|
about: { name: "TypeScript" },
|
|
20
20
|
addons: {
|
|
@@ -137,5 +137,4 @@ greet("Hello, world! ${options.emoji}");
|
|
|
137
137
|
return { addons: [blockRemoveWorkflows({ workflows: ["tsc"] })] };
|
|
138
138
|
}
|
|
139
139
|
});
|
|
140
|
-
//#endregion
|
|
141
140
|
export { blockTypeScript };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/blocks/blockVSCode.d.ts
|
|
2
1
|
export declare const blockVSCode: import("bingo-stratum").BlockWithAddons<{
|
|
3
2
|
settings: Record<string, unknown>;
|
|
4
3
|
debuggers?: (Record<string, unknown> & {
|
|
@@ -78,5 +77,4 @@ export declare const blockVSCode: import("bingo-stratum").BlockWithAddons<{
|
|
|
78
77
|
hash?: string | undefined;
|
|
79
78
|
pinned?: boolean | undefined;
|
|
80
79
|
}>> | undefined;
|
|
81
|
-
}>;
|
|
82
|
-
//#endregion
|
|
80
|
+
}>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { base } from "../base.mjs";
|
|
2
2
|
import { formatFile } from "../utils/formatFile.mjs";
|
|
3
|
-
import { blockDevelopmentDocs } from "./blockDevelopmentDocs.mjs";
|
|
4
3
|
import { getPrimaryBin } from "./bin/getPrimaryBin.mjs";
|
|
4
|
+
import { blockDevelopmentDocs } from "./blockDevelopmentDocs.mjs";
|
|
5
5
|
import { blockGitHubIssueTemplates } from "./blockGitHubIssueTemplates.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import sortKeys from "sort-keys";
|
|
8
|
-
|
|
8
|
+
// src/blocks/blockVSCode.ts
|
|
9
9
|
const blockVSCode = base.createBlock({
|
|
10
10
|
about: { name: "VS Code" },
|
|
11
11
|
addons: {
|
|
@@ -57,5 +57,4 @@ To launch it, open a test file, then run _Debug Current Test File_ from the VS C
|
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
|
-
//#endregion
|
|
61
60
|
export { blockVSCode };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/blocks/blockVitest.d.ts
|
|
2
1
|
export declare const blockVitest: import("bingo-stratum").BlockWithAddons<{
|
|
3
2
|
actionSteps: ({
|
|
4
3
|
env?: Record<string, string> | undefined;
|
|
@@ -86,5 +85,4 @@ export declare const blockVitest: import("bingo-stratum").BlockWithAddons<{
|
|
|
86
85
|
hash?: string | undefined;
|
|
87
86
|
pinned?: boolean | undefined;
|
|
88
87
|
}>> | undefined;
|
|
89
|
-
}>;
|
|
90
|
-
//#endregion
|
|
88
|
+
}>;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { zActionStep } from "./actions/steps.mjs";
|
|
2
|
-
import { getPackageDependencies } from "../data/packageData.mjs";
|
|
3
1
|
import { base } from "../base.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.mjs";
|
|
2
|
+
import { getPackageDependencies } from "../data/packageData.mjs";
|
|
6
3
|
import { formatFile } from "../utils/formatFile.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import { blockPackageJson } from "./blockPackageJson.mjs";
|
|
9
|
-
import { blockRemoveWorkflows } from "./blockRemoveWorkflows.mjs";
|
|
10
|
-
import { blockVSCode } from "./blockVSCode.mjs";
|
|
4
|
+
import { zActionStep } from "./actions/steps.mjs";
|
|
11
5
|
import { blockCSpell } from "./blockCSpell.mjs";
|
|
12
|
-
import {
|
|
6
|
+
import { blockDevelopmentDocs } from "./blockDevelopmentDocs.mjs";
|
|
13
7
|
import { blockESLint } from "./blockESLint.mjs";
|
|
14
8
|
import { blockExampleFiles } from "./blockExampleFiles.mjs";
|
|
9
|
+
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.mjs";
|
|
15
10
|
import { blockGitignore } from "./blockGitignore.mjs";
|
|
16
11
|
import { blockKnip } from "./blockKnip.mjs";
|
|
12
|
+
import { blockPackageJson } from "./blockPackageJson.mjs";
|
|
17
13
|
import { blockPrettier } from "./blockPrettier.mjs";
|
|
18
|
-
import {
|
|
14
|
+
import { blockRemoveDependencies } from "./blockRemoveDependencies.mjs";
|
|
15
|
+
import { blockRemoveFiles } from "./blockRemoveFiles.mjs";
|
|
16
|
+
import { blockRemoveWorkflows } from "./blockRemoveWorkflows.mjs";
|
|
19
17
|
import { blockTSDown } from "./blockTSDown.mjs";
|
|
18
|
+
import { blockVSCode } from "./blockVSCode.mjs";
|
|
19
|
+
import { intakeFileDefineConfig } from "./intake/intakeFileDefineConfig.mjs";
|
|
20
20
|
import { z } from "zod";
|
|
21
|
-
|
|
21
|
+
// src/blocks/blockVitest.ts
|
|
22
22
|
const zCoverage = z.object({
|
|
23
23
|
exclude: z.array(z.string()).optional(),
|
|
24
24
|
include: z.array(z.string()).optional()
|
|
@@ -227,5 +227,4 @@ export default defineConfig({
|
|
|
227
227
|
};
|
|
228
228
|
}
|
|
229
229
|
});
|
|
230
|
-
//#endregion
|
|
231
230
|
export { blockVitest };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/blocks/blockWebExt.d.ts
|
|
2
1
|
export declare const blockWebExt: import("bingo-stratum").BlockWithoutAddons<{
|
|
3
2
|
access: "public" | "restricted";
|
|
4
3
|
description: string;
|
|
@@ -69,5 +68,4 @@ export declare const blockWebExt: import("bingo-stratum").BlockWithoutAddons<{
|
|
|
69
68
|
hash?: string | undefined;
|
|
70
69
|
pinned?: boolean | undefined;
|
|
71
70
|
}>> | undefined;
|
|
72
|
-
}>;
|
|
73
|
-
//#endregion
|
|
71
|
+
}>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { base } from "../base.mjs";
|
|
2
|
-
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.mjs";
|
|
3
|
-
import { blockDevelopmentDocs } from "./blockDevelopmentDocs.mjs";
|
|
4
|
-
import { blockPackageJson } from "./blockPackageJson.mjs";
|
|
5
|
-
import { blockGitHubIssueTemplates } from "./blockGitHubIssueTemplates.mjs";
|
|
6
2
|
import { blockCSpell } from "./blockCSpell.mjs";
|
|
3
|
+
import { blockDevelopmentDocs } from "./blockDevelopmentDocs.mjs";
|
|
7
4
|
import { blockESLint } from "./blockESLint.mjs";
|
|
5
|
+
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.mjs";
|
|
6
|
+
import { blockGitHubIssueTemplates } from "./blockGitHubIssueTemplates.mjs";
|
|
8
7
|
import { blockGitignore } from "./blockGitignore.mjs";
|
|
8
|
+
import { blockPackageJson } from "./blockPackageJson.mjs";
|
|
9
9
|
import { blockPrettier } from "./blockPrettier.mjs";
|
|
10
10
|
import { blockVitest } from "./blockVitest.mjs";
|
|
11
|
-
|
|
11
|
+
// src/blocks/blockWebExt.ts
|
|
12
12
|
const blockWebExt = base.createBlock({
|
|
13
13
|
about: { name: "Web-ext" },
|
|
14
14
|
produce() {
|
|
@@ -105,5 +105,4 @@ Then upload that \`./web-ext-artifacts/refined_saved_replies-*.zip\` file to:
|
|
|
105
105
|
] };
|
|
106
106
|
}
|
|
107
107
|
});
|
|
108
|
-
//#endregion
|
|
109
108
|
export { blockWebExt };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import { JobOrRunStep } from "../actions/steps.mjs";
|
|
2
|
-
//#region src/blocks/codecov/findCodecovStep.d.ts
|
|
3
2
|
export declare const codecovTokenSecret = "${{ secrets.CODECOV_TOKEN }}";
|
|
4
|
-
export declare function findCodecovStep(steps: JobOrRunStep[]): JobOrRunStep | undefined;
|
|
5
|
-
//#endregion
|
|
3
|
+
export declare function findCodecovStep(steps: JobOrRunStep[]): JobOrRunStep | undefined;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// src/blocks/codecov/findCodecovStep.ts
|
|
2
2
|
const codecovTokenSecret = "${{ secrets.CODECOV_TOKEN }}";
|
|
3
3
|
function findCodecovStep(steps) {
|
|
4
4
|
return steps.find((step) => typeof step.uses === "string" && step.uses.startsWith("codecov/codecov-action"));
|
|
5
5
|
}
|
|
6
|
-
//#endregion
|
|
7
6
|
export { codecovTokenSecret, findCodecovStep };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
//#region src/blocks/eslint/blockESLintIntake.d.ts
|
|
2
1
|
export declare function blockESLintIntake(sourceText: string): {
|
|
3
2
|
ignores: (string | (RegExp & string))[];
|
|
4
3
|
rules: {
|
|
5
4
|
entries: Record<string, "error" | "off" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
6
5
|
comment?: string | undefined;
|
|
7
6
|
}[];
|
|
8
|
-
} | undefined;
|
|
9
|
-
//#endregion
|
|
7
|
+
} | undefined;
|
|
@@ -3,7 +3,7 @@ import "../blockESLintMoreStyling.mjs";
|
|
|
3
3
|
import { zRuleOptions } from "./schemas.mjs";
|
|
4
4
|
import JSON5 from "json5";
|
|
5
5
|
import { AST_NODE_TYPES, parse } from "@typescript-eslint/typescript-estree";
|
|
6
|
-
|
|
6
|
+
// src/blocks/eslint/blockESLintIntake.ts
|
|
7
7
|
function blockESLintIntake(sourceText) {
|
|
8
8
|
const configExport = tryCatch(() => parse(sourceText, {
|
|
9
9
|
comment: true,
|
|
@@ -80,5 +80,4 @@ function blockESLintIntake(sourceText) {
|
|
|
80
80
|
return node.type === AST_NODE_TYPES.MemberExpression && node.object.type === AST_NODE_TYPES.Identifier && node.object.name === "tseslint" && node.property.type === AST_NODE_TYPES.Identifier && node.property.name === "config";
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
//#endregion
|
|
84
83
|
export { blockESLintIntake };
|
|
@@ -2,7 +2,7 @@ import { tryCatch } from "../../utils/tryCatch.mjs";
|
|
|
2
2
|
import { zConfigEmoji } from "./schemas.mjs";
|
|
3
3
|
import JSON5 from "json5";
|
|
4
4
|
import { AST_NODE_TYPES, parse } from "@typescript-eslint/typescript-estree";
|
|
5
|
-
|
|
5
|
+
// src/blocks/eslint/blockESLintPluginIntake.ts
|
|
6
6
|
function blockESLintPluginIntake(sourceText) {
|
|
7
7
|
const ast = tryCatch(() => parse(sourceText, {
|
|
8
8
|
comment: true,
|
|
@@ -23,5 +23,4 @@ function blockESLintPluginIntake(sourceText) {
|
|
|
23
23
|
for (const node of properties) if (node.type === AST_NODE_TYPES.Property && node.key.type === AST_NODE_TYPES.Identifier && node.key.name === "configEmoji" && node.value.type === AST_NODE_TYPES.ArrayExpression) return node.value;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
//#endregion
|
|
27
26
|
export { blockESLintPluginIntake };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
//#region src/blocks/eslint/getScriptFileExtension.d.ts
|
|
2
1
|
export interface ScriptFileExtensionOptions {
|
|
3
2
|
type?: "commonjs" | "module";
|
|
4
3
|
}
|
|
5
|
-
export declare function getScriptFileExtension(options: ScriptFileExtensionOptions): "**/*.{js,mjs,ts}" | "**/*.{js,ts}";
|
|
6
|
-
//#endregion
|
|
4
|
+
export declare function getScriptFileExtension(options: ScriptFileExtensionOptions): "**/*.{js,mjs,ts}" | "**/*.{js,ts}";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
// src/blocks/eslint/getScriptFileExtension.ts
|
|
2
2
|
function getScriptFileExtension(options) {
|
|
3
3
|
return options.type === "commonjs" ? "**/*.{js,mjs,ts}" : "**/*.{js,ts}";
|
|
4
4
|
}
|
|
5
|
-
//#endregion
|
|
6
5
|
export { getScriptFileExtension };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Extension } from "./schemas.mjs";
|
|
2
|
-
//#region src/blocks/eslint/mergeAllExtensions.d.ts
|
|
3
2
|
export declare function mergeAllExtensions(...extensions: Extension[]): {
|
|
4
3
|
files: string[];
|
|
5
4
|
extends?: string[] | undefined;
|
|
@@ -11,5 +10,4 @@ export declare function mergeAllExtensions(...extensions: Extension[]): {
|
|
|
11
10
|
comment?: string | undefined;
|
|
12
11
|
}[] | undefined;
|
|
13
12
|
settings?: Record<string, unknown> | undefined;
|
|
14
|
-
}[];
|
|
15
|
-
//#endregion
|
|
13
|
+
}[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/blocks/eslint/mergeAllExtensions.ts
|
|
2
2
|
function mergeAllExtensions(...extensions) {
|
|
3
3
|
const entries = {};
|
|
4
4
|
for (const extension of extensions) {
|
|
@@ -42,5 +42,4 @@ function mergeExtensionsRules(a, b) {
|
|
|
42
42
|
...b
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
//#endregion
|
|
46
45
|
export { mergeAllExtensions };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
//#region src/blocks/eslint/schemas.d.ts
|
|
3
2
|
export declare const zConfigEmoji: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>>;
|
|
4
3
|
export declare const zRuleOptions: z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"off">, z.ZodLiteral<"warn">, z.ZodTuple<[z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown], null>, z.ZodTuple<[z.ZodUnion<readonly [z.ZodLiteral<"error">, z.ZodLiteral<"warn">]>, z.ZodUnknown, z.ZodUnknown], null>]>;
|
|
5
4
|
export type RuleOptions = z.infer<typeof zRuleOptions>;
|
|
@@ -40,5 +39,4 @@ export declare const zPackageImport: z.ZodObject<{
|
|
|
40
39
|
}, z.core.$strip>]>;
|
|
41
40
|
specifier: z.ZodString;
|
|
42
41
|
types: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
-
}, z.core.$strip>;
|
|
44
|
-
//#endregion
|
|
42
|
+
}, z.core.$strip>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
|
|
2
|
+
// src/blocks/eslint/schemas.ts
|
|
3
3
|
const zConfigEmoji = z.array(z.tuple([z.string(), z.string()])).optional();
|
|
4
4
|
const zRuleOptions = z.union([
|
|
5
5
|
z.literal("error"),
|
|
@@ -36,5 +36,4 @@ const zPackageImport = z.object({
|
|
|
36
36
|
specifier: z.string(),
|
|
37
37
|
types: z.boolean().optional()
|
|
38
38
|
});
|
|
39
|
-
//#endregion
|
|
40
39
|
export { zConfigEmoji, zExtension, zExtensionRuleGroup, zExtensionRules, zPackageImport, zRuleOptions, zRulesArray, zRulesRecord };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { WorkflowsVersions } from "../../schemas.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
//#region src/blocks/files/createMultiWorkflowFile.d.ts
|
|
4
3
|
export declare const zMultiWorkflowJobPermissions: z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
5
4
|
write: "write";
|
|
6
5
|
none: "none";
|
|
@@ -26,5 +25,4 @@ export type MultiWorkflowJobStep = {
|
|
|
26
25
|
uses: string;
|
|
27
26
|
with?: Record<string, string>;
|
|
28
27
|
});
|
|
29
|
-
export declare function createMultiWorkflowFile({ jobs, name, workflowsVersions }: MultiWorkflowFileOptions): string;
|
|
30
|
-
//#endregion
|
|
28
|
+
export declare function createMultiWorkflowFile({ jobs, name, workflowsVersions }: MultiWorkflowFileOptions): string;
|
|
@@ -2,7 +2,7 @@ import { resolveUses } from "../actions/resolveUses.mjs";
|
|
|
2
2
|
import { createJobName } from "./createJobName.mjs";
|
|
3
3
|
import { formatWorkflowYaml } from "./formatWorkflowYaml.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
-
|
|
5
|
+
// src/blocks/files/createMultiWorkflowFile.ts
|
|
6
6
|
const zMultiWorkflowJobPermissions = z.record(z.string(), z.enum([
|
|
7
7
|
"none",
|
|
8
8
|
"read",
|
|
@@ -31,5 +31,4 @@ function createMultiWorkflowFile({ jobs, name, workflowsVersions }) {
|
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
//#endregion
|
|
35
34
|
export { createMultiWorkflowFile, zMultiWorkflowJobPermissions };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/blocks/files/createSoloWorkflowFile.d.ts
|
|
2
1
|
interface WorkflowFileConcurrency {
|
|
3
2
|
"cancel-in-progress"?: boolean;
|
|
4
3
|
group: string;
|
|
@@ -68,4 +67,4 @@ interface WorkflowFileStep {
|
|
|
68
67
|
with?: Record<string, unknown>;
|
|
69
68
|
}
|
|
70
69
|
export declare function createSoloWorkflowFile({ concurrency, jobName, name, on, permissions, ...options }: WorkflowFileOptions): string;
|
|
71
|
-
|
|
70
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createJobName } from "./createJobName.mjs";
|
|
2
2
|
import { formatWorkflowYaml } from "./formatWorkflowYaml.mjs";
|
|
3
|
-
|
|
3
|
+
// src/blocks/files/createSoloWorkflowFile.ts
|
|
4
4
|
function createSoloWorkflowFile({ concurrency, jobName, name, on, permissions, ...options }) {
|
|
5
5
|
return formatWorkflowYaml({
|
|
6
6
|
concurrency,
|
|
@@ -15,5 +15,4 @@ function createSoloWorkflowFile({ concurrency, jobName, name, on, permissions, .
|
|
|
15
15
|
on
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
-
//#endregion
|
|
19
18
|
export { createSoloWorkflowFile };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { formatYaml } from "./formatYaml.mjs";
|
|
2
|
-
|
|
2
|
+
// src/blocks/files/formatWorkflowYaml.ts
|
|
3
3
|
function formatWorkflowYaml(value) {
|
|
4
4
|
return addBlankLinesBetweenJobs(formatYaml(value).replaceAll(/: "\\n(.+)"/g, ": |\n$1").replaceAll("\\n", "\n").replaceAll("\\t", " "));
|
|
5
5
|
}
|
|
6
6
|
function addBlankLinesBetweenJobs(yaml) {
|
|
7
7
|
return yaml.replace(/(?<=^|\n)jobs:\n[\s\S]*?(?=\n\n\S|$)/, (jobs) => jobs.replaceAll(/\n(?= {2}\S)/g, "\n\n").replace("jobs:\n\n", "jobs:\n"));
|
|
8
8
|
}
|
|
9
|
-
//#endregion
|
|
10
9
|
export { formatWorkflowYaml };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { removeUsesQuotes } from "./removeUsesQuotes.mjs";
|
|
2
2
|
import { CORE_SCHEMA, dump, nullCoreTag, visit } from "js-yaml";
|
|
3
|
-
|
|
3
|
+
// src/blocks/files/formatYaml.ts
|
|
4
4
|
const options = {
|
|
5
5
|
lineWidth: -1,
|
|
6
6
|
schema: CORE_SCHEMA.withTags({
|
|
@@ -17,5 +17,4 @@ const options = {
|
|
|
17
17
|
function formatYaml(value) {
|
|
18
18
|
return removeUsesQuotes(dump(value, options)).replaceAll(/\n(\S)/g, "\n\n$1");
|
|
19
19
|
}
|
|
20
|
-
//#endregion
|
|
21
20
|
export { formatYaml };
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { CreatedFileEntry } from "bingo-fs";
|
|
2
|
-
|
|
3
|
-
export declare function withPreviously(contents: false | string | undefined, previously: string[]): CreatedFileEntry | false | undefined;
|
|
4
|
-
//#endregion
|
|
2
|
+
export declare function withPreviously(contents: false | string | undefined, previously: string[]): CreatedFileEntry | false | undefined;
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function getInstallationSuggestions(description: string, entries: string[], url: string): string[] | undefined;
|
|
3
|
-
//#endregion
|
|
1
|
+
export declare function getInstallationSuggestions(description: string, entries: string[], url: string): string[] | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/blocks/getInstallationSuggestions.ts
|
|
2
2
|
function getInstallationSuggestions(description, entries, url) {
|
|
3
3
|
return entries.length ? [[
|
|
4
4
|
`- ${description}`,
|
|
@@ -7,5 +7,4 @@ function getInstallationSuggestions(description, entries, url) {
|
|
|
7
7
|
entries.map((entry) => ` - ${entry}`).join("\n")
|
|
8
8
|
].join("")] : void 0;
|
|
9
9
|
}
|
|
10
|
-
//#endregion
|
|
11
10
|
export { getInstallationSuggestions };
|
package/dist/blocks/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { blockAllContributors } from "./blockAllContributors.mjs";
|
|
2
2
|
import { blockAreTheTypesWrong } from "./blockAreTheTypesWrong.mjs";
|
|
3
3
|
import { blockBin } from "./blockBin.mjs";
|
|
4
|
-
import { blockCSpell } from "./blockCSpell.mjs";
|
|
5
|
-
import { blockCTATransitions } from "./blockCTATransitions.mjs";
|
|
6
4
|
import { blockCodecov } from "./blockCodecov.mjs";
|
|
7
5
|
import { blockContributingDocs } from "./blockContributingDocs.mjs";
|
|
8
6
|
import { blockContributorCovenant } from "./blockContributorCovenant.mjs";
|
|
7
|
+
import { blockCSpell } from "./blockCSpell.mjs";
|
|
8
|
+
import { blockCTATransitions } from "./blockCTATransitions.mjs";
|
|
9
9
|
import { blockDevelopmentDocs } from "./blockDevelopmentDocs.mjs";
|
|
10
10
|
import { blockESLint } from "./blockESLint.mjs";
|
|
11
11
|
import { blockESLintComments } from "./blockESLintComments.mjs";
|
|
@@ -44,13 +44,12 @@ import { blockReleaseIt } from "./blockReleaseIt.mjs";
|
|
|
44
44
|
import { blockRenovate } from "./blockRenovate.mjs";
|
|
45
45
|
import { blockSecurityDocs } from "./blockSecurityDocs.mjs";
|
|
46
46
|
import { blockSideEffects } from "./blockSideEffects.mjs";
|
|
47
|
-
import { blockTSDown } from "./blockTSDown.mjs";
|
|
48
47
|
import { blockTemplatedWith } from "./blockTemplatedWith.mjs";
|
|
48
|
+
import { blockTSDown } from "./blockTSDown.mjs";
|
|
49
49
|
import { blockTypeScript } from "./blockTypeScript.mjs";
|
|
50
|
-
import { blockVSCode } from "./blockVSCode.mjs";
|
|
51
50
|
import { blockVitest } from "./blockVitest.mjs";
|
|
51
|
+
import { blockVSCode } from "./blockVSCode.mjs";
|
|
52
52
|
import { blockWebExt } from "./blockWebExt.mjs";
|
|
53
|
-
//#region src/blocks/index.d.ts
|
|
54
53
|
export declare const blocks: {
|
|
55
54
|
blockAllContributors: import("bingo-stratum").BlockWithoutAddons<{
|
|
56
55
|
access: "public" | "restricted";
|
|
@@ -4067,5 +4066,4 @@ export declare const blocks: {
|
|
|
4067
4066
|
}>> | undefined;
|
|
4068
4067
|
}>;
|
|
4069
4068
|
};
|
|
4070
|
-
//#endregion
|
|
4071
4069
|
export { blockAllContributors, blockAreTheTypesWrong, blockBin, blockCSpell, blockCTATransitions, blockCodecov, blockContributingDocs, blockContributorCovenant, blockDevelopmentDocs, blockESLint, blockESLintComments, blockESLintJSDoc, blockESLintJSONC, blockESLintMarkdown, blockESLintMarkdownLinks, blockESLintMoreStyling, blockESLintNode, blockESLintPackageJson, blockESLintPerfectionist, blockESLintPlugin, blockESLintRegexp, blockESLintYML, blockExports, blockFunding, blockGitHubActionsCI, blockGitHubIssueTemplates, blockGitHubPRTemplate, blockGitignore, blockKnip, blockMITLicense, blockNcc, blockNvmrc, blockOctoGuide, blockOctoGuideStrict, blockPackageJson, blockPnpmDedupe, blockPrettier, blockPrettierPluginCurly, blockPrettierPluginPackageJson, blockPrettierPluginSentencesPerLine, blockPrettierPluginSh, blockREADME, blockReleaseIt, blockRenovate, blockSecurityDocs, blockSideEffects, blockTSDown, blockTemplatedWith, blockTypeScript, blockVSCode, blockVitest, blockWebExt };
|