create-typescript-app 2.74.2 → 2.74.3
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 +12 -12
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "node:module";
|
|
2
|
-
|
|
2
|
+
// \0rolldown/runtime.js
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __exportAll = (all, no_symbols) => {
|
|
5
5
|
let target = {};
|
|
@@ -10,5 +10,4 @@ var __exportAll = (all, no_symbols) => {
|
|
|
10
10
|
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
11
11
|
return target;
|
|
12
12
|
};
|
|
13
|
-
//#endregion
|
|
14
13
|
export { __exportAll };
|
package/dist/base.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BaseOptionsFor } from "bingo-stratum";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
//#region src/base.d.ts
|
|
4
3
|
export declare const base: import("bingo-stratum").Base<{
|
|
5
4
|
access: z.ZodUnion<readonly [z.ZodLiteral<"public">, z.ZodLiteral<"restricted">]>;
|
|
6
5
|
author: z.ZodOptional<z.ZodString>;
|
|
@@ -74,5 +73,4 @@ export declare const base: import("bingo-stratum").Base<{
|
|
|
74
73
|
}>;
|
|
75
74
|
export type BaseOptions = BaseOptionsFor<typeof base> & {
|
|
76
75
|
preset?: string;
|
|
77
|
-
};
|
|
78
|
-
//#endregion
|
|
76
|
+
};
|
package/dist/base.mjs
CHANGED
|
@@ -25,9 +25,9 @@ import { readOwner } from "./options/readOwner.mjs";
|
|
|
25
25
|
import { readPackageAuthor } from "./options/readPackageAuthor.mjs";
|
|
26
26
|
import { readPackageData } from "./options/readPackageData.mjs";
|
|
27
27
|
import { readPnpm } from "./options/readPnpm.mjs";
|
|
28
|
-
import { readReadmeFootnotes } from "./options/readReadmeFootnotes.mjs";
|
|
29
28
|
import { readReadmeAdditional } from "./options/readReadmeAdditional.mjs";
|
|
30
29
|
import { readReadmeExplainer } from "./options/readReadmeExplainer.mjs";
|
|
30
|
+
import { readReadmeFootnotes } from "./options/readReadmeFootnotes.mjs";
|
|
31
31
|
import { readReadmeUsage } from "./options/readReadmeUsage.mjs";
|
|
32
32
|
import { readRepository } from "./options/readRepository.mjs";
|
|
33
33
|
import { readRulesetId } from "./options/readRulesetId.mjs";
|
|
@@ -40,7 +40,7 @@ import { inputFromFile } from "input-from-file";
|
|
|
40
40
|
import { inputFromScript } from "input-from-script";
|
|
41
41
|
import lazyValue from "lazy-value";
|
|
42
42
|
import { z } from "zod";
|
|
43
|
-
|
|
43
|
+
// src/base.ts
|
|
44
44
|
const base = createBase({
|
|
45
45
|
options: {
|
|
46
46
|
access: z.union([z.literal("public"), z.literal("restricted")]).describe("which `npm publish --access` to release npm packages with"),
|
|
@@ -159,5 +159,4 @@ const base = createBase({
|
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
|
-
//#endregion
|
|
163
162
|
export { base };
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { WorkflowsVersions } from "../../schemas.mjs";
|
|
2
|
-
|
|
3
|
-
export declare function resolveUses(action: string, version: string, workflowsVersions?: WorkflowsVersions): string;
|
|
4
|
-
//#endregion
|
|
2
|
+
export declare function resolveUses(action: string, version: string, workflowsVersions?: WorkflowsVersions): string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CachedFactory } from "cached-factory";
|
|
2
2
|
import semver from "semver";
|
|
3
|
-
|
|
3
|
+
// src/blocks/actions/resolveUses.ts
|
|
4
4
|
const semverCoercions = new CachedFactory((version) => {
|
|
5
5
|
return semver.coerce(version)?.toString() ?? "0.0.0";
|
|
6
6
|
});
|
|
@@ -12,5 +12,4 @@ function resolveUses(action, version, workflowsVersions) {
|
|
|
12
12
|
const atBiggestVersion = workflowVersions[biggestVersion];
|
|
13
13
|
return atBiggestVersion.hash ? `${action}@${atBiggestVersion.hash} # ${biggestVersion}` : `${action}@${biggestVersion}`;
|
|
14
14
|
}
|
|
15
|
-
//#endregion
|
|
16
15
|
export { resolveUses };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { IntakeDirectory } from "bingo-fs";
|
|
3
|
-
//#region src/blocks/actions/steps.d.ts
|
|
4
3
|
export declare const zActionStep: z.ZodIntersection<z.ZodObject<{
|
|
5
4
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6
5
|
if: z.ZodOptional<z.ZodString>;
|
|
@@ -16,5 +15,4 @@ export interface JobOrRunStep {
|
|
|
16
15
|
with?: Record<string, string>;
|
|
17
16
|
}
|
|
18
17
|
export declare function getYamlSteps(yaml: unknown, ymlPath: string[]): JobOrRunStep[] | undefined;
|
|
19
|
-
export declare function intakeFileYamlSteps(files: IntakeDirectory, filePath: string[], ymlPath: string[]): JobOrRunStep[] | undefined;
|
|
20
|
-
//#endregion
|
|
18
|
+
export declare function intakeFileYamlSteps(files: IntakeDirectory, filePath: string[], ymlPath: string[]): JobOrRunStep[] | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { intakeFileAsYaml } from "../intake/intakeFileAsYaml.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import _ from "lodash";
|
|
4
|
-
|
|
4
|
+
// src/blocks/actions/steps.ts
|
|
5
5
|
const zActionStep = z.intersection(z.object({
|
|
6
6
|
env: z.record(z.string(), z.string()).optional(),
|
|
7
7
|
if: z.string().optional(),
|
|
@@ -15,5 +15,4 @@ function intakeFileYamlSteps(files, filePath, ymlPath) {
|
|
|
15
15
|
const actionYml = intakeFileAsYaml(files, filePath);
|
|
16
16
|
return actionYml ? getYamlSteps(actionYml, ymlPath) : void 0;
|
|
17
17
|
}
|
|
18
|
-
//#endregion
|
|
19
18
|
export { getYamlSteps, intakeFileYamlSteps, zActionStep };
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function getPrimaryBin(bin: Record<string, string | undefined> | string | undefined, repository: string): string | undefined;
|
|
3
|
-
//#endregion
|
|
1
|
+
export declare function getPrimaryBin(bin: Record<string, string | undefined> | string | undefined, repository: string): string | undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/blocks/blockAllContributors.d.ts
|
|
2
1
|
export declare const blockAllContributors: import("bingo-stratum").BlockWithoutAddons<{
|
|
3
2
|
access: "public" | "restricted";
|
|
4
3
|
description: string;
|
|
@@ -69,5 +68,4 @@ export declare const blockAllContributors: import("bingo-stratum").BlockWithoutA
|
|
|
69
68
|
hash?: string | undefined;
|
|
70
69
|
pinned?: boolean | undefined;
|
|
71
70
|
}>> | undefined;
|
|
72
|
-
}>;
|
|
73
|
-
//#endregion
|
|
71
|
+
}>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { startingOwnerContributions } from "../data/contributions.mjs";
|
|
2
1
|
import { base } from "../base.mjs";
|
|
2
|
+
import { startingOwnerContributions } from "../data/contributions.mjs";
|
|
3
3
|
import { resolveUses } from "./actions/resolveUses.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { blockPrettier } from "./blockPrettier.mjs";
|
|
5
|
+
import { blockREADME } from "./blockREADME.mjs";
|
|
5
6
|
import { createSoloWorkflowFile } from "./files/createSoloWorkflowFile.mjs";
|
|
6
7
|
import { withPreviously } from "./files/withPreviously.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import { blockPrettier } from "./blockPrettier.mjs";
|
|
8
|
+
import { CommandPhase } from "./phases.mjs";
|
|
9
9
|
import _ from "lodash";
|
|
10
10
|
import { contributionTypes, createContributionLink, isContributionTypeName } from "all-contributors-types";
|
|
11
|
-
|
|
11
|
+
// src/blocks/blockAllContributors.ts
|
|
12
12
|
const blockAllContributors = base.createBlock({
|
|
13
13
|
about: { name: "AllContributors" },
|
|
14
14
|
produce({ options }) {
|
|
@@ -113,5 +113,4 @@ function printContributorCell(contributor, project) {
|
|
|
113
113
|
`</td>`
|
|
114
114
|
].join("");
|
|
115
115
|
}
|
|
116
|
-
//#endregion
|
|
117
116
|
export { blockAllContributors };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/blocks/blockAreTheTypesWrong.d.ts
|
|
2
1
|
export declare const blockAreTheTypesWrong: import("bingo-stratum").BlockWithoutAddons<{
|
|
3
2
|
access: "public" | "restricted";
|
|
4
3
|
description: string;
|
|
@@ -69,5 +68,4 @@ export declare const blockAreTheTypesWrong: import("bingo-stratum").BlockWithout
|
|
|
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 { blockGitHubActionsCI } from "./blockGitHubActionsCI.mjs";
|
|
3
|
-
|
|
3
|
+
// src/blocks/blockAreTheTypesWrong.ts
|
|
4
4
|
const blockAreTheTypesWrong = base.createBlock({
|
|
5
5
|
about: { name: "Are The Types Wrong" },
|
|
6
6
|
produce() {
|
|
@@ -10,5 +10,4 @@ const blockAreTheTypesWrong = base.createBlock({
|
|
|
10
10
|
}] })] };
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
//#endregion
|
|
14
13
|
export { blockAreTheTypesWrong };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/blocks/blockBin.d.ts
|
|
2
1
|
export declare const blockBin: import("bingo-stratum").BlockWithAddons<{
|
|
3
2
|
contents?: string | undefined;
|
|
4
3
|
}, {
|
|
@@ -71,5 +70,4 @@ export declare const blockBin: import("bingo-stratum").BlockWithAddons<{
|
|
|
71
70
|
hash?: string | undefined;
|
|
72
71
|
pinned?: boolean | undefined;
|
|
73
72
|
}>> | undefined;
|
|
74
|
-
}>;
|
|
75
|
-
//#endregion
|
|
73
|
+
}>;
|
package/dist/blocks/blockBin.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { intakeFile } from "./intake/intakeFile.mjs";
|
|
2
1
|
import { base } from "../base.mjs";
|
|
3
2
|
import { getPrimaryBin } from "./bin/getPrimaryBin.mjs";
|
|
3
|
+
import { intakeFile } from "./intake/intakeFile.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
-
|
|
5
|
+
// src/blocks/blockBin.ts
|
|
6
6
|
const blockBin = base.createBlock({
|
|
7
7
|
about: { name: "Bin" },
|
|
8
8
|
addons: { contents: z.string().optional() },
|
|
@@ -23,5 +23,4 @@ import "${toRoot}dist/index.mjs";
|
|
|
23
23
|
return { files: segments.reduceRight((nested, segment) => ({ [segment]: nested }), [contents, { executable: true }]) };
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
-
//#endregion
|
|
27
26
|
export { blockBin };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/blocks/blockCSpell.d.ts
|
|
2
1
|
export declare const blockCSpell: import("bingo-stratum").BlockWithAddons<{
|
|
3
2
|
ignorePaths: string[];
|
|
4
3
|
words: string[];
|
|
@@ -72,5 +71,4 @@ export declare const blockCSpell: import("bingo-stratum").BlockWithAddons<{
|
|
|
72
71
|
hash?: string | undefined;
|
|
73
72
|
pinned?: boolean | undefined;
|
|
74
73
|
}>> | undefined;
|
|
75
|
-
}>;
|
|
76
|
-
//#endregion
|
|
74
|
+
}>;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { intakeFile } from "./intake/intakeFile.mjs";
|
|
2
|
-
import { getPackageDependencies } from "../data/packageData.mjs";
|
|
3
1
|
import { base } from "../base.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { CommandPhase } from "./phases.mjs";
|
|
6
|
-
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.mjs";
|
|
2
|
+
import { getPackageDependencies } from "../data/packageData.mjs";
|
|
7
3
|
import { formatFile } from "../utils/formatFile.mjs";
|
|
4
|
+
import { resolveBin } from "../utils/resolveBin.mjs";
|
|
8
5
|
import { blockDevelopmentDocs } from "./blockDevelopmentDocs.mjs";
|
|
6
|
+
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.mjs";
|
|
9
7
|
import { blockPackageJson } from "./blockPackageJson.mjs";
|
|
10
8
|
import { blockRemoveWorkflows } from "./blockRemoveWorkflows.mjs";
|
|
11
9
|
import { blockVSCode } from "./blockVSCode.mjs";
|
|
10
|
+
import { intakeFile } from "./intake/intakeFile.mjs";
|
|
11
|
+
import { CommandPhase } from "./phases.mjs";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
import JSON5 from "json5";
|
|
14
14
|
import { getObjectStringsDeep } from "object-strings-deep";
|
|
15
|
-
|
|
15
|
+
// src/blocks/blockCSpell.ts
|
|
16
16
|
const filesGlob = `"**" ".github/**/*"`;
|
|
17
17
|
const addons = {
|
|
18
18
|
ignorePaths: z.array(z.string()).default([]),
|
|
@@ -76,5 +76,4 @@ const blockCSpell = base.createBlock({
|
|
|
76
76
|
return { addons: [blockRemoveWorkflows({ workflows: ["lint-spelling", "spelling"] })] };
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
|
-
//#endregion
|
|
80
79
|
export { blockCSpell };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/blocks/blockCTATransitions.d.ts
|
|
2
1
|
export declare const blockCTATransitions: import("bingo-stratum").BlockWithoutAddons<{
|
|
3
2
|
access: "public" | "restricted";
|
|
4
3
|
description: string;
|
|
@@ -69,5 +68,4 @@ export declare const blockCTATransitions: import("bingo-stratum").BlockWithoutAd
|
|
|
69
68
|
hash?: string | undefined;
|
|
70
69
|
pinned?: boolean | undefined;
|
|
71
70
|
}>> | undefined;
|
|
72
|
-
}>;
|
|
73
|
-
//#endregion
|
|
71
|
+
}>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { packageData } from "../data/packageData.mjs";
|
|
2
1
|
import { base } from "../base.mjs";
|
|
2
|
+
import { packageData } from "../data/packageData.mjs";
|
|
3
3
|
import { resolveUses } from "./actions/resolveUses.mjs";
|
|
4
|
+
import { blockCSpell } from "./blockCSpell.mjs";
|
|
5
|
+
import { blockPackageJson } from "./blockPackageJson.mjs";
|
|
4
6
|
import { blockRepositoryBranchRuleset } from "./blockRepositoryBranchRuleset.mjs";
|
|
5
|
-
import {
|
|
7
|
+
import { blockRepositorySecrets } from "./blockRepositorySecrets.mjs";
|
|
6
8
|
import { createSoloWorkflowFile } from "./files/createSoloWorkflowFile.mjs";
|
|
9
|
+
import { formatYaml } from "./files/formatYaml.mjs";
|
|
7
10
|
import { withPreviously } from "./files/withPreviously.mjs";
|
|
8
|
-
|
|
9
|
-
import { blockCSpell } from "./blockCSpell.mjs";
|
|
10
|
-
import { blockRepositorySecrets } from "./blockRepositorySecrets.mjs";
|
|
11
|
-
//#region src/blocks/blockCTATransitions.ts
|
|
11
|
+
// src/blocks/blockCTATransitions.ts
|
|
12
12
|
const blockCTATransitions = base.createBlock({
|
|
13
13
|
about: { name: "CTA Transitions" },
|
|
14
14
|
produce({ options }) {
|
|
@@ -122,5 +122,4 @@ const blockCTATransitions = base.createBlock({
|
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
|
-
//#endregion
|
|
126
125
|
export { blockCTATransitions };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/blocks/blockCodecov.d.ts
|
|
2
1
|
export declare const blockCodecov: import("bingo-stratum").BlockWithAddons<{
|
|
3
2
|
env?: Record<string, string> | undefined;
|
|
4
3
|
}, {
|
|
@@ -71,5 +70,4 @@ export declare const blockCodecov: import("bingo-stratum").BlockWithAddons<{
|
|
|
71
70
|
hash?: string | undefined;
|
|
72
71
|
pinned?: boolean | undefined;
|
|
73
72
|
}>> | undefined;
|
|
74
|
-
}>;
|
|
75
|
-
//#endregion
|
|
73
|
+
}>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { intakeFileYamlSteps } from "./actions/steps.mjs";
|
|
2
|
-
import { codecovTokenSecret, findCodecovStep } from "./codecov/findCodecovStep.mjs";
|
|
3
1
|
import { base } from "../base.mjs";
|
|
4
2
|
import { resolveUses } from "./actions/resolveUses.mjs";
|
|
5
|
-
import {
|
|
3
|
+
import { intakeFileYamlSteps } from "./actions/steps.mjs";
|
|
4
|
+
import { blockGitHubApps } from "./blockGitHubApps.mjs";
|
|
6
5
|
import { blockREADME } from "./blockREADME.mjs";
|
|
6
|
+
import { blockRemoveFiles } from "./blockRemoveFiles.mjs";
|
|
7
7
|
import { blockVitest } from "./blockVitest.mjs";
|
|
8
|
-
import {
|
|
8
|
+
import { codecovTokenSecret, findCodecovStep } from "./codecov/findCodecovStep.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
|
-
|
|
10
|
+
// src/blocks/blockCodecov.ts
|
|
11
11
|
const blockCodecov = base.createBlock({
|
|
12
12
|
about: { name: "Codecov" },
|
|
13
13
|
addons: { env: z.record(z.string(), z.string()).optional() },
|
|
@@ -54,5 +54,4 @@ const blockCodecov = base.createBlock({
|
|
|
54
54
|
return { addons: [blockRemoveFiles({ files: [".github/codecov.{yaml,yml}", "codecov.{yaml,yml}"] })] };
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
|
-
//#endregion
|
|
58
57
|
export { blockCodecov };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/blocks/blockContributingDocs.d.ts
|
|
2
1
|
export declare const blockContributingDocs: import("bingo-stratum").BlockWithoutAddons<{
|
|
3
2
|
access: "public" | "restricted";
|
|
4
3
|
description: string;
|
|
@@ -69,5 +68,4 @@ export declare const blockContributingDocs: import("bingo-stratum").BlockWithout
|
|
|
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 { blockRemoveFiles } from "./blockRemoveFiles.mjs";
|
|
3
|
-
|
|
3
|
+
// src/blocks/blockContributingDocs.ts
|
|
4
4
|
const blockContributingDocs = base.createBlock({
|
|
5
5
|
about: { name: "Contributing Docs" },
|
|
6
6
|
produce({ options }) {
|
|
@@ -108,5 +108,4 @@ ${options.emoji} is a good starter if you're not sure which to use.
|
|
|
108
108
|
return { addons: [blockRemoveFiles({ files: ["CONTRIBUTING.md"] })] };
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
|
-
//#endregion
|
|
112
111
|
export { blockContributingDocs };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/blocks/blockContributorCovenant.d.ts
|
|
2
1
|
export declare const blockContributorCovenant: import("bingo-stratum").BlockWithoutAddons<{
|
|
3
2
|
access: "public" | "restricted";
|
|
4
3
|
description: string;
|
|
@@ -69,5 +68,4 @@ export declare const blockContributorCovenant: import("bingo-stratum").BlockWith
|
|
|
69
68
|
hash?: string | undefined;
|
|
70
69
|
pinned?: boolean | undefined;
|
|
71
70
|
}>> | undefined;
|
|
72
|
-
}>;
|
|
73
|
-
//#endregion
|
|
71
|
+
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { base } from "../base.mjs";
|
|
2
|
-
import { blockRemoveFiles } from "./blockRemoveFiles.mjs";
|
|
3
2
|
import { resolveEmails } from "../utils/resolveEmails.mjs";
|
|
4
3
|
import { blockREADME } from "./blockREADME.mjs";
|
|
5
|
-
|
|
4
|
+
import { blockRemoveFiles } from "./blockRemoveFiles.mjs";
|
|
5
|
+
// src/blocks/blockContributorCovenant.ts
|
|
6
6
|
const blockContributorCovenant = base.createBlock({
|
|
7
7
|
about: { name: "Contributor Covenant" },
|
|
8
8
|
produce({ options }) {
|
|
@@ -154,5 +154,4 @@ Translations are available at
|
|
|
154
154
|
return { addons: [blockRemoveFiles({ files: ["CODE_OF_CONDUCT.md"] })] };
|
|
155
155
|
}
|
|
156
156
|
});
|
|
157
|
-
//#endregion
|
|
158
157
|
export { blockContributorCovenant };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/blocks/blockDevelopmentDocs.d.ts
|
|
2
1
|
export declare const blockDevelopmentDocs: import("bingo-stratum").BlockWithAddons<{
|
|
3
2
|
hints: string[];
|
|
4
3
|
sections: Record<string, {
|
|
@@ -83,5 +82,4 @@ export declare const blockDevelopmentDocs: import("bingo-stratum").BlockWithAddo
|
|
|
83
82
|
hash?: string | undefined;
|
|
84
83
|
pinned?: boolean | undefined;
|
|
85
84
|
}>> | undefined;
|
|
86
|
-
}>;
|
|
87
|
-
//#endregion
|
|
85
|
+
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { base } from "../base.mjs";
|
|
2
2
|
import { blockRemoveFiles } from "./blockRemoveFiles.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
|
|
4
|
+
// src/blocks/blockDevelopmentDocs.ts
|
|
5
5
|
const zInnerSection = z.object({
|
|
6
6
|
contents: z.string(),
|
|
7
7
|
heading: z.string()
|
|
@@ -68,5 +68,4 @@ const blockDevelopmentDocs = base.createBlock({
|
|
|
68
68
|
return { addons: [blockRemoveFiles({ files: ["DEVELOPMENT.md"] })] };
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
|
-
//#endregion
|
|
72
71
|
export { blockDevelopmentDocs };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/blocks/blockESLint.d.ts
|
|
2
1
|
export declare const blockESLint: import("bingo-stratum").BlockWithAddons<{
|
|
3
2
|
explanations: string[];
|
|
4
3
|
extensions: {
|
|
@@ -93,5 +92,4 @@ export declare const blockESLint: import("bingo-stratum").BlockWithAddons<{
|
|
|
93
92
|
hash?: string | undefined;
|
|
94
93
|
pinned?: boolean | undefined;
|
|
95
94
|
}>> | undefined;
|
|
96
|
-
}>;
|
|
97
|
-
//#endregion
|
|
95
|
+
}>;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { intakeFile } from "./intake/intakeFile.mjs";
|
|
2
|
-
import { getPackageDependencies } from "../data/packageData.mjs";
|
|
3
1
|
import { base } from "../base.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { blockRemoveFiles } from "./blockRemoveFiles.mjs";
|
|
6
|
-
import { withPreviously } from "./files/withPreviously.mjs";
|
|
7
|
-
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.mjs";
|
|
2
|
+
import { getPackageDependencies } from "../data/packageData.mjs";
|
|
8
3
|
import { formatFile } from "../utils/formatFile.mjs";
|
|
9
4
|
import { blockDevelopmentDocs } from "./blockDevelopmentDocs.mjs";
|
|
5
|
+
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.mjs";
|
|
10
6
|
import { blockPackageJson } from "./blockPackageJson.mjs";
|
|
7
|
+
import { blockRemoveDependencies } from "./blockRemoveDependencies.mjs";
|
|
8
|
+
import { blockRemoveFiles } from "./blockRemoveFiles.mjs";
|
|
11
9
|
import { blockRemoveWorkflows } from "./blockRemoveWorkflows.mjs";
|
|
12
10
|
import { blockVSCode } from "./blockVSCode.mjs";
|
|
13
|
-
import { blockRemoveDependencies } from "./blockRemoveDependencies.mjs";
|
|
14
|
-
import { getScriptFileExtension } from "./eslint/getScriptFileExtension.mjs";
|
|
15
|
-
import { zExtension, zPackageImport } from "./eslint/schemas.mjs";
|
|
16
11
|
import { blockESLintIntake } from "./eslint/blockESLintIntake.mjs";
|
|
12
|
+
import { getScriptFileExtension } from "./eslint/getScriptFileExtension.mjs";
|
|
17
13
|
import { mergeAllExtensions } from "./eslint/mergeAllExtensions.mjs";
|
|
14
|
+
import { zExtension, zPackageImport } from "./eslint/schemas.mjs";
|
|
15
|
+
import { withPreviously } from "./files/withPreviously.mjs";
|
|
16
|
+
import { intakeFile } from "./intake/intakeFile.mjs";
|
|
17
|
+
import { CommandPhase } from "./phases.mjs";
|
|
18
18
|
import { z } from "zod";
|
|
19
19
|
import sortKeys from "sort-keys";
|
|
20
20
|
import { parse } from "parse-package-name";
|
|
21
|
-
|
|
21
|
+
// src/blocks/blockESLint.ts
|
|
22
22
|
const blockESLint = base.createBlock({
|
|
23
23
|
about: { name: "ESLint" },
|
|
24
24
|
addons: {
|
|
@@ -194,5 +194,4 @@ function printGroupComment(comment) {
|
|
|
194
194
|
function processForSort(files) {
|
|
195
195
|
return files.join("").replaceAll("{", "");
|
|
196
196
|
}
|
|
197
|
-
//#endregion
|
|
198
197
|
export { blockESLint };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/blocks/blockESLintComments.d.ts
|
|
2
1
|
export declare const blockESLintComments: import("bingo-stratum").BlockWithoutAddons<{
|
|
3
2
|
access: "public" | "restricted";
|
|
4
3
|
description: string;
|
|
@@ -69,5 +68,4 @@ export declare const blockESLintComments: import("bingo-stratum").BlockWithoutAd
|
|
|
69
68
|
hash?: string | undefined;
|
|
70
69
|
pinned?: boolean | undefined;
|
|
71
70
|
}>> | undefined;
|
|
72
|
-
}>;
|
|
73
|
-
//#endregion
|
|
71
|
+
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { base } from "../base.mjs";
|
|
2
|
-
import { getScriptFileExtension } from "./eslint/getScriptFileExtension.mjs";
|
|
3
2
|
import { blockESLint } from "./blockESLint.mjs";
|
|
4
|
-
|
|
3
|
+
import { getScriptFileExtension } from "./eslint/getScriptFileExtension.mjs";
|
|
4
|
+
// src/blocks/blockESLintComments.ts
|
|
5
5
|
const blockESLintComments = base.createBlock({
|
|
6
6
|
about: { name: "ESLint Comments Plugin" },
|
|
7
7
|
produce({ options }) {
|
|
@@ -17,5 +17,4 @@ const blockESLintComments = base.createBlock({
|
|
|
17
17
|
})] };
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
//#endregion
|
|
21
20
|
export { blockESLintComments };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/blocks/blockESLintJSDoc.d.ts
|
|
2
1
|
export declare const blockESLintJSDoc: import("bingo-stratum").BlockWithoutAddons<{
|
|
3
2
|
access: "public" | "restricted";
|
|
4
3
|
description: string;
|
|
@@ -69,5 +68,4 @@ export declare const blockESLintJSDoc: import("bingo-stratum").BlockWithoutAddon
|
|
|
69
68
|
hash?: string | undefined;
|
|
70
69
|
pinned?: boolean | undefined;
|
|
71
70
|
}>> | undefined;
|
|
72
|
-
}>;
|
|
73
|
-
//#endregion
|
|
71
|
+
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { base } from "../base.mjs";
|
|
2
|
-
import { getScriptFileExtension } from "./eslint/getScriptFileExtension.mjs";
|
|
3
2
|
import { blockESLint } from "./blockESLint.mjs";
|
|
4
|
-
|
|
3
|
+
import { getScriptFileExtension } from "./eslint/getScriptFileExtension.mjs";
|
|
4
|
+
// src/blocks/blockESLintJSDoc.ts
|
|
5
5
|
const blockESLintJSDoc = base.createBlock({
|
|
6
6
|
about: { name: "ESLint JSDoc Plugin" },
|
|
7
7
|
produce({ options }) {
|
|
@@ -21,5 +21,4 @@ const blockESLintJSDoc = base.createBlock({
|
|
|
21
21
|
})] };
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
//#endregion
|
|
25
24
|
export { blockESLintJSDoc };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/blocks/blockESLintJSONC.d.ts
|
|
2
1
|
export declare const blockESLintJSONC: import("bingo-stratum").BlockWithoutAddons<{
|
|
3
2
|
access: "public" | "restricted";
|
|
4
3
|
description: string;
|
|
@@ -69,5 +68,4 @@ export declare const blockESLintJSONC: import("bingo-stratum").BlockWithoutAddon
|
|
|
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 { blockESLint } from "./blockESLint.mjs";
|
|
3
|
-
|
|
3
|
+
// src/blocks/blockESLintJSONC.ts
|
|
4
4
|
const blockESLintJSONC = base.createBlock({
|
|
5
5
|
about: { name: "ESLint JSONC Plugin" },
|
|
6
6
|
produce() {
|
|
@@ -16,5 +16,4 @@ const blockESLintJSONC = base.createBlock({
|
|
|
16
16
|
})] };
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
//#endregion
|
|
20
19
|
export { blockESLintJSONC };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/blocks/blockESLintMarkdown.d.ts
|
|
2
1
|
export declare const blockESLintMarkdown: import("bingo-stratum").BlockWithoutAddons<{
|
|
3
2
|
access: "public" | "restricted";
|
|
4
3
|
description: string;
|
|
@@ -69,5 +68,4 @@ export declare const blockESLintMarkdown: import("bingo-stratum").BlockWithoutAd
|
|
|
69
68
|
hash?: string | undefined;
|
|
70
69
|
pinned?: boolean | undefined;
|
|
71
70
|
}>> | undefined;
|
|
72
|
-
}>;
|
|
73
|
-
//#endregion
|
|
71
|
+
}>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { base } from "../base.mjs";
|
|
2
|
+
import { blockESLint } from "./blockESLint.mjs";
|
|
3
|
+
import { blockRemoveDependencies } from "./blockRemoveDependencies.mjs";
|
|
2
4
|
import { blockRemoveFiles } from "./blockRemoveFiles.mjs";
|
|
3
5
|
import { blockRemoveWorkflows } from "./blockRemoveWorkflows.mjs";
|
|
4
|
-
|
|
5
|
-
import { blockESLint } from "./blockESLint.mjs";
|
|
6
|
-
//#region src/blocks/blockESLintMarkdown.ts
|
|
6
|
+
// src/blocks/blockESLintMarkdown.ts
|
|
7
7
|
const blockESLintMarkdown = base.createBlock({
|
|
8
8
|
about: { name: "ESLint Markdown Plugin" },
|
|
9
9
|
produce() {
|
|
@@ -32,5 +32,4 @@ const blockESLintMarkdown = base.createBlock({
|
|
|
32
32
|
] };
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
|
-
//#endregion
|
|
36
35
|
export { blockESLintMarkdown };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/blocks/blockESLintMarkdownLinks.d.ts
|
|
2
1
|
export declare const blockESLintMarkdownLinks: import("bingo-stratum").BlockWithoutAddons<{
|
|
3
2
|
access: "public" | "restricted";
|
|
4
3
|
description: string;
|
|
@@ -69,5 +68,4 @@ export declare const blockESLintMarkdownLinks: import("bingo-stratum").BlockWith
|
|
|
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 { blockESLint } from "./blockESLint.mjs";
|
|
3
|
-
|
|
3
|
+
// src/blocks/blockESLintMarkdownLinks.ts
|
|
4
4
|
const blockESLintMarkdownLinks = base.createBlock({
|
|
5
5
|
about: { name: "ESLint Markdown Links Plugin" },
|
|
6
6
|
produce() {
|
|
@@ -16,5 +16,4 @@ const blockESLintMarkdownLinks = base.createBlock({
|
|
|
16
16
|
})] };
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
//#endregion
|
|
20
19
|
export { blockESLintMarkdownLinks };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/blocks/blockESLintMoreStyling.d.ts
|
|
2
1
|
export declare const stylisticComment = "Stylistic concerns that don't interfere with Prettier";
|
|
3
2
|
export declare const blockESLintMoreStyling: import("bingo-stratum").BlockWithoutAddons<{
|
|
4
3
|
access: "public" | "restricted";
|
|
@@ -70,5 +69,4 @@ export declare const blockESLintMoreStyling: import("bingo-stratum").BlockWithou
|
|
|
70
69
|
hash?: string | undefined;
|
|
71
70
|
pinned?: boolean | undefined;
|
|
72
71
|
}>> | undefined;
|
|
73
|
-
}>;
|
|
74
|
-
//#endregion
|
|
72
|
+
}>;
|