create-typescript-app 2.68.0 → 2.68.2
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.
|
@@ -8,6 +8,7 @@ import { blockREADME } from "./blockREADME.mjs";
|
|
|
8
8
|
import { blockPrettier } from "./blockPrettier.mjs";
|
|
9
9
|
import { blockRepositorySecrets } from "./blockRepositorySecrets.mjs";
|
|
10
10
|
import _ from "lodash";
|
|
11
|
+
import { contributionTypes, createContributionLink, isContributionTypeName } from "all-contributors-types";
|
|
11
12
|
//#region src/blocks/blockAllContributors.ts
|
|
12
13
|
const blockAllContributors = base.createBlock({
|
|
13
14
|
about: { name: "AllContributors" },
|
|
@@ -31,7 +32,10 @@ const blockAllContributors = base.createBlock({
|
|
|
31
32
|
href: "#contributors",
|
|
32
33
|
src: `https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-${contributions}-21bb42.svg`
|
|
33
34
|
}],
|
|
34
|
-
sections: options.contributors ? [printAllContributorsTable(options.contributors
|
|
35
|
+
sections: options.contributors ? [printAllContributorsTable(options.contributors, {
|
|
36
|
+
projectName: options.repository,
|
|
37
|
+
projectOwner: options.owner
|
|
38
|
+
})] : void 0
|
|
35
39
|
}),
|
|
36
40
|
blockRepositorySecrets({ secrets: [{
|
|
37
41
|
description: "a GitHub PAT with repo and workflow permissions",
|
|
@@ -73,7 +77,7 @@ const blockAllContributors = base.createBlock({
|
|
|
73
77
|
};
|
|
74
78
|
}
|
|
75
79
|
});
|
|
76
|
-
function printAllContributorsTable(contributors) {
|
|
80
|
+
function printAllContributorsTable(contributors, project) {
|
|
77
81
|
return [
|
|
78
82
|
`## Contributors`,
|
|
79
83
|
``,
|
|
@@ -84,7 +88,7 @@ function printAllContributorsTable(contributors) {
|
|
|
84
88
|
` <tbody>`,
|
|
85
89
|
` <tr>`,
|
|
86
90
|
..._.sortBy(contributors, "name").flatMap((contributor, i) => {
|
|
87
|
-
const row = printContributorCell(contributor);
|
|
91
|
+
const row = printContributorCell(contributor, project);
|
|
88
92
|
return i && i % 7 === 0 ? [
|
|
89
93
|
` </tr>`,
|
|
90
94
|
` <tr>`,
|
|
@@ -101,26 +105,19 @@ function printAllContributorsTable(contributors) {
|
|
|
101
105
|
`<!-- spellchecker: enable -->`
|
|
102
106
|
].join("\n");
|
|
103
107
|
}
|
|
104
|
-
function printContributorCell(contributor) {
|
|
108
|
+
function printContributorCell(contributor, project) {
|
|
105
109
|
return [
|
|
106
110
|
` <td align="center" valign="top" width="14.28%">`,
|
|
107
111
|
`<a href="${contributor.profile}">`,
|
|
108
112
|
`<img src="${contributor.avatar_url}?s=100" width="100px;" alt="${contributor.name}"/>`,
|
|
109
113
|
`<br />`,
|
|
110
114
|
`<sub><b>${contributor.name}</b></sub></a><br />`,
|
|
111
|
-
contributor.contributions.map((contribution) => {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
case "ideas": return `<a href="#ideas-${contributor.login}" title="Ideas, Planning, & Feedback">🤔</a>`;
|
|
118
|
-
case "infra": return `<a href="#infra-${contributor.login}" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a>`;
|
|
119
|
-
case "maintenance": return `<a href="#maintenance-${contributor.login}" title="Maintenance">🚧</a>`;
|
|
120
|
-
case "review": return `<a href="https://github.com/JoshuaKGoldberg/create-typescript-app/pulls?q=is%3Apr+reviewed-by%3A${contributor.login}" title="Reviewed Pull Requests">👀</a>`;
|
|
121
|
-
case "test": return `<a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=${contributor.login}" title="Tests">⚠️</a>`;
|
|
122
|
-
case "tool": return `<a href="#tool-${contributor.login}" title="Tools">🔧</a>`;
|
|
123
|
-
}
|
|
115
|
+
contributor.contributions.filter(isContributionTypeName).map((contribution) => {
|
|
116
|
+
const { description, symbol } = contributionTypes[contribution];
|
|
117
|
+
return `<a href="${createContributionLink(contribution, {
|
|
118
|
+
...project,
|
|
119
|
+
login: contributor.login
|
|
120
|
+
})}" title="${description}">${symbol}</a>`;
|
|
124
121
|
}).join(" "),
|
|
125
122
|
`</td>`
|
|
126
123
|
].join("");
|
package/dist/blocks/blockNcc.mjs
CHANGED
|
@@ -4,6 +4,7 @@ import { blockDevelopmentDocs } from "./blockDevelopmentDocs.mjs";
|
|
|
4
4
|
import { blockPackageJson } from "./blockPackageJson.mjs";
|
|
5
5
|
import { blockCSpell } from "./blockCSpell.mjs";
|
|
6
6
|
import { blockESLint } from "./blockESLint.mjs";
|
|
7
|
+
import { blockGitignore } from "./blockGitignore.mjs";
|
|
7
8
|
import { blockPrettier } from "./blockPrettier.mjs";
|
|
8
9
|
import { z } from "zod";
|
|
9
10
|
//#region src/blocks/blockNcc.ts
|
|
@@ -33,7 +34,7 @@ pnpm build --watch
|
|
|
33
34
|
`,
|
|
34
35
|
innerSections: [{
|
|
35
36
|
contents: `
|
|
36
|
-
Run [\`@vercel/ncc\`](https://github.com/vercel/ncc) to
|
|
37
|
+
Run [\`@vercel/ncc\`](https://github.com/vercel/ncc) to clear and recreate an output \`dist/\` to be used in production.
|
|
37
38
|
|
|
38
39
|
\`\`\`shell
|
|
39
40
|
pnpm build:release
|
|
@@ -61,11 +62,12 @@ if [ -n "$changes" ]; then
|
|
|
61
62
|
fi
|
|
62
63
|
` }]
|
|
63
64
|
}] }),
|
|
65
|
+
blockGitignore({ ignores: ["/dist/**/*.d.ts", "/dist/**/*.d.ts.map"] }),
|
|
64
66
|
blockPackageJson({ properties: {
|
|
65
67
|
devDependencies: { "@vercel/ncc": "^0.38.3" },
|
|
66
68
|
scripts: {
|
|
67
69
|
build: "tsc",
|
|
68
|
-
"build:release": `ncc build ${entry} -o dist`
|
|
70
|
+
"build:release": `rm -rf dist && ncc build ${entry} -o dist`
|
|
69
71
|
}
|
|
70
72
|
} }),
|
|
71
73
|
blockPrettier({ ignores: ["/dist"] })
|
|
@@ -36,15 +36,15 @@ export declare const blockTypeScript: import("bingo-stratum").BlockWithAddons<{
|
|
|
36
36
|
inlineSources?: boolean | undefined;
|
|
37
37
|
isolatedDeclarations?: boolean | undefined;
|
|
38
38
|
isolatedModules?: boolean | undefined;
|
|
39
|
-
jsx?: "
|
|
39
|
+
jsx?: "preserve" | "none" | "react" | "react-jsx" | "react-jsxdev" | "react-native" | undefined;
|
|
40
40
|
keyofStringsOnly?: boolean | undefined;
|
|
41
41
|
lib?: string[] | undefined;
|
|
42
42
|
libReplacement?: boolean | undefined;
|
|
43
43
|
locale?: string | undefined;
|
|
44
44
|
mapRoot?: string | undefined;
|
|
45
45
|
maxNodeModuleJsDepth?: number | undefined;
|
|
46
|
-
module?: "commonjs" | "
|
|
47
|
-
moduleDetection?: "
|
|
46
|
+
module?: "commonjs" | "preserve" | "none" | "amd" | "AMD" | "CommonJS" | "es2015" | "ES2015" | "es2020" | "ES2020" | "es2022" | "ES2022" | "es6" | "ES6" | "esnext" | "ESNext" | "node16" | "Node16" | "node18" | "Node18" | "nodenext" | "NodeNext" | "None" | "Preserve" | "system" | "System" | "umd" | "UMD" | undefined;
|
|
47
|
+
moduleDetection?: "auto" | "force" | "legacy" | undefined;
|
|
48
48
|
moduleResolution?: "node" | "node16" | "Node16" | "nodenext" | "NodeNext" | "bundler" | "Bundler" | "classic" | "Classic" | "Node" | "node10" | "Node10" | "NodeJs" | undefined;
|
|
49
49
|
moduleSuffixes?: string[] | undefined;
|
|
50
50
|
newLine?: "crlf" | "lf" | undefined;
|
|
@@ -103,7 +103,7 @@ export declare const blockTypeScript: import("bingo-stratum").BlockWithAddons<{
|
|
|
103
103
|
noUncheckedSideEffectImports?: boolean | undefined;
|
|
104
104
|
resolveJsonModule?: boolean | undefined;
|
|
105
105
|
suppressImplicitAnyIndexErrors?: boolean | undefined;
|
|
106
|
-
target?: "json" | "
|
|
106
|
+
target?: "json" | "es2015" | "ES2015" | "es2020" | "ES2020" | "es2022" | "ES2022" | "esnext" | "ESNext" | "es2016" | "ES2016" | "es2017" | "ES2017" | "es2018" | "ES2018" | "es2019" | "ES2019" | "es2021" | "ES2021" | "es2023" | "ES2023" | "es2024" | "ES2024" | "es3" | "ES3" | "es5" | "ES5" | "JSON" | "latest" | "Latest" | undefined;
|
|
107
107
|
traceResolution?: boolean | undefined;
|
|
108
108
|
typeRoots?: string[] | undefined;
|
|
109
109
|
types?: string[] | undefined;
|
package/dist/blocks/index.d.mts
CHANGED
|
@@ -3666,15 +3666,15 @@ export declare const blocks: {
|
|
|
3666
3666
|
inlineSources?: boolean | undefined;
|
|
3667
3667
|
isolatedDeclarations?: boolean | undefined;
|
|
3668
3668
|
isolatedModules?: boolean | undefined;
|
|
3669
|
-
jsx?: "
|
|
3669
|
+
jsx?: "preserve" | "none" | "react" | "react-jsx" | "react-jsxdev" | "react-native" | undefined;
|
|
3670
3670
|
keyofStringsOnly?: boolean | undefined;
|
|
3671
3671
|
lib?: string[] | undefined;
|
|
3672
3672
|
libReplacement?: boolean | undefined;
|
|
3673
3673
|
locale?: string | undefined;
|
|
3674
3674
|
mapRoot?: string | undefined;
|
|
3675
3675
|
maxNodeModuleJsDepth?: number | undefined;
|
|
3676
|
-
module?: "commonjs" | "
|
|
3677
|
-
moduleDetection?: "
|
|
3676
|
+
module?: "commonjs" | "preserve" | "none" | "amd" | "AMD" | "CommonJS" | "es2015" | "ES2015" | "es2020" | "ES2020" | "es2022" | "ES2022" | "es6" | "ES6" | "esnext" | "ESNext" | "node16" | "Node16" | "node18" | "Node18" | "nodenext" | "NodeNext" | "None" | "Preserve" | "system" | "System" | "umd" | "UMD" | undefined;
|
|
3677
|
+
moduleDetection?: "auto" | "force" | "legacy" | undefined;
|
|
3678
3678
|
moduleResolution?: "node" | "node16" | "Node16" | "nodenext" | "NodeNext" | "bundler" | "Bundler" | "classic" | "Classic" | "Node" | "node10" | "Node10" | "NodeJs" | undefined;
|
|
3679
3679
|
moduleSuffixes?: string[] | undefined;
|
|
3680
3680
|
newLine?: "crlf" | "lf" | undefined;
|
|
@@ -3733,7 +3733,7 @@ export declare const blocks: {
|
|
|
3733
3733
|
noUncheckedSideEffectImports?: boolean | undefined;
|
|
3734
3734
|
resolveJsonModule?: boolean | undefined;
|
|
3735
3735
|
suppressImplicitAnyIndexErrors?: boolean | undefined;
|
|
3736
|
-
target?: "json" | "
|
|
3736
|
+
target?: "json" | "es2015" | "ES2015" | "es2020" | "ES2020" | "es2022" | "ES2022" | "esnext" | "ESNext" | "es2016" | "ES2016" | "es2017" | "ES2017" | "es2018" | "ES2018" | "es2019" | "ES2019" | "es2021" | "ES2021" | "es2023" | "ES2023" | "es2024" | "ES2024" | "es3" | "ES3" | "es5" | "ES5" | "JSON" | "latest" | "Latest" | undefined;
|
|
3737
3737
|
traceResolution?: boolean | undefined;
|
|
3738
3738
|
typeRoots?: string[] | undefined;
|
|
3739
3739
|
types?: string[] | undefined;
|
package/dist/package.json.d.mts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-typescript-app",
|
|
3
|
-
"version": "2.68.
|
|
3
|
+
"version": "2.68.2",
|
|
4
4
|
"description": "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 🎁",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@prettier/sync": "^0.6.1",
|
|
37
37
|
"@typescript-eslint/typescript-estree": "^8.67.0",
|
|
38
|
+
"all-contributors-types": "^0.1.0",
|
|
38
39
|
"bingo": "^0.13.1",
|
|
39
40
|
"bingo-fs": "^0.6.0",
|
|
40
41
|
"bingo-stratum": "^0.7.1",
|