create-typescript-app 1.78.0 → 1.79.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/README.md +48 -48
- package/lib/create/createAndEnterGitDirectory.d.ts +1 -1
- package/lib/create/createAndEnterGitDirectory.js +4 -3
- package/lib/create/createAndEnterGitDirectory.js.map +1 -1
- package/lib/create/createWithOptions.d.ts +1 -1
- package/lib/create/createWithOptions.js +7 -8
- package/lib/create/createWithOptions.js.map +1 -1
- package/lib/create/index.js +8 -2
- package/lib/create/index.js.map +1 -1
- package/lib/next/base.d.ts +1 -2
- package/lib/next/base.js +37 -27
- package/lib/next/base.js.map +1 -1
- package/lib/next/blocks/blockAllContributors.d.ts +1 -2
- package/lib/next/blocks/blockAllContributors.js +11 -2
- package/lib/next/blocks/blockAllContributors.js.map +1 -1
- package/lib/next/blocks/blockAreTheTypesWrong.d.ts +1 -2
- package/lib/next/blocks/blockCSpell.d.ts +1 -2
- package/lib/next/blocks/blockCSpell.js +16 -0
- package/lib/next/blocks/blockCSpell.js.map +1 -1
- package/lib/next/blocks/blockContributingDocs.d.ts +1 -2
- package/lib/next/blocks/blockContributorCovenant.d.ts +1 -2
- package/lib/next/blocks/blockDevelopmentDocs.d.ts +1 -2
- package/lib/next/blocks/blockESLint.d.ts +1 -2
- package/lib/next/blocks/blockESLintComments.d.ts +1 -2
- package/lib/next/blocks/blockESLintJSDoc.d.ts +1 -2
- package/lib/next/blocks/blockESLintJSONC.d.ts +1 -2
- package/lib/next/blocks/blockESLintMarkdown.d.ts +1 -2
- package/lib/next/blocks/blockESLintMoreStyling.d.ts +1 -2
- package/lib/next/blocks/blockESLintNode.d.ts +1 -2
- package/lib/next/blocks/blockESLintPackageJson.d.ts +1 -2
- package/lib/next/blocks/blockESLintPerfectionist.d.ts +1 -2
- package/lib/next/blocks/blockESLintRegexp.d.ts +1 -2
- package/lib/next/blocks/blockESLintYML.d.ts +1 -2
- package/lib/next/blocks/blockExampleFiles.d.ts +1 -2
- package/lib/next/blocks/blockFunding.d.ts +1 -2
- package/lib/next/blocks/blockGitHubActionsCI.d.ts +1 -2
- package/lib/next/blocks/blockGitHubApps.d.ts +52 -0
- package/lib/next/blocks/blockGitHubApps.js +34 -0
- package/lib/next/blocks/blockGitHubApps.js.map +1 -0
- package/lib/next/blocks/blockGitHubIssueTemplates.d.ts +1 -2
- package/lib/next/blocks/blockGitHubPRTemplate.d.ts +1 -2
- package/lib/next/blocks/blockGitignore.d.ts +1 -2
- package/lib/next/blocks/blockKnip.d.ts +1 -2
- package/lib/next/blocks/blockKnip.js +2 -2
- package/lib/next/blocks/blockKnip.js.map +1 -1
- package/lib/next/blocks/blockMITLicense.d.ts +1 -2
- package/lib/next/blocks/blockMarkdownlint.d.ts +1 -2
- package/lib/next/blocks/blockNvmrc.d.ts +1 -2
- package/lib/next/blocks/blockPRCompliance.d.ts +1 -2
- package/lib/next/blocks/blockPackageJson.d.ts +1 -2
- package/lib/next/blocks/blockPackageJson.js +46 -41
- package/lib/next/blocks/blockPackageJson.js.map +1 -1
- package/lib/next/blocks/blockPnpmDedupe.d.ts +1 -2
- package/lib/next/blocks/blockPrettier.d.ts +1 -2
- package/lib/next/blocks/blockPrettierPluginCurly.d.ts +1 -2
- package/lib/next/blocks/blockPrettierPluginPackageJson.d.ts +1 -2
- package/lib/next/blocks/blockPrettierPluginSh.d.ts +1 -2
- package/lib/next/blocks/blockREADME.d.ts +1 -2
- package/lib/next/blocks/blockReleaseIt.d.ts +1 -2
- package/lib/next/blocks/blockReleaseIt.js +13 -0
- package/lib/next/blocks/blockReleaseIt.js.map +1 -1
- package/lib/next/blocks/blockRenovate.d.ts +1 -2
- package/lib/next/blocks/blockRenovate.js +9 -0
- package/lib/next/blocks/blockRenovate.js.map +1 -1
- package/lib/next/blocks/blockRepositoryBranchRuleset.d.ts +1 -2
- package/lib/next/blocks/blockRepositoryBranchRuleset.js +9 -0
- package/lib/next/blocks/blockRepositoryBranchRuleset.js.map +1 -1
- package/lib/next/blocks/blockRepositoryLabels.d.ts +1 -2
- package/lib/next/blocks/blockRepositoryLabels.js +12 -2
- package/lib/next/blocks/blockRepositoryLabels.js.map +1 -1
- package/lib/next/blocks/blockRepositorySecrets.d.ts +52 -0
- package/lib/next/blocks/blockRepositorySecrets.js +34 -0
- package/lib/next/blocks/blockRepositorySecrets.js.map +1 -0
- package/lib/next/blocks/blockRepositorySettings.d.ts +1 -2
- package/lib/next/blocks/blockRepositorySettings.js +1 -1
- package/lib/next/blocks/blockRepositorySettings.js.map +1 -1
- package/lib/next/blocks/blockSecurityDocs.d.ts +1 -2
- package/lib/next/blocks/blockTSup.d.ts +1 -2
- package/lib/next/blocks/blockTemplatedBy.d.ts +1 -2
- package/lib/next/blocks/blockTypeScript.d.ts +1 -2
- package/lib/next/blocks/blockVSCode.d.ts +1 -2
- package/lib/next/blocks/blockVitest.d.ts +1 -2
- package/lib/next/blocks/blockVitest.js +26 -17
- package/lib/next/blocks/blockVitest.js.map +1 -1
- package/lib/next/blocks/options.fakes.d.ts +1 -0
- package/lib/next/blocks/options.fakes.js +1 -0
- package/lib/next/blocks/options.fakes.js.map +1 -1
- package/lib/next/blocks/packageData.d.ts +3 -2
- package/lib/next/blocks/packageData.js +20 -14
- package/lib/next/blocks/packageData.js.map +1 -1
- package/lib/next/presetCommon.d.ts +1 -2
- package/lib/next/presetEverything.d.ts +1 -2
- package/lib/next/presetMinimal.d.ts +1 -2
- package/lib/next/presetMinimal.js +4 -0
- package/lib/next/presetMinimal.js.map +1 -1
- package/lib/next/readDocumentation.d.ts +5 -0
- package/lib/next/readDocumentation.js +28 -0
- package/lib/next/readDocumentation.js.map +1 -0
- package/lib/next/template.d.ts +2 -3
- package/lib/next/template.js +2 -6
- package/lib/next/template.js.map +1 -1
- package/lib/next/utils/resolveBin.d.ts +3 -0
- package/lib/next/utils/resolveBin.js +7 -0
- package/lib/next/utils/resolveBin.js.map +1 -0
- package/lib/shared/getGitHubUserAsAllContributor.js +1 -1
- package/lib/shared/getGitHubUserAsAllContributor.js.map +1 -1
- package/lib/shared/options/optionsSchema.d.ts +4 -4
- package/lib/shared/options/readOptions.js +1 -1
- package/lib/shared/options/readOptions.js.map +1 -1
- package/lib/shared/packages.js +1 -3
- package/lib/shared/packages.js.map +1 -1
- package/lib/steps/addToolAllContributors.js +1 -1
- package/lib/steps/addToolAllContributors.js.map +1 -1
- package/lib/steps/initializeGitHubRepository/initializeBranchProtectionSettings.js +9 -0
- package/lib/steps/initializeGitHubRepository/initializeBranchProtectionSettings.js.map +1 -1
- package/lib/steps/uninstallPackages.js +4 -0
- package/lib/steps/uninstallPackages.js.map +1 -1
- package/lib/steps/updateAllContributorsTable.js +1 -1
- package/lib/steps/updateAllContributorsTable.js.map +1 -1
- package/lib/steps/writing/creation/createKnipConfig.d.ts +3 -0
- package/lib/steps/writing/creation/createKnipConfig.js +20 -0
- package/lib/steps/writing/creation/createKnipConfig.js.map +1 -0
- package/lib/steps/writing/creation/index.d.ts +2 -1
- package/lib/steps/writing/creation/index.js +21 -8
- package/lib/steps/writing/creation/index.js.map +1 -1
- package/lib/steps/writing/creation/rootFiles.js +2 -9
- package/lib/steps/writing/creation/rootFiles.js.map +1 -1
- package/package.json +16 -12
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockAllContributors: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockAllContributors: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockAllContributors: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createSoloWorkflowFile } from "../../steps/writing/creation/dotGitHub/createSoloWorkflowFile.js";
|
|
2
2
|
import { base } from "../base.js";
|
|
3
3
|
import { blockPrettier } from "./blockPrettier.js";
|
|
4
|
+
import { blockRepositorySecrets } from "./blockRepositorySecrets.js";
|
|
4
5
|
import { CommandPhase } from "./phases.js";
|
|
5
6
|
const blockAllContributors = base.createBlock({
|
|
6
7
|
about: {
|
|
@@ -11,6 +12,14 @@ const blockAllContributors = base.createBlock({
|
|
|
11
12
|
addons: [
|
|
12
13
|
blockPrettier({
|
|
13
14
|
ignores: ["/.all-contributorsrc"]
|
|
15
|
+
}),
|
|
16
|
+
blockRepositorySecrets({
|
|
17
|
+
secrets: [
|
|
18
|
+
{
|
|
19
|
+
description: "a GitHub PAT with repo and workflow permissions",
|
|
20
|
+
name: "ACCESS_TOKEN"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
14
23
|
})
|
|
15
24
|
],
|
|
16
25
|
files: {
|
|
@@ -45,8 +54,8 @@ const blockAllContributors = base.createBlock({
|
|
|
45
54
|
scripts: [
|
|
46
55
|
{
|
|
47
56
|
commands: [
|
|
48
|
-
`
|
|
49
|
-
`
|
|
57
|
+
`pnpx all-contributors-cli generate`,
|
|
58
|
+
`pnpx all-contributors-cli add ${options.owner} code,content,docs,ideas,infra,maintenance,projectManagement,tool`
|
|
50
59
|
],
|
|
51
60
|
phase: CommandPhase.Process
|
|
52
61
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/next/blocks/blockAllContributors.ts"],"sourcesContent":["import { createSoloWorkflowFile } from \"../../steps/writing/creation/dotGitHub/createSoloWorkflowFile.js\";\nimport { base } from \"../base.js\";\nimport { blockPrettier } from \"./blockPrettier.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\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],\n\t\t\tfiles: {\n\t\t\t\t\".all-contributorsrc\": JSON.stringify({\n\t\t\t\t\tbadgeTemplate:\n\t\t\t\t\t\t'\t<a href=\"#contributors\" target=\"_blank\"><img alt=\"👪 All Contributors: <%= contributors.length %>\" src=\"https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-<%= contributors.length %>-21bb42.svg\" /></a>',\n\t\t\t\t\tcontributors: options.contributors ?? [],\n\t\t\t\t\tcontributorsSortAlphabetically: true,\n\t\t\t\t\tprojectName: options.repository,\n\t\t\t\t\tprojectOwner: options.owner,\n\t\t\t\t}),\n\t\t\t\t\".github\": {\n\t\t\t\t\tworkflows: {\n\t\t\t\t\t\t\"contributors.yml\": createSoloWorkflowFile({\n\t\t\t\t\t\t\tname: \"Contributors\",\n\t\t\t\t\t\t\ton: {\n\t\t\t\t\t\t\t\tpush: {\n\t\t\t\t\t\t\t\t\tbranches: [\"main\"],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t{ uses: \"actions/checkout@v4\", with: { \"fetch-depth\": 0 } },\n\t\t\t\t\t\t\t\t{ uses: \"./.github/actions/prepare\" },\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tenv: { GITHUB_TOKEN: \"${{ secrets.ACCESS_TOKEN }}\" },\n\t\t\t\t\t\t\t\t\tuses: `JoshuaKGoldberg/all-contributors-auto-action@v0.5.0`,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t}),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\n\t\t\t\t\t\t`
|
|
1
|
+
{"version":3,"sources":["../../../src/next/blocks/blockAllContributors.ts"],"sourcesContent":["import { createSoloWorkflowFile } from \"../../steps/writing/creation/dotGitHub/createSoloWorkflowFile.js\";\nimport { base } from \"../base.js\";\nimport { blockPrettier } from \"./blockPrettier.js\";\nimport { blockRepositorySecrets } from \"./blockRepositorySecrets.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\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\tblockRepositorySecrets({\n\t\t\t\t\tsecrets: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdescription: \"a GitHub PAT with repo and workflow permissions\",\n\t\t\t\t\t\t\tname: \"ACCESS_TOKEN\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\".all-contributorsrc\": JSON.stringify({\n\t\t\t\t\tbadgeTemplate:\n\t\t\t\t\t\t'\t<a href=\"#contributors\" target=\"_blank\"><img alt=\"👪 All Contributors: <%= contributors.length %>\" src=\"https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-<%= contributors.length %>-21bb42.svg\" /></a>',\n\t\t\t\t\tcontributors: options.contributors ?? [],\n\t\t\t\t\tcontributorsSortAlphabetically: true,\n\t\t\t\t\tprojectName: options.repository,\n\t\t\t\t\tprojectOwner: options.owner,\n\t\t\t\t}),\n\t\t\t\t\".github\": {\n\t\t\t\t\tworkflows: {\n\t\t\t\t\t\t\"contributors.yml\": createSoloWorkflowFile({\n\t\t\t\t\t\t\tname: \"Contributors\",\n\t\t\t\t\t\t\ton: {\n\t\t\t\t\t\t\t\tpush: {\n\t\t\t\t\t\t\t\t\tbranches: [\"main\"],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t{ uses: \"actions/checkout@v4\", with: { \"fetch-depth\": 0 } },\n\t\t\t\t\t\t\t\t{ uses: \"./.github/actions/prepare\" },\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tenv: { GITHUB_TOKEN: \"${{ secrets.ACCESS_TOKEN }}\" },\n\t\t\t\t\t\t\t\t\tuses: `JoshuaKGoldberg/all-contributors-auto-action@v0.5.0`,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t}),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\n\t\t\t\t\t\t`pnpx all-contributors-cli generate`,\n\t\t\t\t\t\t`pnpx all-contributors-cli add ${options.owner} code,content,docs,ideas,infra,maintenance,projectManagement,tool`,\n\t\t\t\t\t],\n\t\t\t\t\tphase: CommandPhase.Process,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,8BAA8B;AACvC,SAAS,YAAY;AACrB,SAAS,qBAAqB;AAC9B,SAAS,8BAA8B;AACvC,SAAS,oBAAoB;AAEtB,MAAM,uBAAuB,KAAK,YAAY;AAAA,EACpD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ,EAAE,QAAQ,GAAG;AACpB,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,cAAc;AAAA,UACb,SAAS,CAAC,sBAAsB;AAAA,QACjC,CAAC;AAAA,QACD,uBAAuB;AAAA,UACtB,SAAS;AAAA,YACR;AAAA,cACC,aAAa;AAAA,cACb,MAAM;AAAA,YACP;AAAA,UACD;AAAA,QACD,CAAC;AAAA,MACF;AAAA,MACA,OAAO;AAAA,QACN,uBAAuB,KAAK,UAAU;AAAA,UACrC,eACC;AAAA,UACD,cAAc,QAAQ,gBAAgB,CAAC;AAAA,UACvC,gCAAgC;AAAA,UAChC,aAAa,QAAQ;AAAA,UACrB,cAAc,QAAQ;AAAA,QACvB,CAAC;AAAA,QACD,WAAW;AAAA,UACV,WAAW;AAAA,YACV,oBAAoB,uBAAuB;AAAA,cAC1C,MAAM;AAAA,cACN,IAAI;AAAA,gBACH,MAAM;AAAA,kBACL,UAAU,CAAC,MAAM;AAAA,gBAClB;AAAA,cACD;AAAA,cACA,OAAO;AAAA,gBACN,EAAE,MAAM,uBAAuB,MAAM,EAAE,eAAe,EAAE,EAAE;AAAA,gBAC1D,EAAE,MAAM,4BAA4B;AAAA,gBACpC;AAAA,kBACC,KAAK,EAAE,cAAc,8BAA8B;AAAA,kBACnD,MAAM;AAAA,gBACP;AAAA,cACD;AAAA,YACD,CAAC;AAAA,UACF;AAAA,QACD;AAAA,MACD;AAAA,MACA,SAAS;AAAA,QACR;AAAA,UACC,UAAU;AAAA,YACT;AAAA,YACA,iCAAiC,QAAQ,KAAK;AAAA,UAC/C;AAAA,UACA,OAAO,aAAa;AAAA,QACrB;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockAreTheTypesWrong: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockAreTheTypesWrong: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockAreTheTypesWrong: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|
|
@@ -5,6 +5,7 @@ declare const blockCSpell: create.BlockWithAddons<{
|
|
|
5
5
|
words: string[];
|
|
6
6
|
}, {
|
|
7
7
|
description: string;
|
|
8
|
+
directory: string;
|
|
8
9
|
email: {
|
|
9
10
|
github: string;
|
|
10
11
|
npm: string;
|
|
@@ -15,7 +16,6 @@ declare const blockCSpell: create.BlockWithAddons<{
|
|
|
15
16
|
access?: "public" | "restricted" | undefined;
|
|
16
17
|
author?: string | undefined;
|
|
17
18
|
bin?: string | undefined;
|
|
18
|
-
login?: string | undefined;
|
|
19
19
|
contributors?: {
|
|
20
20
|
name: string;
|
|
21
21
|
avatar_url: string;
|
|
@@ -44,7 +44,6 @@ declare const blockCSpell: create.BlockWithAddons<{
|
|
|
44
44
|
devDependencies?: Record<string, string> | undefined;
|
|
45
45
|
scripts?: Record<string, string> | undefined;
|
|
46
46
|
} | undefined;
|
|
47
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
48
47
|
version?: string | undefined;
|
|
49
48
|
}>;
|
|
50
49
|
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import { getObjectStringsDeep } from "object-strings-deep";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import { base } from "../base.js";
|
|
4
|
+
import { resolveBin } from "../utils/resolveBin.js";
|
|
3
5
|
import { blockDevelopmentDocs } from "./blockDevelopmentDocs.js";
|
|
4
6
|
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.js";
|
|
5
7
|
import { blockPackageJson } from "./blockPackageJson.js";
|
|
6
8
|
import { blockVSCode } from "./blockVSCode.js";
|
|
7
9
|
import { getPackageDependencies } from "./packageData.js";
|
|
10
|
+
import { CommandPhase } from "./phases.js";
|
|
8
11
|
const filesGlob = `"**" ".github/**/*"`;
|
|
9
12
|
const blockCSpell = base.createBlock({
|
|
10
13
|
about: {
|
|
@@ -14,6 +17,19 @@ const blockCSpell = base.createBlock({
|
|
|
14
17
|
ignores: z.array(z.string()).default([]),
|
|
15
18
|
words: z.array(z.string()).default([])
|
|
16
19
|
},
|
|
20
|
+
initialize({ options }) {
|
|
21
|
+
const wordArgs = getObjectStringsDeep(options).map((word) => `--words "${word.replaceAll(`"`, " ")}"`).join(" ");
|
|
22
|
+
return {
|
|
23
|
+
scripts: [
|
|
24
|
+
{
|
|
25
|
+
commands: [
|
|
26
|
+
`node ${resolveBin("cspell-populate-words/bin/index.mjs")} ${wordArgs}`
|
|
27
|
+
],
|
|
28
|
+
phase: CommandPhase.Process
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
};
|
|
32
|
+
},
|
|
17
33
|
produce({ addons }) {
|
|
18
34
|
const { ignores, words } = addons;
|
|
19
35
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/next/blocks/blockCSpell.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockVSCode } from \"./blockVSCode.js\";\nimport { getPackageDependencies } from \"./packageData.js\";\n\nconst filesGlob = `\"**\" \".github/**/*\"`;\n\nexport const blockCSpell = base.createBlock({\n\tabout: {\n\t\tname: \"CSpell\",\n\t},\n\taddons: {\n\t\tignores: z.array(z.string()).default([]),\n\t\twords: z.array(z.string()).default([]),\n\t},\n\tproduce({ addons }) {\n\t\tconst { ignores, words } = addons;\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tLinting: {\n\t\t\t\t\t\t\tcontents: {\n\t\t\t\t\t\t\t\titems: [\n\t\t\t\t\t\t\t\t\t`- \\`pnpm lint:spelling\\` ([cspell](https://cspell.org)): Spell checks across all source files`,\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockVSCode({\n\t\t\t\t\textensions: [\"streetsidesoftware.code-spell-checker\"],\n\t\t\t\t}),\n\t\t\t\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Lint Spelling\",\n\t\t\t\t\t\t\tsteps: [{ run: \"pnpm lint:spelling\" }],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\"cspell\"),\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\t\"lint:spelling\": `cspell ${filesGlob}`,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\"cspell.json\": JSON.stringify({\n\t\t\t\t\tdictionaries: [\"npm\", \"node\", \"typescript\"],\n\t\t\t\t\tignorePaths: [\n\t\t\t\t\t\t\".github\",\n\t\t\t\t\t\t\"CHANGELOG.md\",\n\t\t\t\t\t\t\"lib\",\n\t\t\t\t\t\t\"node_modules\",\n\t\t\t\t\t\t\"pnpm-lock.yaml\",\n\t\t\t\t\t\t...ignores,\n\t\t\t\t\t].sort(),\n\t\t\t\t\t...(words.length && { words: words.sort() }),\n\t\t\t\t}),\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,SAAS;AAElB,SAAS,YAAY;AACrB,SAAS,4BAA4B;AACrC,SAAS,4BAA4B;AACrC,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,8BAA8B;
|
|
1
|
+
{"version":3,"sources":["../../../src/next/blocks/blockCSpell.ts"],"sourcesContent":["import { getObjectStringsDeep } from \"object-strings-deep\";\nimport { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { resolveBin } from \"../utils/resolveBin.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockVSCode } from \"./blockVSCode.js\";\nimport { getPackageDependencies } from \"./packageData.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nconst filesGlob = `\"**\" \".github/**/*\"`;\n\nexport const blockCSpell = base.createBlock({\n\tabout: {\n\t\tname: \"CSpell\",\n\t},\n\taddons: {\n\t\tignores: z.array(z.string()).default([]),\n\t\twords: z.array(z.string()).default([]),\n\t},\n\tinitialize({ options }) {\n\t\tconst wordArgs = getObjectStringsDeep(options)\n\t\t\t.map((word) => `--words \"${word.replaceAll(`\"`, \" \")}\"`)\n\t\t\t.join(\" \");\n\n\t\treturn {\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\n\t\t\t\t\t\t`node ${resolveBin(\"cspell-populate-words/bin/index.mjs\")} ${wordArgs}`,\n\t\t\t\t\t],\n\t\t\t\t\tphase: CommandPhase.Process,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n\tproduce({ addons }) {\n\t\tconst { ignores, words } = addons;\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tLinting: {\n\t\t\t\t\t\t\tcontents: {\n\t\t\t\t\t\t\t\titems: [\n\t\t\t\t\t\t\t\t\t`- \\`pnpm lint:spelling\\` ([cspell](https://cspell.org)): Spell checks across all source files`,\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockVSCode({\n\t\t\t\t\textensions: [\"streetsidesoftware.code-spell-checker\"],\n\t\t\t\t}),\n\t\t\t\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Lint Spelling\",\n\t\t\t\t\t\t\tsteps: [{ run: \"pnpm lint:spelling\" }],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\"cspell\"),\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\t\"lint:spelling\": `cspell ${filesGlob}`,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\"cspell.json\": JSON.stringify({\n\t\t\t\t\tdictionaries: [\"npm\", \"node\", \"typescript\"],\n\t\t\t\t\tignorePaths: [\n\t\t\t\t\t\t\".github\",\n\t\t\t\t\t\t\"CHANGELOG.md\",\n\t\t\t\t\t\t\"lib\",\n\t\t\t\t\t\t\"node_modules\",\n\t\t\t\t\t\t\"pnpm-lock.yaml\",\n\t\t\t\t\t\t...ignores,\n\t\t\t\t\t].sort(),\n\t\t\t\t\t...(words.length && { words: words.sort() }),\n\t\t\t\t}),\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,4BAA4B;AACrC,SAAS,SAAS;AAElB,SAAS,YAAY;AACrB,SAAS,kBAAkB;AAC3B,SAAS,4BAA4B;AACrC,SAAS,4BAA4B;AACrC,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,8BAA8B;AACvC,SAAS,oBAAoB;AAE7B,MAAM,YAAY;AAEX,MAAM,cAAc,KAAK,YAAY;AAAA,EAC3C,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC;AAAA,IACvC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC;AAAA,EACtC;AAAA,EACA,WAAW,EAAE,QAAQ,GAAG;AACvB,UAAM,WAAW,qBAAqB,OAAO,EAC3C,IAAI,CAAC,SAAS,YAAY,KAAK,WAAW,KAAK,GAAG,CAAC,GAAG,EACtD,KAAK,GAAG;AAEV,WAAO;AAAA,MACN,SAAS;AAAA,QACR;AAAA,UACC,UAAU;AAAA,YACT,QAAQ,WAAW,qCAAqC,CAAC,IAAI,QAAQ;AAAA,UACtE;AAAA,UACA,OAAO,aAAa;AAAA,QACrB;AAAA,MACD;AAAA,IACD;AAAA,EACD;AAAA,EACA,QAAQ,EAAE,OAAO,GAAG;AACnB,UAAM,EAAE,SAAS,MAAM,IAAI;AAE3B,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,qBAAqB;AAAA,UACpB,UAAU;AAAA,YACT,SAAS;AAAA,cACR,UAAU;AAAA,gBACT,OAAO;AAAA,kBACN;AAAA,gBACD;AAAA,cACD;AAAA,YACD;AAAA,UACD;AAAA,QACD,CAAC;AAAA,QACD,YAAY;AAAA,UACX,YAAY,CAAC,uCAAuC;AAAA,QACrD,CAAC;AAAA,QACD,qBAAqB;AAAA,UACpB,MAAM;AAAA,YACL;AAAA,cACC,MAAM;AAAA,cACN,OAAO,CAAC,EAAE,KAAK,qBAAqB,CAAC;AAAA,YACtC;AAAA,UACD;AAAA,QACD,CAAC;AAAA,QACD,iBAAiB;AAAA,UAChB,YAAY;AAAA,YACX,iBAAiB,uBAAuB,QAAQ;AAAA,YAChD,SAAS;AAAA,cACR,iBAAiB,UAAU,SAAS;AAAA,YACrC;AAAA,UACD;AAAA,QACD,CAAC;AAAA,MACF;AAAA,MACA,OAAO;AAAA,QACN,eAAe,KAAK,UAAU;AAAA,UAC7B,cAAc,CAAC,OAAO,QAAQ,YAAY;AAAA,UAC1C,aAAa;AAAA,YACZ;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA,GAAG;AAAA,UACJ,EAAE,KAAK;AAAA,UACP,GAAI,MAAM,UAAU,EAAE,OAAO,MAAM,KAAK,EAAE;AAAA,QAC3C,CAAC;AAAA,MACF;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockContributingDocs: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockContributingDocs: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockContributingDocs: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockContributorCovenant: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockContributorCovenant: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockContributorCovenant: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|
|
@@ -16,6 +16,7 @@ declare const blockDevelopmentDocs: create.BlockWithAddons<{
|
|
|
16
16
|
}>;
|
|
17
17
|
}, {
|
|
18
18
|
description: string;
|
|
19
|
+
directory: string;
|
|
19
20
|
email: {
|
|
20
21
|
github: string;
|
|
21
22
|
npm: string;
|
|
@@ -26,7 +27,6 @@ declare const blockDevelopmentDocs: create.BlockWithAddons<{
|
|
|
26
27
|
access?: "public" | "restricted" | undefined;
|
|
27
28
|
author?: string | undefined;
|
|
28
29
|
bin?: string | undefined;
|
|
29
|
-
login?: string | undefined;
|
|
30
30
|
contributors?: {
|
|
31
31
|
name: string;
|
|
32
32
|
avatar_url: string;
|
|
@@ -55,7 +55,6 @@ declare const blockDevelopmentDocs: create.BlockWithAddons<{
|
|
|
55
55
|
devDependencies?: Record<string, string> | undefined;
|
|
56
56
|
scripts?: Record<string, string> | undefined;
|
|
57
57
|
} | undefined;
|
|
58
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
59
58
|
version?: string | undefined;
|
|
60
59
|
}>;
|
|
61
60
|
|
|
@@ -27,6 +27,7 @@ declare const blockESLint: create.BlockWithAddons<{
|
|
|
27
27
|
beforeLint?: string | undefined;
|
|
28
28
|
}, {
|
|
29
29
|
description: string;
|
|
30
|
+
directory: string;
|
|
30
31
|
email: {
|
|
31
32
|
github: string;
|
|
32
33
|
npm: string;
|
|
@@ -37,7 +38,6 @@ declare const blockESLint: create.BlockWithAddons<{
|
|
|
37
38
|
access?: "public" | "restricted" | undefined;
|
|
38
39
|
author?: string | undefined;
|
|
39
40
|
bin?: string | undefined;
|
|
40
|
-
login?: string | undefined;
|
|
41
41
|
contributors?: {
|
|
42
42
|
name: string;
|
|
43
43
|
avatar_url: string;
|
|
@@ -66,7 +66,6 @@ declare const blockESLint: create.BlockWithAddons<{
|
|
|
66
66
|
devDependencies?: Record<string, string> | undefined;
|
|
67
67
|
scripts?: Record<string, string> | undefined;
|
|
68
68
|
} | undefined;
|
|
69
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
70
69
|
version?: string | undefined;
|
|
71
70
|
}>;
|
|
72
71
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockESLintComments: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockESLintComments: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockESLintComments: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockESLintJSDoc: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockESLintJSDoc: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockESLintJSDoc: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockESLintJSONC: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockESLintJSONC: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockESLintJSONC: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockESLintMarkdown: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockESLintMarkdown: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockESLintMarkdown: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockESLintMoreStyling: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockESLintMoreStyling: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockESLintMoreStyling: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockESLintNode: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockESLintNode: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockESLintNode: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockESLintPackageJson: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockESLintPackageJson: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockESLintPackageJson: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockESLintPerfectionist: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockESLintPerfectionist: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockESLintPerfectionist: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockESLintRegexp: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockESLintRegexp: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockESLintRegexp: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockESLintYML: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockESLintYML: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockESLintYML: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|
|
@@ -4,6 +4,7 @@ declare const blockExampleFiles: create.BlockWithAddons<{
|
|
|
4
4
|
files: Record<string, string>;
|
|
5
5
|
}, {
|
|
6
6
|
description: string;
|
|
7
|
+
directory: string;
|
|
7
8
|
email: {
|
|
8
9
|
github: string;
|
|
9
10
|
npm: string;
|
|
@@ -14,7 +15,6 @@ declare const blockExampleFiles: create.BlockWithAddons<{
|
|
|
14
15
|
access?: "public" | "restricted" | undefined;
|
|
15
16
|
author?: string | undefined;
|
|
16
17
|
bin?: string | undefined;
|
|
17
|
-
login?: string | undefined;
|
|
18
18
|
contributors?: {
|
|
19
19
|
name: string;
|
|
20
20
|
avatar_url: string;
|
|
@@ -43,7 +43,6 @@ declare const blockExampleFiles: create.BlockWithAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
47
46
|
version?: string | undefined;
|
|
48
47
|
}>;
|
|
49
48
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockFunding: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockFunding: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockFunding: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|
|
@@ -14,6 +14,7 @@ declare const blockGitHubActionsCI: create.BlockWithAddons<{
|
|
|
14
14
|
}[] | undefined;
|
|
15
15
|
}, {
|
|
16
16
|
description: string;
|
|
17
|
+
directory: string;
|
|
17
18
|
email: {
|
|
18
19
|
github: string;
|
|
19
20
|
npm: string;
|
|
@@ -24,7 +25,6 @@ declare const blockGitHubActionsCI: create.BlockWithAddons<{
|
|
|
24
25
|
access?: "public" | "restricted" | undefined;
|
|
25
26
|
author?: string | undefined;
|
|
26
27
|
bin?: string | undefined;
|
|
27
|
-
login?: string | undefined;
|
|
28
28
|
contributors?: {
|
|
29
29
|
name: string;
|
|
30
30
|
avatar_url: string;
|
|
@@ -53,7 +53,6 @@ declare const blockGitHubActionsCI: create.BlockWithAddons<{
|
|
|
53
53
|
devDependencies?: Record<string, string> | undefined;
|
|
54
54
|
scripts?: Record<string, string> | undefined;
|
|
55
55
|
} | undefined;
|
|
56
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
57
56
|
version?: string | undefined;
|
|
58
57
|
}>;
|
|
59
58
|
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as create from 'create';
|
|
2
|
+
|
|
3
|
+
declare const blockGitHubApps: create.BlockWithAddons<{
|
|
4
|
+
apps: {
|
|
5
|
+
name: string;
|
|
6
|
+
url: string;
|
|
7
|
+
}[];
|
|
8
|
+
}, {
|
|
9
|
+
description: string;
|
|
10
|
+
directory: string;
|
|
11
|
+
email: {
|
|
12
|
+
github: string;
|
|
13
|
+
npm: string;
|
|
14
|
+
};
|
|
15
|
+
title: string;
|
|
16
|
+
owner: string;
|
|
17
|
+
repository: string;
|
|
18
|
+
access?: "public" | "restricted" | undefined;
|
|
19
|
+
author?: string | undefined;
|
|
20
|
+
bin?: string | undefined;
|
|
21
|
+
contributors?: {
|
|
22
|
+
name: string;
|
|
23
|
+
avatar_url: string;
|
|
24
|
+
contributions: string[];
|
|
25
|
+
login: string;
|
|
26
|
+
profile: string;
|
|
27
|
+
}[] | undefined;
|
|
28
|
+
documentation?: string | undefined;
|
|
29
|
+
funding?: string | undefined;
|
|
30
|
+
guide?: {
|
|
31
|
+
href: string;
|
|
32
|
+
title: string;
|
|
33
|
+
} | undefined;
|
|
34
|
+
hideTemplatedBy?: boolean | undefined;
|
|
35
|
+
keywords?: string[] | undefined;
|
|
36
|
+
logo?: {
|
|
37
|
+
alt: string;
|
|
38
|
+
src: string;
|
|
39
|
+
} | undefined;
|
|
40
|
+
node?: {
|
|
41
|
+
minimum: string;
|
|
42
|
+
pinned?: string | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
packageData?: {
|
|
45
|
+
dependencies?: Record<string, string> | undefined;
|
|
46
|
+
devDependencies?: Record<string, string> | undefined;
|
|
47
|
+
scripts?: Record<string, string> | undefined;
|
|
48
|
+
} | undefined;
|
|
49
|
+
version?: string | undefined;
|
|
50
|
+
}>;
|
|
51
|
+
|
|
52
|
+
export { blockGitHubApps };
|