create-typescript-app 2.24.4 → 2.24.5
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/lib/base.d.ts +5 -0
- package/lib/base.js +5 -0
- package/lib/blocks/blockAllContributors.d.ts +1 -0
- package/lib/blocks/blockAreTheTypesWrong.d.ts +1 -0
- package/lib/blocks/blockCSpell.d.ts +1 -0
- package/lib/blocks/blockCTATransitions.d.ts +1 -0
- package/lib/blocks/blockCodecov.d.ts +1 -0
- package/lib/blocks/blockContributingDocs.d.ts +1 -0
- package/lib/blocks/blockContributorCovenant.d.ts +1 -0
- package/lib/blocks/blockDevelopmentDocs.d.ts +1 -0
- package/lib/blocks/blockESLint.d.ts +1 -0
- package/lib/blocks/blockESLintComments.d.ts +1 -0
- package/lib/blocks/blockESLintJSDoc.d.ts +1 -0
- package/lib/blocks/blockESLintJSONC.d.ts +1 -0
- package/lib/blocks/blockESLintMarkdown.d.ts +1 -0
- package/lib/blocks/blockESLintMoreStyling.d.ts +1 -0
- package/lib/blocks/blockESLintNode.d.ts +1 -0
- package/lib/blocks/blockESLintPackageJson.d.ts +1 -0
- package/lib/blocks/blockESLintPerfectionist.d.ts +1 -0
- package/lib/blocks/blockESLintRegexp.d.ts +1 -0
- package/lib/blocks/blockESLintYML.d.ts +1 -0
- package/lib/blocks/blockExampleFiles.d.ts +1 -0
- package/lib/blocks/blockFunding.d.ts +1 -0
- package/lib/blocks/blockGitHubActionsCI.d.ts +1 -0
- package/lib/blocks/blockGitHubApps.d.ts +1 -0
- package/lib/blocks/blockGitHubIssueTemplates.d.ts +1 -0
- package/lib/blocks/blockGitHubPRTemplate.d.ts +1 -0
- package/lib/blocks/blockGitignore.d.ts +1 -0
- package/lib/blocks/blockKnip.d.ts +1 -0
- package/lib/blocks/blockMITLicense.d.ts +1 -0
- package/lib/blocks/blockMain.d.ts +1 -0
- package/lib/blocks/blockMarkdownlint.d.ts +1 -0
- package/lib/blocks/blockNcc.d.ts +1 -0
- package/lib/blocks/blockNvmrc.d.ts +1 -0
- package/lib/blocks/blockPRCompliance.d.ts +1 -0
- package/lib/blocks/blockPackageJson.d.ts +1 -0
- package/lib/blocks/blockPnpmDedupe.d.ts +1 -0
- package/lib/blocks/blockPrettier.d.ts +1 -0
- package/lib/blocks/blockPrettierPluginCurly.d.ts +1 -0
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts +1 -0
- package/lib/blocks/blockPrettierPluginSh.d.ts +1 -0
- package/lib/blocks/blockREADME.d.ts +1 -0
- package/lib/blocks/blockREADME.js +6 -2
- package/lib/blocks/blockReleaseIt.d.ts +1 -0
- package/lib/blocks/blockRemoveDependencies.d.ts +1 -0
- package/lib/blocks/blockRemoveFiles.d.ts +1 -0
- package/lib/blocks/blockRemoveWorkflows.d.ts +1 -0
- package/lib/blocks/blockRenovate.d.ts +1 -0
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts +1 -0
- package/lib/blocks/blockRepositoryLabels.d.ts +1 -0
- package/lib/blocks/blockRepositorySecrets.d.ts +1 -0
- package/lib/blocks/blockRepositorySettings.d.ts +1 -0
- package/lib/blocks/blockSecurityDocs.d.ts +1 -0
- package/lib/blocks/blockTSup.d.ts +1 -0
- package/lib/blocks/blockTemplatedWith.d.ts +1 -0
- package/lib/blocks/blockTypeScript.d.ts +1 -0
- package/lib/blocks/blockVSCode.d.ts +1 -0
- package/lib/blocks/blockVitest.d.ts +1 -0
- package/lib/blocks/index.d.ts +45 -0
- package/lib/data/packageData.d.ts +1 -1
- package/lib/index.d.ts +6 -0
- package/lib/options/readDocumentation.d.ts +1 -1
- package/lib/options/readDocumentation.js +4 -2
- package/lib/options/readReadmeAdditional.js +2 -2
- package/lib/options/readReadmeFootnotes.d.ts +4 -0
- package/lib/options/readReadmeFootnotes.js +17 -0
- package/lib/presets/common.d.ts +5 -0
- package/lib/presets/everything.d.ts +5 -0
- package/lib/presets/index.d.ts +15 -0
- package/lib/presets/minimal.d.ts +5 -0
- package/lib/schemas.d.ts +8 -0
- package/lib/schemas.js +1 -0
- package/lib/template.d.ts +5 -0
- package/package.json +1 -1
package/lib/base.d.ts
CHANGED
|
@@ -32,21 +32,25 @@ declare const base: bingo_stratum.Base<{
|
|
|
32
32
|
readme: z.ZodObject<{
|
|
33
33
|
additional: z.ZodOptional<z.ZodString>;
|
|
34
34
|
explainer: z.ZodOptional<z.ZodString>;
|
|
35
|
+
footnotes: z.ZodOptional<z.ZodString>;
|
|
35
36
|
usage: z.ZodString;
|
|
36
37
|
}, "strip", z.ZodTypeAny, {
|
|
37
38
|
usage: string;
|
|
38
39
|
additional?: string | undefined;
|
|
39
40
|
explainer?: string | undefined;
|
|
41
|
+
footnotes?: string | undefined;
|
|
40
42
|
}, {
|
|
41
43
|
usage: string;
|
|
42
44
|
additional?: string | undefined;
|
|
43
45
|
explainer?: string | undefined;
|
|
46
|
+
footnotes?: string | undefined;
|
|
44
47
|
}>;
|
|
45
48
|
}, "strip", z.ZodTypeAny, {
|
|
46
49
|
readme: {
|
|
47
50
|
usage: string;
|
|
48
51
|
additional?: string | undefined;
|
|
49
52
|
explainer?: string | undefined;
|
|
53
|
+
footnotes?: string | undefined;
|
|
50
54
|
};
|
|
51
55
|
development?: string | undefined;
|
|
52
56
|
}, {
|
|
@@ -54,6 +58,7 @@ declare const base: bingo_stratum.Base<{
|
|
|
54
58
|
usage: string;
|
|
55
59
|
additional?: string | undefined;
|
|
56
60
|
explainer?: string | undefined;
|
|
61
|
+
footnotes?: string | undefined;
|
|
57
62
|
};
|
|
58
63
|
development?: string | undefined;
|
|
59
64
|
}>;
|
package/lib/base.js
CHANGED
|
@@ -30,6 +30,7 @@ import { readPackageData } from "./options/readPackageData.js";
|
|
|
30
30
|
import { readPnpm } from "./options/readPnpm.js";
|
|
31
31
|
import { readReadmeAdditional } from "./options/readReadmeAdditional.js";
|
|
32
32
|
import { readReadmeExplainer } from "./options/readReadmeExplainer.js";
|
|
33
|
+
import { readReadmeFootnotes } from "./options/readReadmeFootnotes.js";
|
|
33
34
|
import { readReadmeUsage } from "./options/readReadmeUsage.js";
|
|
34
35
|
import { readRepository } from "./options/readRepository.js";
|
|
35
36
|
import { readRulesetId } from "./options/readRulesetId.js";
|
|
@@ -125,6 +126,7 @@ const base = createBase({
|
|
|
125
126
|
getDevelopmentDocumentation,
|
|
126
127
|
getReadmeAdditional,
|
|
127
128
|
getReadmeExplainer,
|
|
129
|
+
getReadmeFootnotes,
|
|
128
130
|
getReadmeUsage
|
|
129
131
|
)
|
|
130
132
|
);
|
|
@@ -184,6 +186,9 @@ const base = createBase({
|
|
|
184
186
|
const getReadmeExplainer = lazyValue(
|
|
185
187
|
async () => await readReadmeExplainer(getReadme)
|
|
186
188
|
);
|
|
189
|
+
const getReadmeFootnotes = lazyValue(
|
|
190
|
+
async () => await readReadmeFootnotes(getReadme)
|
|
191
|
+
);
|
|
187
192
|
const getReadmeUsage = lazyValue(
|
|
188
193
|
async () => await readReadmeUsage(getEmoji, getReadme, getRepository)
|
|
189
194
|
);
|
package/lib/blocks/blockNcc.d.ts
CHANGED
|
@@ -29,6 +29,10 @@ ${options.documentation.readme.explainer}
|
|
|
29
29
|
const logo = options.logo && `
|
|
30
30
|
<img ${printAttributes({ align: "right", ...options.logo })}>
|
|
31
31
|
`;
|
|
32
|
+
const suffixes = [
|
|
33
|
+
...notices,
|
|
34
|
+
options.documentation.readme.footnotes
|
|
35
|
+
].filter((suffix) => typeof suffix === "string");
|
|
32
36
|
return {
|
|
33
37
|
files: {
|
|
34
38
|
"README.md": `<h1 align="center">${options.title}</h1>
|
|
@@ -49,8 +53,8 @@ See [\`.github/CONTRIBUTING.md\`](./.github/CONTRIBUTING.md), then [\`.github/DE
|
|
|
49
53
|
Thanks! ${options.emoji}
|
|
50
54
|
${[...sections, options.documentation.readme.additional].filter(Boolean).map((section) => `
|
|
51
55
|
${section}`).join("")}
|
|
52
|
-
${
|
|
53
|
-
${
|
|
56
|
+
${suffixes.length ? `
|
|
57
|
+
${suffixes.map((suffix) => suffix.trim()).join("\n\n")}` : ""}`
|
|
54
58
|
}
|
|
55
59
|
};
|
|
56
60
|
}
|