create-typescript-app 2.0.0-beta.9 → 2.2.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 +14 -15
- package/bin/index.js +3 -13
- package/lib/base.d.ts +5 -3
- package/lib/base.js +29 -15
- package/lib/base.js.map +1 -1
- package/lib/blocks/blockAllContributors.d.ts +6 -4
- package/lib/blocks/blockAllContributors.js +3 -2
- package/lib/blocks/blockAllContributors.js.map +1 -1
- package/lib/blocks/blockAreTheTypesWrong.d.ts +6 -4
- package/lib/blocks/blockCSpell.d.ts +6 -4
- package/lib/blocks/blockCSpell.js +13 -13
- package/lib/blocks/blockCSpell.js.map +1 -1
- package/lib/blocks/blockCodecov.d.ts +6 -4
- package/lib/blocks/blockCodecov.js +11 -11
- package/lib/blocks/blockCodecov.js.map +1 -1
- package/lib/blocks/blockContributingDocs.d.ts +6 -4
- package/lib/blocks/blockContributingDocs.js +11 -11
- package/lib/blocks/blockContributingDocs.js.map +1 -1
- package/lib/blocks/blockContributorCovenant.d.ts +6 -4
- package/lib/blocks/blockContributorCovenant.js +11 -11
- package/lib/blocks/blockContributorCovenant.js.map +1 -1
- package/lib/blocks/blockDevelopmentDocs.d.ts +6 -4
- package/lib/blocks/blockDevelopmentDocs.js +11 -11
- package/lib/blocks/blockDevelopmentDocs.js.map +1 -1
- package/lib/blocks/blockESLint.d.ts +6 -4
- package/lib/blocks/blockESLint.js +13 -12
- package/lib/blocks/blockESLint.js.map +1 -1
- package/lib/blocks/blockESLintComments.d.ts +6 -4
- package/lib/blocks/blockESLintJSDoc.d.ts +6 -4
- package/lib/blocks/blockESLintJSONC.d.ts +6 -4
- package/lib/blocks/blockESLintMarkdown.d.ts +6 -4
- package/lib/blocks/blockESLintMoreStyling.d.ts +6 -4
- package/lib/blocks/blockESLintNode.d.ts +6 -4
- package/lib/blocks/blockESLintPackageJson.d.ts +6 -4
- package/lib/blocks/blockESLintPerfectionist.d.ts +6 -4
- package/lib/blocks/blockESLintRegexp.d.ts +6 -4
- package/lib/blocks/blockESLintYML.d.ts +6 -4
- package/lib/blocks/blockExampleFiles.d.ts +6 -4
- package/lib/blocks/blockExampleFiles.js +3 -2
- package/lib/blocks/blockExampleFiles.js.map +1 -1
- package/lib/blocks/blockFunding.d.ts +6 -4
- package/lib/blocks/blockGitHubActionsCI.d.ts +6 -4
- package/lib/blocks/blockGitHubActionsCI.js +12 -13
- package/lib/blocks/blockGitHubActionsCI.js.map +1 -1
- package/lib/blocks/blockGitHubApps.d.ts +6 -4
- package/lib/blocks/blockGitHubIssueTemplates.d.ts +6 -4
- package/lib/blocks/blockGitHubPRTemplate.d.ts +6 -4
- package/lib/blocks/blockGitignore.d.ts +6 -4
- package/lib/blocks/blockKnip.d.ts +6 -4
- package/lib/blocks/blockKnip.js +11 -11
- package/lib/blocks/blockKnip.js.map +1 -1
- package/lib/blocks/blockMITLicense.d.ts +6 -4
- package/lib/blocks/blockMarkdownlint.d.ts +6 -4
- package/lib/blocks/blockNvmrc.d.ts +6 -4
- package/lib/blocks/blockPRCompliance.d.ts +6 -4
- package/lib/blocks/blockPackageJson.d.ts +6 -4
- package/lib/blocks/blockPackageJson.js +14 -11
- package/lib/blocks/blockPackageJson.js.map +1 -1
- package/lib/blocks/blockPnpmDedupe.d.ts +6 -4
- package/lib/blocks/blockPrettier.d.ts +6 -4
- package/lib/blocks/blockPrettier.js +11 -10
- package/lib/blocks/blockPrettier.js.map +1 -1
- package/lib/blocks/blockPrettierPluginCurly.d.ts +6 -4
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts +6 -4
- package/lib/blocks/blockPrettierPluginSh.d.ts +6 -4
- package/lib/blocks/blockREADME.d.ts +6 -4
- package/lib/blocks/blockReleaseIt.d.ts +6 -4
- package/lib/blocks/blockReleaseIt.js +0 -1
- package/lib/blocks/blockReleaseIt.js.map +1 -1
- package/lib/blocks/blockRenovate.d.ts +6 -4
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts +6 -4
- package/lib/blocks/blockRepositoryBranchRuleset.js +78 -54
- package/lib/blocks/blockRepositoryBranchRuleset.js.map +1 -1
- package/lib/blocks/blockRepositoryLabels.d.ts +6 -4
- package/lib/blocks/blockRepositorySecrets.d.ts +7 -5
- package/lib/blocks/blockRepositorySettings.d.ts +6 -4
- package/lib/blocks/blockSecurityDocs.d.ts +6 -4
- package/lib/blocks/blockTSup.d.ts +6 -4
- package/lib/blocks/blockTSup.js +18 -18
- package/lib/blocks/blockTSup.js.map +1 -1
- package/lib/blocks/blockTemplatedWith.d.ts +6 -4
- package/lib/blocks/blockTemplatedWith.js +2 -2
- package/lib/blocks/blockTemplatedWith.js.map +1 -1
- package/lib/blocks/blockTypeScript.d.ts +6 -4
- package/lib/blocks/blockVSCode.d.ts +6 -4
- package/lib/blocks/blockVitest.d.ts +6 -4
- package/lib/blocks/blockVitest.js +22 -19
- package/lib/blocks/blockVitest.js.map +1 -1
- package/lib/blocks/index.d.ts +216 -130
- package/lib/data/contributions.d.ts +3 -0
- package/lib/data/contributions.js +14 -0
- package/lib/data/contributions.js.map +1 -0
- package/lib/data/packageData.d.ts +41 -37
- package/lib/index.d.ts +157 -3
- package/lib/index.js +4 -2
- package/lib/index.js.map +1 -1
- package/lib/inputs/inputFromOctokit.d.ts +9 -0
- package/lib/inputs/inputFromOctokit.js +28 -0
- package/lib/inputs/inputFromOctokit.js.map +1 -0
- package/lib/options/readAllContributors.d.ts +6 -0
- package/lib/options/readAllContributors.js +27 -0
- package/lib/options/readAllContributors.js.map +1 -0
- package/lib/options/readDocumentation.d.ts +1 -1
- package/lib/options/readDocumentation.js.map +1 -1
- package/lib/options/readPnpm.d.ts +5 -0
- package/lib/options/readPnpm.js +8 -0
- package/lib/options/readPnpm.js.map +1 -0
- package/lib/presets/common.d.ts +6 -4
- package/lib/presets/everything.d.ts +6 -4
- package/lib/presets/index.d.ts +16 -10
- package/lib/presets/minimal.d.ts +6 -4
- package/lib/template.d.ts +7 -5
- package/lib/template.js +6 -4
- package/lib/template.js.map +1 -1
- package/lib/types.d.ts +1 -0
- package/package.json +38 -36
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockKnip:
|
|
3
|
+
declare const blockKnip: bingo_stratum.BlockWithAddons<{
|
|
4
4
|
ignoreDependencies?: string[] | undefined;
|
|
5
5
|
}, {
|
|
6
|
-
description: string;
|
|
7
6
|
access: "public" | "restricted";
|
|
7
|
+
description: string;
|
|
8
8
|
directory: string;
|
|
9
9
|
email: {
|
|
10
10
|
github: string;
|
|
@@ -16,10 +16,10 @@ declare const blockKnip: create.BlockWithAddons<{
|
|
|
16
16
|
author?: string | undefined;
|
|
17
17
|
bin?: string | undefined;
|
|
18
18
|
contributors?: {
|
|
19
|
-
name: string;
|
|
20
19
|
avatar_url: string;
|
|
21
20
|
contributions: string[];
|
|
22
21
|
login: string;
|
|
22
|
+
name: string;
|
|
23
23
|
profile: string;
|
|
24
24
|
}[] | undefined;
|
|
25
25
|
documentation?: string | undefined;
|
|
@@ -45,6 +45,8 @@ declare const blockKnip: create.BlockWithAddons<{
|
|
|
45
45
|
devDependencies?: Record<string, string> | undefined;
|
|
46
46
|
scripts?: Record<string, string> | undefined;
|
|
47
47
|
} | undefined;
|
|
48
|
+
pnpm?: string | undefined;
|
|
49
|
+
rulesetId?: string | undefined;
|
|
48
50
|
usage?: string | undefined;
|
|
49
51
|
version?: string | undefined;
|
|
50
52
|
}>;
|
package/lib/blocks/blockKnip.js
CHANGED
|
@@ -15,17 +15,6 @@ const blockKnip = base.createBlock({
|
|
|
15
15
|
addons: {
|
|
16
16
|
ignoreDependencies: z.array(z.string()).optional()
|
|
17
17
|
},
|
|
18
|
-
migrate() {
|
|
19
|
-
return {
|
|
20
|
-
scripts: [
|
|
21
|
-
{
|
|
22
|
-
commands: ["rm .knip* knip.*"],
|
|
23
|
-
phase: CommandPhase.Migrations,
|
|
24
|
-
silent: true
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
};
|
|
28
|
-
},
|
|
29
18
|
produce({ addons }) {
|
|
30
19
|
const { ignoreDependencies } = addons;
|
|
31
20
|
return {
|
|
@@ -71,6 +60,17 @@ const blockKnip = base.createBlock({
|
|
|
71
60
|
})
|
|
72
61
|
}
|
|
73
62
|
};
|
|
63
|
+
},
|
|
64
|
+
transition() {
|
|
65
|
+
return {
|
|
66
|
+
scripts: [
|
|
67
|
+
{
|
|
68
|
+
commands: ["rm .knip* knip.*"],
|
|
69
|
+
phase: CommandPhase.Migrations,
|
|
70
|
+
silent: true
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
};
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
76
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/blocks/blockKnip.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport {\n\tgetPackageDependencies,\n\tgetPackageDependency,\n} from \"../data/packageData.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockKnip = base.createBlock({\n\tabout: {\n\t\tname: \"Knip\",\n\t},\n\taddons: {\n\t\tignoreDependencies: z.array(z.string()).optional(),\n\t},\n\
|
|
1
|
+
{"version":3,"sources":["../../src/blocks/blockKnip.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport {\n\tgetPackageDependencies,\n\tgetPackageDependency,\n} from \"../data/packageData.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockKnip = base.createBlock({\n\tabout: {\n\t\tname: \"Knip\",\n\t},\n\taddons: {\n\t\tignoreDependencies: z.array(z.string()).optional(),\n\t},\n\tproduce({ addons }) {\n\t\tconst { ignoreDependencies } = addons;\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:knip\\` ([knip](https://github.com/webpro/knip)): Detects unused files, dependencies, and code exports`,\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\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Lint Knip\",\n\t\t\t\t\t\t\tsteps: [{ run: \"pnpm lint:knip\" }],\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(\"knip\"),\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\t\"lint:knip\": \"knip\",\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\"knip.json\": JSON.stringify({\n\t\t\t\t\t$schema: `https://unpkg.com/knip@${getPackageDependency(\"knip\")}/schema.json`,\n\t\t\t\t\tentry: [\"src/index.ts\", \"src/**/*.test.*\"],\n\t\t\t\t\tignoreDependencies,\n\t\t\t\t\tignoreExportsUsedInFile: {\n\t\t\t\t\t\tinterface: true,\n\t\t\t\t\t\ttype: true,\n\t\t\t\t\t},\n\t\t\t\t\tproject: [\"src/**/*.ts\"],\n\t\t\t\t}),\n\t\t\t},\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\tscripts: [\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B,WAAW;AAAA,YACX,MAAM;AAAA,UACP;AAAA,UACA,SAAS,CAAC,aAAa;AAAA,QACxB,CAAC;AAAA,MACF;AAAA,IACD;AAAA,EACD;AAAA,EACA,aAAa;AACZ,WAAO;AAAA,MACN,SAAS;AAAA,QACR;AAAA,UACC,UAAU,CAAC,kBAAkB;AAAA,UAC7B,OAAO,aAAa;AAAA,UACpB,QAAQ;AAAA,QACT;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockMITLicense:
|
|
4
|
-
description: string;
|
|
3
|
+
declare const blockMITLicense: bingo_stratum.BlockWithoutAddons<{
|
|
5
4
|
access: "public" | "restricted";
|
|
5
|
+
description: string;
|
|
6
6
|
directory: string;
|
|
7
7
|
email: {
|
|
8
8
|
github: string;
|
|
@@ -14,10 +14,10 @@ declare const blockMITLicense: create.BlockWithoutAddons<{
|
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
|
-
name: string;
|
|
18
17
|
avatar_url: string;
|
|
19
18
|
contributions: string[];
|
|
20
19
|
login: string;
|
|
20
|
+
name: string;
|
|
21
21
|
profile: string;
|
|
22
22
|
}[] | undefined;
|
|
23
23
|
documentation?: string | undefined;
|
|
@@ -43,6 +43,8 @@ declare const blockMITLicense: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
pnpm?: string | undefined;
|
|
47
|
+
rulesetId?: string | undefined;
|
|
46
48
|
usage?: string | undefined;
|
|
47
49
|
version?: string | undefined;
|
|
48
50
|
}>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockMarkdownlint:
|
|
3
|
+
declare const blockMarkdownlint: bingo_stratum.BlockWithAddons<{
|
|
4
4
|
ignores: string[];
|
|
5
5
|
}, {
|
|
6
|
-
description: string;
|
|
7
6
|
access: "public" | "restricted";
|
|
7
|
+
description: string;
|
|
8
8
|
directory: string;
|
|
9
9
|
email: {
|
|
10
10
|
github: string;
|
|
@@ -16,10 +16,10 @@ declare const blockMarkdownlint: create.BlockWithAddons<{
|
|
|
16
16
|
author?: string | undefined;
|
|
17
17
|
bin?: string | undefined;
|
|
18
18
|
contributors?: {
|
|
19
|
-
name: string;
|
|
20
19
|
avatar_url: string;
|
|
21
20
|
contributions: string[];
|
|
22
21
|
login: string;
|
|
22
|
+
name: string;
|
|
23
23
|
profile: string;
|
|
24
24
|
}[] | undefined;
|
|
25
25
|
documentation?: string | undefined;
|
|
@@ -45,6 +45,8 @@ declare const blockMarkdownlint: create.BlockWithAddons<{
|
|
|
45
45
|
devDependencies?: Record<string, string> | undefined;
|
|
46
46
|
scripts?: Record<string, string> | undefined;
|
|
47
47
|
} | undefined;
|
|
48
|
+
pnpm?: string | undefined;
|
|
49
|
+
rulesetId?: string | undefined;
|
|
48
50
|
usage?: string | undefined;
|
|
49
51
|
version?: string | undefined;
|
|
50
52
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockNvmrc:
|
|
4
|
-
description: string;
|
|
3
|
+
declare const blockNvmrc: bingo_stratum.BlockWithoutAddons<{
|
|
5
4
|
access: "public" | "restricted";
|
|
5
|
+
description: string;
|
|
6
6
|
directory: string;
|
|
7
7
|
email: {
|
|
8
8
|
github: string;
|
|
@@ -14,10 +14,10 @@ declare const blockNvmrc: create.BlockWithoutAddons<{
|
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
|
-
name: string;
|
|
18
17
|
avatar_url: string;
|
|
19
18
|
contributions: string[];
|
|
20
19
|
login: string;
|
|
20
|
+
name: string;
|
|
21
21
|
profile: string;
|
|
22
22
|
}[] | undefined;
|
|
23
23
|
documentation?: string | undefined;
|
|
@@ -43,6 +43,8 @@ declare const blockNvmrc: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
pnpm?: string | undefined;
|
|
47
|
+
rulesetId?: string | undefined;
|
|
46
48
|
usage?: string | undefined;
|
|
47
49
|
version?: string | undefined;
|
|
48
50
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockPRCompliance:
|
|
4
|
-
description: string;
|
|
3
|
+
declare const blockPRCompliance: bingo_stratum.BlockWithoutAddons<{
|
|
5
4
|
access: "public" | "restricted";
|
|
5
|
+
description: string;
|
|
6
6
|
directory: string;
|
|
7
7
|
email: {
|
|
8
8
|
github: string;
|
|
@@ -14,10 +14,10 @@ declare const blockPRCompliance: create.BlockWithoutAddons<{
|
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
|
-
name: string;
|
|
18
17
|
avatar_url: string;
|
|
19
18
|
contributions: string[];
|
|
20
19
|
login: string;
|
|
20
|
+
name: string;
|
|
21
21
|
profile: string;
|
|
22
22
|
}[] | undefined;
|
|
23
23
|
documentation?: string | undefined;
|
|
@@ -43,6 +43,8 @@ declare const blockPRCompliance: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
pnpm?: string | undefined;
|
|
47
|
+
rulesetId?: string | undefined;
|
|
46
48
|
usage?: string | undefined;
|
|
47
49
|
version?: string | undefined;
|
|
48
50
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockPackageJson:
|
|
3
|
+
declare const blockPackageJson: bingo_stratum.BlockWithAddons<{
|
|
4
4
|
properties: {
|
|
5
5
|
dependencies?: Record<string, string> | undefined;
|
|
6
6
|
devDependencies?: Record<string, string> | undefined;
|
|
@@ -10,8 +10,8 @@ declare const blockPackageJson: create.BlockWithAddons<{
|
|
|
10
10
|
} & Record<string, unknown>;
|
|
11
11
|
cleanupCommands: string[];
|
|
12
12
|
}, {
|
|
13
|
-
description: string;
|
|
14
13
|
access: "public" | "restricted";
|
|
14
|
+
description: string;
|
|
15
15
|
directory: string;
|
|
16
16
|
email: {
|
|
17
17
|
github: string;
|
|
@@ -23,10 +23,10 @@ declare const blockPackageJson: create.BlockWithAddons<{
|
|
|
23
23
|
author?: string | undefined;
|
|
24
24
|
bin?: string | undefined;
|
|
25
25
|
contributors?: {
|
|
26
|
-
name: string;
|
|
27
26
|
avatar_url: string;
|
|
28
27
|
contributions: string[];
|
|
29
28
|
login: string;
|
|
29
|
+
name: string;
|
|
30
30
|
profile: string;
|
|
31
31
|
}[] | undefined;
|
|
32
32
|
documentation?: string | undefined;
|
|
@@ -52,6 +52,8 @@ declare const blockPackageJson: create.BlockWithAddons<{
|
|
|
52
52
|
devDependencies?: Record<string, string> | undefined;
|
|
53
53
|
scripts?: Record<string, string> | undefined;
|
|
54
54
|
} | undefined;
|
|
55
|
+
pnpm?: string | undefined;
|
|
56
|
+
rulesetId?: string | undefined;
|
|
55
57
|
usage?: string | undefined;
|
|
56
58
|
version?: string | undefined;
|
|
57
59
|
}>;
|
|
@@ -22,17 +22,6 @@ const blockPackageJson = base.createBlock({
|
|
|
22
22
|
z.record(z.string(), z.unknown())
|
|
23
23
|
).default({})
|
|
24
24
|
},
|
|
25
|
-
migrate() {
|
|
26
|
-
return {
|
|
27
|
-
scripts: [
|
|
28
|
-
{
|
|
29
|
-
commands: ["rm package-lock.json yarn.lock"],
|
|
30
|
-
phase: CommandPhase.Migrations,
|
|
31
|
-
silent: true
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
};
|
|
35
|
-
},
|
|
36
25
|
produce({ addons, offline, options }) {
|
|
37
26
|
const dependencies = {
|
|
38
27
|
...options.packageData?.dependencies,
|
|
@@ -61,6 +50,9 @@ const blockPackageJson = base.createBlock({
|
|
|
61
50
|
node: `>=${options.node.minimum}`
|
|
62
51
|
}
|
|
63
52
|
},
|
|
53
|
+
...options.pnpm && {
|
|
54
|
+
packageManager: `pnpm@${options.pnpm}`
|
|
55
|
+
},
|
|
64
56
|
files: [
|
|
65
57
|
options.bin?.replace(/^\.\//, ""),
|
|
66
58
|
...addons.properties.files ?? [],
|
|
@@ -97,6 +89,17 @@ const blockPackageJson = base.createBlock({
|
|
|
97
89
|
}
|
|
98
90
|
]
|
|
99
91
|
};
|
|
92
|
+
},
|
|
93
|
+
transition() {
|
|
94
|
+
return {
|
|
95
|
+
scripts: [
|
|
96
|
+
{
|
|
97
|
+
commands: ["rm package-lock.json yarn.lock"],
|
|
98
|
+
phase: CommandPhase.Migrations,
|
|
99
|
+
silent: true
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
};
|
|
100
103
|
}
|
|
101
104
|
});
|
|
102
105
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/blocks/blockPackageJson.ts"],"sourcesContent":["import * as htmlToText from \"html-to-text\";\nimport removeUndefinedObjects from \"remove-undefined-objects\";\nimport sortPackageJson from \"sort-package-json\";\nimport { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockPackageJson = base.createBlock({\n\tabout: {\n\t\tname: \"Package JSON\",\n\t},\n\taddons: {\n\t\tcleanupCommands: z.array(z.string()).default([]),\n\t\t// TODO: Find a zod package for this?\n\t\tproperties: z\n\t\t\t.intersection(\n\t\t\t\tz.object({\n\t\t\t\t\tdependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\t\tdevDependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\t\tfiles: z.array(z.string()).optional(),\n\t\t\t\t\tpeerDependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\t\tscripts: z.record(z.string(), z.string()).optional(),\n\t\t\t\t}),\n\t\t\t\tz.record(z.string(), z.unknown()),\n\t\t\t)\n\t\t\t.default({}),\n\t},\n\
|
|
1
|
+
{"version":3,"sources":["../../src/blocks/blockPackageJson.ts"],"sourcesContent":["import * as htmlToText from \"html-to-text\";\nimport removeUndefinedObjects from \"remove-undefined-objects\";\nimport sortPackageJson from \"sort-package-json\";\nimport { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockPackageJson = base.createBlock({\n\tabout: {\n\t\tname: \"Package JSON\",\n\t},\n\taddons: {\n\t\tcleanupCommands: z.array(z.string()).default([]),\n\t\t// TODO: Find a zod package for this?\n\t\tproperties: z\n\t\t\t.intersection(\n\t\t\t\tz.object({\n\t\t\t\t\tdependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\t\tdevDependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\t\tfiles: z.array(z.string()).optional(),\n\t\t\t\t\tpeerDependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\t\tscripts: z.record(z.string(), z.string()).optional(),\n\t\t\t\t}),\n\t\t\t\tz.record(z.string(), z.unknown()),\n\t\t\t)\n\t\t\t.default({}),\n\t},\n\tproduce({ addons, offline, options }) {\n\t\tconst dependencies = {\n\t\t\t...options.packageData?.dependencies,\n\t\t\t...addons.properties.dependencies,\n\t\t};\n\t\tconst devDependencies = {\n\t\t\t...options.packageData?.devDependencies,\n\t\t\t...addons.properties.devDependencies,\n\t\t};\n\t\tconst description = htmlToText.convert(options.description, {\n\t\t\twordwrap: false,\n\t\t});\n\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\t\"package.json\": sortPackageJson(\n\t\t\t\t\tJSON.stringify(\n\t\t\t\t\t\tremoveUndefinedObjects({\n\t\t\t\t\t\t\t...addons.properties,\n\t\t\t\t\t\t\tauthor: { email: options.email.npm, name: options.author },\n\t\t\t\t\t\t\tbin: options.bin,\n\t\t\t\t\t\t\tdependencies: Object.keys(dependencies).length\n\t\t\t\t\t\t\t\t? dependencies\n\t\t\t\t\t\t\t\t: undefined,\n\t\t\t\t\t\t\tdescription,\n\t\t\t\t\t\t\tdevDependencies: Object.keys(devDependencies).length\n\t\t\t\t\t\t\t\t? devDependencies\n\t\t\t\t\t\t\t\t: undefined,\n\t\t\t\t\t\t\t...(options.node && {\n\t\t\t\t\t\t\t\tengines: {\n\t\t\t\t\t\t\t\t\tnode: `>=${options.node.minimum}`,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t...(options.pnpm && {\n\t\t\t\t\t\t\t\tpackageManager: `pnpm@${options.pnpm}`,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tfiles: [\n\t\t\t\t\t\t\t\toptions.bin?.replace(/^\\.\\//, \"\"),\n\t\t\t\t\t\t\t\t...(addons.properties.files ?? []),\n\t\t\t\t\t\t\t\t\"package.json\",\n\t\t\t\t\t\t\t\t\"README.md\",\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t.filter(Boolean)\n\t\t\t\t\t\t\t\t.sort(),\n\t\t\t\t\t\t\tkeywords: options.keywords?.flatMap((keyword) =>\n\t\t\t\t\t\t\t\tkeyword.split(/ /),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tlicense: \"MIT\",\n\t\t\t\t\t\t\tmain: \"lib/index.js\",\n\t\t\t\t\t\t\tname: options.repository,\n\t\t\t\t\t\t\trepository: {\n\t\t\t\t\t\t\t\ttype: \"git\",\n\t\t\t\t\t\t\t\turl: `git+https://github.com/${options.owner}/${options.repository}.git`,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\t\t...options.packageData?.scripts,\n\t\t\t\t\t\t\t\t...addons.properties.scripts,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\ttype: \"module\",\n\t\t\t\t\t\t\tversion: options.version ?? \"0.0.0\",\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\toffline ? \"pnpm install --offline\" : \"pnpm install\",\n\t\t\t\t\t\t...addons.cleanupCommands,\n\t\t\t\t\t],\n\t\t\t\t\tphase: CommandPhase.Install,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"rm package-lock.json yarn.lock\"],\n\t\t\t\t\tphase: CommandPhase.Migrations,\n\t\t\t\t\tsilent: true,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,YAAY,gBAAgB;AAC5B,OAAO,4BAA4B;AACnC,OAAO,qBAAqB;AAC5B,SAAS,SAAS;AAElB,SAAS,YAAY;AACrB,SAAS,oBAAoB;AAEtB,MAAM,mBAAmB,KAAK,YAAY;AAAA,EAChD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC;AAAA;AAAA,IAE/C,YAAY,EACV;AAAA,MACA,EAAE,OAAO;AAAA,QACR,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,EAAE,SAAS;AAAA,QACxD,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,EAA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AK,QAAQ,SAAS,EAAE;AAAA,gBAChC,GAAI,OAAO,WAAW,SAAS,CAAC;AAAA,gBAChC;AAAA,gBACA;AAAA,cACD,EACE,OAAO,OAAO,EACd,KAAK;AAAA,cACP,UAAU,QAAQ,UAAU;AAAA,gBAAQ,CAAC,YACpC,QAAQ,MAAM,GAAG;AAAA,cAClB;AAAA,cACA,SAAS;AAAA,cACT,MAAM;AAAA,cACN,MAAM,QAAQ;AAAA,cACd,YAAY;AAAA,gBACX,MAAM;AAAA,gBACN,KAAK,0BAA0B,QAAQ,KAAK,IAAI,QAAQ,UAAU;AAAA,cACnE;AAAA,cACA,SAAS;AAAA,gBACR,GAAG,QAAQ,aAAa;AAAA,gBACxB,GAAG,OAAO,WAAW;AAAA,cACtB;AAAA,cACA,MAAM;AAAA,cACN,SAAS,QAAQ,WAAW;AAAA,YAC7B,CAAC;AAAA,UACF;AAAA,QACD;AAAA,MACD;AAAA,MACA,SAAS;AAAA,QACR;AAAA,UACC,UAAU;AAAA,YACT,UAAU,2BAA2B;AAAA,YACrC,GAAG,OAAO;AAAA,UACX;AAAA,UACA,OAAO,aAAa;AAAA,QACrB;AAAA,MACD;AAAA,IACD;AAAA,EACD;AAAA,EACA,aAAa;AACZ,WAAO;AAAA,MACN,SAAS;AAAA,QACR;AAAA,UACC,UAAU,CAAC,gCAAgC;AAAA,UAC3C,OAAO,aAAa;AAAA,UACpB,QAAQ;AAAA,QACT;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockPnpmDedupe:
|
|
4
|
-
description: string;
|
|
3
|
+
declare const blockPnpmDedupe: bingo_stratum.BlockWithoutAddons<{
|
|
5
4
|
access: "public" | "restricted";
|
|
5
|
+
description: string;
|
|
6
6
|
directory: string;
|
|
7
7
|
email: {
|
|
8
8
|
github: string;
|
|
@@ -14,10 +14,10 @@ declare const blockPnpmDedupe: create.BlockWithoutAddons<{
|
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
|
-
name: string;
|
|
18
17
|
avatar_url: string;
|
|
19
18
|
contributions: string[];
|
|
20
19
|
login: string;
|
|
20
|
+
name: string;
|
|
21
21
|
profile: string;
|
|
22
22
|
}[] | undefined;
|
|
23
23
|
documentation?: string | undefined;
|
|
@@ -43,6 +43,8 @@ declare const blockPnpmDedupe: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
pnpm?: string | undefined;
|
|
47
|
+
rulesetId?: string | undefined;
|
|
46
48
|
usage?: string | undefined;
|
|
47
49
|
version?: string | undefined;
|
|
48
50
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockPrettier:
|
|
3
|
+
declare const blockPrettier: bingo_stratum.BlockWithAddons<{
|
|
4
4
|
ignores: string[];
|
|
5
5
|
plugins: string[];
|
|
6
6
|
overrides: {
|
|
@@ -10,8 +10,8 @@ declare const blockPrettier: create.BlockWithAddons<{
|
|
|
10
10
|
files: string;
|
|
11
11
|
}[];
|
|
12
12
|
}, {
|
|
13
|
-
description: string;
|
|
14
13
|
access: "public" | "restricted";
|
|
14
|
+
description: string;
|
|
15
15
|
directory: string;
|
|
16
16
|
email: {
|
|
17
17
|
github: string;
|
|
@@ -23,10 +23,10 @@ declare const blockPrettier: create.BlockWithAddons<{
|
|
|
23
23
|
author?: string | undefined;
|
|
24
24
|
bin?: string | undefined;
|
|
25
25
|
contributors?: {
|
|
26
|
-
name: string;
|
|
27
26
|
avatar_url: string;
|
|
28
27
|
contributions: string[];
|
|
29
28
|
login: string;
|
|
29
|
+
name: string;
|
|
30
30
|
profile: string;
|
|
31
31
|
}[] | undefined;
|
|
32
32
|
documentation?: string | undefined;
|
|
@@ -52,6 +52,8 @@ declare const blockPrettier: create.BlockWithAddons<{
|
|
|
52
52
|
devDependencies?: Record<string, string> | undefined;
|
|
53
53
|
scripts?: Record<string, string> | undefined;
|
|
54
54
|
} | undefined;
|
|
55
|
+
pnpm?: string | undefined;
|
|
56
|
+
rulesetId?: string | undefined;
|
|
55
57
|
usage?: string | undefined;
|
|
56
58
|
version?: string | undefined;
|
|
57
59
|
}>;
|
|
@@ -24,16 +24,6 @@ const blockPrettier = base.createBlock({
|
|
|
24
24
|
).default([]),
|
|
25
25
|
plugins: z.array(z.string()).default([])
|
|
26
26
|
},
|
|
27
|
-
migrate() {
|
|
28
|
-
return {
|
|
29
|
-
scripts: [
|
|
30
|
-
{
|
|
31
|
-
commands: ["rm .prettierrc* prettier.config*"],
|
|
32
|
-
phase: CommandPhase.Migrations
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
};
|
|
36
|
-
},
|
|
37
27
|
produce({ addons }) {
|
|
38
28
|
const { ignores, overrides, plugins } = addons;
|
|
39
29
|
return {
|
|
@@ -109,6 +99,17 @@ pnpm format --write
|
|
|
109
99
|
}
|
|
110
100
|
]
|
|
111
101
|
};
|
|
102
|
+
},
|
|
103
|
+
transition() {
|
|
104
|
+
return {
|
|
105
|
+
scripts: [
|
|
106
|
+
{
|
|
107
|
+
commands: ["rm .prettierrc* prettier.config*"],
|
|
108
|
+
phase: CommandPhase.Migrations,
|
|
109
|
+
silent: true
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
};
|
|
112
113
|
}
|
|
113
114
|
});
|
|
114
115
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/blocks/blockPrettier.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { blockCSpell } from \"./blockCSpell.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockVSCode } from \"./blockVSCode.js\";\nimport { formatIgnoreFile } from \"./files/formatIgnoreFile.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockPrettier = base.createBlock({\n\tabout: {\n\t\tname: \"Prettier\",\n\t},\n\taddons: {\n\t\tignores: z.array(z.string()).default([]),\n\t\toverrides: z\n\t\t\t.array(\n\t\t\t\tz.object({\n\t\t\t\t\tfiles: z.string(),\n\t\t\t\t\toptions: z.object({\n\t\t\t\t\t\tparser: z.string(),\n\t\t\t\t\t}),\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.default([]),\n\t\tplugins: z.array(z.string()).default([]),\n\t},\n\
|
|
1
|
+
{"version":3,"sources":["../../src/blocks/blockPrettier.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { blockCSpell } from \"./blockCSpell.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockVSCode } from \"./blockVSCode.js\";\nimport { formatIgnoreFile } from \"./files/formatIgnoreFile.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockPrettier = base.createBlock({\n\tabout: {\n\t\tname: \"Prettier\",\n\t},\n\taddons: {\n\t\tignores: z.array(z.string()).default([]),\n\t\toverrides: z\n\t\t\t.array(\n\t\t\t\tz.object({\n\t\t\t\t\tfiles: z.string(),\n\t\t\t\t\toptions: z.object({\n\t\t\t\t\t\tparser: z.string(),\n\t\t\t\t\t}),\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.default([]),\n\t\tplugins: z.array(z.string()).default([]),\n\t},\n\tproduce({ addons }) {\n\t\tconst { ignores, overrides, plugins } = addons;\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockCSpell({\n\t\t\t\t\tignores: [\".all-contributorsrc\"],\n\t\t\t\t}),\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tFormatting: {\n\t\t\t\t\t\t\tcontents: `\n[Prettier](https://prettier.io) is used to format code.\nIt should be applied automatically when you save files in VS Code or make a Git commit.\n\nTo manually reformat all files, you can run:\n\n\\`\\`\\`shell\npnpm format --write\n\\`\\`\\`\n`,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Prettier\",\n\t\t\t\t\t\t\tsteps: [{ run: \"pnpm format --list-different\" }],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\n\t\t\t\t\t\t\t...plugins,\n\t\t\t\t\t\t\t\"husky\",\n\t\t\t\t\t\t\t\"lint-staged\",\n\t\t\t\t\t\t\t\"prettier\",\n\t\t\t\t\t\t),\n\t\t\t\t\t\t\"lint-staged\": {\n\t\t\t\t\t\t\t\"*\": \"prettier --ignore-unknown --write\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\tformat: \"prettier .\",\n\t\t\t\t\t\t\tprepare: \"husky\",\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: [\"esbenp.prettier-vscode\"],\n\t\t\t\t\tsettings: { \"editor.defaultFormatter\": \"esbenp.prettier-vscode\" },\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\".husky\": {\n\t\t\t\t\t\".gitignore\": \"_\\n\",\n\t\t\t\t\t\"pre-commit\": [\"npx lint-staged\\n\", { executable: true }],\n\t\t\t\t},\n\t\t\t\t\".prettierignore\": formatIgnoreFile(\n\t\t\t\t\t[\"/.husky\", \"/lib\", \"/pnpm-lock.yaml\", ...ignores].sort(),\n\t\t\t\t),\n\t\t\t\t\".prettierrc.json\": JSON.stringify({\n\t\t\t\t\t$schema: \"http://json.schemastore.org/prettierrc\",\n\t\t\t\t\t...(overrides.length && { overrides: overrides.sort() }),\n\t\t\t\t\t...(plugins.length && { plugins: plugins.sort() }),\n\t\t\t\t\tuseTabs: true,\n\t\t\t\t}),\n\t\t\t},\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"pnpm format --write\"],\n\t\t\t\t\tphase: CommandPhase.Format,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"rm .prettierrc* prettier.config*\"],\n\t\t\t\t\tphase: CommandPhase.Migrations,\n\t\t\t\t\tsilent: true,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,SAAS;AAElB,SAAS,YAAY;AACrB,SAAS,8BAA8B;AACvC,SAAS,mBAAmB;AAC5B,SAAS,4BAA4B;AACrC,SAAS,4BAA4B;AACrC,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,wBAAwB;AACjC,SAAS,oBAAoB;AAEtB,MAAM,gBAAgB,KAAK,YAAY;AAAA,EAC7C,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC;AAAA,IACvC,WAAW,EACT;AAAA,MACA,EAAE,OAAO;AAAA,QACR,OAAO,EAAE,OAAO;AAAA,QAChB,SAAS,EAAE,OAAO;AAAA,UACjB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AE,KAAK;AAAA,QACzD;AAAA,QACA,oBAAoB,KAAK,UAAU;AAAA,UAClC,SAAS;AAAA,UACT,GAAI,UAAU,UAAU,EAAE,WAAW,UAAU,KAAK,EAAE;AAAA,UACtD,GAAI,QAAQ,UAAU,EAAE,SAAS,QAAQ,KAAK,EAAE;AAAA,UAChD,SAAS;AAAA,QACV,CAAC;AAAA,MACF;AAAA,MACA,SAAS;AAAA,QACR;AAAA,UACC,UAAU,CAAC,qBAAqB;AAAA,UAChC,OAAO,aAAa;AAAA,QACrB;AAAA,MACD;AAAA,IACD;AAAA,EACD;AAAA,EACA,aAAa;AACZ,WAAO;AAAA,MACN,SAAS;AAAA,QACR;AAAA,UACC,UAAU,CAAC,kCAAkC;AAAA,UAC7C,OAAO,aAAa;AAAA,UACpB,QAAQ;AAAA,QACT;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockPrettierPluginCurly:
|
|
4
|
-
description: string;
|
|
3
|
+
declare const blockPrettierPluginCurly: bingo_stratum.BlockWithoutAddons<{
|
|
5
4
|
access: "public" | "restricted";
|
|
5
|
+
description: string;
|
|
6
6
|
directory: string;
|
|
7
7
|
email: {
|
|
8
8
|
github: string;
|
|
@@ -14,10 +14,10 @@ declare const blockPrettierPluginCurly: create.BlockWithoutAddons<{
|
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
|
-
name: string;
|
|
18
17
|
avatar_url: string;
|
|
19
18
|
contributions: string[];
|
|
20
19
|
login: string;
|
|
20
|
+
name: string;
|
|
21
21
|
profile: string;
|
|
22
22
|
}[] | undefined;
|
|
23
23
|
documentation?: string | undefined;
|
|
@@ -43,6 +43,8 @@ declare const blockPrettierPluginCurly: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
pnpm?: string | undefined;
|
|
47
|
+
rulesetId?: string | undefined;
|
|
46
48
|
usage?: string | undefined;
|
|
47
49
|
version?: string | undefined;
|
|
48
50
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockPrettierPluginPackageJson:
|
|
4
|
-
description: string;
|
|
3
|
+
declare const blockPrettierPluginPackageJson: bingo_stratum.BlockWithoutAddons<{
|
|
5
4
|
access: "public" | "restricted";
|
|
5
|
+
description: string;
|
|
6
6
|
directory: string;
|
|
7
7
|
email: {
|
|
8
8
|
github: string;
|
|
@@ -14,10 +14,10 @@ declare const blockPrettierPluginPackageJson: create.BlockWithoutAddons<{
|
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
|
-
name: string;
|
|
18
17
|
avatar_url: string;
|
|
19
18
|
contributions: string[];
|
|
20
19
|
login: string;
|
|
20
|
+
name: string;
|
|
21
21
|
profile: string;
|
|
22
22
|
}[] | undefined;
|
|
23
23
|
documentation?: string | undefined;
|
|
@@ -43,6 +43,8 @@ declare const blockPrettierPluginPackageJson: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
pnpm?: string | undefined;
|
|
47
|
+
rulesetId?: string | undefined;
|
|
46
48
|
usage?: string | undefined;
|
|
47
49
|
version?: string | undefined;
|
|
48
50
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockPrettierPluginSh:
|
|
4
|
-
description: string;
|
|
3
|
+
declare const blockPrettierPluginSh: bingo_stratum.BlockWithoutAddons<{
|
|
5
4
|
access: "public" | "restricted";
|
|
5
|
+
description: string;
|
|
6
6
|
directory: string;
|
|
7
7
|
email: {
|
|
8
8
|
github: string;
|
|
@@ -14,10 +14,10 @@ declare const blockPrettierPluginSh: create.BlockWithoutAddons<{
|
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
|
-
name: string;
|
|
18
17
|
avatar_url: string;
|
|
19
18
|
contributions: string[];
|
|
20
19
|
login: string;
|
|
20
|
+
name: string;
|
|
21
21
|
profile: string;
|
|
22
22
|
}[] | undefined;
|
|
23
23
|
documentation?: string | undefined;
|
|
@@ -43,6 +43,8 @@ declare const blockPrettierPluginSh: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
pnpm?: string | undefined;
|
|
47
|
+
rulesetId?: string | undefined;
|
|
46
48
|
usage?: string | undefined;
|
|
47
49
|
version?: string | undefined;
|
|
48
50
|
}>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockREADME:
|
|
3
|
+
declare const blockREADME: bingo_stratum.BlockWithAddons<{
|
|
4
4
|
badges: string[];
|
|
5
5
|
notices: string[];
|
|
6
6
|
sections: string[];
|
|
7
7
|
}, {
|
|
8
|
-
description: string;
|
|
9
8
|
access: "public" | "restricted";
|
|
9
|
+
description: string;
|
|
10
10
|
directory: string;
|
|
11
11
|
email: {
|
|
12
12
|
github: string;
|
|
@@ -18,10 +18,10 @@ declare const blockREADME: create.BlockWithAddons<{
|
|
|
18
18
|
author?: string | undefined;
|
|
19
19
|
bin?: string | undefined;
|
|
20
20
|
contributors?: {
|
|
21
|
-
name: string;
|
|
22
21
|
avatar_url: string;
|
|
23
22
|
contributions: string[];
|
|
24
23
|
login: string;
|
|
24
|
+
name: string;
|
|
25
25
|
profile: string;
|
|
26
26
|
}[] | undefined;
|
|
27
27
|
documentation?: string | undefined;
|
|
@@ -47,6 +47,8 @@ declare const blockREADME: create.BlockWithAddons<{
|
|
|
47
47
|
devDependencies?: Record<string, string> | undefined;
|
|
48
48
|
scripts?: Record<string, string> | undefined;
|
|
49
49
|
} | undefined;
|
|
50
|
+
pnpm?: string | undefined;
|
|
51
|
+
rulesetId?: string | undefined;
|
|
50
52
|
usage?: string | undefined;
|
|
51
53
|
version?: string | undefined;
|
|
52
54
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockReleaseIt:
|
|
4
|
-
description: string;
|
|
3
|
+
declare const blockReleaseIt: bingo_stratum.BlockWithoutAddons<{
|
|
5
4
|
access: "public" | "restricted";
|
|
5
|
+
description: string;
|
|
6
6
|
directory: string;
|
|
7
7
|
email: {
|
|
8
8
|
github: string;
|
|
@@ -14,10 +14,10 @@ declare const blockReleaseIt: create.BlockWithoutAddons<{
|
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
|
-
name: string;
|
|
18
17
|
avatar_url: string;
|
|
19
18
|
contributions: string[];
|
|
20
19
|
login: string;
|
|
20
|
+
name: string;
|
|
21
21
|
profile: string;
|
|
22
22
|
}[] | undefined;
|
|
23
23
|
documentation?: string | undefined;
|
|
@@ -43,6 +43,8 @@ declare const blockReleaseIt: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
pnpm?: string | undefined;
|
|
47
|
+
rulesetId?: string | undefined;
|
|
46
48
|
usage?: string | undefined;
|
|
47
49
|
version?: string | undefined;
|
|
48
50
|
}>;
|