create-typescript-app 2.53.0 → 2.55.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.js +0 -2
- package/lib/blocks/blockAllContributors.js.map +1 -1
- package/lib/blocks/blockAreTheTypesWrong.d.ts +2 -2
- package/lib/blocks/blockCSpell.d.ts +2 -2
- package/lib/blocks/blockCTATransitions.d.ts +2 -2
- package/lib/blocks/blockCodecov.d.ts +2 -2
- package/lib/blocks/blockCodecov.d.ts.map +1 -1
- package/lib/blocks/blockContributingDocs.d.ts +2 -2
- package/lib/blocks/blockContributingDocs.d.ts.map +1 -1
- package/lib/blocks/blockContributorCovenant.d.ts +2 -2
- package/lib/blocks/blockContributorCovenant.d.ts.map +1 -1
- package/lib/blocks/blockContributorCovenant.js +1 -2
- package/lib/blocks/blockContributorCovenant.js.map +1 -1
- package/lib/blocks/blockDevelopmentDocs.d.ts +2 -2
- package/lib/blocks/blockDevelopmentDocs.d.ts.map +1 -1
- package/lib/blocks/blockESLint.d.ts +4 -4
- 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/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/blockESLintPlugin.d.ts.map +1 -1
- package/lib/blocks/blockESLintRegexp.d.ts +2 -2
- package/lib/blocks/blockESLintYML.d.ts +2 -2
- package/lib/blocks/blockExampleFiles.d.ts +2 -2
- package/lib/blocks/blockFunding.d.ts +2 -2
- package/lib/blocks/blockGitHubActionsCI.d.ts +2 -2
- package/lib/blocks/blockGitHubApps.d.ts +2 -2
- package/lib/blocks/blockGitHubApps.d.ts.map +1 -1
- package/lib/blocks/blockGitHubIssueTemplates.d.ts +2 -2
- package/lib/blocks/blockGitHubPRTemplate.d.ts +2 -2
- package/lib/blocks/blockGitHubPRTemplate.d.ts.map +1 -1
- package/lib/blocks/blockGitignore.d.ts +2 -2
- package/lib/blocks/blockGitignore.d.ts.map +1 -1
- package/lib/blocks/blockKnip.d.ts +2 -2
- package/lib/blocks/blockKnip.d.ts.map +1 -1
- package/lib/blocks/blockKnip.js +2 -1
- package/lib/blocks/blockKnip.js.map +1 -1
- 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 +2 -2
- package/lib/blocks/blockPnpmDedupe.d.ts +2 -2
- package/lib/blocks/blockPrettier.d.ts +3 -3
- 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 +2 -2
- package/lib/blocks/blockReleaseIt.d.ts +2 -2
- 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/blockRenovate.d.ts.map +1 -1
- 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/blockTSDown.d.ts.map +1 -1
- package/lib/blocks/blockTemplatedWith.d.ts +2 -2
- package/lib/blocks/blockTemplatedWith.d.ts.map +1 -1
- 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/schemas.d.ts +2 -2
- package/lib/blocks/eslint/schemas.d.ts.map +1 -1
- package/lib/blocks/index.d.ts +4 -75
- 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 +1 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -2
- package/lib/index.js.map +1 -1
- package/lib/package.d.ts +0 -3
- package/lib/package.d.ts.map +1 -1
- package/lib/presets/common.d.ts +69 -69
- package/lib/presets/common.d.ts.map +1 -1
- package/lib/presets/everything.d.ts +69 -69
- package/lib/presets/everything.d.ts.map +1 -1
- package/lib/presets/everything.js +0 -2
- package/lib/presets/everything.js.map +1 -1
- package/lib/presets/index.d.ts +4 -4
- package/lib/presets/minimal.d.ts +69 -69
- package/lib/presets/minimal.d.ts.map +1 -1
- package/lib/template.d.ts +67 -67
- 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
package/lib/template.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as zod773 from "zod";
|
|
2
2
|
import * as bingo_stratum_lib_types_templates_js0 from "bingo-stratum/lib/types/templates.js";
|
|
3
3
|
|
|
4
4
|
//#region src/template.d.ts
|
|
5
5
|
declare const template: bingo_stratum_lib_types_templates_js0.StratumTemplate<{
|
|
6
|
-
access:
|
|
7
|
-
author:
|
|
8
|
-
bin:
|
|
9
|
-
contributors:
|
|
10
|
-
avatar_url:
|
|
11
|
-
contributions:
|
|
12
|
-
login:
|
|
13
|
-
name:
|
|
14
|
-
profile:
|
|
15
|
-
}, "strip",
|
|
6
|
+
access: zod773.ZodUnion<[zod773.ZodLiteral<"public">, zod773.ZodLiteral<"restricted">]>;
|
|
7
|
+
author: zod773.ZodOptional<zod773.ZodString>;
|
|
8
|
+
bin: zod773.ZodOptional<zod773.ZodUnion<[zod773.ZodString, zod773.ZodRecord<zod773.ZodString, zod773.ZodString>]>>;
|
|
9
|
+
contributors: zod773.ZodOptional<zod773.ZodArray<zod773.ZodObject<{
|
|
10
|
+
avatar_url: zod773.ZodString;
|
|
11
|
+
contributions: zod773.ZodArray<zod773.ZodString, "many">;
|
|
12
|
+
login: zod773.ZodString;
|
|
13
|
+
name: zod773.ZodString;
|
|
14
|
+
profile: zod773.ZodString;
|
|
15
|
+
}, "strip", zod773.ZodTypeAny, {
|
|
16
16
|
avatar_url: string;
|
|
17
17
|
contributions: string[];
|
|
18
18
|
login: string;
|
|
@@ -25,16 +25,16 @@ declare const template: bingo_stratum_lib_types_templates_js0.StratumTemplate<{
|
|
|
25
25
|
name: string;
|
|
26
26
|
profile: string;
|
|
27
27
|
}>, "many">>;
|
|
28
|
-
description:
|
|
29
|
-
directory:
|
|
30
|
-
documentation:
|
|
31
|
-
development:
|
|
32
|
-
readme:
|
|
33
|
-
additional:
|
|
34
|
-
explainer:
|
|
35
|
-
footnotes:
|
|
36
|
-
usage:
|
|
37
|
-
}, "strip",
|
|
28
|
+
description: zod773.ZodDefault<zod773.ZodString>;
|
|
29
|
+
directory: zod773.ZodString;
|
|
30
|
+
documentation: zod773.ZodObject<{
|
|
31
|
+
development: zod773.ZodOptional<zod773.ZodString>;
|
|
32
|
+
readme: zod773.ZodObject<{
|
|
33
|
+
additional: zod773.ZodOptional<zod773.ZodString>;
|
|
34
|
+
explainer: zod773.ZodOptional<zod773.ZodString>;
|
|
35
|
+
footnotes: zod773.ZodOptional<zod773.ZodString>;
|
|
36
|
+
usage: zod773.ZodOptional<zod773.ZodString>;
|
|
37
|
+
}, "strip", zod773.ZodTypeAny, {
|
|
38
38
|
additional?: string | undefined;
|
|
39
39
|
explainer?: string | undefined;
|
|
40
40
|
footnotes?: string | undefined;
|
|
@@ -45,7 +45,7 @@ declare const template: bingo_stratum_lib_types_templates_js0.StratumTemplate<{
|
|
|
45
45
|
footnotes?: string | undefined;
|
|
46
46
|
usage?: string | undefined;
|
|
47
47
|
}>;
|
|
48
|
-
}, "strip",
|
|
48
|
+
}, "strip", zod773.ZodTypeAny, {
|
|
49
49
|
readme: {
|
|
50
50
|
additional?: string | undefined;
|
|
51
51
|
explainer?: string | undefined;
|
|
@@ -62,10 +62,10 @@ declare const template: bingo_stratum_lib_types_templates_js0.StratumTemplate<{
|
|
|
62
62
|
};
|
|
63
63
|
development?: string | undefined;
|
|
64
64
|
}>;
|
|
65
|
-
email:
|
|
66
|
-
github:
|
|
67
|
-
npm:
|
|
68
|
-
}, "strip",
|
|
65
|
+
email: zod773.ZodEffects<zod773.ZodUnion<[zod773.ZodString, zod773.ZodObject<{
|
|
66
|
+
github: zod773.ZodString;
|
|
67
|
+
npm: zod773.ZodString;
|
|
68
|
+
}, "strip", zod773.ZodTypeAny, {
|
|
69
69
|
github: string;
|
|
70
70
|
npm: string;
|
|
71
71
|
}, {
|
|
@@ -78,12 +78,12 @@ declare const template: bingo_stratum_lib_types_templates_js0.StratumTemplate<{
|
|
|
78
78
|
github: string;
|
|
79
79
|
npm: string;
|
|
80
80
|
}>;
|
|
81
|
-
emoji:
|
|
82
|
-
existingLabels:
|
|
83
|
-
color:
|
|
84
|
-
description:
|
|
85
|
-
name:
|
|
86
|
-
}, "strip",
|
|
81
|
+
emoji: zod773.ZodOptional<zod773.ZodString>;
|
|
82
|
+
existingLabels: zod773.ZodOptional<zod773.ZodArray<zod773.ZodObject<{
|
|
83
|
+
color: zod773.ZodString;
|
|
84
|
+
description: zod773.ZodString;
|
|
85
|
+
name: zod773.ZodString;
|
|
86
|
+
}, "strip", zod773.ZodTypeAny, {
|
|
87
87
|
name: string;
|
|
88
88
|
description: string;
|
|
89
89
|
color: string;
|
|
@@ -92,24 +92,24 @@ declare const template: bingo_stratum_lib_types_templates_js0.StratumTemplate<{
|
|
|
92
92
|
description: string;
|
|
93
93
|
color: string;
|
|
94
94
|
}>, "many">>;
|
|
95
|
-
funding:
|
|
96
|
-
guide:
|
|
97
|
-
href:
|
|
98
|
-
title:
|
|
99
|
-
}, "strip",
|
|
95
|
+
funding: zod773.ZodOptional<zod773.ZodString>;
|
|
96
|
+
guide: zod773.ZodOptional<zod773.ZodObject<{
|
|
97
|
+
href: zod773.ZodString;
|
|
98
|
+
title: zod773.ZodString;
|
|
99
|
+
}, "strip", zod773.ZodTypeAny, {
|
|
100
100
|
href: string;
|
|
101
101
|
title: string;
|
|
102
102
|
}, {
|
|
103
103
|
href: string;
|
|
104
104
|
title: string;
|
|
105
105
|
}>>;
|
|
106
|
-
keywords:
|
|
107
|
-
logo:
|
|
108
|
-
alt:
|
|
109
|
-
height:
|
|
110
|
-
src:
|
|
111
|
-
width:
|
|
112
|
-
}, "strip",
|
|
106
|
+
keywords: zod773.ZodOptional<zod773.ZodArray<zod773.ZodString, "many">>;
|
|
107
|
+
logo: zod773.ZodOptional<zod773.ZodObject<{
|
|
108
|
+
alt: zod773.ZodString;
|
|
109
|
+
height: zod773.ZodOptional<zod773.ZodNumber>;
|
|
110
|
+
src: zod773.ZodString;
|
|
111
|
+
width: zod773.ZodOptional<zod773.ZodNumber>;
|
|
112
|
+
}, "strip", zod773.ZodTypeAny, {
|
|
113
113
|
alt: string;
|
|
114
114
|
src: string;
|
|
115
115
|
height?: number | undefined;
|
|
@@ -120,24 +120,24 @@ declare const template: bingo_stratum_lib_types_templates_js0.StratumTemplate<{
|
|
|
120
120
|
height?: number | undefined;
|
|
121
121
|
width?: number | undefined;
|
|
122
122
|
}>>;
|
|
123
|
-
node:
|
|
124
|
-
minimum:
|
|
125
|
-
pinned:
|
|
126
|
-
}, "strip",
|
|
123
|
+
node: zod773.ZodObject<{
|
|
124
|
+
minimum: zod773.ZodString;
|
|
125
|
+
pinned: zod773.ZodOptional<zod773.ZodString>;
|
|
126
|
+
}, "strip", zod773.ZodTypeAny, {
|
|
127
127
|
minimum: string;
|
|
128
128
|
pinned?: string | undefined;
|
|
129
129
|
}, {
|
|
130
130
|
minimum: string;
|
|
131
131
|
pinned?: string | undefined;
|
|
132
132
|
}>;
|
|
133
|
-
owner:
|
|
134
|
-
packageData:
|
|
135
|
-
dependencies:
|
|
136
|
-
devDependencies:
|
|
137
|
-
peerDependencies:
|
|
138
|
-
peerDependenciesMeta:
|
|
139
|
-
scripts:
|
|
140
|
-
}, "strip",
|
|
133
|
+
owner: zod773.ZodString;
|
|
134
|
+
packageData: zod773.ZodOptional<zod773.ZodObject<{
|
|
135
|
+
dependencies: zod773.ZodOptional<zod773.ZodRecord<zod773.ZodString, zod773.ZodString>>;
|
|
136
|
+
devDependencies: zod773.ZodOptional<zod773.ZodRecord<zod773.ZodString, zod773.ZodString>>;
|
|
137
|
+
peerDependencies: zod773.ZodOptional<zod773.ZodRecord<zod773.ZodString, zod773.ZodString>>;
|
|
138
|
+
peerDependenciesMeta: zod773.ZodOptional<zod773.ZodRecord<zod773.ZodString, zod773.ZodUnknown>>;
|
|
139
|
+
scripts: zod773.ZodOptional<zod773.ZodRecord<zod773.ZodString, zod773.ZodOptional<zod773.ZodString>>>;
|
|
140
|
+
}, "strip", zod773.ZodTypeAny, {
|
|
141
141
|
dependencies?: Record<string, string> | undefined;
|
|
142
142
|
devDependencies?: Record<string, string> | undefined;
|
|
143
143
|
peerDependencies?: Record<string, string> | undefined;
|
|
@@ -150,17 +150,17 @@ declare const template: bingo_stratum_lib_types_templates_js0.StratumTemplate<{
|
|
|
150
150
|
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
151
151
|
scripts?: Record<string, string | undefined> | undefined;
|
|
152
152
|
}>>;
|
|
153
|
-
pnpm:
|
|
154
|
-
repository:
|
|
155
|
-
rulesetId:
|
|
156
|
-
title:
|
|
157
|
-
type:
|
|
158
|
-
version:
|
|
159
|
-
words:
|
|
160
|
-
workflowsVersions:
|
|
161
|
-
hash:
|
|
162
|
-
pinned:
|
|
163
|
-
}, "strip",
|
|
153
|
+
pnpm: zod773.ZodOptional<zod773.ZodString>;
|
|
154
|
+
repository: zod773.ZodString;
|
|
155
|
+
rulesetId: zod773.ZodOptional<zod773.ZodString>;
|
|
156
|
+
title: zod773.ZodString;
|
|
157
|
+
type: zod773.ZodOptional<zod773.ZodUnion<[zod773.ZodLiteral<"commonjs">, zod773.ZodLiteral<"module">]>>;
|
|
158
|
+
version: zod773.ZodOptional<zod773.ZodString>;
|
|
159
|
+
words: zod773.ZodOptional<zod773.ZodArray<zod773.ZodString, "many">>;
|
|
160
|
+
workflowsVersions: zod773.ZodOptional<zod773.ZodRecord<zod773.ZodString, zod773.ZodRecord<zod773.ZodString, zod773.ZodObject<{
|
|
161
|
+
hash: zod773.ZodOptional<zod773.ZodString>;
|
|
162
|
+
pinned: zod773.ZodOptional<zod773.ZodBoolean>;
|
|
163
|
+
}, "strip", zod773.ZodTypeAny, {
|
|
164
164
|
pinned?: boolean | undefined;
|
|
165
165
|
hash?: string | undefined;
|
|
166
166
|
}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-typescript-app",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.55.0",
|
|
4
4
|
"description": "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 🎁",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"format": "prettier .",
|
|
23
23
|
"lint": "eslint . --max-warnings 0",
|
|
24
24
|
"lint:knip": "knip",
|
|
25
|
-
"lint:md": "markdownlint \"**/*.md\" \".github/**/*.md\"",
|
|
26
25
|
"lint:packages": "pnpm dedupe --check",
|
|
27
26
|
"lint:spelling": "cspell \"**\" \".github/**/*\"",
|
|
28
27
|
"prepare": "husky",
|
|
@@ -99,8 +98,6 @@
|
|
|
99
98
|
"husky": "9.1.7",
|
|
100
99
|
"knip": "5.71.0",
|
|
101
100
|
"lint-staged": "16.2.7",
|
|
102
|
-
"markdownlint": "0.39.0",
|
|
103
|
-
"markdownlint-cli": "0.46.0",
|
|
104
101
|
"prettier": "3.7.3",
|
|
105
102
|
"prettier-plugin-curly": "0.4.1",
|
|
106
103
|
"prettier-plugin-packagejson": "2.5.20",
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import * as bingo_stratum31 from "bingo-stratum";
|
|
2
|
-
|
|
3
|
-
//#region src/blocks/blockMarkdownlint.d.ts
|
|
4
|
-
declare const blockMarkdownlint: bingo_stratum31.BlockWithAddons<{
|
|
5
|
-
ignores: string[];
|
|
6
|
-
}, {
|
|
7
|
-
access: "public" | "restricted";
|
|
8
|
-
description: string;
|
|
9
|
-
directory: string;
|
|
10
|
-
documentation: {
|
|
11
|
-
readme: {
|
|
12
|
-
additional?: string | undefined;
|
|
13
|
-
explainer?: string | undefined;
|
|
14
|
-
footnotes?: string | undefined;
|
|
15
|
-
usage?: string | undefined;
|
|
16
|
-
};
|
|
17
|
-
development?: string | undefined;
|
|
18
|
-
};
|
|
19
|
-
email: {
|
|
20
|
-
github: string;
|
|
21
|
-
npm: string;
|
|
22
|
-
};
|
|
23
|
-
title: string;
|
|
24
|
-
node: {
|
|
25
|
-
minimum: string;
|
|
26
|
-
pinned?: string | undefined;
|
|
27
|
-
};
|
|
28
|
-
owner: string;
|
|
29
|
-
repository: string;
|
|
30
|
-
type?: "commonjs" | "module" | undefined;
|
|
31
|
-
author?: string | undefined;
|
|
32
|
-
bin?: string | Record<string, string> | undefined;
|
|
33
|
-
contributors?: {
|
|
34
|
-
avatar_url: string;
|
|
35
|
-
contributions: string[];
|
|
36
|
-
login: string;
|
|
37
|
-
name: string;
|
|
38
|
-
profile: string;
|
|
39
|
-
}[] | undefined;
|
|
40
|
-
emoji?: string | undefined;
|
|
41
|
-
existingLabels?: {
|
|
42
|
-
name: string;
|
|
43
|
-
description: string;
|
|
44
|
-
color: string;
|
|
45
|
-
}[] | undefined;
|
|
46
|
-
funding?: string | undefined;
|
|
47
|
-
guide?: {
|
|
48
|
-
href: string;
|
|
49
|
-
title: string;
|
|
50
|
-
} | undefined;
|
|
51
|
-
keywords?: string[] | undefined;
|
|
52
|
-
logo?: {
|
|
53
|
-
alt: string;
|
|
54
|
-
src: string;
|
|
55
|
-
height?: number | undefined;
|
|
56
|
-
width?: number | undefined;
|
|
57
|
-
} | undefined;
|
|
58
|
-
packageData?: {
|
|
59
|
-
dependencies?: Record<string, string> | undefined;
|
|
60
|
-
devDependencies?: Record<string, string> | undefined;
|
|
61
|
-
peerDependencies?: Record<string, string> | undefined;
|
|
62
|
-
peerDependenciesMeta?: Record<string, unknown> | undefined;
|
|
63
|
-
scripts?: Record<string, string | undefined> | undefined;
|
|
64
|
-
} | undefined;
|
|
65
|
-
pnpm?: string | undefined;
|
|
66
|
-
rulesetId?: string | undefined;
|
|
67
|
-
version?: string | undefined;
|
|
68
|
-
words?: string[] | undefined;
|
|
69
|
-
workflowsVersions?: Record<string, Record<string, {
|
|
70
|
-
pinned?: boolean | undefined;
|
|
71
|
-
hash?: string | undefined;
|
|
72
|
-
}>> | undefined;
|
|
73
|
-
}>;
|
|
74
|
-
//#endregion
|
|
75
|
-
export { blockMarkdownlint };
|
|
76
|
-
//# sourceMappingURL=blockMarkdownlint.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockMarkdownlint.d.ts","names":[],"sources":["../../src/blocks/blockMarkdownlint.ts"],"sourcesContent":[],"mappings":";;;cAaa,mCAAiB;;;EAAjB,MAAA,EAAA,QAAA,GAAA,YA0FX;;;;;;;;;;IA1F4B,WAAA,CAAA,EAAA,MAAA,GAAA,SAAA"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { getPackageDependencies } from "../data/packageData.js";
|
|
2
|
-
import { base } from "../base.js";
|
|
3
|
-
import { intakeFile } from "./intake/intakeFile.js";
|
|
4
|
-
import { CommandPhase } from "./phases.js";
|
|
5
|
-
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.js";
|
|
6
|
-
import { blockPackageJson } from "./blockPackageJson.js";
|
|
7
|
-
import { blockDevelopmentDocs } from "./blockDevelopmentDocs.js";
|
|
8
|
-
import { blockRemoveWorkflows } from "./blockRemoveWorkflows.js";
|
|
9
|
-
import { blockVSCode } from "./blockVSCode.js";
|
|
10
|
-
import { formatIgnoreFile } from "./files/formatIgnoreFile.js";
|
|
11
|
-
import { z } from "zod";
|
|
12
|
-
|
|
13
|
-
//#region src/blocks/blockMarkdownlint.ts
|
|
14
|
-
const blockMarkdownlint = base.createBlock({
|
|
15
|
-
about: { name: "Markdownlint" },
|
|
16
|
-
addons: { ignores: z.array(z.string()).default([]) },
|
|
17
|
-
intake({ files }) {
|
|
18
|
-
const markdownlintignoreRaw = intakeFile(files, [".markdownlintignore"]);
|
|
19
|
-
if (!markdownlintignoreRaw) return;
|
|
20
|
-
return { ignores: markdownlintignoreRaw[0].split("\n").filter(Boolean) };
|
|
21
|
-
},
|
|
22
|
-
produce({ addons }) {
|
|
23
|
-
const { ignores } = addons;
|
|
24
|
-
return {
|
|
25
|
-
addons: [
|
|
26
|
-
blockDevelopmentDocs({ sections: { Linting: { contents: { items: [`- \`pnpm lint:md\` ([Markdownlint](https://github.com/DavidAnson/markdownlint)): Checks Markdown source files`] } } } }),
|
|
27
|
-
blockGitHubActionsCI({ jobs: [{
|
|
28
|
-
name: "Lint Markdown",
|
|
29
|
-
steps: [{ run: "pnpm lint:md" }]
|
|
30
|
-
}] }),
|
|
31
|
-
blockPackageJson({ properties: {
|
|
32
|
-
devDependencies: getPackageDependencies("markdownlint", "markdownlint-cli"),
|
|
33
|
-
scripts: { "lint:md": "markdownlint \"**/*.md\" \".github/**/*.md\"" }
|
|
34
|
-
} }),
|
|
35
|
-
blockVSCode({ extensions: ["DavidAnson.vscode-markdownlint"] })
|
|
36
|
-
],
|
|
37
|
-
files: {
|
|
38
|
-
".markdownlint.json": JSON.stringify({
|
|
39
|
-
extends: "markdownlint/style/prettier",
|
|
40
|
-
"first-line-h1": false,
|
|
41
|
-
"no-inline-html": false,
|
|
42
|
-
"table-column-style": false
|
|
43
|
-
}),
|
|
44
|
-
".markdownlintignore": formatIgnoreFile(Array.from(new Set(["node_modules/", ...ignores])).sort())
|
|
45
|
-
},
|
|
46
|
-
scripts: [{
|
|
47
|
-
commands: ["pnpm lint:md --fix"],
|
|
48
|
-
phase: CommandPhase.Process
|
|
49
|
-
}]
|
|
50
|
-
};
|
|
51
|
-
},
|
|
52
|
-
transition() {
|
|
53
|
-
return { addons: [blockRemoveWorkflows({ workflows: [
|
|
54
|
-
"lint-md",
|
|
55
|
-
"lint-markdown",
|
|
56
|
-
"lint-markdownlint",
|
|
57
|
-
"markdownlint"
|
|
58
|
-
] })] };
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
//#endregion
|
|
63
|
-
export { blockMarkdownlint };
|
|
64
|
-
//# sourceMappingURL=blockMarkdownlint.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockMarkdownlint.js","names":[],"sources":["../../src/blocks/blockMarkdownlint.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockRemoveWorkflows } from \"./blockRemoveWorkflows.js\";\nimport { blockVSCode } from \"./blockVSCode.js\";\nimport { formatIgnoreFile } from \"./files/formatIgnoreFile.js\";\nimport { intakeFile } from \"./intake/intakeFile.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockMarkdownlint = base.createBlock({\n\tabout: {\n\t\tname: \"Markdownlint\",\n\t},\n\taddons: {\n\t\tignores: z.array(z.string()).default([]),\n\t},\n\tintake({ files }) {\n\t\tconst markdownlintignoreRaw = intakeFile(files, [\".markdownlintignore\"]);\n\n\t\tif (!markdownlintignoreRaw) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\treturn {\n\t\t\tignores: markdownlintignoreRaw[0].split(\"\\n\").filter(Boolean),\n\t\t};\n\t},\n\tproduce({ addons }) {\n\t\tconst { ignores } = 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:md\\` ([Markdownlint](https://github.com/DavidAnson/markdownlint)): Checks Markdown 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\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Lint Markdown\",\n\t\t\t\t\t\t\tsteps: [{ run: \"pnpm lint:md\" }],\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\"markdownlint\",\n\t\t\t\t\t\t\t\"markdownlint-cli\",\n\t\t\t\t\t\t),\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\t\"lint:md\": 'markdownlint \"**/*.md\" \".github/**/*.md\"',\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: [\"DavidAnson.vscode-markdownlint\"],\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\".markdownlint.json\": JSON.stringify({\n\t\t\t\t\textends: \"markdownlint/style/prettier\",\n\t\t\t\t\t\"first-line-h1\": false,\n\t\t\t\t\t\"no-inline-html\": false,\n\t\t\t\t\t\"table-column-style\": false,\n\t\t\t\t}),\n\t\t\t\t\".markdownlintignore\": formatIgnoreFile(\n\t\t\t\t\tArray.from(new Set([\"node_modules/\", ...ignores])).sort(),\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 lint:md --fix\"],\n\t\t\t\t\tphase: CommandPhase.Process,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockRemoveWorkflows({\n\t\t\t\t\tworkflows: [\n\t\t\t\t\t\t\"lint-md\",\n\t\t\t\t\t\t\"lint-markdown\",\n\t\t\t\t\t\t\"lint-markdownlint\",\n\t\t\t\t\t\t\"markdownlint\",\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;;;;;;;;AAaA,MAAa,oBAAoB,KAAK,YAAY;CACjD,OAAO,EACN,MAAM,gBACN;CACD,QAAQ,EACP,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,EACxC;CACD,OAAO,EAAE,SAAS;EACjB,MAAM,wBAAwB,WAAW,OAAO,CAAC,sBAAsB,CAAC;AAExE,MAAI,CAAC,sBACJ;AAGD,SAAO,EACN,SAAS,sBAAsB,GAAG,MAAM,KAAK,CAAC,OAAO,QAAQ,EAC7D;;CAEF,QAAQ,EAAE,UAAU;EACnB,MAAM,EAAE,YAAY;AAEpB,SAAO;GACN,QAAQ;IACP,qBAAqB,EACpB,UAAU,EACT,SAAS,EACR,UAAU,EACT,OAAO,CACN,gHACA,EACD,EACD,EACD,EACD,CAAC;IACF,qBAAqB,EACpB,MAAM,CACL;KACC,MAAM;KACN,OAAO,CAAC,EAAE,KAAK,gBAAgB,CAAC;KAChC,CACD,EACD,CAAC;IACF,iBAAiB,EAChB,YAAY;KACX,iBAAiB,uBAChB,gBACA,mBACA;KACD,SAAS,EACR,WAAW,gDACX;KACD,EACD,CAAC;IACF,YAAY,EACX,YAAY,CAAC,iCAAiC,EAC9C,CAAC;IACF;GACD,OAAO;IACN,sBAAsB,KAAK,UAAU;KACpC,SAAS;KACT,iBAAiB;KACjB,kBAAkB;KAClB,sBAAsB;KACtB,CAAC;IACF,uBAAuB,iBACtB,MAAM,KAAK,IAAI,IAAI,CAAC,iBAAiB,GAAG,QAAQ,CAAC,CAAC,CAAC,MAAM,CACzD;IACD;GACD,SAAS,CACR;IACC,UAAU,CAAC,qBAAqB;IAChC,OAAO,aAAa;IACpB,CACD;GACD;;CAEF,aAAa;AACZ,SAAO,EACN,QAAQ,CACP,qBAAqB,EACpB,WAAW;GACV;GACA;GACA;GACA;GACA,EACD,CAAC,CACF,EACD;;CAEF,CAAC"}
|