create-typescript-app 1.80.0 → 1.81.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 +3 -2
- package/lib/next/base.d.ts +2 -1
- package/lib/next/base.js +10 -6
- package/lib/next/base.js.map +1 -1
- package/lib/next/blocks/blockAllContributors.d.ts +2 -1
- package/lib/next/blocks/blockAllContributors.js +1 -5
- package/lib/next/blocks/blockAllContributors.js.map +1 -1
- package/lib/next/blocks/blockAreTheTypesWrong.d.ts +2 -1
- package/lib/next/blocks/blockCSpell.d.ts +2 -1
- package/lib/next/blocks/blockContributingDocs.d.ts +2 -1
- package/lib/next/blocks/blockContributorCovenant.d.ts +2 -1
- package/lib/next/blocks/blockDevelopmentDocs.d.ts +2 -1
- package/lib/next/blocks/blockESLint.d.ts +2 -1
- package/lib/next/blocks/blockESLint.js +4 -2
- package/lib/next/blocks/blockESLint.js.map +1 -1
- package/lib/next/blocks/blockESLintComments.d.ts +2 -1
- package/lib/next/blocks/blockESLintJSDoc.d.ts +2 -1
- package/lib/next/blocks/blockESLintJSONC.d.ts +2 -1
- package/lib/next/blocks/blockESLintMarkdown.d.ts +2 -1
- package/lib/next/blocks/blockESLintMoreStyling.d.ts +2 -1
- package/lib/next/blocks/blockESLintNode.d.ts +2 -1
- package/lib/next/blocks/blockESLintPackageJson.d.ts +2 -1
- package/lib/next/blocks/blockESLintPerfectionist.d.ts +2 -1
- package/lib/next/blocks/blockESLintRegexp.d.ts +2 -1
- package/lib/next/blocks/blockESLintYML.d.ts +2 -1
- package/lib/next/blocks/blockExampleFiles.d.ts +2 -1
- package/lib/next/blocks/blockFunding.d.ts +2 -1
- package/lib/next/blocks/blockGitHubActionsCI.d.ts +3 -1
- package/lib/next/blocks/blockGitHubActionsCI.js +1 -0
- package/lib/next/blocks/blockGitHubActionsCI.js.map +1 -1
- package/lib/next/blocks/blockGitHubApps.d.ts +2 -1
- package/lib/next/blocks/blockGitHubIssueTemplates.d.ts +2 -1
- package/lib/next/blocks/blockGitHubPRTemplate.d.ts +2 -1
- package/lib/next/blocks/blockGitignore.d.ts +2 -1
- package/lib/next/blocks/blockKnip.d.ts +2 -1
- package/lib/next/blocks/blockKnip.js +11 -0
- package/lib/next/blocks/blockKnip.js.map +1 -1
- package/lib/next/blocks/blockMITLicense.d.ts +2 -1
- package/lib/next/blocks/blockMarkdownlint.d.ts +2 -1
- package/lib/next/blocks/blockNvmrc.d.ts +2 -1
- package/lib/next/blocks/blockPRCompliance.d.ts +2 -1
- package/lib/next/blocks/blockPackageJson.d.ts +2 -1
- package/lib/next/blocks/blockPackageJson.js +3 -1
- package/lib/next/blocks/blockPackageJson.js.map +1 -1
- package/lib/next/blocks/blockPnpmDedupe.d.ts +2 -1
- package/lib/next/blocks/blockPrettier.d.ts +2 -1
- package/lib/next/blocks/blockPrettier.js +2 -2
- package/lib/next/blocks/blockPrettier.js.map +1 -1
- package/lib/next/blocks/blockPrettierPluginCurly.d.ts +2 -1
- package/lib/next/blocks/blockPrettierPluginPackageJson.d.ts +2 -1
- package/lib/next/blocks/blockPrettierPluginSh.d.ts +2 -1
- package/lib/next/blocks/blockREADME.d.ts +2 -1
- package/lib/next/blocks/blockREADME.js +1 -8
- package/lib/next/blocks/blockREADME.js.map +1 -1
- package/lib/next/blocks/blockReleaseIt.d.ts +2 -1
- package/lib/next/blocks/blockReleaseIt.js +13 -1
- package/lib/next/blocks/blockReleaseIt.js.map +1 -1
- package/lib/next/blocks/blockRenovate.d.ts +2 -1
- package/lib/next/blocks/blockRepositoryBranchRuleset.d.ts +2 -1
- package/lib/next/blocks/blockRepositoryLabels.d.ts +2 -1
- package/lib/next/blocks/blockRepositorySecrets.d.ts +2 -1
- package/lib/next/blocks/blockRepositorySettings.d.ts +2 -1
- package/lib/next/blocks/blockRepositorySettings.js +3 -1
- package/lib/next/blocks/blockRepositorySettings.js.map +1 -1
- package/lib/next/blocks/blockSecurityDocs.d.ts +2 -1
- package/lib/next/blocks/blockTSup.d.ts +2 -1
- package/lib/next/blocks/blockTemplatedBy.d.ts +2 -1
- package/lib/next/blocks/blockTypeScript.d.ts +2 -1
- package/lib/next/blocks/blockTypeScript.js +1 -4
- package/lib/next/blocks/blockTypeScript.js.map +1 -1
- package/lib/next/blocks/blockVSCode.d.ts +2 -1
- package/lib/next/blocks/blockVitest.d.ts +8 -4
- package/lib/next/blocks/blockVitest.js +18 -14
- package/lib/next/blocks/blockVitest.js.map +1 -1
- package/lib/next/blocks/sourcePackageJson.d.ts +3 -1
- package/lib/next/presets/presetCommon.d.ts +2 -1
- package/lib/next/presets/presetEverything.d.ts +2 -1
- package/lib/next/presets/presetMinimal.d.ts +2 -1
- package/lib/next/readDescription.d.ts +1 -1
- package/lib/next/readDescription.js +9 -1
- package/lib/next/readDescription.js.map +1 -1
- package/lib/next/readDescriptionFromReadme.d.ts +3 -0
- package/lib/next/readDescriptionFromReadme.js +18 -0
- package/lib/next/readDescriptionFromReadme.js.map +1 -0
- package/lib/next/template.d.ts +2 -1
- package/lib/shared/options/createOptionDefaults/getUsageFromReadme.d.ts +3 -0
- package/lib/shared/options/createOptionDefaults/getUsageFromReadme.js +21 -0
- package/lib/shared/options/createOptionDefaults/getUsageFromReadme.js.map +1 -0
- package/lib/shared/options/createOptionDefaults/index.d.ts +1 -0
- package/lib/shared/options/createOptionDefaults/index.js +4 -2
- package/lib/shared/options/createOptionDefaults/index.js.map +1 -1
- package/lib/shared/options/createOptionDefaults/readDefaultsFromReadme.d.ts +2 -1
- package/lib/shared/options/createOptionDefaults/readDefaultsFromReadme.js +12 -3
- package/lib/shared/options/createOptionDefaults/readDefaultsFromReadme.js.map +1 -1
- package/lib/steps/uninstallPackages.js +2 -0
- package/lib/steps/uninstallPackages.js.map +1 -1
- package/lib/steps/writing/creation/rootFiles.js +13 -3
- package/lib/steps/writing/creation/rootFiles.js.map +1 -1
- package/package.json +3 -1
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockPrettierPluginCurly: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
access: "public" | "restricted";
|
|
5
6
|
directory: string;
|
|
6
7
|
email: {
|
|
7
8
|
github: string;
|
|
@@ -10,7 +11,6 @@ declare const blockPrettierPluginCurly: create.BlockWithoutAddons<{
|
|
|
10
11
|
title: string;
|
|
11
12
|
owner: string;
|
|
12
13
|
repository: string;
|
|
13
|
-
access?: "public" | "restricted" | undefined;
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
@@ -43,6 +43,7 @@ declare const blockPrettierPluginCurly: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
usage?: string | undefined;
|
|
46
47
|
version?: string | undefined;
|
|
47
48
|
}>;
|
|
48
49
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockPrettierPluginPackageJson: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
access: "public" | "restricted";
|
|
5
6
|
directory: string;
|
|
6
7
|
email: {
|
|
7
8
|
github: string;
|
|
@@ -10,7 +11,6 @@ declare const blockPrettierPluginPackageJson: create.BlockWithoutAddons<{
|
|
|
10
11
|
title: string;
|
|
11
12
|
owner: string;
|
|
12
13
|
repository: string;
|
|
13
|
-
access?: "public" | "restricted" | undefined;
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
@@ -43,6 +43,7 @@ declare const blockPrettierPluginPackageJson: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
usage?: string | undefined;
|
|
46
47
|
version?: string | undefined;
|
|
47
48
|
}>;
|
|
48
49
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockPrettierPluginSh: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
access: "public" | "restricted";
|
|
5
6
|
directory: string;
|
|
6
7
|
email: {
|
|
7
8
|
github: string;
|
|
@@ -10,7 +11,6 @@ declare const blockPrettierPluginSh: create.BlockWithoutAddons<{
|
|
|
10
11
|
title: string;
|
|
11
12
|
owner: string;
|
|
12
13
|
repository: string;
|
|
13
|
-
access?: "public" | "restricted" | undefined;
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
@@ -43,6 +43,7 @@ declare const blockPrettierPluginSh: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
usage?: string | undefined;
|
|
46
47
|
version?: string | undefined;
|
|
47
48
|
}>;
|
|
48
49
|
|
|
@@ -4,6 +4,7 @@ declare const blockREADME: create.BlockWithAddons<{
|
|
|
4
4
|
notices: string[];
|
|
5
5
|
}, {
|
|
6
6
|
description: string;
|
|
7
|
+
access: "public" | "restricted";
|
|
7
8
|
directory: string;
|
|
8
9
|
email: {
|
|
9
10
|
github: string;
|
|
@@ -12,7 +13,6 @@ declare const blockREADME: create.BlockWithAddons<{
|
|
|
12
13
|
title: string;
|
|
13
14
|
owner: string;
|
|
14
15
|
repository: string;
|
|
15
|
-
access?: "public" | "restricted" | undefined;
|
|
16
16
|
author?: string | undefined;
|
|
17
17
|
bin?: string | undefined;
|
|
18
18
|
contributors?: {
|
|
@@ -45,6 +45,7 @@ declare const blockREADME: create.BlockWithAddons<{
|
|
|
45
45
|
devDependencies?: Record<string, string> | undefined;
|
|
46
46
|
scripts?: Record<string, string> | undefined;
|
|
47
47
|
} | undefined;
|
|
48
|
+
usage?: string | undefined;
|
|
48
49
|
version?: string | undefined;
|
|
49
50
|
}>;
|
|
50
51
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/next/blocks/blockREADME.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\n\nfunction printAttributes(attributes: Record<string, number | string>) {\n\treturn Object.entries(attributes)\n\t\t.map(([key, value]) => `${key}=\"${value}\"`)\n\t\t.join(\" \");\n}\n\nexport const blockREADME = base.createBlock({\n\tabout: {\n\t\tname: \"README.md\",\n\t},\n\taddons: {\n\t\tnotices: z.array(z.string()).default([]),\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { notices } = addons;\n\n\t\tconst logo = options.logo\n\t\t\t? `<img ${printAttributes({ align: \"right\", ...options.logo })}>`\n\t\t\t: \"\";\n\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\t\"README.md\": `<h1 align=\"center\">${options.title}</h1>\n\n<p align=\"center\">${options.description}</p>\n\n<p align=\"center\">\n\t<!-- prettier-ignore-start -->\n\t<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n\t<!-- prettier-ignore-end -->\n\t<a href=\"https://github.com/${options.owner}/${options.repository}/blob/main/.github/CODE_OF_CONDUCT.md\" target=\"_blank\"><img alt=\"🤝 Code of Conduct: Kept\" src=\"https://img.shields.io/badge/%F0%9F%A4%9D_code_of_conduct-kept-21bb42\" /></a>\n\t<a href=\"https://codecov.io/gh/${options.owner}/${options.repository}\" target=\"_blank\"><img alt=\"🧪 Coverage\" src=\"https://img.shields.io/codecov/c/github/${options.owner}/${options.repository}?label=%F0%9F%A7%AA%20coverage\" /></a>\n\t<a href=\"https://github.com/${options.owner}/${options.repository}/blob/main/LICENSE.md\" target=\"_blank\"><img alt=\"📝 License: MIT\" src=\"https://img.shields.io/badge/%F0%9F%93%9D_license-MIT-21bb42.svg\"></a>\n\t<a href=\"http://npmjs.com/package/${options.repository}\"><img alt=\"📦 npm version\" src=\"https://img.shields.io/npm/v/${options.repository}?color=21bb42&label=%F0%9F%93%A6%20npm\" /></a>\n\t<img alt=\"💪 TypeScript: Strict\" src=\"https://img.shields.io/badge/%F0%9F%92%AA_typescript-strict-21bb42.svg\" />\n</p>\n\n${logo}\n\n## Usage\n\n
|
|
1
|
+
{"version":3,"sources":["../../../src/next/blocks/blockREADME.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\n\nfunction printAttributes(attributes: Record<string, number | string>) {\n\treturn Object.entries(attributes)\n\t\t.map(([key, value]) => `${key}=\"${value}\"`)\n\t\t.join(\" \");\n}\n\nexport const blockREADME = base.createBlock({\n\tabout: {\n\t\tname: \"README.md\",\n\t},\n\taddons: {\n\t\tnotices: z.array(z.string()).default([]),\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { notices } = addons;\n\n\t\tconst logo = options.logo\n\t\t\t? `<img ${printAttributes({ align: \"right\", ...options.logo })}>`\n\t\t\t: \"\";\n\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\t\"README.md\": `<h1 align=\"center\">${options.title}</h1>\n\n<p align=\"center\">${options.description}</p>\n\n<p align=\"center\">\n\t<!-- prettier-ignore-start -->\n\t<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n\t<!-- prettier-ignore-end -->\n\t<a href=\"https://github.com/${options.owner}/${options.repository}/blob/main/.github/CODE_OF_CONDUCT.md\" target=\"_blank\"><img alt=\"🤝 Code of Conduct: Kept\" src=\"https://img.shields.io/badge/%F0%9F%A4%9D_code_of_conduct-kept-21bb42\" /></a>\n\t<a href=\"https://codecov.io/gh/${options.owner}/${options.repository}\" target=\"_blank\"><img alt=\"🧪 Coverage\" src=\"https://img.shields.io/codecov/c/github/${options.owner}/${options.repository}?label=%F0%9F%A7%AA%20coverage\" /></a>\n\t<a href=\"https://github.com/${options.owner}/${options.repository}/blob/main/LICENSE.md\" target=\"_blank\"><img alt=\"📝 License: MIT\" src=\"https://img.shields.io/badge/%F0%9F%93%9D_license-MIT-21bb42.svg\"></a>\n\t<a href=\"http://npmjs.com/package/${options.repository}\"><img alt=\"📦 npm version\" src=\"https://img.shields.io/npm/v/${options.repository}?color=21bb42&label=%F0%9F%93%A6%20npm\" /></a>\n\t<img alt=\"💪 TypeScript: Strict\" src=\"https://img.shields.io/badge/%F0%9F%92%AA_typescript-strict-21bb42.svg\" />\n</p>\n\n${logo}\n\n## Usage\n\n${options.usage}\n\n## Development\n\nSee [\\`.github/CONTRIBUTING.md\\`](./.github/CONTRIBUTING.md), then [\\`.github/DEVELOPMENT.md\\`](./.github/DEVELOPMENT.md).\nThanks! 💖\n\n## Contributors\n\n<!-- spellchecker: disable -->\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n<!-- spellchecker: enable -->\n${notices.length ? `\\n${notices.map((notice) => notice.trim()).join(\"\\n\\n\")}` : \"\"}`,\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,SAAS;AAElB,SAAS,YAAY;AAErB,SAAS,gBAAgB,YAA6C;AACrE,SAAO,OAAO,QAAQ,UAAU,EAC9B,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM,GAAG,GAAG,KAAK,KAAK,GAAG,EACzC,KAAK,GAAG;AACX;AAEO,MAAM,cAAc,KAAK,YAAY;AAAA,EAC3C,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC;AAAA,EACxC;AAAA,EACA,QAAQ,EAAE,QAAQ,QAAQ,GAAG;AAC5B,UAAM,EAAE,QAAQ,IAAI;AAEpB,UAAM,OAAO,QAAQ,OAClB,QAAQ,gBAAgB,EAAE,OAAO,SAAS,GAAG,QAAQ,KAAK,CAAC,CAAC,MAC5D;AAEH,WAAO;AAAA,MACN,OAAO;AAAA,QACN,aAAa,sBAAsB,QAAQ,KAAK;AAAA;AAAA,oBAEhC,QAAQ,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+BAOR,QAAQ,KAAK,IAAI,QAAQ,UAAU;AAAA,kCAChC,QAAQ,KAAK,IAAI,QAAQ,UAAU,gGAAyF,QAAQ,KAAK,IAAI,QAAQ,UAAU;AAAA,+BAClK,QAAQ,KAAK,IAAI,QAAQ,UAAU;AAAA,qCAC7B,QAAQ,UAAU,wEAAiE,QAAQ,UAAU;AAAA;AAAA;AAAA;AAAA,EAIxI,IAAI;AAAA;AAAA;AAAA;AAAA,EAIJ,QAAQ,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAab,QAAQ,SAAS;AAAA,EAAK,QAAQ,IAAI,CAAC,WAAW,OAAO,KAAK,CAAC,EAAE,KAAK,MAAM,CAAC,KAAK,EAAE;AAAA,MAC/E;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockReleaseIt: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
access: "public" | "restricted";
|
|
5
6
|
directory: string;
|
|
6
7
|
email: {
|
|
7
8
|
github: string;
|
|
@@ -10,7 +11,6 @@ declare const blockReleaseIt: create.BlockWithoutAddons<{
|
|
|
10
11
|
title: string;
|
|
11
12
|
owner: string;
|
|
12
13
|
repository: string;
|
|
13
|
-
access?: "public" | "restricted" | undefined;
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
@@ -43,6 +43,7 @@ declare const blockReleaseIt: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
usage?: string | undefined;
|
|
46
47
|
version?: string | undefined;
|
|
47
48
|
}>;
|
|
48
49
|
|
|
@@ -130,7 +130,19 @@ const blockReleaseIt = base.createBlock({
|
|
|
130
130
|
plugins: {
|
|
131
131
|
"@release-it/conventional-changelog": {
|
|
132
132
|
infile: "CHANGELOG.md",
|
|
133
|
-
preset: "angular"
|
|
133
|
+
preset: "angular",
|
|
134
|
+
types: [
|
|
135
|
+
{ section: "Features", type: "feat" },
|
|
136
|
+
{ section: "Bug Fixes", type: "fix" },
|
|
137
|
+
{ section: "Performance Improvements", type: "perf" },
|
|
138
|
+
{ hidden: true, type: "build" },
|
|
139
|
+
{ hidden: true, type: "chore" },
|
|
140
|
+
{ hidden: true, type: "ci" },
|
|
141
|
+
{ hidden: true, type: "docs" },
|
|
142
|
+
{ hidden: true, type: "refactor" },
|
|
143
|
+
{ hidden: true, type: "style" },
|
|
144
|
+
{ hidden: true, type: "test" }
|
|
145
|
+
]
|
|
134
146
|
}
|
|
135
147
|
}
|
|
136
148
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/next/blocks/blockReleaseIt.ts"],"sourcesContent":["import { createSoloWorkflowFile } from \"../../steps/writing/creation/dotGitHub/createSoloWorkflowFile.js\";\nimport { base } from \"../base.js\";\nimport { blockCSpell } from \"./blockCSpell.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockRepositorySecrets } from \"./blockRepositorySecrets.js\";\nimport { getPackageDependencies } from \"./packageData.js\";\n\nexport const blockReleaseIt = base.createBlock({\n\tabout: {\n\t\tname: \"release-it\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockCSpell({\n\t\t\t\t\twords: [\"apexskier\"],\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\"@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},\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{ uses: \"actions/checkout@v4\", with: { \"fetch-depth\": 0 } },\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: \"apexskier/github-release-commenter@v1\",\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: \"actions/checkout@v4\",\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},\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{\n\t\t\t\t\t\t\t\t\trun: \"pnpm build\",\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\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: \"JoshuaKGoldberg/release-it-action@v0.2.2\",\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\tautoGenerate: true,\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: \"angular\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,8BAA8B;AACvC,SAAS,YAAY;AACrB,SAAS,mBAAmB;AAC5B,SAAS,wBAAwB;AACjC,SAAS,8BAA8B;AACvC,SAAS,8BAA8B;AAEhC,MAAM,iBAAiB,KAAK,YAAY;AAAA,EAC9C,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ,EAAE,QAAQ,GAAG;AACpB,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,YAAY;AAAA,UACX,OAAO,CAAC,WAAW;AAAA,QACpB,CAAC;AAAA,QACD,iBAAiB;AAAA,UAChB,YAAY;AAAA,YACX,iBAAiB;AAAA,cAChB;AAAA,cACA;AAAA,YACD;AAAA,YACA,eAAe;AAAA,cACd,YAAY;AAAA,YACb;AAAA,UACD;AAAA,QACD,CAAC;AAAA,QACD,uBAAuB;AAAA,UACtB,SAAS;AAAA,YACR;AAAA,cACC,aAAa;AAAA,cACb,MAAM;AAAA,YACP;AAAA,YACA;AAAA,cACC,aAAa;AAAA,cACb,MAAM;AAAA,YACP;AAAA,UACD;AAAA,QACD,CAAC;AAAA,MACF;AAAA,MACA,OAAO;AAAA,QACN,WAAW;AAAA,UACV,WAAW;AAAA,YACV,oBAAoB,uBAAuB;AAAA,cAC1C,MAAM;AAAA,cACN,IAAI;AAAA,gBACH,SAAS;AAAA,kBACR,OAAO,CAAC,WAAW;AAAA,gBACpB;AAAA,cACD;AAAA,cACA,aAAa;AAAA,gBACZ,QAAQ;AAAA,gBACR,iBAAiB;AAAA,cAClB;AAAA,cACA,OAAO;AAAA,gBACN,EAAE,MAAM,uBAAuB,MAAM,EAAE,eAAe,EAAE,EAAE;AAAA,gBAC1D;AAAA,kBACC,KAAK;AAAA,gBACN;AAAA,gBACA;AAAA,kBACC,MAAM;AAAA,kBACN,MAAM;AAAA,oBACL,oBAAoB;AAAA;AAAA;AAAA;AAAA;AAAA,gDAKkB,QAAQ,KAAK,IAAI,QAAQ,UAAU;AAAA,0EACT,QAAQ,UAAU;AAAA;AAAA;AAAA;AAAA,oBAIlF,cAAc;AAAA,kBACf;AAAA,gBACD;AAAA,cACD;AAAA,YACD,CAAC;AAAA,YACD,eAAe,uBAAuB;AAAA,cACrC,aAAa;AAAA,gBACZ,OAAO;AAAA,cACR;AAAA,cACA,MAAM;AAAA,cACN,IAAI;AAAA,gBACH,MAAM;AAAA,kBACL,UAAU,CAAC,MAAM;AAAA,gBAClB;AAAA,cACD;AAAA,cACA,aAAa;AAAA,gBACZ,UAAU;AAAA,gBACV,YAAY;AAAA,cACb;AAAA,cACA,OAAO;AAAA,gBACN;AAAA,kBACC,MAAM;AAAA,kBACN,MAAM;AAAA,oBACL,eAAe;AAAA,oBACf,KAAK;AAAA,kBACN;AAAA,gBACD;AAAA,gBACA;AAAA,kBACC,MAAM;AAAA,gBACP;AAAA,gBACA;AAAA,kBACC,KAAK;AAAA,gBACN;AAAA,gBACA;AAAA,kBACC,KAAK;AAAA,oBACJ,cAAc;AAAA,oBACd,WAAW;AAAA,kBACZ;AAAA,kBACA,MAAM;AAAA,gBACP;AAAA,cACD;AAAA,YACD,CAAC;AAAA,UACF;AAAA,QACD;AAAA,QACA,oBAAoB,KAAK,UAAU;AAAA,UAClC,KAAK;AAAA,YACJ,eAAe;AAAA,YACf,gBAAgB;AAAA,UACjB;AAAA,UACA,QAAQ;AAAA,YACP,cAAc;AAAA,YACd,SAAS;AAAA,YACT,aAAa;AAAA,UACd;AAAA,UACA,KAAK;AAAA,YACJ,aAAa,CAAC,YAAY,QAAQ,MAAM,IAAI,cAAc;AAAA,UAC3D;AAAA,UACA,SAAS;AAAA,YACR,sCAAsC;AAAA,cACrC,QAAQ;AAAA,cACR,QAAQ;AAAA,
|
|
1
|
+
{"version":3,"sources":["../../../src/next/blocks/blockReleaseIt.ts"],"sourcesContent":["import { createSoloWorkflowFile } from \"../../steps/writing/creation/dotGitHub/createSoloWorkflowFile.js\";\nimport { base } from \"../base.js\";\nimport { blockCSpell } from \"./blockCSpell.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockRepositorySecrets } from \"./blockRepositorySecrets.js\";\nimport { getPackageDependencies } from \"./packageData.js\";\n\nexport const blockReleaseIt = base.createBlock({\n\tabout: {\n\t\tname: \"release-it\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockCSpell({\n\t\t\t\t\twords: [\"apexskier\"],\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\"@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},\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{ uses: \"actions/checkout@v4\", with: { \"fetch-depth\": 0 } },\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: \"apexskier/github-release-commenter@v1\",\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: \"actions/checkout@v4\",\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},\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{\n\t\t\t\t\t\t\t\t\trun: \"pnpm build\",\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\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: \"JoshuaKGoldberg/release-it-action@v0.2.2\",\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\tautoGenerate: true,\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: \"angular\",\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\t\t\t\t\t\t{ hidden: true, type: \"test\" },\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":"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","names":[]}
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockRenovate: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
access: "public" | "restricted";
|
|
5
6
|
directory: string;
|
|
6
7
|
email: {
|
|
7
8
|
github: string;
|
|
@@ -10,7 +11,6 @@ declare const blockRenovate: create.BlockWithoutAddons<{
|
|
|
10
11
|
title: string;
|
|
11
12
|
owner: string;
|
|
12
13
|
repository: string;
|
|
13
|
-
access?: "public" | "restricted" | undefined;
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
@@ -43,6 +43,7 @@ declare const blockRenovate: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
usage?: string | undefined;
|
|
46
47
|
version?: string | undefined;
|
|
47
48
|
}>;
|
|
48
49
|
|
|
@@ -4,6 +4,7 @@ declare const blockRepositoryBranchRuleset: create.BlockWithAddons<{
|
|
|
4
4
|
requiredStatusChecks: string[];
|
|
5
5
|
}, {
|
|
6
6
|
description: string;
|
|
7
|
+
access: "public" | "restricted";
|
|
7
8
|
directory: string;
|
|
8
9
|
email: {
|
|
9
10
|
github: string;
|
|
@@ -12,7 +13,6 @@ declare const blockRepositoryBranchRuleset: create.BlockWithAddons<{
|
|
|
12
13
|
title: string;
|
|
13
14
|
owner: string;
|
|
14
15
|
repository: string;
|
|
15
|
-
access?: "public" | "restricted" | undefined;
|
|
16
16
|
author?: string | undefined;
|
|
17
17
|
bin?: string | undefined;
|
|
18
18
|
contributors?: {
|
|
@@ -45,6 +45,7 @@ declare const blockRepositoryBranchRuleset: create.BlockWithAddons<{
|
|
|
45
45
|
devDependencies?: Record<string, string> | undefined;
|
|
46
46
|
scripts?: Record<string, string> | undefined;
|
|
47
47
|
} | undefined;
|
|
48
|
+
usage?: string | undefined;
|
|
48
49
|
version?: string | undefined;
|
|
49
50
|
}>;
|
|
50
51
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockRepositoryLabels: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
access: "public" | "restricted";
|
|
5
6
|
directory: string;
|
|
6
7
|
email: {
|
|
7
8
|
github: string;
|
|
@@ -10,7 +11,6 @@ declare const blockRepositoryLabels: create.BlockWithoutAddons<{
|
|
|
10
11
|
title: string;
|
|
11
12
|
owner: string;
|
|
12
13
|
repository: string;
|
|
13
|
-
access?: "public" | "restricted" | undefined;
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
@@ -43,6 +43,7 @@ declare const blockRepositoryLabels: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
usage?: string | undefined;
|
|
46
47
|
version?: string | undefined;
|
|
47
48
|
}>;
|
|
48
49
|
|
|
@@ -7,6 +7,7 @@ declare const blockRepositorySecrets: create.BlockWithAddons<{
|
|
|
7
7
|
}[];
|
|
8
8
|
}, {
|
|
9
9
|
description: string;
|
|
10
|
+
access: "public" | "restricted";
|
|
10
11
|
directory: string;
|
|
11
12
|
email: {
|
|
12
13
|
github: string;
|
|
@@ -15,7 +16,6 @@ declare const blockRepositorySecrets: create.BlockWithAddons<{
|
|
|
15
16
|
title: string;
|
|
16
17
|
owner: string;
|
|
17
18
|
repository: string;
|
|
18
|
-
access?: "public" | "restricted" | undefined;
|
|
19
19
|
author?: string | undefined;
|
|
20
20
|
bin?: string | undefined;
|
|
21
21
|
contributors?: {
|
|
@@ -48,6 +48,7 @@ declare const blockRepositorySecrets: create.BlockWithAddons<{
|
|
|
48
48
|
devDependencies?: Record<string, string> | undefined;
|
|
49
49
|
scripts?: Record<string, string> | undefined;
|
|
50
50
|
} | undefined;
|
|
51
|
+
usage?: string | undefined;
|
|
51
52
|
version?: string | undefined;
|
|
52
53
|
}>;
|
|
53
54
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockRepositorySettings: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
access: "public" | "restricted";
|
|
5
6
|
directory: string;
|
|
6
7
|
email: {
|
|
7
8
|
github: string;
|
|
@@ -10,7 +11,6 @@ declare const blockRepositorySettings: create.BlockWithoutAddons<{
|
|
|
10
11
|
title: string;
|
|
11
12
|
owner: string;
|
|
12
13
|
repository: string;
|
|
13
|
-
access?: "public" | "restricted" | undefined;
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
@@ -43,6 +43,7 @@ declare const blockRepositorySettings: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
usage?: string | undefined;
|
|
46
47
|
version?: string | undefined;
|
|
47
48
|
}>;
|
|
48
49
|
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import * as htmlToText from "html-to-text";
|
|
1
2
|
import { base } from "../base.js";
|
|
2
3
|
const blockRepositorySettings = base.createBlock({
|
|
3
4
|
about: {
|
|
4
5
|
name: "Repository Settings"
|
|
5
6
|
},
|
|
6
7
|
produce({ options }) {
|
|
8
|
+
const description = htmlToText.convert(options.description);
|
|
7
9
|
return {
|
|
8
10
|
requests: [
|
|
9
11
|
{
|
|
@@ -15,7 +17,7 @@ const blockRepositorySettings = base.createBlock({
|
|
|
15
17
|
allow_rebase_merge: false,
|
|
16
18
|
allow_squash_merge: true,
|
|
17
19
|
delete_branch_on_merge: true,
|
|
18
|
-
description
|
|
20
|
+
description,
|
|
19
21
|
has_wiki: false,
|
|
20
22
|
owner: options.owner,
|
|
21
23
|
repo: options.repository,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/next/blocks/blockRepositorySettings.ts"],"sourcesContent":["import { base } from \"../base.js\";\n\nexport const blockRepositorySettings = base.createBlock({\n\tabout: {\n\t\tname: \"Repository Settings\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\trequests: [\n\t\t\t\t{\n\t\t\t\t\tid: \"repository-settings\",\n\t\t\t\t\tasync send({ octokit }) {\n\t\t\t\t\t\tawait octokit.rest.repos.update({\n\t\t\t\t\t\t\tallow_auto_merge: true,\n\t\t\t\t\t\t\tallow_merge_commit: false,\n\t\t\t\t\t\t\tallow_rebase_merge: false,\n\t\t\t\t\t\t\tallow_squash_merge: true,\n\t\t\t\t\t\t\tdelete_branch_on_merge: true,\n\t\t\t\t\t\t\tdescription
|
|
1
|
+
{"version":3,"sources":["../../../src/next/blocks/blockRepositorySettings.ts"],"sourcesContent":["import * as htmlToText from \"html-to-text\";\n\nimport { base } from \"../base.js\";\n\nexport const blockRepositorySettings = base.createBlock({\n\tabout: {\n\t\tname: \"Repository Settings\",\n\t},\n\tproduce({ options }) {\n\t\tconst description = htmlToText.convert(options.description);\n\n\t\treturn {\n\t\t\trequests: [\n\t\t\t\t{\n\t\t\t\t\tid: \"repository-settings\",\n\t\t\t\t\tasync send({ octokit }) {\n\t\t\t\t\t\tawait octokit.rest.repos.update({\n\t\t\t\t\t\t\tallow_auto_merge: true,\n\t\t\t\t\t\t\tallow_merge_commit: false,\n\t\t\t\t\t\t\tallow_rebase_merge: false,\n\t\t\t\t\t\t\tallow_squash_merge: true,\n\t\t\t\t\t\t\tdelete_branch_on_merge: true,\n\t\t\t\t\t\t\tdescription,\n\t\t\t\t\t\t\thas_wiki: false,\n\t\t\t\t\t\t\towner: options.owner,\n\t\t\t\t\t\t\trepo: options.repository,\n\t\t\t\t\t\t\tsecurity_and_analysis: {\n\t\t\t\t\t\t\t\tsecret_scanning: {\n\t\t\t\t\t\t\t\t\tstatus: \"enabled\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tsecret_scanning_push_protection: {\n\t\t\t\t\t\t\t\t\tstatus: \"enabled\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tsquash_merge_commit_message: \"PR_BODY\",\n\t\t\t\t\t\t\tsquash_merge_commit_title: \"PR_TITLE\",\n\t\t\t\t\t\t});\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,YAAY,gBAAgB;AAE5B,SAAS,YAAY;AAEd,MAAM,0BAA0B,KAAK,YAAY;AAAA,EACvD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ,EAAE,QAAQ,GAAG;AACpB,UAAM,cAAc,WAAW,QAAQ,QAAQ,WAAW;AAE1D,WAAO;AAAA,MACN,UAAU;AAAA,QACT;AAAA,UACC,IAAI;AAAA,UACJ,MAAM,KAAK,EAAE,QAAQ,GAAG;AACvB,kBAAM,QAAQ,KAAK,MAAM,OAAO;AAAA,cAC/B,kBAAkB;AAAA,cAClB,oBAAoB;AAAA,cACpB,oBAAoB;AAAA,cACpB,oBAAoB;AAAA,cACpB,wBAAwB;AAAA,cACxB;AAAA,cACA,UAAU;AAAA,cACV,OAAO,QAAQ;AAAA,cACf,MAAM,QAAQ;AAAA,cACd,uBAAuB;AAAA,gBACtB,iBAAiB;AAAA,kBAChB,QAAQ;AAAA,gBACT;AAAA,gBACA,iCAAiC;AAAA,kBAChC,QAAQ;AAAA,gBACT;AAAA,cACD;AAAA,cACA,6BAA6B;AAAA,cAC7B,2BAA2B;AAAA,YAC5B,CAAC;AAAA,UACF;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockSecurityDocs: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
access: "public" | "restricted";
|
|
5
6
|
directory: string;
|
|
6
7
|
email: {
|
|
7
8
|
github: string;
|
|
@@ -10,7 +11,6 @@ declare const blockSecurityDocs: create.BlockWithoutAddons<{
|
|
|
10
11
|
title: string;
|
|
11
12
|
owner: string;
|
|
12
13
|
repository: string;
|
|
13
|
-
access?: "public" | "restricted" | undefined;
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
@@ -43,6 +43,7 @@ declare const blockSecurityDocs: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
usage?: string | undefined;
|
|
46
47
|
version?: string | undefined;
|
|
47
48
|
}>;
|
|
48
49
|
|
|
@@ -4,6 +4,7 @@ declare const blockTSup: create.BlockWithAddons<{
|
|
|
4
4
|
entry: string[];
|
|
5
5
|
}, {
|
|
6
6
|
description: string;
|
|
7
|
+
access: "public" | "restricted";
|
|
7
8
|
directory: string;
|
|
8
9
|
email: {
|
|
9
10
|
github: string;
|
|
@@ -12,7 +13,6 @@ declare const blockTSup: create.BlockWithAddons<{
|
|
|
12
13
|
title: string;
|
|
13
14
|
owner: string;
|
|
14
15
|
repository: string;
|
|
15
|
-
access?: "public" | "restricted" | undefined;
|
|
16
16
|
author?: string | undefined;
|
|
17
17
|
bin?: string | undefined;
|
|
18
18
|
contributors?: {
|
|
@@ -45,6 +45,7 @@ declare const blockTSup: create.BlockWithAddons<{
|
|
|
45
45
|
devDependencies?: Record<string, string> | undefined;
|
|
46
46
|
scripts?: Record<string, string> | undefined;
|
|
47
47
|
} | undefined;
|
|
48
|
+
usage?: string | undefined;
|
|
48
49
|
version?: string | undefined;
|
|
49
50
|
}>;
|
|
50
51
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockTemplatedBy: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
access: "public" | "restricted";
|
|
5
6
|
directory: string;
|
|
6
7
|
email: {
|
|
7
8
|
github: string;
|
|
@@ -10,7 +11,6 @@ declare const blockTemplatedBy: create.BlockWithoutAddons<{
|
|
|
10
11
|
title: string;
|
|
11
12
|
owner: string;
|
|
12
13
|
repository: string;
|
|
13
|
-
access?: "public" | "restricted" | undefined;
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
@@ -43,6 +43,7 @@ declare const blockTemplatedBy: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
usage?: string | undefined;
|
|
46
47
|
version?: string | undefined;
|
|
47
48
|
}>;
|
|
48
49
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockTypeScript: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
access: "public" | "restricted";
|
|
5
6
|
directory: string;
|
|
6
7
|
email: {
|
|
7
8
|
github: string;
|
|
@@ -10,7 +11,6 @@ declare const blockTypeScript: create.BlockWithoutAddons<{
|
|
|
10
11
|
title: string;
|
|
11
12
|
owner: string;
|
|
12
13
|
repository: string;
|
|
13
|
-
access?: "public" | "restricted" | undefined;
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
@@ -43,6 +43,7 @@ declare const blockTypeScript: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
usage?: string | undefined;
|
|
46
47
|
version?: string | undefined;
|
|
47
48
|
}>;
|
|
48
49
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/next/blocks/blockTypeScript.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockExampleFiles } from \"./blockExampleFiles.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockGitignore } from \"./blockGitignore.js\";\nimport { blockMarkdownlint } from \"./blockMarkdownlint.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockVitest } from \"./blockVitest.js\";\nimport { blockVSCode } from \"./blockVSCode.js\";\nimport { getPackageDependencies } from \"./packageData.js\";\n\nexport const blockTypeScript = base.createBlock({\n\tabout: {\n\t\tname: \"TypeScript\",\n\t},\n\tproduce({ options }) {\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}),\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\tblockMarkdownlint({\n\t\t\t\t\tignores: [\"lib/\"],\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\tmain: \"./lib/index.js\",\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({
|
|
1
|
+
{"version":3,"sources":["../../../src/next/blocks/blockTypeScript.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockExampleFiles } from \"./blockExampleFiles.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockGitignore } from \"./blockGitignore.js\";\nimport { blockMarkdownlint } from \"./blockMarkdownlint.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockVitest } from \"./blockVitest.js\";\nimport { blockVSCode } from \"./blockVSCode.js\";\nimport { getPackageDependencies } from \"./packageData.js\";\n\nexport const blockTypeScript = base.createBlock({\n\tabout: {\n\t\tname: \"TypeScript\",\n\t},\n\tproduce({ options }) {\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}),\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\tblockMarkdownlint({\n\t\t\t\t\tignores: [\"lib/\"],\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\tmain: \"./lib/index.js\",\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: options.bin\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: options.bin,\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: {\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\tsourceMap: true,\n\t\t\t\t\t\tstrict: true,\n\t\t\t\t\t\ttarget: \"ES2022\",\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\t},\n});\n"],"mappings":"AAAA,SAAS,YAAY;AACrB,SAAS,4BAA4B;AACrC,SAAS,yBAAyB;AAClC,SAAS,4BAA4B;AACrC,SAAS,sBAAsB;AAC/B,SAAS,yBAAyB;AAClC,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,mBAAmB;AAC5B,SAAS,8BAA8B;AAEhC,MAAM,kBAAkB,KAAK,YAAY;AAAA,EAC/C,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ,EAAE,QAAQ,GAAG;AACpB,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,qBAAqB;AAAA,UACpB,UAAU;AAAA,YACT,iBAAiB;AAAA,cAChB,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAeX;AAAA,UACD;AAAA,QACD,CAAC;AAAA,QACD,kBAAkB;AAAA,UACjB,OAAO;AAAA,YACN,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAcZ,YAAY;AAAA;AAAA;AAAA,YAGZ,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,UAMb;AAAA,QACD,CAAC;AAAA,QACD,eAAe;AAAA,UACd,SAAS,CAAC,MAAM;AAAA,QACjB,CAAC;AAAA,QACD,qBAAqB;AAAA,UACpB,MAAM,CAAC,EAAE,MAAM,cAAc,OAAO,CAAC,EAAE,KAAK,WAAW,CAAC,EAAE,CAAC;AAAA,QAC5D,CAAC;AAAA,QACD,kBAAkB;AAAA,UACjB,SAAS,CAAC,MAAM;AAAA,QACjB,CAAC;AAAA,QACD,iBAAiB;AAAA,UAChB,YAAY;AAAA,YACX,iBAAiB,uBAAuB,YAAY;AAAA,YACpD,OAAO,CAAC,MAAM;AAAA,YACd,MAAM;AAAA,YACN,SAAS;AAAA,cACR,KAAK;AAAA,YACN;AAAA,UACD;AAAA,QACD,CAAC;AAAA,QACD,YAAY,EAAE,UAAU,EAAE,SAAS,CAAC,KAAK,EAAE,GAAG,SAAS,CAAC,KAAK,EAAE,CAAC;AAAA,QAChE,YAAY;AAAA,UACX,WAAW,QAAQ,MAChB;AAAA,YACA;AAAA,cACC,MAAM;AAAA,cACN,eAAe;AAAA,cACf,SAAS,QAAQ;AAAA,cACjB,SAAS;AAAA,cACT,WAAW,CAAC,qBAAqB;AAAA,cACjC,MAAM;AAAA,YACP;AAAA,UACD,IACC,CAAC;AAAA,UACJ,UAAU;AAAA,YACT,mBAAmB;AAAA,UACpB;AAAA,UACA,OAAO;AAAA,YACN;AAAA,cACC,QAAQ;AAAA,cACR,OAAO;AAAA,cACP,QAAQ;AAAA,cACR,MAAM;AAAA,YACP;AAAA,UACD;AAAA,QACD,CAAC;AAAA,MACF;AAAA,MACA,OAAO;AAAA,QACN,iBAAiB,KAAK,UAAU;AAAA,UAC/B,iBAAiB;AAAA,YAChB,aAAa;AAAA,YACb,gBAAgB;AAAA,YAChB,iBAAiB;AAAA,YACjB,QAAQ;AAAA,YACR,kBAAkB;AAAA,YAClB,QAAQ;AAAA,YACR,mBAAmB;AAAA,YACnB,cAAc;AAAA,YACd,WAAW;AAAA,YACX,QAAQ;AAAA,YACR,QAAQ;AAAA,UACT;AAAA,UACA,SAAS,CAAC,KAAK;AAAA,QAChB,CAAC;AAAA,MACF;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -11,6 +11,7 @@ declare const blockVSCode: create.BlockWithAddons<{
|
|
|
11
11
|
} & Record<string, unknown>)[] | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
description: string;
|
|
14
|
+
access: "public" | "restricted";
|
|
14
15
|
directory: string;
|
|
15
16
|
email: {
|
|
16
17
|
github: string;
|
|
@@ -19,7 +20,6 @@ declare const blockVSCode: create.BlockWithAddons<{
|
|
|
19
20
|
title: string;
|
|
20
21
|
owner: string;
|
|
21
22
|
repository: string;
|
|
22
|
-
access?: "public" | "restricted" | undefined;
|
|
23
23
|
author?: string | undefined;
|
|
24
24
|
bin?: string | undefined;
|
|
25
25
|
contributors?: {
|
|
@@ -52,6 +52,7 @@ declare const blockVSCode: create.BlockWithAddons<{
|
|
|
52
52
|
devDependencies?: Record<string, string> | undefined;
|
|
53
53
|
scripts?: Record<string, string> | undefined;
|
|
54
54
|
} | undefined;
|
|
55
|
+
usage?: string | undefined;
|
|
55
56
|
version?: string | undefined;
|
|
56
57
|
}>;
|
|
57
58
|
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import * as create from 'create';
|
|
2
2
|
|
|
3
3
|
declare const blockVitest: create.BlockWithAddons<{
|
|
4
|
+
env: Record<string, string>;
|
|
5
|
+
exclude: string[];
|
|
6
|
+
flags: string[];
|
|
4
7
|
coverage: {
|
|
5
|
-
directory
|
|
8
|
+
directory?: string | undefined;
|
|
9
|
+
exclude?: string[] | undefined;
|
|
6
10
|
flags?: string | undefined;
|
|
11
|
+
include?: string[] | undefined;
|
|
7
12
|
};
|
|
8
|
-
exclude: string[];
|
|
9
|
-
include: string[];
|
|
10
13
|
}, {
|
|
11
14
|
description: string;
|
|
15
|
+
access: "public" | "restricted";
|
|
12
16
|
directory: string;
|
|
13
17
|
email: {
|
|
14
18
|
github: string;
|
|
@@ -17,7 +21,6 @@ declare const blockVitest: create.BlockWithAddons<{
|
|
|
17
21
|
title: string;
|
|
18
22
|
owner: string;
|
|
19
23
|
repository: string;
|
|
20
|
-
access?: "public" | "restricted" | undefined;
|
|
21
24
|
author?: string | undefined;
|
|
22
25
|
bin?: string | undefined;
|
|
23
26
|
contributors?: {
|
|
@@ -50,6 +53,7 @@ declare const blockVitest: create.BlockWithAddons<{
|
|
|
50
53
|
devDependencies?: Record<string, string> | undefined;
|
|
51
54
|
scripts?: Record<string, string> | undefined;
|
|
52
55
|
} | undefined;
|
|
56
|
+
usage?: string | undefined;
|
|
53
57
|
version?: string | undefined;
|
|
54
58
|
}>;
|
|
55
59
|
|