create-typescript-app 2.56.2 → 2.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/base.d.ts +2 -2
- package/lib/base.d.ts.map +1 -1
- package/lib/base.js +1 -1
- package/lib/base.js.map +1 -1
- package/lib/blocks/blockAllContributors.d.ts +2 -2
- package/lib/blocks/blockAllContributors.js +1 -1
- package/lib/blocks/blockAllContributors.js.map +1 -1
- package/lib/blocks/blockAreTheTypesWrong.d.ts +2 -2
- package/lib/blocks/blockCSpell.d.ts +2 -2
- package/lib/blocks/blockCTATransitions.d.ts +2 -2
- package/lib/blocks/blockCTATransitions.js +3 -3
- package/lib/blocks/blockCTATransitions.js.map +1 -1
- package/lib/blocks/blockCodecov.d.ts +2 -2
- package/lib/blocks/blockCodecov.d.ts.map +1 -1
- package/lib/blocks/blockCodecov.js +2 -2
- package/lib/blocks/blockCodecov.js.map +1 -1
- package/lib/blocks/blockContributingDocs.d.ts +2 -2
- package/lib/blocks/blockContributingDocs.d.ts.map +1 -1
- package/lib/blocks/blockContributorCovenant.d.ts +2 -2
- package/lib/blocks/blockContributorCovenant.d.ts.map +1 -1
- package/lib/blocks/blockDevelopmentDocs.d.ts +3 -3
- package/lib/blocks/blockESLint.d.ts +8 -8
- package/lib/blocks/blockESLint.d.ts.map +1 -1
- package/lib/blocks/blockESLintComments.d.ts +2 -2
- package/lib/blocks/blockESLintJSDoc.d.ts +2 -2
- package/lib/blocks/blockESLintJSONC.d.ts +2 -2
- package/lib/blocks/blockESLintMarkdown.d.ts +2 -2
- package/lib/blocks/blockESLintMoreStyling.d.ts +2 -2
- package/lib/blocks/blockESLintNode.d.ts +2 -2
- package/lib/blocks/blockESLintPackageJson.d.ts +2 -2
- package/lib/blocks/blockESLintPerfectionist.d.ts +2 -2
- package/lib/blocks/blockESLintPerfectionist.d.ts.map +1 -1
- package/lib/blocks/blockESLintPlugin.d.ts +2 -2
- package/lib/blocks/blockESLintPlugin.d.ts.map +1 -1
- package/lib/blocks/blockESLintRegexp.d.ts +2 -2
- package/lib/blocks/blockESLintYML.d.ts +2 -2
- package/lib/blocks/blockESLintYML.js +1 -1
- package/lib/blocks/blockESLintYML.js.map +1 -1
- package/lib/blocks/blockExampleFiles.d.ts +2 -2
- package/lib/blocks/blockFunding.d.ts +2 -2
- package/lib/blocks/blockFunding.js +1 -1
- package/lib/blocks/blockFunding.js.map +1 -1
- package/lib/blocks/blockGitHubActionsCI.d.ts +2 -2
- package/lib/blocks/blockGitHubActionsCI.js +5 -5
- package/lib/blocks/blockGitHubActionsCI.js.map +1 -1
- package/lib/blocks/blockGitHubApps.d.ts +2 -2
- package/lib/blocks/blockGitHubIssueTemplates.d.ts +2 -2
- package/lib/blocks/blockGitHubIssueTemplates.d.ts.map +1 -1
- package/lib/blocks/blockGitHubIssueTemplates.js +4 -4
- package/lib/blocks/blockGitHubIssueTemplates.js.map +1 -1
- package/lib/blocks/blockGitHubPRTemplate.d.ts +2 -2
- package/lib/blocks/blockGitignore.d.ts +2 -2
- package/lib/blocks/blockKnip.d.ts +2 -2
- package/lib/blocks/blockMITLicense.d.ts +2 -2
- package/lib/blocks/blockMain.d.ts +2 -2
- package/lib/blocks/blockNcc.d.ts +2 -2
- package/lib/blocks/blockNvmrc.d.ts +2 -2
- package/lib/blocks/blockOctoGuide.d.ts +2 -2
- package/lib/blocks/blockOctoGuide.js +3 -3
- package/lib/blocks/blockOctoGuide.js.map +1 -1
- package/lib/blocks/blockOctoGuideStrict.d.ts +2 -2
- package/lib/blocks/blockPackageJson.d.ts +5 -5
- package/lib/blocks/blockPnpmDedupe.d.ts +2 -2
- package/lib/blocks/blockPnpmDedupe.js +1 -1
- package/lib/blocks/blockPnpmDedupe.js.map +1 -1
- package/lib/blocks/blockPrettier.d.ts +3 -3
- package/lib/blocks/blockPrettier.d.ts.map +1 -1
- package/lib/blocks/blockPrettierPluginCurly.d.ts +2 -2
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts +2 -2
- package/lib/blocks/blockPrettierPluginSentencesPerLine.d.ts +2 -2
- package/lib/blocks/blockPrettierPluginSh.d.ts +2 -2
- package/lib/blocks/blockREADME.d.ts +3 -3
- package/lib/blocks/blockReleaseIt.d.ts +2 -2
- package/lib/blocks/blockReleaseIt.js +2 -2
- package/lib/blocks/blockReleaseIt.js.map +1 -1
- package/lib/blocks/blockRemoveDependencies.d.ts +2 -2
- package/lib/blocks/blockRemoveFiles.d.ts +2 -2
- package/lib/blocks/blockRemoveWorkflows.d.ts +2 -2
- package/lib/blocks/blockRemoveWorkflows.js +1 -1
- package/lib/blocks/blockRemoveWorkflows.js.map +1 -1
- package/lib/blocks/blockRenovate.d.ts +2 -2
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts +2 -2
- package/lib/blocks/blockRepositoryLabels.d.ts +2 -2
- package/lib/blocks/blockRepositorySecrets.d.ts +2 -2
- package/lib/blocks/blockRepositorySettings.d.ts +2 -2
- package/lib/blocks/blockSecurityDocs.d.ts +2 -2
- package/lib/blocks/blockTSDown.d.ts +2 -2
- package/lib/blocks/blockTemplatedWith.d.ts +2 -2
- package/lib/blocks/blockTypeScript.d.ts +2 -2
- package/lib/blocks/blockVSCode.d.ts +3 -3
- package/lib/blocks/blockVSCode.d.ts.map +1 -1
- package/lib/blocks/blockVitest.d.ts +2 -2
- package/lib/blocks/blockWebExt.d.ts +2 -2
- package/lib/blocks/eslint/mergeAllExtensions.d.ts +4 -4
- package/lib/blocks/eslint/mergeAllExtensions.d.ts.map +1 -1
- package/lib/blocks/eslint/schemas.d.ts +7 -7
- package/lib/blocks/eslint/schemas.d.ts.map +1 -1
- package/lib/blocks/index.d.ts +62 -62
- package/lib/blocks/intake/intakeFileAsYaml.js +1 -1
- package/lib/blocks/intake/intakeFileAsYaml.js.map +1 -1
- package/lib/options/readFunding.js +1 -1
- package/lib/options/readFunding.js.map +1 -1
- package/lib/presets/common.d.ts +69 -69
- package/lib/presets/common.d.ts.map +1 -1
- package/lib/presets/everything.d.ts +69 -69
- package/lib/presets/everything.d.ts.map +1 -1
- package/lib/presets/index.d.ts +203 -203
- package/lib/presets/minimal.d.ts +69 -69
- package/lib/presets/minimal.d.ts.map +1 -1
- package/lib/schemas.d.ts.map +1 -1
- package/package.json +2 -2
package/lib/base.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum112 from "bingo-stratum";
|
|
2
2
|
import { BaseOptionsFor } from "bingo-stratum";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/base.d.ts
|
|
6
|
-
declare const base:
|
|
6
|
+
declare const base: bingo_stratum112.Base<{
|
|
7
7
|
access: z.ZodUnion<[z.ZodLiteral<"public">, z.ZodLiteral<"restricted">]>;
|
|
8
8
|
author: z.ZodOptional<z.ZodString>;
|
|
9
9
|
bin: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
package/lib/base.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","names":[],"sources":["../src/base.ts"],"sourcesContent":[],"mappings":";;;;;cA0Ca,
|
|
1
|
+
{"version":3,"file":"base.d.ts","names":[],"sources":["../src/base.ts"],"sourcesContent":[],"mappings":";;;;;cA0Ca,uBAAI;;;EAAJ,GAAA,eAuTX,WAAA,CAAA,YAAA,aAAA,YAAA,aAAA,CAAA,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAvTe,CAAA,QAAA,CAAA,MAAA,EAAA,MAAA,CAAA,GAAA,SAAA;IAAA,gBAAA,CAAA,QAAA,CAAA,MAAA,EAAA,MAAA,CAAA,GAAA,SAAA;IAyTL,oBAAW,CAAA,QAAG,CAAA,MAAA,EAAA,OAAc,CAAA,GAAA,SAAA;;;;;;;;;;;;;;;;;;;;;KAA5B,WAAA,GAAc,sBAAsB"}
|
package/lib/base.js
CHANGED
|
@@ -62,7 +62,7 @@ const base = createBase({
|
|
|
62
62
|
description: z.string(),
|
|
63
63
|
name: z.string()
|
|
64
64
|
})).optional().describe("existing labels from the GitHub repository"),
|
|
65
|
-
funding: z.string().optional().describe("GitHub organization or username to mention in `funding.
|
|
65
|
+
funding: z.string().optional().describe("GitHub organization or username to mention in `funding.yaml`"),
|
|
66
66
|
guide: z.object({
|
|
67
67
|
href: z.string(),
|
|
68
68
|
title: z.string()
|
package/lib/base.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","names":[],"sources":["../src/base.ts"],"sourcesContent":["import { BaseOptionsFor, createBase } from \"bingo-stratum\";\nimport { inputFromFile } from \"input-from-file\";\nimport { inputFromScript } from \"input-from-script\";\nimport lazyValue from \"lazy-value\";\nimport { z } from \"zod\";\n\nimport { readAccess } from \"./options/readAccess.js\";\nimport { readAllContributors } from \"./options/readAllContributors.js\";\nimport { readAuthor } from \"./options/readAuthor.js\";\nimport { readBin } from \"./options/readBin.js\";\nimport { readDescription } from \"./options/readDescription.js\";\nimport { readDevelopmentDocumentation } from \"./options/readDevelopmentDocumentation.js\";\nimport { readDocumentation } from \"./options/readDocumentation.js\";\nimport { readEmailFromCodeOfConduct } from \"./options/readEmailFromCodeOfConduct.js\";\nimport { readEmailFromGit } from \"./options/readEmailFromGit.js\";\nimport { readEmailFromNpm } from \"./options/readEmailFromNpm.js\";\nimport { readEmails } from \"./options/readEmails.js\";\nimport { readEmoji } from \"./options/readEmoji.js\";\nimport { readExistingLabels } from \"./options/readExistingLabels.js\";\nimport { readFileSafe } from \"./options/readFileSafe.js\";\nimport { readFunding } from \"./options/readFunding.js\";\nimport { readGitDefaults } from \"./options/readGitDefaults.js\";\nimport { readGuide } from \"./options/readGuide.js\";\nimport { readKeywords } from \"./options/readKeywords.js\";\nimport { readLogo } from \"./options/readLogo.js\";\nimport { readNode } from \"./options/readNode.js\";\nimport { readNpmDefaults } from \"./options/readNpmDefaults.js\";\nimport { readOwner } from \"./options/readOwner.js\";\nimport { readPackageAuthor } from \"./options/readPackageAuthor.js\";\nimport { readPackageData } from \"./options/readPackageData.js\";\nimport { readPnpm } from \"./options/readPnpm.js\";\nimport { readReadmeAdditional } from \"./options/readReadmeAdditional.js\";\nimport { readReadmeExplainer } from \"./options/readReadmeExplainer.js\";\nimport { readReadmeFootnotes } from \"./options/readReadmeFootnotes.js\";\nimport { readReadmeUsage } from \"./options/readReadmeUsage.js\";\nimport { readRepository } from \"./options/readRepository.js\";\nimport { readRulesetId } from \"./options/readRulesetId.js\";\nimport { readTitle } from \"./options/readTitle.js\";\nimport { readWords } from \"./options/readWords.js\";\nimport { readWorkflowsVersions } from \"./options/readWorkflowsVersions.js\";\nimport { zContributor, zDocumentation, zWorkflowsVersions } from \"./schemas.js\";\n\nexport const base = createBase({\n\toptions: {\n\t\taccess: z\n\t\t\t.union([z.literal(\"public\"), z.literal(\"restricted\")])\n\t\t\t.describe(\"which `npm publish --access` to release npm packages with\"),\n\t\tauthor: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"username on npm to publish packages under\"),\n\t\tbin: z\n\t\t\t.union([z.string(), z.record(z.string())])\n\t\t\t.optional()\n\t\t\t.describe('value to set in `package.json`\\'s `\"bin\"` property'),\n\t\tcontributors: z\n\t\t\t.array(zContributor)\n\t\t\t.optional()\n\t\t\t.describe(\"AllContributors contributors to store in .all-contributorsrc\"),\n\t\tdescription: z\n\t\t\t.string()\n\t\t\t.default(\"A very lovely package. Hooray!\")\n\t\t\t.describe(\"'Sentence case.' description of the repository\"),\n\t\tdirectory: z.string().describe(\"Directory to create the repository in\"),\n\t\tdocumentation: zDocumentation.describe(\n\t\t\t\"additional docs to add to .md files\",\n\t\t),\n\t\temail: z\n\t\t\t.union([\n\t\t\t\tz.string(),\n\t\t\t\tz.object({\n\t\t\t\t\tgithub: z.string(),\n\t\t\t\t\tnpm: z.string(),\n\t\t\t\t}),\n\t\t\t])\n\t\t\t// TODO: Test this? Is it still working?\n\t\t\t// https://github.com/JoshuaKGoldberg/create-typescript-app/issues/1991\n\t\t\t.transform((email) =>\n\t\t\t\ttypeof email === \"string\" ? { github: email, npm: email } : email,\n\t\t\t)\n\t\t\t.describe(\n\t\t\t\t\"email address to be listed as the point of contact in docs and packages\",\n\t\t\t),\n\t\temoji: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"decorative emoji to use in descriptions and docs\"),\n\t\texistingLabels: z\n\t\t\t.array(\n\t\t\t\tz.object({\n\t\t\t\t\tcolor: z.string(),\n\t\t\t\t\tdescription: z.string(),\n\t\t\t\t\tname: z.string(),\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.optional()\n\t\t\t.describe(\"existing labels from the GitHub repository\"),\n\t\tfunding: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"GitHub organization or username to mention in `funding.yml`\"),\n\t\tguide: z\n\t\t\t.object({\n\t\t\t\thref: z.string(),\n\t\t\t\ttitle: z.string(),\n\t\t\t})\n\t\t\t.optional()\n\t\t\t.describe(\n\t\t\t\t\"link to a contribution guide to place at the top of development docs\",\n\t\t\t),\n\t\tkeywords: z\n\t\t\t.array(z.string())\n\t\t\t.optional()\n\t\t\t.describe(\"any number of keywords to include in `package.json`\"),\n\t\tlogo: z\n\t\t\t.object({\n\t\t\t\talt: z.string(),\n\t\t\t\theight: z.number().optional(),\n\t\t\t\tsrc: z.string(),\n\t\t\t\twidth: z.number().optional(),\n\t\t\t})\n\t\t\t.optional()\n\t\t\t.describe(\n\t\t\t\t\"local image file and alt text to display near the top of the README.md\",\n\t\t\t),\n\t\tnode: z\n\t\t\t.object({\n\t\t\t\tminimum: z.string(),\n\t\t\t\tpinned: z.string().optional(),\n\t\t\t})\n\t\t\t.describe(\"Node.js engine version(s) to pin and require a minimum of\"),\n\t\towner: z.string().describe(\"organization or user owning the repository\"),\n\t\tpackageData: z\n\t\t\t.object({\n\t\t\t\tdependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\tdevDependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\tpeerDependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\tpeerDependenciesMeta: z.record(z.unknown()).optional(),\n\t\t\t\tscripts: z.record(z.string(), z.string().optional()).optional(),\n\t\t\t})\n\t\t\t.optional()\n\t\t\t.describe(\"additional properties to include in `package.json`\"),\n\t\tpnpm: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"pnpm version for package.json's packageManager field\"),\n\t\trepository: z\n\t\t\t.string()\n\t\t\t.describe(\"'kebab-case' or 'PascalCase' title of the repository\"),\n\t\trulesetId: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"GitHub branch ruleset ID for main branch protections\"),\n\t\ttitle: z.string().describe(\"'Title Case' title for the repository\"),\n\t\ttype: z\n\t\t\t.union([z.literal(\"commonjs\"), z.literal(\"module\")])\n\t\t\t.optional()\n\t\t\t.describe(\"package.json modules type\"),\n\t\tversion: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"package version to publish as and store in `package.json`\"),\n\t\twords: z\n\t\t\t.array(z.string())\n\t\t\t.optional()\n\t\t\t.describe(\"additional words to add to the CSpell dictionary\"),\n\t\tworkflowsVersions: zWorkflowsVersions\n\t\t\t.optional()\n\t\t\t.describe(\"existing versions of GitHub Actions workflows used\"),\n\t},\n\tprepare({ options, take }) {\n\t\tconst getAccess = lazyValue(async () => await readAccess(getPackageData));\n\n\t\tconst getAllContributors = lazyValue(\n\t\t\tasync () => await readAllContributors(take),\n\t\t);\n\n\t\tconst getAuthor = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait readAuthor(\n\t\t\t\t\tgetPackageAuthor,\n\t\t\t\t\tgetNpmDefaults,\n\t\t\t\t\tgetGitUser,\n\t\t\t\t\toptions.owner,\n\t\t\t\t),\n\t\t);\n\n\t\tconst getBin = lazyValue(async () => await readBin(getPackageData));\n\n\t\tconst getEmoji = lazyValue(async () => await readEmoji(getDescription));\n\n\t\tconst getDescription = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait readDescription(getPackageData, getReadme, getRepository),\n\t\t);\n\n\t\tconst getDevelopmentDocumentation = lazyValue(\n\t\t\tasync () => await readDevelopmentDocumentation(take),\n\t\t);\n\n\t\tconst getDocumentation = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait readDocumentation(\n\t\t\t\t\tgetDevelopmentDocumentation,\n\t\t\t\t\tgetReadmeAdditional,\n\t\t\t\t\tgetReadmeExplainer,\n\t\t\t\t\tgetReadmeFootnotes,\n\t\t\t\t\tgetReadmeUsage,\n\t\t\t\t),\n\t\t);\n\n\t\tconst getEmail = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait readEmails(\n\t\t\t\t\tgetEmailFromCodeOfConduct,\n\t\t\t\t\tgetEmailFromGit,\n\t\t\t\t\tgetEmailFromNpm,\n\t\t\t\t\tgetPackageAuthor,\n\t\t\t\t),\n\t\t);\n\n\t\tconst getKeywords = lazyValue(\n\t\t\tasync () => await readKeywords(getPackageData),\n\t\t);\n\n\t\tconst getEmailFromCodeOfConduct = lazyValue(\n\t\t\tasync () => await readEmailFromCodeOfConduct(take),\n\t\t);\n\n\t\tconst getEmailFromGit = lazyValue(async () => await readEmailFromGit(take));\n\n\t\tconst getEmailFromNpm = lazyValue(\n\t\t\tasync () => await readEmailFromNpm(getNpmDefaults, getPackageAuthor),\n\t\t);\n\n\t\tconst getExistingLabels = lazyValue(\n\t\t\tasync () => await readExistingLabels(take, getOwner, getRepository),\n\t\t);\n\n\t\tconst getFunding = lazyValue(async () => await readFunding(take));\n\n\t\tconst getGitDefaults = lazyValue(async () => await readGitDefaults(take));\n\n\t\tconst getGitUser = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait take(inputFromScript, { command: \"git config user.name\" }),\n\t\t);\n\n\t\tconst getGuide = lazyValue(async () => await readGuide(take));\n\n\t\tconst getLogo = lazyValue(async () => await readLogo(getReadme));\n\n\t\tconst getPackageData = lazyValue(async () => await readPackageData(take));\n\n\t\tconst getNode = lazyValue(\n\t\t\tasync () => await readNode(getNvmrc, getPackageData),\n\t\t);\n\n\t\tconst getNpmDefaults = lazyValue(\n\t\t\tasync () => await readNpmDefaults(getNpmWhoami),\n\t\t);\n\n\t\tconst getNpmWhoami = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait take(inputFromScript, { command: \"npm whoami --offline\" }),\n\t\t);\n\n\t\tconst getNvmrc = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait take(inputFromFile, {\n\t\t\t\t\tfilePath: \".nvmrc\",\n\t\t\t\t}),\n\t\t);\n\n\t\tconst getOwner = lazyValue(\n\t\t\tasync () => await readOwner(take, getGitDefaults, getPackageAuthor),\n\t\t);\n\n\t\tconst getPackageAuthor = lazyValue(\n\t\t\tasync () => await readPackageAuthor(getPackageData),\n\t\t);\n\n\t\tconst getPnpm = lazyValue(async () => await readPnpm(getPackageData));\n\n\t\tconst getReadme = lazyValue(\n\t\t\tasync () => await readFileSafe(\"README.md\", \"\"),\n\t\t);\n\n\t\tconst getReadmeAdditional = lazyValue(\n\t\t\tasync () => await readReadmeAdditional(getReadme),\n\t\t);\n\n\t\tconst getReadmeExplainer = lazyValue(\n\t\t\tasync () => await readReadmeExplainer(getReadme),\n\t\t);\n\n\t\tconst getReadmeFootnotes = lazyValue(\n\t\t\tasync () => await readReadmeFootnotes(getReadme),\n\t\t);\n\n\t\tconst getReadmeUsage = lazyValue(\n\t\t\tasync () => await readReadmeUsage(getReadme),\n\t\t);\n\n\t\tconst getRepository = lazyValue(\n\t\t\tasync () => await readRepository(getGitDefaults, getPackageData, options),\n\t\t);\n\n\t\tconst getRulesetId = lazyValue(\n\t\t\tasync () => await readRulesetId(take, getOwner, getRepository),\n\t\t);\n\n\t\tconst getTitle = lazyValue(\n\t\t\tasync () => await readTitle(getReadme, getRepository),\n\t\t);\n\n\t\tconst getType = lazyValue(async () => (await getPackageData()).type);\n\n\t\tconst getVersion = lazyValue(async () => (await getPackageData()).version);\n\n\t\tconst getWords = lazyValue(async () => await readWords(take));\n\n\t\tconst getWorkflowData = lazyValue(\n\t\t\tasync () => await readWorkflowsVersions(take),\n\t\t);\n\n\t\treturn {\n\t\t\taccess: getAccess,\n\t\t\tauthor: getAuthor,\n\t\t\tbin: getBin,\n\t\t\tcontributors: getAllContributors,\n\t\t\tdescription: getDescription,\n\t\t\tdocumentation: getDocumentation,\n\t\t\temail: getEmail,\n\t\t\temoji: getEmoji,\n\t\t\texistingLabels: getExistingLabels,\n\t\t\tfunding: getFunding,\n\t\t\tguide: getGuide,\n\t\t\tkeywords: getKeywords,\n\t\t\tlogo: getLogo,\n\t\t\tnode: getNode,\n\t\t\towner: getOwner,\n\t\t\tpackageData: getPackageData,\n\t\t\tpnpm: getPnpm,\n\t\t\trepository: getRepository,\n\t\t\trulesetId: getRulesetId,\n\t\t\ttitle: getTitle,\n\t\t\ttype: getType,\n\t\t\tversion: getVersion,\n\t\t\twords: getWords,\n\t\t\tworkflowsVersions: getWorkflowData,\n\t\t};\n\t},\n});\n\nexport type BaseOptions = BaseOptionsFor<typeof base> & { preset?: string };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,MAAa,OAAO,WAAW;CAC9B,SAAS;EACR,QAAQ,EACN,MAAM,CAAC,EAAE,QAAQ,SAAS,EAAE,EAAE,QAAQ,aAAa,CAAC,CAAC,CACrD,SAAS,4DAA4D;EACvE,QAAQ,EACN,QAAQ,CACR,UAAU,CACV,SAAS,4CAA4C;EACvD,KAAK,EACH,MAAM,CAAC,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CACzC,UAAU,CACV,SAAS,sDAAqD;EAChE,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U,UACV,CAAC,CACH;EAED,MAAM,WAAW,UAChB,YAAY,MAAM,UAAU,MAAM,gBAAgB,iBAAiB,CACnE;EAED,MAAM,mBAAmB,UACxB,YAAY,MAAM,kBAAkB,eAAe,CACnD;EAED,MAAM,UAAU,UAAU,YAAY,MAAM,SAAS,eAAe,CAAC;EAErE,MAAM,YAAY,UACjB,YAAY,MAAM,aAAa,aAAa,GAAG,CAC/C;EAED,MAAM,sBAAsB,UAC3B,YAAY,MAAM,qBAAqB,UAAU,CACjD;EAED,MAAM,qBAAqB,UAC1B,YAAY,MAAM,oBAAoB,UAAU,CAChD;EAED,MAAM,qBAAqB,UAC1B,YAAY,MAAM,oBAAoB,UAAU,CAChD;EAED,MAAM,iBAAiB,UACtB,YAAY,MAAM,gBAAgB,UAAU,CAC5C;EAED,MAAM,gBAAgB,UACrB,YAAY,MAAM,eAAe,gBAAgB,gBAAgB,QAAQ,CACzE;AAoBD,SAAO;GACN,QAAQ;GACR,QAAQ;GACR,KAAK;GACL,cAAc;GACd,aAAa;GACb,eAAe;GACf,OAAO;GACP,OAAO;GACP,gBAAgB;GAChB,SAAS;GACT,OAAO;GACP,UAAU;GACV,MAAM;GACN,MAAM;GACN,OAAO;GACP,aAAa;GACb,MAAM;GACN,YAAY;GACZ,WArCoB,UACpB,YAAY,MAAM,cAAc,MAAM,UAAU,cAAc,CAC9D;GAoCA,OAlCgB,UAChB,YAAY,MAAM,UAAU,WAAW,cAAc,CACrD;GAiCA,MA/Be,UAAU,aAAa,MAAM,gBAAgB,EAAE,KAAK;GAgCnE,SA9BkB,UAAU,aAAa,MAAM,gBAAgB,EAAE,QAAQ;GA+BzE,OA7BgB,UAAU,YAAY,MAAM,UAAU,KAAK,CAAC;GA8B5D,mBA5BuB,UACvB,YAAY,MAAM,sBAAsB,KAAK,CAC7C;GA2BA;;CAEF,CAAC"}
|
|
1
|
+
{"version":3,"file":"base.js","names":[],"sources":["../src/base.ts"],"sourcesContent":["import { BaseOptionsFor, createBase } from \"bingo-stratum\";\nimport { inputFromFile } from \"input-from-file\";\nimport { inputFromScript } from \"input-from-script\";\nimport lazyValue from \"lazy-value\";\nimport { z } from \"zod\";\n\nimport { readAccess } from \"./options/readAccess.js\";\nimport { readAllContributors } from \"./options/readAllContributors.js\";\nimport { readAuthor } from \"./options/readAuthor.js\";\nimport { readBin } from \"./options/readBin.js\";\nimport { readDescription } from \"./options/readDescription.js\";\nimport { readDevelopmentDocumentation } from \"./options/readDevelopmentDocumentation.js\";\nimport { readDocumentation } from \"./options/readDocumentation.js\";\nimport { readEmailFromCodeOfConduct } from \"./options/readEmailFromCodeOfConduct.js\";\nimport { readEmailFromGit } from \"./options/readEmailFromGit.js\";\nimport { readEmailFromNpm } from \"./options/readEmailFromNpm.js\";\nimport { readEmails } from \"./options/readEmails.js\";\nimport { readEmoji } from \"./options/readEmoji.js\";\nimport { readExistingLabels } from \"./options/readExistingLabels.js\";\nimport { readFileSafe } from \"./options/readFileSafe.js\";\nimport { readFunding } from \"./options/readFunding.js\";\nimport { readGitDefaults } from \"./options/readGitDefaults.js\";\nimport { readGuide } from \"./options/readGuide.js\";\nimport { readKeywords } from \"./options/readKeywords.js\";\nimport { readLogo } from \"./options/readLogo.js\";\nimport { readNode } from \"./options/readNode.js\";\nimport { readNpmDefaults } from \"./options/readNpmDefaults.js\";\nimport { readOwner } from \"./options/readOwner.js\";\nimport { readPackageAuthor } from \"./options/readPackageAuthor.js\";\nimport { readPackageData } from \"./options/readPackageData.js\";\nimport { readPnpm } from \"./options/readPnpm.js\";\nimport { readReadmeAdditional } from \"./options/readReadmeAdditional.js\";\nimport { readReadmeExplainer } from \"./options/readReadmeExplainer.js\";\nimport { readReadmeFootnotes } from \"./options/readReadmeFootnotes.js\";\nimport { readReadmeUsage } from \"./options/readReadmeUsage.js\";\nimport { readRepository } from \"./options/readRepository.js\";\nimport { readRulesetId } from \"./options/readRulesetId.js\";\nimport { readTitle } from \"./options/readTitle.js\";\nimport { readWords } from \"./options/readWords.js\";\nimport { readWorkflowsVersions } from \"./options/readWorkflowsVersions.js\";\nimport { zContributor, zDocumentation, zWorkflowsVersions } from \"./schemas.js\";\n\nexport const base = createBase({\n\toptions: {\n\t\taccess: z\n\t\t\t.union([z.literal(\"public\"), z.literal(\"restricted\")])\n\t\t\t.describe(\"which `npm publish --access` to release npm packages with\"),\n\t\tauthor: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"username on npm to publish packages under\"),\n\t\tbin: z\n\t\t\t.union([z.string(), z.record(z.string())])\n\t\t\t.optional()\n\t\t\t.describe('value to set in `package.json`\\'s `\"bin\"` property'),\n\t\tcontributors: z\n\t\t\t.array(zContributor)\n\t\t\t.optional()\n\t\t\t.describe(\"AllContributors contributors to store in .all-contributorsrc\"),\n\t\tdescription: z\n\t\t\t.string()\n\t\t\t.default(\"A very lovely package. Hooray!\")\n\t\t\t.describe(\"'Sentence case.' description of the repository\"),\n\t\tdirectory: z.string().describe(\"Directory to create the repository in\"),\n\t\tdocumentation: zDocumentation.describe(\n\t\t\t\"additional docs to add to .md files\",\n\t\t),\n\t\temail: z\n\t\t\t.union([\n\t\t\t\tz.string(),\n\t\t\t\tz.object({\n\t\t\t\t\tgithub: z.string(),\n\t\t\t\t\tnpm: z.string(),\n\t\t\t\t}),\n\t\t\t])\n\t\t\t// TODO: Test this? Is it still working?\n\t\t\t// https://github.com/JoshuaKGoldberg/create-typescript-app/issues/1991\n\t\t\t.transform((email) =>\n\t\t\t\ttypeof email === \"string\" ? { github: email, npm: email } : email,\n\t\t\t)\n\t\t\t.describe(\n\t\t\t\t\"email address to be listed as the point of contact in docs and packages\",\n\t\t\t),\n\t\temoji: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"decorative emoji to use in descriptions and docs\"),\n\t\texistingLabels: z\n\t\t\t.array(\n\t\t\t\tz.object({\n\t\t\t\t\tcolor: z.string(),\n\t\t\t\t\tdescription: z.string(),\n\t\t\t\t\tname: z.string(),\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.optional()\n\t\t\t.describe(\"existing labels from the GitHub repository\"),\n\t\tfunding: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"GitHub organization or username to mention in `funding.yaml`\"),\n\t\tguide: z\n\t\t\t.object({\n\t\t\t\thref: z.string(),\n\t\t\t\ttitle: z.string(),\n\t\t\t})\n\t\t\t.optional()\n\t\t\t.describe(\n\t\t\t\t\"link to a contribution guide to place at the top of development docs\",\n\t\t\t),\n\t\tkeywords: z\n\t\t\t.array(z.string())\n\t\t\t.optional()\n\t\t\t.describe(\"any number of keywords to include in `package.json`\"),\n\t\tlogo: z\n\t\t\t.object({\n\t\t\t\talt: z.string(),\n\t\t\t\theight: z.number().optional(),\n\t\t\t\tsrc: z.string(),\n\t\t\t\twidth: z.number().optional(),\n\t\t\t})\n\t\t\t.optional()\n\t\t\t.describe(\n\t\t\t\t\"local image file and alt text to display near the top of the README.md\",\n\t\t\t),\n\t\tnode: z\n\t\t\t.object({\n\t\t\t\tminimum: z.string(),\n\t\t\t\tpinned: z.string().optional(),\n\t\t\t})\n\t\t\t.describe(\"Node.js engine version(s) to pin and require a minimum of\"),\n\t\towner: z.string().describe(\"organization or user owning the repository\"),\n\t\tpackageData: z\n\t\t\t.object({\n\t\t\t\tdependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\tdevDependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\tpeerDependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\tpeerDependenciesMeta: z.record(z.unknown()).optional(),\n\t\t\t\tscripts: z.record(z.string(), z.string().optional()).optional(),\n\t\t\t})\n\t\t\t.optional()\n\t\t\t.describe(\"additional properties to include in `package.json`\"),\n\t\tpnpm: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"pnpm version for package.json's packageManager field\"),\n\t\trepository: z\n\t\t\t.string()\n\t\t\t.describe(\"'kebab-case' or 'PascalCase' title of the repository\"),\n\t\trulesetId: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"GitHub branch ruleset ID for main branch protections\"),\n\t\ttitle: z.string().describe(\"'Title Case' title for the repository\"),\n\t\ttype: z\n\t\t\t.union([z.literal(\"commonjs\"), z.literal(\"module\")])\n\t\t\t.optional()\n\t\t\t.describe(\"package.json modules type\"),\n\t\tversion: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"package version to publish as and store in `package.json`\"),\n\t\twords: z\n\t\t\t.array(z.string())\n\t\t\t.optional()\n\t\t\t.describe(\"additional words to add to the CSpell dictionary\"),\n\t\tworkflowsVersions: zWorkflowsVersions\n\t\t\t.optional()\n\t\t\t.describe(\"existing versions of GitHub Actions workflows used\"),\n\t},\n\tprepare({ options, take }) {\n\t\tconst getAccess = lazyValue(async () => await readAccess(getPackageData));\n\n\t\tconst getAllContributors = lazyValue(\n\t\t\tasync () => await readAllContributors(take),\n\t\t);\n\n\t\tconst getAuthor = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait readAuthor(\n\t\t\t\t\tgetPackageAuthor,\n\t\t\t\t\tgetNpmDefaults,\n\t\t\t\t\tgetGitUser,\n\t\t\t\t\toptions.owner,\n\t\t\t\t),\n\t\t);\n\n\t\tconst getBin = lazyValue(async () => await readBin(getPackageData));\n\n\t\tconst getEmoji = lazyValue(async () => await readEmoji(getDescription));\n\n\t\tconst getDescription = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait readDescription(getPackageData, getReadme, getRepository),\n\t\t);\n\n\t\tconst getDevelopmentDocumentation = lazyValue(\n\t\t\tasync () => await readDevelopmentDocumentation(take),\n\t\t);\n\n\t\tconst getDocumentation = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait readDocumentation(\n\t\t\t\t\tgetDevelopmentDocumentation,\n\t\t\t\t\tgetReadmeAdditional,\n\t\t\t\t\tgetReadmeExplainer,\n\t\t\t\t\tgetReadmeFootnotes,\n\t\t\t\t\tgetReadmeUsage,\n\t\t\t\t),\n\t\t);\n\n\t\tconst getEmail = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait readEmails(\n\t\t\t\t\tgetEmailFromCodeOfConduct,\n\t\t\t\t\tgetEmailFromGit,\n\t\t\t\t\tgetEmailFromNpm,\n\t\t\t\t\tgetPackageAuthor,\n\t\t\t\t),\n\t\t);\n\n\t\tconst getKeywords = lazyValue(\n\t\t\tasync () => await readKeywords(getPackageData),\n\t\t);\n\n\t\tconst getEmailFromCodeOfConduct = lazyValue(\n\t\t\tasync () => await readEmailFromCodeOfConduct(take),\n\t\t);\n\n\t\tconst getEmailFromGit = lazyValue(async () => await readEmailFromGit(take));\n\n\t\tconst getEmailFromNpm = lazyValue(\n\t\t\tasync () => await readEmailFromNpm(getNpmDefaults, getPackageAuthor),\n\t\t);\n\n\t\tconst getExistingLabels = lazyValue(\n\t\t\tasync () => await readExistingLabels(take, getOwner, getRepository),\n\t\t);\n\n\t\tconst getFunding = lazyValue(async () => await readFunding(take));\n\n\t\tconst getGitDefaults = lazyValue(async () => await readGitDefaults(take));\n\n\t\tconst getGitUser = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait take(inputFromScript, { command: \"git config user.name\" }),\n\t\t);\n\n\t\tconst getGuide = lazyValue(async () => await readGuide(take));\n\n\t\tconst getLogo = lazyValue(async () => await readLogo(getReadme));\n\n\t\tconst getPackageData = lazyValue(async () => await readPackageData(take));\n\n\t\tconst getNode = lazyValue(\n\t\t\tasync () => await readNode(getNvmrc, getPackageData),\n\t\t);\n\n\t\tconst getNpmDefaults = lazyValue(\n\t\t\tasync () => await readNpmDefaults(getNpmWhoami),\n\t\t);\n\n\t\tconst getNpmWhoami = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait take(inputFromScript, { command: \"npm whoami --offline\" }),\n\t\t);\n\n\t\tconst getNvmrc = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait take(inputFromFile, {\n\t\t\t\t\tfilePath: \".nvmrc\",\n\t\t\t\t}),\n\t\t);\n\n\t\tconst getOwner = lazyValue(\n\t\t\tasync () => await readOwner(take, getGitDefaults, getPackageAuthor),\n\t\t);\n\n\t\tconst getPackageAuthor = lazyValue(\n\t\t\tasync () => await readPackageAuthor(getPackageData),\n\t\t);\n\n\t\tconst getPnpm = lazyValue(async () => await readPnpm(getPackageData));\n\n\t\tconst getReadme = lazyValue(\n\t\t\tasync () => await readFileSafe(\"README.md\", \"\"),\n\t\t);\n\n\t\tconst getReadmeAdditional = lazyValue(\n\t\t\tasync () => await readReadmeAdditional(getReadme),\n\t\t);\n\n\t\tconst getReadmeExplainer = lazyValue(\n\t\t\tasync () => await readReadmeExplainer(getReadme),\n\t\t);\n\n\t\tconst getReadmeFootnotes = lazyValue(\n\t\t\tasync () => await readReadmeFootnotes(getReadme),\n\t\t);\n\n\t\tconst getReadmeUsage = lazyValue(\n\t\t\tasync () => await readReadmeUsage(getReadme),\n\t\t);\n\n\t\tconst getRepository = lazyValue(\n\t\t\tasync () => await readRepository(getGitDefaults, getPackageData, options),\n\t\t);\n\n\t\tconst getRulesetId = lazyValue(\n\t\t\tasync () => await readRulesetId(take, getOwner, getRepository),\n\t\t);\n\n\t\tconst getTitle = lazyValue(\n\t\t\tasync () => await readTitle(getReadme, getRepository),\n\t\t);\n\n\t\tconst getType = lazyValue(async () => (await getPackageData()).type);\n\n\t\tconst getVersion = lazyValue(async () => (await getPackageData()).version);\n\n\t\tconst getWords = lazyValue(async () => await readWords(take));\n\n\t\tconst getWorkflowData = lazyValue(\n\t\t\tasync () => await readWorkflowsVersions(take),\n\t\t);\n\n\t\treturn {\n\t\t\taccess: getAccess,\n\t\t\tauthor: getAuthor,\n\t\t\tbin: getBin,\n\t\t\tcontributors: getAllContributors,\n\t\t\tdescription: getDescription,\n\t\t\tdocumentation: getDocumentation,\n\t\t\temail: getEmail,\n\t\t\temoji: getEmoji,\n\t\t\texistingLabels: getExistingLabels,\n\t\t\tfunding: getFunding,\n\t\t\tguide: getGuide,\n\t\t\tkeywords: getKeywords,\n\t\t\tlogo: getLogo,\n\t\t\tnode: getNode,\n\t\t\towner: getOwner,\n\t\t\tpackageData: getPackageData,\n\t\t\tpnpm: getPnpm,\n\t\t\trepository: getRepository,\n\t\t\trulesetId: getRulesetId,\n\t\t\ttitle: getTitle,\n\t\t\ttype: getType,\n\t\t\tversion: getVersion,\n\t\t\twords: getWords,\n\t\t\tworkflowsVersions: getWorkflowData,\n\t\t};\n\t},\n});\n\nexport type BaseOptions = BaseOptionsFor<typeof base> & { preset?: string };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,MAAa,OAAO,WAAW;CAC9B,SAAS;EACR,QAAQ,EACN,MAAM,CAAC,EAAE,QAAQ,SAAS,EAAE,EAAE,QAAQ,aAAa,CAAC,CAAC,CACrD,SAAS,4DAA4D;EACvE,QAAQ,EACN,QAAQ,CACR,UAAU,CACV,SAAS,4CAA4C;EACvD,KAAK,EACH,MAAM,CAAC,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CACzC,UAAU,CACV,SAAS,sDAAqD;EAChE,cAAc,EACZ,MAAM,aAAa,CACnB,UAAU,CACV,SAAS,+DAA+D;EAC1E,aAAa,EACX,QAAQ,CACR,QAAQ,iCAAiC,CACzC,SAAS,iDAAiD;EAC5D,WAAW,EAAE,QAAQ,CAAC,SAAS,wCAAwC;EACvE,eAAe,eAAe,SAC7B,sCACA;EACD,OAAO,EACL,MAAM,CACN,EAAE,QAAQ,EACV,EAAE,OAAO;GACR,QAAQ,EAAE,QAAQ;GAClB,KAAK,EAAE,QAAQ;GACf,CAAC,CACF,CAAC,CAGD,WAAW,UACX,OAAO,UAAU,WAAW;GAAE,QAAQ;GAAO,KAAK;GAAO,GAAG,MAC5D,CACA,SACA,0EACA;EACF,OAAO,EACL,QAAQ,CACR,UAAU,CACV,SAAS,mDAAmD;EAC9D,gBAAgB,EACd,MACA,EAAE,OAAO;GACR,OAAO,EAAE,QAAQ;G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,gBAAgB,gBAAgB,QAAQ,CACzE;AAoBD,SAAO;GACN,QAAQ;GACR,QAAQ;GACR,KAAK;GACL,cAAc;GACd,aAAa;GACb,eAAe;GACf,OAAO;GACP,OAAO;GACP,gBAAgB;GAChB,SAAS;GACT,OAAO;GACP,UAAU;GACV,MAAM;GACN,MAAM;GACN,OAAO;GACP,aAAa;GACb,MAAM;GACN,YAAY;GACZ,WArCoB,UACpB,YAAY,MAAM,cAAc,MAAM,UAAU,cAAc,CAC9D;GAoCA,OAlCgB,UAChB,YAAY,MAAM,UAAU,WAAW,cAAc,CACrD;GAiCA,MA/Be,UAAU,aAAa,MAAM,gBAAgB,EAAE,KAAK;GAgCnE,SA9BkB,UAAU,aAAa,MAAM,gBAAgB,EAAE,QAAQ;GA+BzE,OA7BgB,UAAU,YAAY,MAAM,UAAU,KAAK,CAAC;GA8B5D,mBA5BuB,UACvB,YAAY,MAAM,sBAAsB,KAAK,CAC7C;GA2BA;;CAEF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum1 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockAllContributors.d.ts
|
|
4
|
-
declare const blockAllContributors:
|
|
4
|
+
declare const blockAllContributors: bingo_stratum1.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -50,7 +50,7 @@ const blockAllContributors = base.createBlock({
|
|
|
50
50
|
projectOwner: options.owner,
|
|
51
51
|
repoType: "github"
|
|
52
52
|
}, null, 2),
|
|
53
|
-
".github": { workflows: { "contributors.
|
|
53
|
+
".github": { workflows: { "contributors.yaml": createSoloWorkflowFile({
|
|
54
54
|
name: "Contributors",
|
|
55
55
|
on: { push: { branches: ["main"] } },
|
|
56
56
|
steps: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockAllContributors.js","names":[],"sources":["../../src/blocks/blockAllContributors.ts"],"sourcesContent":["import _ from \"lodash\";\n\nimport { base } from \"../base.js\";\nimport { startingOwnerContributions } from \"../data/contributions.js\";\nimport { Contributor } from \"../schemas.js\";\nimport { resolveUses } from \"./actions/resolveUses.js\";\nimport { blockPrettier } from \"./blockPrettier.js\";\nimport { blockREADME } from \"./blockREADME.js\";\nimport { blockRepositorySecrets } from \"./blockRepositorySecrets.js\";\nimport { createSoloWorkflowFile } from \"./files/createSoloWorkflowFile.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockAllContributors = base.createBlock({\n\tabout: {\n\t\tname: \"AllContributors\",\n\t},\n\tproduce({ options }) {\n\t\tconst contributions = options.contributors?.length;\n\t\tconst ownerContributions = Array.from(\n\t\t\tnew Set(\n\t\t\t\t[\n\t\t\t\t\toptions.contributors?.find(\n\t\t\t\t\t\t(contributor) =>\n\t\t\t\t\t\t\tcontributor.login.toLowerCase() === options.owner.toLowerCase(),\n\t\t\t\t\t)?.contributions,\n\t\t\t\t\tstartingOwnerContributions,\n\t\t\t\t]\n\t\t\t\t\t.filter(Boolean)\n\t\t\t\t\t.flat(),\n\t\t\t),\n\t\t);\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockPrettier({\n\t\t\t\t\tignores: [\"/.all-contributorsrc\"],\n\t\t\t\t}),\n\t\t\t\tblockREADME({\n\t\t\t\t\tbadges: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\talt: `👪 All Contributors: ${contributions}`,\n\t\t\t\t\t\t\tcomments: {\n\t\t\t\t\t\t\t\tafter: `\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n\\t<!-- prettier-ignore-end -->`,\n\t\t\t\t\t\t\t\tbefore: `<!-- prettier-ignore-start -->\n\\t<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n\\t`,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\thref: \"#contributors\",\n\t\t\t\t\t\t\tsrc: `https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-${contributions}-21bb42.svg`,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\tsections: options.contributors\n\t\t\t\t\t\t? [printAllContributorsTable(options.contributors)]\n\t\t\t\t\t\t: undefined,\n\t\t\t\t}),\n\t\t\t\tblockRepositorySecrets({\n\t\t\t\t\tsecrets: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdescription: \"a GitHub PAT with repo and workflow permissions\",\n\t\t\t\t\t\t\tname: \"ACCESS_TOKEN\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\".all-contributorsrc\": JSON.stringify(\n\t\t\t\t\t{\n\t\t\t\t\t\tbadgeTemplate:\n\t\t\t\t\t\t\t'\t<a href=\"#contributors\" target=\"_blank\"><img alt=\"👪 All Contributors: <%= contributors.length %>\" src=\"https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-<%= contributors.length %>-21bb42.svg\" /></a>',\n\t\t\t\t\t\tcommitType: \"docs\",\n\t\t\t\t\t\tcontributors: options.contributors ?? [],\n\t\t\t\t\t\tcontributorsPerLine: 7,\n\t\t\t\t\t\tcontributorsSortAlphabetically: true,\n\t\t\t\t\t\tfiles: [\"README.md\"],\n\t\t\t\t\t\tprojectName: options.repository,\n\t\t\t\t\t\tprojectOwner: options.owner,\n\t\t\t\t\t\trepoType: \"github\",\n\t\t\t\t\t},\n\t\t\t\t\tnull,\n\t\t\t\t\t2,\n\t\t\t\t),\n\t\t\t\t\".github\": {\n\t\t\t\t\tworkflows: {\n\t\t\t\t\t\t\"contributors.
|
|
1
|
+
{"version":3,"file":"blockAllContributors.js","names":[],"sources":["../../src/blocks/blockAllContributors.ts"],"sourcesContent":["import _ from \"lodash\";\n\nimport { base } from \"../base.js\";\nimport { startingOwnerContributions } from \"../data/contributions.js\";\nimport { Contributor } from \"../schemas.js\";\nimport { resolveUses } from \"./actions/resolveUses.js\";\nimport { blockPrettier } from \"./blockPrettier.js\";\nimport { blockREADME } from \"./blockREADME.js\";\nimport { blockRepositorySecrets } from \"./blockRepositorySecrets.js\";\nimport { createSoloWorkflowFile } from \"./files/createSoloWorkflowFile.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockAllContributors = base.createBlock({\n\tabout: {\n\t\tname: \"AllContributors\",\n\t},\n\tproduce({ options }) {\n\t\tconst contributions = options.contributors?.length;\n\t\tconst ownerContributions = Array.from(\n\t\t\tnew Set(\n\t\t\t\t[\n\t\t\t\t\toptions.contributors?.find(\n\t\t\t\t\t\t(contributor) =>\n\t\t\t\t\t\t\tcontributor.login.toLowerCase() === options.owner.toLowerCase(),\n\t\t\t\t\t)?.contributions,\n\t\t\t\t\tstartingOwnerContributions,\n\t\t\t\t]\n\t\t\t\t\t.filter(Boolean)\n\t\t\t\t\t.flat(),\n\t\t\t),\n\t\t);\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockPrettier({\n\t\t\t\t\tignores: [\"/.all-contributorsrc\"],\n\t\t\t\t}),\n\t\t\t\tblockREADME({\n\t\t\t\t\tbadges: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\talt: `👪 All Contributors: ${contributions}`,\n\t\t\t\t\t\t\tcomments: {\n\t\t\t\t\t\t\t\tafter: `\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n\\t<!-- prettier-ignore-end -->`,\n\t\t\t\t\t\t\t\tbefore: `<!-- prettier-ignore-start -->\n\\t<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n\\t`,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\thref: \"#contributors\",\n\t\t\t\t\t\t\tsrc: `https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-${contributions}-21bb42.svg`,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\tsections: options.contributors\n\t\t\t\t\t\t? [printAllContributorsTable(options.contributors)]\n\t\t\t\t\t\t: undefined,\n\t\t\t\t}),\n\t\t\t\tblockRepositorySecrets({\n\t\t\t\t\tsecrets: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdescription: \"a GitHub PAT with repo and workflow permissions\",\n\t\t\t\t\t\t\tname: \"ACCESS_TOKEN\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\".all-contributorsrc\": JSON.stringify(\n\t\t\t\t\t{\n\t\t\t\t\t\tbadgeTemplate:\n\t\t\t\t\t\t\t'\t<a href=\"#contributors\" target=\"_blank\"><img alt=\"👪 All Contributors: <%= contributors.length %>\" src=\"https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-<%= contributors.length %>-21bb42.svg\" /></a>',\n\t\t\t\t\t\tcommitType: \"docs\",\n\t\t\t\t\t\tcontributors: options.contributors ?? [],\n\t\t\t\t\t\tcontributorsPerLine: 7,\n\t\t\t\t\t\tcontributorsSortAlphabetically: true,\n\t\t\t\t\t\tfiles: [\"README.md\"],\n\t\t\t\t\t\tprojectName: options.repository,\n\t\t\t\t\t\tprojectOwner: options.owner,\n\t\t\t\t\t\trepoType: \"github\",\n\t\t\t\t\t},\n\t\t\t\t\tnull,\n\t\t\t\t\t2,\n\t\t\t\t),\n\t\t\t\t\".github\": {\n\t\t\t\t\tworkflows: {\n\t\t\t\t\t\t\"contributors.yaml\": createSoloWorkflowFile({\n\t\t\t\t\t\t\tname: \"Contributors\",\n\t\t\t\t\t\t\ton: {\n\t\t\t\t\t\t\t\tpush: {\n\t\t\t\t\t\t\t\t\tbranches: [\"main\"],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tuses: resolveUses(\n\t\t\t\t\t\t\t\t\t\t\"actions/checkout\",\n\t\t\t\t\t\t\t\t\t\t\"v4\",\n\t\t\t\t\t\t\t\t\t\toptions.workflowsVersions,\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\twith: { \"fetch-depth\": 0 },\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{ uses: \"./.github/actions/prepare\" },\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tenv: { GITHUB_TOKEN: \"${{ secrets.ACCESS_TOKEN }}\" },\n\t\t\t\t\t\t\t\t\tuses: resolveUses(\n\t\t\t\t\t\t\t\t\t\t\"JoshuaKGoldberg/all-contributors-auto-action\",\n\t\t\t\t\t\t\t\t\t\t\"v0.5.0\",\n\t\t\t\t\t\t\t\t\t\toptions.workflowsVersions,\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t}),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\n\t\t\t\t\t\t`pnpx all-contributors-cli@6.23.1 add ${options.owner} ${ownerContributions.join(\",\")}`,\n\t\t\t\t\t],\n\t\t\t\t\tphase: CommandPhase.Process,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n});\n\nfunction printAllContributorsTable(contributors: Contributor[]) {\n\treturn [\n\t\t`## Contributors`,\n\t\t``,\n\t\t`<!-- spellchecker: disable -->`,\n\t\t`<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->`,\n\t\t`<!-- prettier-ignore-start -->`,\n\t\t`<table>`,\n\t\t` <tbody>`,\n\t\t` <tr>`,\n\t\t// This intentionally uses the same sort as all-contributors-cli:\n\t\t// https://github.com/all-contributors/cli/blob/74bc388bd6f0ae2658e6495e9d3781d737438a97/src/generate/index.js#L76\n\t\t..._.sortBy(contributors, \"name\").flatMap((contributor, i) => {\n\t\t\tconst row = printContributorCell(contributor);\n\n\t\t\treturn i && i % 7 === 0 ? [` </tr>`, ` <tr>`, row] : [row];\n\t\t}),\n\t\t` </tr>`,\n\t\t` </tbody>`,\n\t\t`</table>`,\n\t\t``,\n\t\t`<!-- prettier-ignore-end -->`,\n\t\t``,\n\t\t`<!-- ALL-CONTRIBUTORS-LIST:END -->`,\n\t\t`<!-- spellchecker: enable -->`,\n\t].join(\"\\n\");\n}\n\nfunction printContributorCell(contributor: Contributor) {\n\treturn [\n\t\t` <td align=\"center\" valign=\"top\" width=\"14.28%\">`,\n\t\t`<a href=\"${contributor.profile}\">`,\n\t\t`<img src=\"${contributor.avatar_url}?s=100\" width=\"100px;\" alt=\"${contributor.name}\"/>`,\n\t\t`<br />`,\n\t\t`<sub><b>${contributor.name}</b></sub></a><br />`,\n\t\tcontributor.contributions\n\t\t\t.map((contribution) => {\n\t\t\t\tswitch (contribution) {\n\t\t\t\t\tcase \"bug\":\n\t\t\t\t\t\treturn `<a href=\"https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=author%3A${contributor.login}\" title=\"Bug reports\">🐛</a>`;\n\t\t\t\t\tcase \"code\":\n\t\t\t\t\t\treturn `<a href=\"https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=${contributor.login}\" title=\"Code\">💻</a>`;\n\t\t\t\t\tcase \"design\":\n\t\t\t\t\t\treturn `<a href=\"#design-${contributor.login}\" title=\"Design\">🎨</a>`;\n\t\t\t\t\tcase \"doc\":\n\t\t\t\t\t\treturn `<a href=\"https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=${contributor.login}\" title=\"Documentation\">📖</a>`;\n\t\t\t\t\tcase \"ideas\":\n\t\t\t\t\t\treturn `<a href=\"#ideas-${contributor.login}\" title=\"Ideas, Planning, & Feedback\">🤔</a>`;\n\t\t\t\t\tcase \"infra\":\n\t\t\t\t\t\treturn `<a href=\"#infra-${contributor.login}\" title=\"Infrastructure (Hosting, Build-Tools, etc)\">🚇</a>`;\n\t\t\t\t\tcase \"maintenance\":\n\t\t\t\t\t\treturn `<a href=\"#maintenance-${contributor.login}\" title=\"Maintenance\">🚧</a>`;\n\t\t\t\t\tcase \"review\":\n\t\t\t\t\t\treturn `<a href=\"https://github.com/JoshuaKGoldberg/create-typescript-app/pulls?q=is%3Apr+reviewed-by%3A${contributor.login}\" title=\"Reviewed Pull Requests\">👀</a>`;\n\t\t\t\t\tcase \"test\":\n\t\t\t\t\t\treturn `<a href=\"https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=${contributor.login}\" title=\"Tests\">⚠️</a>`;\n\t\t\t\t\tcase \"tool\":\n\t\t\t\t\t\treturn `<a href=\"#tool-${contributor.login}\" title=\"Tools\">🔧</a>`;\n\t\t\t\t}\n\t\t\t})\n\t\t\t.join(\" \"),\n\t\t`</td>`,\n\t].join(\"\");\n}\n"],"mappings":";;;;;;;;;;;AAYA,MAAa,uBAAuB,KAAK,YAAY;CACpD,OAAO,EACN,MAAM,mBACN;CACD,QAAQ,EAAE,WAAW;EACpB,MAAM,gBAAgB,QAAQ,cAAc;EAC5C,MAAM,qBAAqB,MAAM,KAChC,IAAI,IACH,CACC,QAAQ,cAAc,MACpB,gBACA,YAAY,MAAM,aAAa,KAAK,QAAQ,MAAM,aAAa,CAChE,EAAE,eACH,2BACA,CACC,OAAO,QAAQ,CACf,MAAM,CACR,CACD;AAED,SAAO;GACN,QAAQ;IACP,cAAc,EACb,SAAS,CAAC,uBAAuB,EACjC,CAAC;IACF,YAAY;KACX,QAAQ,CACP;MACC,KAAK,wBAAwB;MAC7B,UAAU;OACT,OAAO;;;OAGP,QAAQ;;;OAGR;MACD,MAAM;MACN,KAAK,8DAA8D,cAAc;MACjF,CACD;KACD,UAAU,QAAQ,eACf,CAAC,0BAA0B,QAAQ,aAAa,CAAC,GACjD;KACH,CAAC;IACF,uBAAuB,EACtB,SAAS,CACR;KACC,aAAa;KACb,MAAM;KACN,CACD,EACD,CAAC;IACF;GACD,OAAO;IACN,uBAAuB,KAAK,UAC3B;KACC,eACC;KACD,YAAY;KACZ,cAAc,QAAQ,gBAAgB,EAAE;KACxC,qBAAqB;KACrB,gCAAgC;KAChC,OAA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oFAAoF,YAAY,MAAM;IAC9G,KAAK,QACJ,QAAO,mBAAmB,YAAY,MAAM;IAC7C,KAAK,QACJ,QAAO,mBAAmB,YAAY,MAAM;IAC7C,KAAK,cACJ,QAAO,yBAAyB,YAAY,MAAM;IACnD,KAAK,SACJ,QAAO,mGAAmG,YAAY,MAAM;IAC7H,KAAK,OACJ,QAAO,oFAAoF,YAAY,MAAM;IAC9G,KAAK,OACJ,QAAO,kBAAkB,YAAY,MAAM;;IAE5C,CACD,KAAK,IAAI;EACX;EACA,CAAC,KAAK,GAAG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum0 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockAreTheTypesWrong.d.ts
|
|
4
|
-
declare const blockAreTheTypesWrong:
|
|
4
|
+
declare const blockAreTheTypesWrong: bingo_stratum0.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum3 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockCSpell.d.ts
|
|
4
|
-
declare const blockCSpell:
|
|
4
|
+
declare const blockCSpell: bingo_stratum3.BlockWithAddons<{
|
|
5
5
|
words: string[];
|
|
6
6
|
ignorePaths: string[];
|
|
7
7
|
}, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum4 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockCTATransitions.d.ts
|
|
4
|
-
declare const blockCTATransitions:
|
|
4
|
+
declare const blockCTATransitions: bingo_stratum4.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -13,7 +13,7 @@ const blockCTATransitions = base.createBlock({
|
|
|
13
13
|
return {
|
|
14
14
|
addons: [blockPackageJson({ properties: { devDependencies: { "create-typescript-app": packageData.version } } }), blockRepositoryBranchRuleset({ requiredStatusChecks: ["Transition"] })],
|
|
15
15
|
files: { ".github": {
|
|
16
|
-
actions: { transition: { "action.
|
|
16
|
+
actions: { transition: { "action.yaml": formatYaml({
|
|
17
17
|
description: "Runs create-typescript-app in transition mode",
|
|
18
18
|
inputs: { token: {
|
|
19
19
|
description: "GitHub personal access token with repo, workflow, and read:org permissions.",
|
|
@@ -50,7 +50,7 @@ const blockCTATransitions = base.createBlock({
|
|
|
50
50
|
"Cheers!",
|
|
51
51
|
" — _The Friendly Bingo Bot_ 💝",
|
|
52
52
|
"",
|
|
53
|
-
"> ℹ️ These automatic commits keep your repository up-to-date with new versions of [create-typescript-app](https://github.com/JoshuaKGoldberg/create-typescript-app). If you want to opt out, delete your `.github/workflows/cta-transitions.
|
|
53
|
+
"> ℹ️ These automatic commits keep your repository up-to-date with new versions of [create-typescript-app](https://github.com/JoshuaKGoldberg/create-typescript-app). If you want to opt out, delete your `.github/workflows/cta-transitions.yaml` file."
|
|
54
54
|
].join("\n")
|
|
55
55
|
}
|
|
56
56
|
},
|
|
@@ -76,7 +76,7 @@ const blockCTATransitions = base.createBlock({
|
|
|
76
76
|
using: "composite"
|
|
77
77
|
}
|
|
78
78
|
}) } },
|
|
79
|
-
workflows: { "cta.
|
|
79
|
+
workflows: { "cta.yaml": createSoloWorkflowFile({
|
|
80
80
|
jobName: "Transition",
|
|
81
81
|
name: "CTA",
|
|
82
82
|
on: { pull_request: { branches: ["main"] } },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockCTATransitions.js","names":[],"sources":["../../src/blocks/blockCTATransitions.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { packageData } from \"../data/packageData.js\";\nimport { resolveUses } from \"./actions/resolveUses.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockRepositoryBranchRuleset } from \"./blockRepositoryBranchRuleset.js\";\nimport { createSoloWorkflowFile } from \"./files/createSoloWorkflowFile.js\";\nimport { formatYaml } from \"./files/formatYaml.js\";\n\nexport const blockCTATransitions = base.createBlock({\n\tabout: {\n\t\tname: \"CTA Transitions\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\t\t\"create-typescript-app\": packageData.version,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockRepositoryBranchRuleset({\n\t\t\t\t\trequiredStatusChecks: [\"Transition\"],\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\tactions: {\n\t\t\t\t\t\ttransition: {\n\t\t\t\t\t\t\t\"action.
|
|
1
|
+
{"version":3,"file":"blockCTATransitions.js","names":[],"sources":["../../src/blocks/blockCTATransitions.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { packageData } from \"../data/packageData.js\";\nimport { resolveUses } from \"./actions/resolveUses.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockRepositoryBranchRuleset } from \"./blockRepositoryBranchRuleset.js\";\nimport { createSoloWorkflowFile } from \"./files/createSoloWorkflowFile.js\";\nimport { formatYaml } from \"./files/formatYaml.js\";\n\nexport const blockCTATransitions = base.createBlock({\n\tabout: {\n\t\tname: \"CTA Transitions\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\t\t\"create-typescript-app\": packageData.version,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockRepositoryBranchRuleset({\n\t\t\t\t\trequiredStatusChecks: [\"Transition\"],\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\tactions: {\n\t\t\t\t\t\ttransition: {\n\t\t\t\t\t\t\t\"action.yaml\": formatYaml({\n\t\t\t\t\t\t\t\tdescription: \"Runs create-typescript-app in transition mode\",\n\t\t\t\t\t\t\t\tinputs: {\n\t\t\t\t\t\t\t\t\ttoken: {\n\t\t\t\t\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\t\t\t\t\"GitHub personal access token with repo, workflow, and read:org permissions.\",\n\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tname: \"Transition\",\n\t\t\t\t\t\t\t\truns: {\n\t\t\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t\t\t{ uses: \"./.github/actions/prepare\" },\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\trun: \"npx create-typescript-app\",\n\t\t\t\t\t\t\t\t\t\t\tshell: \"bash\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tid: \"auto-commit-action\",\n\t\t\t\t\t\t\t\t\t\t\tuses: resolveUses(\n\t\t\t\t\t\t\t\t\t\t\t\t\"stefanzweifel/git-auto-commit-action\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"v5\",\n\t\t\t\t\t\t\t\t\t\t\t\toptions.workflowsVersions,\n\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\twith: {\n\t\t\t\t\t\t\t\t\t\t\t\tcommit_author:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"The Friendly Bingo Bot <bot@create.bingo>\",\n\t\t\t\t\t\t\t\t\t\t\t\tcommit_message:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"Check in changes from re-running npx create-typescript-app\",\n\t\t\t\t\t\t\t\t\t\t\t\tcommit_user_email: \"bot@create.bingo\",\n\t\t\t\t\t\t\t\t\t\t\t\tcommit_user_name: \"The Friendly Bingo Bot\",\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tif: \"steps.auto-commit-action.outputs.changes_detected == 'true'\",\n\t\t\t\t\t\t\t\t\t\t\tuses: resolveUses(\n\t\t\t\t\t\t\t\t\t\t\t\t\"mshick/add-pr-comment\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"v2\",\n\t\t\t\t\t\t\t\t\t\t\t\toptions.workflowsVersions,\n\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\twith: {\n\t\t\t\t\t\t\t\t\t\t\t\tissue: \"${{ github.event.pull_request.number }}\",\n\t\t\t\t\t\t\t\t\t\t\t\tmessage: [\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"🤖 Beep boop! I ran `npx create-typescript-app` and it updated some files.\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"I went ahead and checked those changes into this PR for you. Please review the latest commit to see if you want to merge it.\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"Cheers!\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\" — _The Friendly Bingo Bot_ 💝\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"> ℹ️ These automatic commits keep your repository up-to-date with new versions of [create-typescript-app](https://github.com/JoshuaKGoldberg/create-typescript-app). If you want to opt out, delete your `.github/workflows/cta-transitions.yaml` file.\",\n\t\t\t\t\t\t\t\t\t\t\t\t].join(\"\\n\"),\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tid: \"package-change\",\n\t\t\t\t\t\t\t\t\t\t\tuses: resolveUses(\n\t\t\t\t\t\t\t\t\t\t\t\t\"JoshuaKGoldberg/package-change-detector-action\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"0.1.0\",\n\t\t\t\t\t\t\t\t\t\t\t\toptions.workflowsVersions,\n\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\twith: {\n\t\t\t\t\t\t\t\t\t\t\t\tproperties: \"engines\",\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tif: `steps.package-change.outputs.changed == 'true'`,\n\t\t\t\t\t\t\t\t\t\t\tuses: resolveUses(\n\t\t\t\t\t\t\t\t\t\t\t\t\"JoshuaKGoldberg/draft-pull-request-once-action\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"0.0.1\",\n\t\t\t\t\t\t\t\t\t\t\t\toptions.workflowsVersions,\n\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\twith: {\n\t\t\t\t\t\t\t\t\t\t\t\t\"github-token\": \"${{ inputs.token }}\",\n\t\t\t\t\t\t\t\t\t\t\t\tmessage: [\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"🤖 Beep boop! This PR changes the `engines` field in `package.json`. That might be a breaking change. It's been set to a draft so that it doesn't automatically merge. Go ahead and un-draft the PR if the change is ready for release.\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"Cheers!\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\" — _The Friendly Bingo Bot_ 💝\",\n\t\t\t\t\t\t\t\t\t\t\t\t].join(\"\\n\"),\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tusing: \"composite\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tworkflows: {\n\t\t\t\t\t\t\"cta.yaml\": createSoloWorkflowFile({\n\t\t\t\t\t\t\tjobName: \"Transition\",\n\t\t\t\t\t\t\tname: \"CTA\",\n\t\t\t\t\t\t\ton: {\n\t\t\t\t\t\t\t\tpull_request: {\n\t\t\t\t\t\t\t\t\tbranches: [\"main\"],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tpermissions: {\n\t\t\t\t\t\t\t\t\"pull-requests\": \"write\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: \"checkout\",\n\t\t\t\t\t\t\t\t\tif: `(github.actor == '${options.owner}' || github.actor == 'renovate[bot]') && startsWith(github.head_ref, 'renovate/') && contains(github.event.pull_request.title, 'create-typescript-app')`,\n\t\t\t\t\t\t\t\t\tuses: resolveUses(\n\t\t\t\t\t\t\t\t\t\t\"actions/checkout\",\n\t\t\t\t\t\t\t\t\t\t\"v4\",\n\t\t\t\t\t\t\t\t\t\toptions.workflowsVersions,\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\twith: {\n\t\t\t\t\t\t\t\t\t\t\"fetch-depth\": 0,\n\t\t\t\t\t\t\t\t\t\tref: \"${{github.event.pull_request.head.ref}}\",\n\t\t\t\t\t\t\t\t\t\trepository:\n\t\t\t\t\t\t\t\t\t\t\t\"${{github.event.pull_request.head.repo.full_name}}\",\n\t\t\t\t\t\t\t\t\t\ttoken: \"${{ secrets.ACCESS_TOKEN }}\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif: \"steps.checkout.outcome != 'skipped'\",\n\t\t\t\t\t\t\t\t\tuses: \"./.github/actions/transition\",\n\t\t\t\t\t\t\t\t\twith: {\n\t\t\t\t\t\t\t\t\t\ttoken: \"${{ secrets.ACCESS_TOKEN }}\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif: \"steps.checkout.outcome == 'skipped'\",\n\t\t\t\t\t\t\t\t\trun: \"echo 'Skipping transition mode because the PR does not appear to be an automated or owner-created update to create-typescript-app.'\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t}),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;;;;AAQA,MAAa,sBAAsB,KAAK,YAAY;CACnD,OAAO,EACN,MAAM,mBACN;CACD,QAAQ,EAAE,WAAW;AACpB,SAAO;GACN,QAAQ,CACP,iBAAiB,EAChB,YAAY,EACX,iBAAiB,EAChB,yBAAyB,YAAY,SACrC,EACD,EACD,CAAC,EACF,6BAA6B,EAC5B,sBAAsB,CAAC,aAAa,EACpC,CAAC,CACF;GACD,OAAO,EACN,WAAW;IACV,SAAS,EACR,YAAY,EACX,eAAe,WAAW;KACzB,aAAa;KACb,QAAQ,EACP,OAAO;MACN,aACC;MACD,UAAU;MACV,EACD;KACD,MAAM;KACN,MAAM;MACL,OAAO;OACN,EAAE,MAAM,6BAA6B;OACrC;QACC,KAAK;QACL,OAAO;QACP;OACD;QACC,IAAI;QACJ,MAAM,YACL,wCACA,MACA,QAAQ,kBACR;QACD,MAAM;SACL,eACC;SACD,gBACC;SACD,mBAAmB;SACnB,kBAAkB;SAClB;QACD;OACD;QACC,IAAI;QACJ,MAAM,YACL,yBACA,MACA,QAAQ,kBACR;QACD,MAAM;SACL,OAAO;SACP,SAAS;UACR;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA,CAAC,KAAK,KAAK;SACZ;QACD;OACD;QACC,IAAI;QACJ,MAAM,YACL,kDACA,SACA,QAAQ,kBACR;QACD,MAAM,EACL,YAAY,WACZ;QACD;OACD;QACC,IAAI;QACJ,MAAM,YACL,kDACA,SACA,QAAQ,kBACR;QACD,MAAM;SACL,gBAAgB;SAChB,SAAS;UACR;UACA;UACA;UACA;UACA,CAAC,KAAK,KAAK;SACZ;QACD;OACD;MACD,OAAO;MACP;KACD,CAAC,EACF,EACD;IACD,WAAW,EACV,YAAY,uBAAuB;KAClC,SAAS;KACT,MAAM;KACN,IAAI,EACH,cAAc,EACb,UAAU,CAAC,OAAO,EAClB,EACD;KACD,aAAa,EACZ,iBAAiB,SACjB;KACD,OAAO;MACN;OACC,IAAI;OACJ,IAAI,qBAAqB,QAAQ,MAAM;OACvC,MAAM,YACL,oBACA,MACA,QAAQ,kBACR;OACD,MAAM;QACL,eAAe;QACf,KAAK;QACL,YACC;QACD,OAAO;QACP;OACD;MACD;OACC,IAAI;OACJ,MAAM;OACN,MAAM,EACL,OAAO,+BACP;OACD;MACD;OACC,IAAI;OACJ,KAAK;OACL;MACD;KACD,CAAC,EACF;IACD,EACD;GACD;;CAEF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum5 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockCodecov.d.ts
|
|
4
|
-
declare const blockCodecov:
|
|
4
|
+
declare const blockCodecov: bingo_stratum5.BlockWithAddons<{
|
|
5
5
|
env?: Record<string, string> | undefined;
|
|
6
6
|
}, {
|
|
7
7
|
access: "public" | "restricted";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockCodecov.d.ts","names":[],"sources":["../../src/blocks/blockCodecov.ts"],"sourcesContent":[],"mappings":";;;cAUa,
|
|
1
|
+
{"version":3,"file":"blockCodecov.d.ts","names":[],"sources":["../../src/blocks/blockCodecov.ts"],"sourcesContent":[],"mappings":";;;cAUa,6BAAY;;;EAAZ,MAAA,EAAA,QA0EX,GAAA,YAAA;;;;;;;;;;eA1EuB,CAAA,EAAA,MAAA,GAAA,SAAA;EAAA,CAAA"}
|
|
@@ -15,7 +15,7 @@ const blockCodecov = base.createBlock({
|
|
|
15
15
|
const steps = intakeFileYamlSteps(files, [
|
|
16
16
|
".github",
|
|
17
17
|
"workflows",
|
|
18
|
-
"ci.
|
|
18
|
+
"ci.yaml"
|
|
19
19
|
], [
|
|
20
20
|
"jobs",
|
|
21
21
|
"test",
|
|
@@ -46,7 +46,7 @@ const blockCodecov = base.createBlock({
|
|
|
46
46
|
] };
|
|
47
47
|
},
|
|
48
48
|
transition() {
|
|
49
|
-
return { addons: [blockRemoveFiles({ files: [".github/codecov.
|
|
49
|
+
return { addons: [blockRemoveFiles({ files: [".github/codecov.yaml", "codecov.yaml"] })] };
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockCodecov.js","names":["step"],"sources":["../../src/blocks/blockCodecov.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { resolveUses } from \"./actions/resolveUses.js\";\nimport { intakeFileYamlSteps } from \"./actions/steps.js\";\nimport { blockGitHubApps } from \"./blockGitHubApps.js\";\nimport { blockREADME } from \"./blockREADME.js\";\nimport { blockRemoveFiles } from \"./blockRemoveFiles.js\";\nimport { blockVitest } from \"./blockVitest.js\";\n\nexport const blockCodecov = base.createBlock({\n\tabout: {\n\t\tname: \"Codecov\",\n\t},\n\taddons: {\n\t\tenv: z.record(z.string(), z.string()).optional(),\n\t},\n\tintake({ files }) {\n\t\tconst steps = intakeFileYamlSteps(\n\t\t\tfiles,\n\t\t\t[\".github\", \"workflows\", \"ci.
|
|
1
|
+
{"version":3,"file":"blockCodecov.js","names":["step"],"sources":["../../src/blocks/blockCodecov.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { resolveUses } from \"./actions/resolveUses.js\";\nimport { intakeFileYamlSteps } from \"./actions/steps.js\";\nimport { blockGitHubApps } from \"./blockGitHubApps.js\";\nimport { blockREADME } from \"./blockREADME.js\";\nimport { blockRemoveFiles } from \"./blockRemoveFiles.js\";\nimport { blockVitest } from \"./blockVitest.js\";\n\nexport const blockCodecov = base.createBlock({\n\tabout: {\n\t\tname: \"Codecov\",\n\t},\n\taddons: {\n\t\tenv: z.record(z.string(), z.string()).optional(),\n\t},\n\tintake({ files }) {\n\t\tconst steps = intakeFileYamlSteps(\n\t\t\tfiles,\n\t\t\t[\".github\", \"workflows\", \"ci.yaml\"],\n\t\t\t[\"jobs\", \"test\", \"steps\"],\n\t\t);\n\t\tif (!steps) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\tconst step = steps.find(\n\t\t\t(step) =>\n\t\t\t\ttypeof step.uses === \"string\" &&\n\t\t\t\tstep.uses.startsWith(\"codecov/codecov-action\"),\n\t\t);\n\t\tif (!step) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\treturn {\n\t\t\tenv: step.env,\n\t\t};\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { env } = addons;\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockGitHubApps({\n\t\t\t\t\tapps: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Codecov\",\n\t\t\t\t\t\t\turl: \"https://github.com/apps/codecov\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockREADME({\n\t\t\t\t\tbadges: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\talt: \"🧪 Coverage\",\n\t\t\t\t\t\t\thref: `https://codecov.io/gh/${options.owner}/${options.repository}`,\n\t\t\t\t\t\t\tsrc: `https://img.shields.io/codecov/c/github/${options.owner}/${options.repository}?label=%F0%9F%A7%AA%20coverage`,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockVitest({\n\t\t\t\t\tactionSteps: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t...(env && { env }),\n\t\t\t\t\t\t\tif: \"always()\",\n\t\t\t\t\t\t\tuses: resolveUses(\n\t\t\t\t\t\t\t\t\"codecov/codecov-action\",\n\t\t\t\t\t\t\t\t\"v3\",\n\t\t\t\t\t\t\t\toptions.workflowsVersions,\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockRemoveFiles({ files: [\".github/codecov.yaml\", \"codecov.yaml\"] }),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;;;;;AAUA,MAAa,eAAe,KAAK,YAAY;CAC5C,OAAO,EACN,MAAM,WACN;CACD,QAAQ,EACP,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC,CAAC,UAAU,EAChD;CACD,OAAO,EAAE,SAAS;EACjB,MAAM,QAAQ,oBACb,OACA;GAAC;GAAW;GAAa;GAAU,EACnC;GAAC;GAAQ;GAAQ;GAAQ,CACzB;AACD,MAAI,CAAC,MACJ;EAGD,MAAM,OAAO,MAAM,MACjB,WACA,OAAOA,OAAK,SAAS,YACrBA,OAAK,KAAK,WAAW,yBAAyB,CAC/C;AACD,MAAI,CAAC,KACJ;AAGD,SAAO,EACN,KAAK,KAAK,KACV;;CAEF,QAAQ,EAAE,QAAQ,WAAW;EAC5B,MAAM,EAAE,QAAQ;AAChB,SAAO,EACN,QAAQ;GACP,gBAAgB,EACf,MAAM,CACL;IACC,MAAM;IACN,KAAK;IACL,CACD,EACD,CAAC;GACF,YAAY,EACX,QAAQ,CACP;IACC,KAAK;IACL,MAAM,yBAAyB,QAAQ,MAAM,GAAG,QAAQ;IACxD,KAAK,2CAA2C,QAAQ,MAAM,GAAG,QAAQ,WAAW;IACpF,CACD,EACD,CAAC;GACF,YAAY,EACX,aAAa,CACZ;IACC,GAAI,OAAO,EAAE,KAAK;IAClB,IAAI;IACJ,MAAM,YACL,0BACA,MACA,QAAQ,kBACR;IACD,CACD,EACD,CAAC;GACF,EACD;;CAEF,aAAa;AACZ,SAAO,EACN,QAAQ,CACP,iBAAiB,EAAE,OAAO,CAAC,wBAAwB,eAAe,EAAE,CAAC,CACrE,EACD;;CAEF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum6 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockContributingDocs.d.ts
|
|
4
|
-
declare const blockContributingDocs:
|
|
4
|
+
declare const blockContributingDocs: bingo_stratum6.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockContributingDocs.d.ts","names":[],"sources":["../../src/blocks/blockContributingDocs.ts"],"sourcesContent":[],"mappings":";;;cAGa,
|
|
1
|
+
{"version":3,"file":"blockContributingDocs.d.ts","names":[],"sources":["../../src/blocks/blockContributingDocs.ts"],"sourcesContent":[],"mappings":";;;cAGa,sCAAqB;;;EAArB,SAAA,EAAA,MAAA;;;;;;;;;;EAAqB,KAAA,EAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum7 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockContributorCovenant.d.ts
|
|
4
|
-
declare const blockContributorCovenant:
|
|
4
|
+
declare const blockContributorCovenant: bingo_stratum7.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockContributorCovenant.d.ts","names":[],"sources":["../../src/blocks/blockContributorCovenant.ts"],"sourcesContent":[],"mappings":";;;cAIa,
|
|
1
|
+
{"version":3,"file":"blockContributorCovenant.d.ts","names":[],"sources":["../../src/blocks/blockContributorCovenant.ts"],"sourcesContent":[],"mappings":";;;cAIa,yCAAwB;;;EAAxB,SAAA,EAAA,MAAA;;;;;;;;;;EAAwB,KAAA,EAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum8 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockDevelopmentDocs.d.ts
|
|
4
|
-
declare const blockDevelopmentDocs:
|
|
4
|
+
declare const blockDevelopmentDocs: bingo_stratum8.BlockWithAddons<{
|
|
5
5
|
hints: string[];
|
|
6
6
|
sections: Record<string, {
|
|
7
7
|
contents?: string | {
|
|
8
|
-
after?: string[] | undefined;
|
|
9
8
|
before?: string | undefined;
|
|
9
|
+
after?: string[] | undefined;
|
|
10
10
|
items?: string[] | undefined;
|
|
11
11
|
plural?: string | undefined;
|
|
12
12
|
} | undefined;
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum9 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockESLint.d.ts
|
|
4
|
-
declare const blockESLint:
|
|
5
|
-
|
|
4
|
+
declare const blockESLint: bingo_stratum9.BlockWithAddons<{
|
|
5
|
+
ignores: string[];
|
|
6
6
|
extensions: {
|
|
7
7
|
files: string[];
|
|
8
|
-
extends?: string[] | undefined;
|
|
9
|
-
languageOptions?: unknown;
|
|
10
|
-
linterOptions?: unknown;
|
|
11
|
-
plugins?: Record<string, string> | undefined;
|
|
12
8
|
rules?: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]> | {
|
|
13
9
|
entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
|
|
14
10
|
comment?: string | undefined;
|
|
15
11
|
}[] | undefined;
|
|
12
|
+
plugins?: Record<string, string> | undefined;
|
|
16
13
|
settings?: Record<string, unknown> | undefined;
|
|
14
|
+
extends?: string[] | undefined;
|
|
15
|
+
languageOptions?: unknown;
|
|
16
|
+
linterOptions?: unknown;
|
|
17
17
|
}[];
|
|
18
|
-
ignores: string[];
|
|
19
18
|
imports: {
|
|
20
19
|
source: string | {
|
|
21
20
|
version: string;
|
|
@@ -24,6 +23,7 @@ declare const blockESLint: bingo_stratum8.BlockWithAddons<{
|
|
|
24
23
|
specifier: string;
|
|
25
24
|
types?: boolean | undefined;
|
|
26
25
|
}[];
|
|
26
|
+
explanations: string[];
|
|
27
27
|
beforeLint?: string | undefined;
|
|
28
28
|
}, {
|
|
29
29
|
access: "public" | "restricted";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockESLint.d.ts","names":[],"sources":["../../src/blocks/blockESLint.ts"],"sourcesContent":[],"mappings":";;;cA2Ba,4BAAW;;;IAAX,KAAA,EAAA,MA6OX,EAAA;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"blockESLint.d.ts","names":[],"sources":["../../src/blocks/blockESLint.ts"],"sourcesContent":[],"mappings":";;;cA2Ba,4BAAW;;;IAAX,KAAA,EAAA,MA6OX,EAAA;;;;;;;;;;;;;aA7OsB,EAAA,MAAA;MAAA,WAAA,EAAA,MAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum2 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockESLintComments.d.ts
|
|
4
|
-
declare const blockESLintComments:
|
|
4
|
+
declare const blockESLintComments: bingo_stratum2.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum11 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockESLintJSDoc.d.ts
|
|
4
|
-
declare const blockESLintJSDoc:
|
|
4
|
+
declare const blockESLintJSDoc: bingo_stratum11.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum10 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockESLintJSONC.d.ts
|
|
4
|
-
declare const blockESLintJSONC:
|
|
4
|
+
declare const blockESLintJSONC: bingo_stratum10.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum12 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockESLintMarkdown.d.ts
|
|
4
|
-
declare const blockESLintMarkdown:
|
|
4
|
+
declare const blockESLintMarkdown: bingo_stratum12.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum13 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockESLintMoreStyling.d.ts
|
|
4
4
|
declare const stylisticComment = "Stylistic concerns that don't interfere with Prettier";
|
|
5
|
-
declare const blockESLintMoreStyling:
|
|
5
|
+
declare const blockESLintMoreStyling: bingo_stratum13.BlockWithoutAddons<{
|
|
6
6
|
access: "public" | "restricted";
|
|
7
7
|
description: string;
|
|
8
8
|
directory: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum14 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockESLintNode.d.ts
|
|
4
|
-
declare const blockESLintNode:
|
|
4
|
+
declare const blockESLintNode: bingo_stratum14.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum15 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockESLintPackageJson.d.ts
|
|
4
|
-
declare const blockESLintPackageJson:
|
|
4
|
+
declare const blockESLintPackageJson: bingo_stratum15.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum16 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockESLintPerfectionist.d.ts
|
|
4
|
-
declare const blockESLintPerfectionist:
|
|
4
|
+
declare const blockESLintPerfectionist: bingo_stratum16.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockESLintPerfectionist.d.ts","names":[],"sources":["../../src/blocks/blockESLintPerfectionist.ts"],"sourcesContent":[],"mappings":";;;cAIa,
|
|
1
|
+
{"version":3,"file":"blockESLintPerfectionist.d.ts","names":[],"sources":["../../src/blocks/blockESLintPerfectionist.ts"],"sourcesContent":[],"mappings":";;;cAIa,0CAAwB;;;EAAxB,SAAA,EAAA,MAAA;;;;;;;;;;EAAwB,KAAA,EAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum17 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockESLintPlugin.d.ts
|
|
4
|
-
declare const blockESLintPlugin:
|
|
4
|
+
declare const blockESLintPlugin: bingo_stratum17.BlockWithAddons<{
|
|
5
5
|
configEmoji?: [string, string][] | undefined;
|
|
6
6
|
}, {
|
|
7
7
|
access: "public" | "restricted";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockESLintPlugin.d.ts","names":[],"sources":["../../src/blocks/blockESLintPlugin.ts"],"sourcesContent":[],"mappings":";;;cAca,
|
|
1
|
+
{"version":3,"file":"blockESLintPlugin.d.ts","names":[],"sources":["../../src/blocks/blockESLintPlugin.ts"],"sourcesContent":[],"mappings":";;;cAca,mCAAiB;;;EAAjB,MAAA,EAAA,QAAA,GAAA,YAgRX;;;;;;;;;;IAhR4B,WAAA,CAAA,EAAA,MAAA,GAAA,SAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum18 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockESLintRegexp.d.ts
|
|
4
|
-
declare const blockESLintRegexp:
|
|
4
|
+
declare const blockESLintRegexp: bingo_stratum18.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum19 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockESLintYML.d.ts
|
|
4
|
-
declare const blockESLintYML:
|
|
4
|
+
declare const blockESLintYML: bingo_stratum19.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -10,7 +10,7 @@ const blockESLintYML = base.createBlock({
|
|
|
10
10
|
extends: ["yml.configs[\"flat/standard\"]", "yml.configs[\"flat/prettier\"]"],
|
|
11
11
|
files: ["**/*.{yml,yaml}"],
|
|
12
12
|
rules: {
|
|
13
|
-
"yml/file-extension":
|
|
13
|
+
"yml/file-extension": "error",
|
|
14
14
|
"yml/sort-keys": ["error", {
|
|
15
15
|
order: { type: "asc" },
|
|
16
16
|
pathPattern: "^.*$"
|