create-typescript-app 2.53.0 → 2.54.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 +0 -2
- package/lib/base.d.ts +2 -2
- package/lib/base.d.ts.map +1 -1
- package/lib/blocks/blockAllContributors.d.ts +2 -2
- package/lib/blocks/blockAllContributors.d.ts.map +1 -1
- package/lib/blocks/blockAllContributors.js +0 -2
- package/lib/blocks/blockAllContributors.js.map +1 -1
- package/lib/blocks/blockAreTheTypesWrong.d.ts +2 -2
- package/lib/blocks/blockAreTheTypesWrong.d.ts.map +1 -1
- package/lib/blocks/blockCSpell.d.ts +2 -2
- package/lib/blocks/blockCTATransitions.d.ts +2 -2
- package/lib/blocks/blockCTATransitions.d.ts.map +1 -1
- package/lib/blocks/blockCodecov.d.ts +2 -2
- package/lib/blocks/blockContributingDocs.d.ts +2 -2
- package/lib/blocks/blockContributorCovenant.d.ts +2 -2
- package/lib/blocks/blockContributorCovenant.d.ts.map +1 -1
- package/lib/blocks/blockContributorCovenant.js +1 -2
- package/lib/blocks/blockContributorCovenant.js.map +1 -1
- package/lib/blocks/blockDevelopmentDocs.d.ts +4 -4
- package/lib/blocks/blockDevelopmentDocs.d.ts.map +1 -1
- package/lib/blocks/blockESLint.d.ts +11 -11
- 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/blockESLintMarkdown.d.ts.map +1 -1
- package/lib/blocks/blockESLintMarkdown.js +25 -13
- package/lib/blocks/blockESLintMarkdown.js.map +1 -1
- package/lib/blocks/blockESLintMoreStyling.d.ts +2 -2
- package/lib/blocks/blockESLintMoreStyling.d.ts.map +1 -1
- 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/blockESLintPlugin.d.ts +2 -2
- package/lib/blocks/blockESLintRegexp.d.ts +2 -2
- package/lib/blocks/blockESLintYML.d.ts +2 -2
- package/lib/blocks/blockExampleFiles.d.ts +2 -2
- package/lib/blocks/blockFunding.d.ts +2 -2
- package/lib/blocks/blockGitHubActionsCI.d.ts +3 -3
- 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/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/blockMITLicense.d.ts.map +1 -1
- package/lib/blocks/blockMain.d.ts +2 -2
- package/lib/blocks/blockMain.d.ts.map +1 -1
- 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/blockOctoGuideStrict.d.ts +2 -2
- package/lib/blocks/blockPackageJson.d.ts +10 -10
- package/lib/blocks/blockPackageJson.d.ts.map +1 -1
- package/lib/blocks/blockPnpmDedupe.d.ts +2 -2
- package/lib/blocks/blockPrettier.d.ts +2 -2
- 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 +4 -4
- package/lib/blocks/blockREADME.d.ts.map +1 -1
- package/lib/blocks/blockReleaseIt.d.ts +3 -3
- package/lib/blocks/blockReleaseIt.d.ts.map +1 -1
- package/lib/blocks/blockReleaseIt.js +0 -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/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/blockTypeScript.d.ts.map +1 -1
- package/lib/blocks/blockTypeScript.js +0 -2
- package/lib/blocks/blockTypeScript.js.map +1 -1
- package/lib/blocks/blockVSCode.d.ts +2 -2
- 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/blockWebExt.d.ts.map +1 -1
- package/lib/blocks/blockWebExt.js +0 -2
- package/lib/blocks/blockWebExt.js.map +1 -1
- package/lib/blocks/eslint/mergeAllExtensions.d.ts +1 -1
- package/lib/blocks/eslint/mergeAllExtensions.d.ts.map +1 -1
- package/lib/blocks/eslint/schemas.d.ts +2 -2
- package/lib/blocks/index.d.ts +73 -144
- package/lib/blocks/index.d.ts.map +1 -1
- package/lib/blocks/index.js +1 -3
- package/lib/blocks/index.js.map +1 -1
- package/lib/index.d.ts +3 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -2
- package/lib/index.js.map +1 -1
- package/lib/inputs/inputFromDirectory.d.ts +2 -2
- package/lib/inputs/inputFromOctokit.d.ts +2 -2
- package/lib/package.d.ts +0 -3
- package/lib/package.d.ts.map +1 -1
- package/lib/presets/common.d.ts +2 -2
- 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/everything.js +0 -2
- package/lib/presets/everything.js.map +1 -1
- package/lib/presets/index.d.ts +203 -203
- package/lib/presets/minimal.d.ts +2 -2
- package/lib/presets/minimal.d.ts.map +1 -1
- package/package.json +1 -4
- package/lib/blocks/blockMarkdownlint.d.ts +0 -76
- package/lib/blocks/blockMarkdownlint.d.ts.map +0 -1
- package/lib/blocks/blockMarkdownlint.js +0 -64
- package/lib/blocks/blockMarkdownlint.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum49 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockGitignore.d.ts
|
|
4
|
-
declare const blockGitignore:
|
|
4
|
+
declare const blockGitignore: bingo_stratum49.BlockWithAddons<{
|
|
5
5
|
ignores: string[];
|
|
6
6
|
}, {
|
|
7
7
|
access: "public" | "restricted";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum53 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockKnip.d.ts
|
|
4
|
-
declare const blockKnip:
|
|
4
|
+
declare const blockKnip: bingo_stratum53.BlockWithAddons<{
|
|
5
5
|
entry?: string[] | undefined;
|
|
6
6
|
ignoreDependencies?: string[] | undefined;
|
|
7
7
|
project?: string[] | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum47 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockMITLicense.d.ts
|
|
4
|
-
declare const blockMITLicense:
|
|
4
|
+
declare const blockMITLicense: bingo_stratum47.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockMITLicense.d.ts","names":[],"sources":["../../src/blocks/blockMITLicense.ts"],"sourcesContent":[],"mappings":";;;cAIa,
|
|
1
|
+
{"version":3,"file":"blockMITLicense.d.ts","names":[],"sources":["../../src/blocks/blockMITLicense.ts"],"sourcesContent":[],"mappings":";;;cAIa,iCAAe;;;EAAf,SAAA,EAAA,MAAA;;;;;;;;;;EAAe,KAAA,EAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum50 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockMain.d.ts
|
|
4
|
-
declare const blockMain:
|
|
4
|
+
declare const blockMain: bingo_stratum50.BlockWithAddons<{
|
|
5
5
|
runArgs: string[];
|
|
6
6
|
filePath?: string | undefined;
|
|
7
7
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockMain.d.ts","names":[],"sources":["../../src/blocks/blockMain.ts"],"sourcesContent":[],"mappings":";;;cAMa,
|
|
1
|
+
{"version":3,"file":"blockMain.d.ts","names":[],"sources":["../../src/blocks/blockMain.ts"],"sourcesContent":[],"mappings":";;;cAMa,2BAAS;;;AAAtB,CAAA,EAAA;;;;;;;;;WAAsB,CAAA,EAAA,MAAA,GAAA,SAAA;IAAA,CAAA"}
|
package/lib/blocks/blockNcc.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum51 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockNcc.d.ts
|
|
4
|
-
declare const blockNcc:
|
|
4
|
+
declare const blockNcc: bingo_stratum51.BlockWithAddons<{
|
|
5
5
|
entry?: string | undefined;
|
|
6
6
|
}, {
|
|
7
7
|
access: "public" | "restricted";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum24 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockNvmrc.d.ts
|
|
4
|
-
declare const blockNvmrc:
|
|
4
|
+
declare const blockNvmrc: bingo_stratum24.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_stratum25 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockOctoGuide.d.ts
|
|
4
|
-
declare const blockOctoGuide:
|
|
4
|
+
declare const blockOctoGuide: bingo_stratum25.BlockWithAddons<{
|
|
5
5
|
config?: "strict" | "recommended" | undefined;
|
|
6
6
|
}, {
|
|
7
7
|
access: "public" | "restricted";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum26 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockOctoGuideStrict.d.ts
|
|
4
|
-
declare const blockOctoGuideStrict:
|
|
4
|
+
declare const blockOctoGuideStrict: bingo_stratum26.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum27 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockPackageJson.d.ts
|
|
4
|
-
declare const blockPackageJson:
|
|
4
|
+
declare const blockPackageJson: bingo_stratum27.BlockWithAddons<{
|
|
5
|
+
cleanupCommands: string[];
|
|
5
6
|
properties: {
|
|
6
7
|
type?: "commonjs" | "module" | undefined;
|
|
7
8
|
author?: string | {
|
|
@@ -42,29 +43,29 @@ declare const blockPackageJson: bingo_stratum46.BlockWithAddons<{
|
|
|
42
43
|
engines?: Record<string, string> | undefined;
|
|
43
44
|
packageManager?: string | undefined;
|
|
44
45
|
files?: string[] | undefined;
|
|
45
|
-
license?: string | undefined;
|
|
46
|
-
config?: Record<string, unknown> | undefined;
|
|
47
|
-
private?: boolean | undefined;
|
|
48
46
|
homepage?: string | undefined;
|
|
47
|
+
bugs?: string | {
|
|
48
|
+
url?: string | undefined;
|
|
49
|
+
email?: string | undefined;
|
|
50
|
+
} | undefined;
|
|
51
|
+
license?: string | undefined;
|
|
49
52
|
maintainers?: (string | {
|
|
50
53
|
name: string;
|
|
51
54
|
url?: string | undefined;
|
|
52
55
|
email?: string | undefined;
|
|
53
56
|
})[] | undefined;
|
|
54
57
|
main?: string | undefined;
|
|
55
|
-
bugs?: string | {
|
|
56
|
-
url?: string | undefined;
|
|
57
|
-
email?: string | undefined;
|
|
58
|
-
} | undefined;
|
|
59
58
|
browser?: string | Record<string, string | boolean> | undefined;
|
|
60
59
|
man?: string | string[] | undefined;
|
|
61
60
|
directories?: Record<string, string> | undefined;
|
|
61
|
+
config?: Record<string, unknown> | undefined;
|
|
62
62
|
bundleDependencies?: boolean | string[] | undefined;
|
|
63
63
|
bundledDependencies?: boolean | string[] | undefined;
|
|
64
64
|
optionalDependencies?: Record<string, string> | undefined;
|
|
65
65
|
overrides?: Record<string, unknown> | undefined;
|
|
66
66
|
os?: string[] | undefined;
|
|
67
67
|
cpu?: string[] | undefined;
|
|
68
|
+
private?: boolean | undefined;
|
|
68
69
|
publishConfig?: Record<string, unknown> | undefined;
|
|
69
70
|
workspaces?: string[] | undefined;
|
|
70
71
|
deprecated?: string | undefined;
|
|
@@ -77,7 +78,6 @@ declare const blockPackageJson: bingo_stratum46.BlockWithAddons<{
|
|
|
77
78
|
} & {
|
|
78
79
|
[k: string]: unknown;
|
|
79
80
|
};
|
|
80
|
-
cleanupCommands: string[];
|
|
81
81
|
}, {
|
|
82
82
|
access: "public" | "restricted";
|
|
83
83
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockPackageJson.d.ts","names":[],"sources":["../../src/blocks/blockPackageJson.ts"],"sourcesContent":[],"mappings":";;;cAiBa,kCAAgB;;;IAAhB,
|
|
1
|
+
{"version":3,"file":"blockPackageJson.d.ts","names":[],"sources":["../../src/blocks/blockPackageJson.ts"],"sourcesContent":[],"mappings":";;;cAiBa,kCAAgB;;;IAAhB,IAAA,CAAA,EAAA,UA6EX,GAAA,QAAA,GAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cA7E2B,EAAA,OAAA;IAAA,CAAA,CAAA,GAAA,SAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum28 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockPnpmDedupe.d.ts
|
|
4
|
-
declare const blockPnpmDedupe:
|
|
4
|
+
declare const blockPnpmDedupe: bingo_stratum28.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_stratum29 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockPrettier.d.ts
|
|
4
|
-
declare const blockPrettier:
|
|
4
|
+
declare const blockPrettier: bingo_stratum29.BlockWithAddons<{
|
|
5
5
|
overrides: {
|
|
6
6
|
options: {
|
|
7
7
|
parser: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum30 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockPrettierPluginCurly.d.ts
|
|
4
|
-
declare const blockPrettierPluginCurly:
|
|
4
|
+
declare const blockPrettierPluginCurly: bingo_stratum30.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_stratum31 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockPrettierPluginPackageJson.d.ts
|
|
4
|
-
declare const blockPrettierPluginPackageJson:
|
|
4
|
+
declare const blockPrettierPluginPackageJson: bingo_stratum31.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_stratum32 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockPrettierPluginSentencesPerLine.d.ts
|
|
4
|
-
declare const blockPrettierPluginSentencesPerLine:
|
|
4
|
+
declare const blockPrettierPluginSentencesPerLine: bingo_stratum32.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_stratum33 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockPrettierPluginSh.d.ts
|
|
4
|
-
declare const blockPrettierPluginSh:
|
|
4
|
+
declare const blockPrettierPluginSh: bingo_stratum33.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum34 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockREADME.d.ts
|
|
4
|
-
declare const blockREADME:
|
|
5
|
-
sections: string[];
|
|
4
|
+
declare const blockREADME: bingo_stratum34.BlockWithAddons<{
|
|
6
5
|
badges: {
|
|
7
6
|
alt: string;
|
|
8
7
|
src: string;
|
|
9
8
|
href?: string | undefined;
|
|
10
9
|
comments?: {
|
|
11
|
-
after: string;
|
|
12
10
|
before: string;
|
|
11
|
+
after: string;
|
|
13
12
|
} | undefined;
|
|
14
13
|
}[];
|
|
15
14
|
defaultUsage: string[];
|
|
16
15
|
notices: string[];
|
|
16
|
+
sections: string[];
|
|
17
17
|
}, {
|
|
18
18
|
access: "public" | "restricted";
|
|
19
19
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockREADME.d.ts","names":[],"sources":["../../src/blocks/blockREADME.ts"],"sourcesContent":[],"mappings":";;;cAyBa,6BAAW;;;IAAX,GAAA,EAAA,MAoDX;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"blockREADME.d.ts","names":[],"sources":["../../src/blocks/blockREADME.ts"],"sourcesContent":[],"mappings":";;;cAyBa,6BAAW;;;IAAX,GAAA,EAAA,MAoDX;;;;;;;;;kBApDsB,EAAA;CAAA,EAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum35 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockReleaseIt.d.ts
|
|
4
|
-
declare const blockReleaseIt:
|
|
4
|
+
declare const blockReleaseIt: bingo_stratum35.BlockWithAddons<{
|
|
5
5
|
builders: {
|
|
6
|
-
run: string;
|
|
7
6
|
order: number;
|
|
7
|
+
run: string;
|
|
8
8
|
}[];
|
|
9
9
|
}, {
|
|
10
10
|
access: "public" | "restricted";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockReleaseIt.d.ts","names":[],"sources":["../../src/blocks/blockReleaseIt.ts"],"sourcesContent":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"blockReleaseIt.d.ts","names":[],"sources":["../../src/blocks/blockReleaseIt.ts"],"sourcesContent":[],"mappings":";;;cAUa,gCAAc;;;IAAd,GAAA,EAAA,MAAA;;;;;;;;;eAAc,CAAA,EAAA,MAAA,GAAA,SAAA;MAAA,SAAA,CAAA,EAAA,MAAA,GAAA,SAAA"}
|
|
@@ -4,7 +4,6 @@ import { resolveUses } from "./actions/resolveUses.js";
|
|
|
4
4
|
import { createSoloWorkflowFile } from "./files/createSoloWorkflowFile.js";
|
|
5
5
|
import { blockPackageJson } from "./blockPackageJson.js";
|
|
6
6
|
import { blockREADME } from "./blockREADME.js";
|
|
7
|
-
import { blockMarkdownlint } from "./blockMarkdownlint.js";
|
|
8
7
|
import { blockRepositorySecrets } from "./blockRepositorySecrets.js";
|
|
9
8
|
import { z } from "zod";
|
|
10
9
|
|
|
@@ -19,7 +18,6 @@ const blockReleaseIt = base.createBlock({
|
|
|
19
18
|
const { builders } = addons;
|
|
20
19
|
return {
|
|
21
20
|
addons: [
|
|
22
|
-
blockMarkdownlint({ ignores: ["CHANGELOG.md"] }),
|
|
23
21
|
blockPackageJson({ properties: {
|
|
24
22
|
devDependencies: getPackageDependencies("@release-it/conventional-changelog", "release-it"),
|
|
25
23
|
publishConfig: { provenance: true },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockReleaseIt.js","names":[],"sources":["../../src/blocks/blockReleaseIt.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { resolveUses } from \"./actions/resolveUses.js\";\nimport {
|
|
1
|
+
{"version":3,"file":"blockReleaseIt.js","names":[],"sources":["../../src/blocks/blockReleaseIt.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { resolveUses } from \"./actions/resolveUses.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockREADME } from \"./blockREADME.js\";\nimport { blockRepositorySecrets } from \"./blockRepositorySecrets.js\";\nimport { createSoloWorkflowFile } from \"./files/createSoloWorkflowFile.js\";\n\nexport const blockReleaseIt = base.createBlock({\n\tabout: {\n\t\tname: \"release-it\",\n\t},\n\taddons: {\n\t\tbuilders: z\n\t\t\t.array(\n\t\t\t\tz.object({\n\t\t\t\t\torder: z.number(),\n\t\t\t\t\trun: z.string(),\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.default([]),\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { builders } = addons;\n\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: getPackageDependencies(\n\t\t\t\t\t\t\t\"@release-it/conventional-changelog\",\n\t\t\t\t\t\t\t\"release-it\",\n\t\t\t\t\t\t),\n\t\t\t\t\t\tpublishConfig: {\n\t\t\t\t\t\t\tprovenance: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\t\"should-semantic-release\": undefined,\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: \"📦 npm version\",\n\t\t\t\t\t\t\thref: `http://npmjs.com/package/${options.repository}`,\n\t\t\t\t\t\t\tsrc: `https://img.shields.io/npm/v/${options.repository}?color=21bb42&label=%F0%9F%93%A6%20npm`,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\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\t{\n\t\t\t\t\t\t\tdescription: \"an npm access token with automation permissions\",\n\t\t\t\t\t\t\tname: \"NPM_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\".github\": {\n\t\t\t\t\tworkflows: {\n\t\t\t\t\t\t\"post-release.yml\": createSoloWorkflowFile({\n\t\t\t\t\t\t\tname: \"Post Release\",\n\t\t\t\t\t\t\ton: {\n\t\t\t\t\t\t\t\trelease: {\n\t\t\t\t\t\t\t\t\ttypes: [\"published\"],\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\tissues: \"write\",\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\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{\n\t\t\t\t\t\t\t\t\trun: `echo \"npm_version=$(npm pkg get version | tr -d '\"')\" >> \"$GITHUB_ENV\"`,\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\tuses: resolveUses(\n\t\t\t\t\t\t\t\t\t\t\"apexskier/github-release-commenter\",\n\t\t\t\t\t\t\t\t\t\t\"v1\",\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\"comment-template\": `\n\t\t\t\t\t\t\t:tada: This is included in version {release_link} :tada:\n\n\t\t\t\t\t\t\tThe release is available on:\n\n\t\t\t\t\t\t\t* [GitHub releases](https://github.com/${options.owner}/${options.repository}/releases/tag/{release_tag})\n\t\t\t\t\t\t\t* [npm package (@latest dist-tag)](https://www.npmjs.com/package/${options.repository}/v/\\${{ env.npm_version }})\n\n\t\t\t\t\t\t\tCheers! 📦🚀\n\t\t\t\t\t\t`,\n\t\t\t\t\t\t\t\t\t\tGITHUB_TOKEN: \"${{ secrets.GITHUB_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],\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t\"release.yml\": createSoloWorkflowFile({\n\t\t\t\t\t\t\tconcurrency: {\n\t\t\t\t\t\t\t\tgroup: \"${{ github.workflow }}\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tname: \"Release\",\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\tpermissions: {\n\t\t\t\t\t\t\t\tcontents: \"write\",\n\t\t\t\t\t\t\t\t\"id-token\": \"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\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: \"main\",\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\tuses: \"./.github/actions/prepare\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t...builders\n\t\t\t\t\t\t\t\t\t.sort((a, b) => a.order - b.order)\n\t\t\t\t\t\t\t\t\t.map(({ run }) => ({ run })),\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tenv: {\n\t\t\t\t\t\t\t\t\t\tGITHUB_TOKEN: \"${{ secrets.ACCESS_TOKEN }}\",\n\t\t\t\t\t\t\t\t\t\tNPM_TOKEN: \"${{ secrets.NPM_TOKEN }}\",\n\t\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\"JoshuaKGoldberg/release-it-action\",\n\t\t\t\t\t\t\t\t\t\t\"v0.3.2\",\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\t\".release-it.json\": JSON.stringify({\n\t\t\t\t\tgit: {\n\t\t\t\t\t\tcommitMessage: \"chore: release v${version}\",\n\t\t\t\t\t\trequireCommits: true,\n\t\t\t\t\t},\n\t\t\t\t\tgithub: {\n\t\t\t\t\t\trelease: true,\n\t\t\t\t\t\treleaseName: \"v${version}\",\n\t\t\t\t\t},\n\t\t\t\t\tnpm: {\n\t\t\t\t\t\tpublishArgs: [`--access ${options.access}`, \"--provenance\"],\n\t\t\t\t\t},\n\t\t\t\t\tplugins: {\n\t\t\t\t\t\t\"@release-it/conventional-changelog\": {\n\t\t\t\t\t\t\tinfile: \"CHANGELOG.md\",\n\t\t\t\t\t\t\tpreset: \"conventionalcommits\",\n\t\t\t\t\t\t\ttypes: [\n\t\t\t\t\t\t\t\t{ section: \"Features\", type: \"feat\" },\n\t\t\t\t\t\t\t\t{ section: \"Bug Fixes\", type: \"fix\" },\n\t\t\t\t\t\t\t\t{ section: \"Performance Improvements\", type: \"perf\" },\n\t\t\t\t\t\t\t\t{ hidden: true, type: \"build\" },\n\t\t\t\t\t\t\t\t{ hidden: true, type: \"chore\" },\n\t\t\t\t\t\t\t\t{ hidden: true, type: \"ci\" },\n\t\t\t\t\t\t\t\t{ hidden: true, type: \"docs\" },\n\t\t\t\t\t\t\t\t{ hidden: true, type: \"refactor\" },\n\t\t\t\t\t\t\t\t{ hidden: true, type: \"style\" },\n\t\t\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+
import * as bingo_stratum37 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockRemoveDependencies.d.ts
|
|
4
|
-
declare const blockRemoveDependencies:
|
|
4
|
+
declare const blockRemoveDependencies: bingo_stratum37.BlockWithAddons<{
|
|
5
5
|
dependencies?: string[] | undefined;
|
|
6
6
|
}, {
|
|
7
7
|
access: "public" | "restricted";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum39 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockRemoveFiles.d.ts
|
|
4
|
-
declare const blockRemoveFiles:
|
|
4
|
+
declare const blockRemoveFiles: bingo_stratum39.BlockWithAddons<{
|
|
5
5
|
files?: string[] | undefined;
|
|
6
6
|
}, {
|
|
7
7
|
access: "public" | "restricted";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum41 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockRemoveWorkflows.d.ts
|
|
4
|
-
declare const blockRemoveWorkflows:
|
|
4
|
+
declare const blockRemoveWorkflows: bingo_stratum41.BlockWithAddons<{
|
|
5
5
|
workflows?: string[] | undefined;
|
|
6
6
|
}, {
|
|
7
7
|
access: "public" | "restricted";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum42 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockRenovate.d.ts
|
|
4
|
-
declare const blockRenovate:
|
|
4
|
+
declare const blockRenovate: bingo_stratum42.BlockWithAddons<{
|
|
5
5
|
ignoreDeps: string[];
|
|
6
6
|
}, {
|
|
7
7
|
access: "public" | "restricted";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum43 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockRepositoryBranchRuleset.d.ts
|
|
4
|
-
declare const blockRepositoryBranchRuleset:
|
|
4
|
+
declare const blockRepositoryBranchRuleset: bingo_stratum43.BlockWithAddons<{
|
|
5
5
|
requiredStatusChecks?: string[] | undefined;
|
|
6
6
|
}, {
|
|
7
7
|
access: "public" | "restricted";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum44 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockRepositoryLabels.d.ts
|
|
4
|
-
declare const blockRepositoryLabels:
|
|
4
|
+
declare const blockRepositoryLabels: bingo_stratum44.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_stratum45 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockRepositorySecrets.d.ts
|
|
4
|
-
declare const blockRepositorySecrets:
|
|
4
|
+
declare const blockRepositorySecrets: bingo_stratum45.BlockWithAddons<{
|
|
5
5
|
secrets: {
|
|
6
6
|
name: string;
|
|
7
7
|
description: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum48 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockRepositorySettings.d.ts
|
|
4
|
-
declare const blockRepositorySettings:
|
|
4
|
+
declare const blockRepositorySettings: bingo_stratum48.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_stratum52 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockSecurityDocs.d.ts
|
|
4
|
-
declare const blockSecurityDocs:
|
|
4
|
+
declare const blockSecurityDocs: bingo_stratum52.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_stratum38 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockTSDown.d.ts
|
|
4
|
-
declare const blockTSDown:
|
|
4
|
+
declare const blockTSDown: bingo_stratum38.BlockWithAddons<{
|
|
5
5
|
properties: Record<string, unknown>;
|
|
6
6
|
entry: string[];
|
|
7
7
|
runInCI: string[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum40 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockTemplatedWith.d.ts
|
|
4
|
-
declare const blockTemplatedWith:
|
|
4
|
+
declare const blockTemplatedWith: bingo_stratum40.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_stratum23 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockTypeScript.d.ts
|
|
4
|
-
declare const blockTypeScript:
|
|
4
|
+
declare const blockTypeScript: bingo_stratum23.BlockWithAddons<{
|
|
5
5
|
compilerOptions?: {
|
|
6
6
|
allowArbitraryExtensions?: boolean | undefined;
|
|
7
7
|
allowImportingTsExtensions?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockTypeScript.d.ts","names":[],"sources":["../../src/blocks/blockTypeScript.ts"],"sourcesContent":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"blockTypeScript.d.ts","names":[],"sources":["../../src/blocks/blockTypeScript.ts"],"sourcesContent":[],"mappings":";;;cAiBa,iCAAe;;;IAAf,0BA4JX,CAAA,EAAA,OAAA,GAAA,SAAA;;;;;;;;;;oBA5J0B,CAAA,EAAA,MAAA,EAAA,GAAA,SAAA;IAAA,WAAA,CAAA,EAAA,OAAA,GAAA,SAAA"}
|
|
@@ -10,7 +10,6 @@ import { blockExampleFiles } from "./blockExampleFiles.js";
|
|
|
10
10
|
import { blockGitignore } from "./blockGitignore.js";
|
|
11
11
|
import { intakeFileAsJson } from "./intake/intakeFileAsJson.js";
|
|
12
12
|
import { blockKnip } from "./blockKnip.js";
|
|
13
|
-
import { blockMarkdownlint } from "./blockMarkdownlint.js";
|
|
14
13
|
import { blockVitest } from "./blockVitest.js";
|
|
15
14
|
import sortKeys from "sort-keys";
|
|
16
15
|
import { CompilerOptionsSchema } from "zod-tsconfig";
|
|
@@ -86,7 +85,6 @@ greet("Hello, world! ${options.emoji}");
|
|
|
86
85
|
steps: [{ run: "pnpm tsc" }]
|
|
87
86
|
}] }),
|
|
88
87
|
blockKnip({ project: ["src/**/*.ts"] }),
|
|
89
|
-
blockMarkdownlint({ ignores: ["lib/"] }),
|
|
90
88
|
blockPackageJson({ properties: {
|
|
91
89
|
devDependencies: getPackageDependencies("typescript"),
|
|
92
90
|
files: ["lib/"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockTypeScript.js","names":[],"sources":["../../src/blocks/blockTypeScript.ts"],"sourcesContent":["import sortKeys from \"sort-keys\";\nimport { CompilerOptionsSchema } from \"zod-tsconfig\";\n\nimport { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { getPrimaryBin } from \"./bin/getPrimaryBin.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockExampleFiles } from \"./blockExampleFiles.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockGitignore } from \"./blockGitignore.js\";\nimport { blockKnip } from \"./blockKnip.js\";\nimport {
|
|
1
|
+
{"version":3,"file":"blockTypeScript.js","names":[],"sources":["../../src/blocks/blockTypeScript.ts"],"sourcesContent":["import sortKeys from \"sort-keys\";\nimport { CompilerOptionsSchema } from \"zod-tsconfig\";\n\nimport { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { getPrimaryBin } from \"./bin/getPrimaryBin.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockExampleFiles } from \"./blockExampleFiles.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockGitignore } from \"./blockGitignore.js\";\nimport { blockKnip } from \"./blockKnip.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockRemoveWorkflows } from \"./blockRemoveWorkflows.js\";\nimport { blockVitest } from \"./blockVitest.js\";\nimport { blockVSCode } from \"./blockVSCode.js\";\nimport { intakeFileAsJson } from \"./intake/intakeFileAsJson.js\";\n\nexport const blockTypeScript = base.createBlock({\n\tabout: {\n\t\tname: \"TypeScript\",\n\t},\n\taddons: {\n\t\tcompilerOptions: CompilerOptionsSchema.optional(),\n\t},\n\tintake({ files }) {\n\t\tconst raw = intakeFileAsJson(files, [\"tsconfig.json\"]);\n\t\tconst { data } = CompilerOptionsSchema.safeParse(raw?.compilerOptions);\n\t\tif (!data) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\treturn {\n\t\t\tcompilerOptions: data,\n\t\t};\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { compilerOptions } = addons;\n\t\tconst primaryBin = getPrimaryBin(options.bin, options.repository);\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\t\"Type Checking\": {\n\t\t\t\t\t\t\tcontents: `\nYou should be able to see suggestions from [TypeScript](https://typescriptlang.org) in your editor for all open files.\n\nHowever, it can be useful to run the TypeScript command-line (\\`tsc\\`) to type check all files in \\`src/\\`:\n\n\\`\\`\\`shell\npnpm tsc\n\\`\\`\\`\n\nAdd \\`--watch\\` to keep the type checker running in a watch mode that updates the display as you save files:\n\n\\`\\`\\`shell\npnpm tsc --watch\n\\`\\`\\`\n`,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockExampleFiles({\n\t\t\t\t\tfiles: {\n\t\t\t\t\t\t\"greet.ts\": `import { GreetOptions } from \"./types.js\";\n\t\n\texport function greet(options: GreetOptions | string) {\n\t\tconst {\n\t\t\tlogger = console.log.bind(console),\n\t\t\tmessage,\n\t\t\ttimes = 1,\n\t\t} = typeof options === \"string\" ? { message: options } : options;\n\t\n\t\tfor (let i = 0; i < times; i += 1) {\n\t\t\tlogger(message);\n\t\t}\n\t}\n\t`,\n\t\t\t\t\t\t\"index.ts\": `export * from \"./greet.js\";\nexport * from \"./types.js\";\n`,\n\t\t\t\t\t\t\"types.ts\": `export interface GreetOptions {\n\t\tlogger?: (message: string) => void;\n\t\tmessage: string;\n\t\ttimes?: number;\n\t}\n\t`,\n\t\t\t\t\t},\n\t\t\t\t\tusage: [\n\t\t\t\t\t\t`\\`\\`\\`shell\nnpm i ${options.repository}\n\\`\\`\\`\n\\`\\`\\`ts\nimport { greet } from \"${options.repository}\";\n\ngreet(\"Hello, world! ${options.emoji}\");\n\\`\\`\\``,\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockGitignore({\n\t\t\t\t\tignores: [\"/lib\"],\n\t\t\t\t}),\n\t\t\t\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [{ name: \"Type Check\", steps: [{ run: \"pnpm tsc\" }] }],\n\t\t\t\t}),\n\t\t\t\tblockKnip({\n\t\t\t\t\tproject: [\"src/**/*.ts\"],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\"typescript\"),\n\t\t\t\t\t\tfiles: [\"lib/\"],\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\ttsc: \"tsc\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockVitest({ coverage: { include: [\"src\"] }, exclude: [\"lib\"] }),\n\t\t\t\tblockVSCode({\n\t\t\t\t\tdebuggers: primaryBin\n\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tname: \"Debug Program\",\n\t\t\t\t\t\t\t\t\tpreLaunchTask: \"build\",\n\t\t\t\t\t\t\t\t\tprogram: primaryBin,\n\t\t\t\t\t\t\t\t\trequest: \"launch\",\n\t\t\t\t\t\t\t\t\tskipFiles: [\"<node_internals>/**\"],\n\t\t\t\t\t\t\t\t\ttype: \"node\",\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\tsettings: {\n\t\t\t\t\t\t\"typescript.tsdk\": \"node_modules/typescript/lib\",\n\t\t\t\t\t},\n\t\t\t\t\ttasks: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdetail: \"Build the project\",\n\t\t\t\t\t\t\tlabel: \"build\",\n\t\t\t\t\t\t\tscript: \"build\",\n\t\t\t\t\t\t\ttype: \"npm\",\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\"tsconfig.json\": JSON.stringify({\n\t\t\t\t\tcompilerOptions: sortKeys({\n\t\t\t\t\t\tdeclaration: true,\n\t\t\t\t\t\tdeclarationMap: true,\n\t\t\t\t\t\tesModuleInterop: true,\n\t\t\t\t\t\tmodule: \"NodeNext\",\n\t\t\t\t\t\tmoduleResolution: \"NodeNext\",\n\t\t\t\t\t\tnoEmit: true,\n\t\t\t\t\t\tresolveJsonModule: true,\n\t\t\t\t\t\tskipLibCheck: true,\n\t\t\t\t\t\tstrict: true,\n\t\t\t\t\t\ttarget: \"ES2022\",\n\t\t\t\t\t\t...compilerOptions,\n\t\t\t\t\t}),\n\t\t\t\t\tinclude: [\"src\"],\n\t\t\t\t}),\n\t\t\t},\n\t\t};\n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AAS,CAAC,MAAM,EAAE;KAAE,SAAS,CAAC,MAAM;KAAE,CAAC;IACjE,YAAY;KACX,WAAW,aACR,CACA;MACC,MAAM;MACN,eAAe;MACf,SAAS;MACT,SAAS;MACT,WAAW,CAAC,sBAAsB;MAClC,MAAM;MACN,CACD,GACA,EAAE;KACL,UAAU,EACT,mBAAmB,+BACnB;KACD,OAAO,CACN;MACC,QAAQ;MACR,OAAO;MACP,QAAQ;MACR,MAAM;MACN,CACD;KACD,CAAC;IACF;GACD,OAAO,EACN,iBAAiB,KAAK,UAAU;IAC/B,iBAAiB,SAAS;KACzB,aAAa;KACb,gBAAgB;KAChB,iBAAiB;KACjB,QAAQ;KACR,kBAAkB;KAClB,QAAQ;KACR,mBAAmB;KACnB,cAAc;KACd,QAAQ;KACR,QAAQ;KACR,GAAG;KACH,CAAC;IACF,SAAS,CAAC,MAAM;IAChB,CAAC,EACF;GACD;;CAEF,aAAa;AACZ,SAAO,EACN,QAAQ,CACP,qBAAqB,EACpB,WAAW,CAAC,MAAM,EAClB,CAAC,CACF,EACD;;CAEF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum57 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockVSCode.d.ts
|
|
4
|
-
declare const blockVSCode:
|
|
4
|
+
declare const blockVSCode: bingo_stratum57.BlockWithAddons<{
|
|
5
5
|
settings: Record<string, unknown>;
|
|
6
6
|
debuggers?: (Record<string, unknown> & {
|
|
7
7
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockVSCode.d.ts","names":[],"sources":["../../src/blocks/blockVSCode.ts"],"sourcesContent":[],"mappings":";;;cAOa,
|
|
1
|
+
{"version":3,"file":"blockVSCode.d.ts","names":[],"sources":["../../src/blocks/blockVSCode.ts"],"sourcesContent":[],"mappings":";;;cAOa,6BAAW;;;IAAX,IAAA,EAAA,MAgGX;;;;;;;;;;;;gBAhGsB,CAAA,EAAA,MAAA,GAAA,SAAA;MAAA,SAAA,CAAA,EAAA,MAAA,GAAA,SAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum56 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockVitest.d.ts
|
|
4
|
-
declare const blockVitest:
|
|
4
|
+
declare const blockVitest: bingo_stratum56.BlockWithAddons<{
|
|
5
5
|
exclude: string[];
|
|
6
6
|
actionSteps: ({
|
|
7
7
|
env?: Record<string, string> | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum112 from "bingo-stratum";
|
|
2
2
|
|
|
3
3
|
//#region src/blocks/blockWebExt.d.ts
|
|
4
|
-
declare const blockWebExt:
|
|
4
|
+
declare const blockWebExt: bingo_stratum112.BlockWithoutAddons<{
|
|
5
5
|
access: "public" | "restricted";
|
|
6
6
|
description: string;
|
|
7
7
|
directory: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockWebExt.d.ts","names":[],"sources":["../../src/blocks/blockWebExt.ts"],"sourcesContent":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"blockWebExt.d.ts","names":[],"sources":["../../src/blocks/blockWebExt.ts"],"sourcesContent":[],"mappings":";;;cAQa,8BAAW;;;EAAX,SAAA,EAAA,MA6GX;;;;;;;;;;EA7GsB,KAAA,EAAA"}
|
|
@@ -5,7 +5,6 @@ import { blockDevelopmentDocs } from "./blockDevelopmentDocs.js";
|
|
|
5
5
|
import { blockCSpell } from "./blockCSpell.js";
|
|
6
6
|
import { blockGitignore } from "./blockGitignore.js";
|
|
7
7
|
import { blockPrettier } from "./blockPrettier.js";
|
|
8
|
-
import { blockMarkdownlint } from "./blockMarkdownlint.js";
|
|
9
8
|
|
|
10
9
|
//#region src/blocks/blockWebExt.ts
|
|
11
10
|
const blockWebExt = base.createBlock({
|
|
@@ -78,7 +77,6 @@ Then upload that \`./web-ext-artifacts/refined_saved_replies-*.zip\` file to:
|
|
|
78
77
|
steps: [{ run: "pnpm dev" }, { run: "pnpm lint:web-ext" }]
|
|
79
78
|
}] }),
|
|
80
79
|
blockGitignore({ ignores: ["*.zip", "web-ext-artifacts"] }),
|
|
81
|
-
blockMarkdownlint({ ignores: ["assets/"] }),
|
|
82
80
|
blockPackageJson({ properties: {
|
|
83
81
|
devDependencies: {
|
|
84
82
|
esbuild: "^0.25.0",
|