create-typescript-app 1.77.1 → 1.79.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 +50 -49
- package/lib/create/createAndEnterGitDirectory.d.ts +1 -1
- package/lib/create/createAndEnterGitDirectory.js +4 -3
- package/lib/create/createAndEnterGitDirectory.js.map +1 -1
- package/lib/create/createWithOptions.d.ts +1 -1
- package/lib/create/createWithOptions.js +7 -8
- package/lib/create/createWithOptions.js.map +1 -1
- package/lib/create/index.js +8 -2
- package/lib/create/index.js.map +1 -1
- package/lib/next/base.d.ts +1 -2
- package/lib/next/base.js +37 -27
- package/lib/next/base.js.map +1 -1
- package/lib/next/blocks/blockAllContributors.d.ts +1 -2
- package/lib/next/blocks/blockAllContributors.js +11 -2
- package/lib/next/blocks/blockAllContributors.js.map +1 -1
- package/lib/next/blocks/blockAreTheTypesWrong.d.ts +1 -2
- package/lib/next/blocks/blockCSpell.d.ts +1 -2
- package/lib/next/blocks/blockCSpell.js +16 -0
- package/lib/next/blocks/blockCSpell.js.map +1 -1
- package/lib/next/blocks/blockContributingDocs.d.ts +1 -2
- package/lib/next/blocks/blockContributorCovenant.d.ts +1 -2
- package/lib/next/blocks/blockDevelopmentDocs.d.ts +1 -2
- package/lib/next/blocks/blockESLint.d.ts +1 -2
- package/lib/next/blocks/blockESLintComments.d.ts +1 -2
- package/lib/next/blocks/blockESLintJSDoc.d.ts +1 -2
- package/lib/next/blocks/blockESLintJSONC.d.ts +1 -2
- package/lib/next/blocks/blockESLintMarkdown.d.ts +1 -2
- package/lib/next/blocks/blockESLintMoreStyling.d.ts +1 -2
- package/lib/next/blocks/blockESLintNode.d.ts +1 -2
- package/lib/next/blocks/blockESLintPackageJson.d.ts +1 -2
- package/lib/next/blocks/blockESLintPerfectionist.d.ts +1 -2
- package/lib/next/blocks/blockESLintRegexp.d.ts +1 -2
- package/lib/next/blocks/blockESLintYML.d.ts +1 -2
- package/lib/next/blocks/blockExampleFiles.d.ts +1 -2
- package/lib/next/blocks/blockFunding.d.ts +1 -2
- package/lib/next/blocks/blockGitHubActionsCI.d.ts +1 -2
- package/lib/next/blocks/blockGitHubApps.d.ts +52 -0
- package/lib/next/blocks/blockGitHubApps.js +34 -0
- package/lib/next/blocks/blockGitHubApps.js.map +1 -0
- package/lib/next/blocks/blockGitHubIssueTemplates.d.ts +1 -2
- package/lib/next/blocks/blockGitHubPRTemplate.d.ts +1 -2
- package/lib/next/blocks/blockGitignore.d.ts +1 -2
- package/lib/next/blocks/blockKnip.d.ts +1 -2
- package/lib/next/blocks/blockKnip.js +2 -2
- package/lib/next/blocks/blockKnip.js.map +1 -1
- package/lib/next/blocks/blockMITLicense.d.ts +1 -2
- package/lib/next/blocks/blockMarkdownlint.d.ts +1 -2
- package/lib/next/blocks/blockNvmrc.d.ts +1 -2
- package/lib/next/blocks/blockPRCompliance.d.ts +1 -2
- package/lib/next/blocks/blockPackageJson.d.ts +1 -2
- package/lib/next/blocks/blockPackageJson.js +46 -41
- package/lib/next/blocks/blockPackageJson.js.map +1 -1
- package/lib/next/blocks/blockPnpmDedupe.d.ts +1 -2
- package/lib/next/blocks/blockPrettier.d.ts +1 -2
- package/lib/next/blocks/blockPrettierPluginCurly.d.ts +1 -2
- package/lib/next/blocks/blockPrettierPluginPackageJson.d.ts +1 -2
- package/lib/next/blocks/blockPrettierPluginSh.d.ts +1 -2
- package/lib/next/blocks/blockREADME.d.ts +1 -2
- package/lib/next/blocks/blockReleaseIt.d.ts +1 -2
- package/lib/next/blocks/blockReleaseIt.js +13 -0
- package/lib/next/blocks/blockReleaseIt.js.map +1 -1
- package/lib/next/blocks/blockRenovate.d.ts +1 -2
- package/lib/next/blocks/blockRenovate.js +9 -0
- package/lib/next/blocks/blockRenovate.js.map +1 -1
- package/lib/next/blocks/{blockRepositoryBranchProtection.d.ts → blockRepositoryBranchRuleset.d.ts} +3 -4
- package/lib/next/blocks/blockRepositoryBranchRuleset.js +71 -0
- package/lib/next/blocks/blockRepositoryBranchRuleset.js.map +1 -0
- package/lib/next/blocks/blockRepositoryLabels.d.ts +1 -2
- package/lib/next/blocks/blockRepositoryLabels.js +12 -2
- package/lib/next/blocks/blockRepositoryLabels.js.map +1 -1
- package/lib/next/blocks/blockRepositorySecrets.d.ts +52 -0
- package/lib/next/blocks/blockRepositorySecrets.js +34 -0
- package/lib/next/blocks/blockRepositorySecrets.js.map +1 -0
- package/lib/next/blocks/blockRepositorySettings.d.ts +1 -2
- package/lib/next/blocks/blockRepositorySettings.js +1 -1
- package/lib/next/blocks/blockRepositorySettings.js.map +1 -1
- package/lib/next/blocks/blockSecurityDocs.d.ts +1 -2
- package/lib/next/blocks/blockTSup.d.ts +1 -2
- package/lib/next/blocks/blockTemplatedBy.d.ts +1 -2
- package/lib/next/blocks/blockTypeScript.d.ts +1 -2
- package/lib/next/blocks/blockVSCode.d.ts +1 -2
- package/lib/next/blocks/blockVitest.d.ts +1 -2
- package/lib/next/blocks/blockVitest.js +26 -17
- package/lib/next/blocks/blockVitest.js.map +1 -1
- package/lib/next/blocks/options.fakes.d.ts +1 -0
- package/lib/next/blocks/options.fakes.js +1 -0
- package/lib/next/blocks/options.fakes.js.map +1 -1
- package/lib/next/blocks/packageData.d.ts +3 -2
- package/lib/next/blocks/packageData.js +20 -14
- package/lib/next/blocks/packageData.js.map +1 -1
- package/lib/next/presetCommon.d.ts +1 -2
- package/lib/next/presetEverything.d.ts +1 -2
- package/lib/next/presetMinimal.d.ts +1 -2
- package/lib/next/presetMinimal.js +6 -2
- package/lib/next/presetMinimal.js.map +1 -1
- package/lib/next/readDocumentation.d.ts +5 -0
- package/lib/next/readDocumentation.js +28 -0
- package/lib/next/readDocumentation.js.map +1 -0
- package/lib/next/template.d.ts +2 -3
- package/lib/next/template.js +2 -6
- package/lib/next/template.js.map +1 -1
- package/lib/next/utils/resolveBin.d.ts +3 -0
- package/lib/next/utils/resolveBin.js +7 -0
- package/lib/next/utils/resolveBin.js.map +1 -0
- package/lib/shared/getGitHubUserAsAllContributor.js +1 -1
- package/lib/shared/getGitHubUserAsAllContributor.js.map +1 -1
- package/lib/shared/options/optionsSchema.d.ts +4 -4
- package/lib/shared/options/readOptions.js +1 -1
- package/lib/shared/options/readOptions.js.map +1 -1
- package/lib/shared/packages.js +1 -3
- package/lib/shared/packages.js.map +1 -1
- package/lib/steps/addToolAllContributors.js +1 -1
- package/lib/steps/addToolAllContributors.js.map +1 -1
- package/lib/steps/initializeGitHubRepository/initializeBranchProtectionSettings.js +53 -31
- package/lib/steps/initializeGitHubRepository/initializeBranchProtectionSettings.js.map +1 -1
- package/lib/steps/uninstallPackages.js +4 -0
- package/lib/steps/uninstallPackages.js.map +1 -1
- package/lib/steps/updateAllContributorsTable.js +1 -1
- package/lib/steps/updateAllContributorsTable.js.map +1 -1
- package/lib/steps/writing/creation/createKnipConfig.d.ts +3 -0
- package/lib/steps/writing/creation/createKnipConfig.js +20 -0
- package/lib/steps/writing/creation/createKnipConfig.js.map +1 -0
- package/lib/steps/writing/creation/index.d.ts +2 -1
- package/lib/steps/writing/creation/index.js +21 -8
- package/lib/steps/writing/creation/index.js.map +1 -1
- package/lib/steps/writing/creation/rootFiles.js +2 -9
- package/lib/steps/writing/creation/rootFiles.js.map +1 -1
- package/package.json +16 -12
- package/lib/next/blocks/blockRepositoryBranchProtection.js +0 -49
- package/lib/next/blocks/blockRepositoryBranchProtection.js.map +0 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as create from 'create';
|
|
2
|
+
|
|
3
|
+
declare const blockGitHubApps: create.BlockWithAddons<{
|
|
4
|
+
apps: {
|
|
5
|
+
name: string;
|
|
6
|
+
url: string;
|
|
7
|
+
}[];
|
|
8
|
+
}, {
|
|
9
|
+
description: string;
|
|
10
|
+
directory: string;
|
|
11
|
+
email: {
|
|
12
|
+
github: string;
|
|
13
|
+
npm: string;
|
|
14
|
+
};
|
|
15
|
+
title: string;
|
|
16
|
+
owner: string;
|
|
17
|
+
repository: string;
|
|
18
|
+
access?: "public" | "restricted" | undefined;
|
|
19
|
+
author?: string | undefined;
|
|
20
|
+
bin?: string | undefined;
|
|
21
|
+
contributors?: {
|
|
22
|
+
name: string;
|
|
23
|
+
avatar_url: string;
|
|
24
|
+
contributions: string[];
|
|
25
|
+
login: string;
|
|
26
|
+
profile: string;
|
|
27
|
+
}[] | undefined;
|
|
28
|
+
documentation?: string | undefined;
|
|
29
|
+
funding?: string | undefined;
|
|
30
|
+
guide?: {
|
|
31
|
+
href: string;
|
|
32
|
+
title: string;
|
|
33
|
+
} | undefined;
|
|
34
|
+
hideTemplatedBy?: boolean | undefined;
|
|
35
|
+
keywords?: string[] | undefined;
|
|
36
|
+
logo?: {
|
|
37
|
+
alt: string;
|
|
38
|
+
src: string;
|
|
39
|
+
} | undefined;
|
|
40
|
+
node?: {
|
|
41
|
+
minimum: string;
|
|
42
|
+
pinned?: string | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
packageData?: {
|
|
45
|
+
dependencies?: Record<string, string> | undefined;
|
|
46
|
+
devDependencies?: Record<string, string> | undefined;
|
|
47
|
+
scripts?: Record<string, string> | undefined;
|
|
48
|
+
} | undefined;
|
|
49
|
+
version?: string | undefined;
|
|
50
|
+
}>;
|
|
51
|
+
|
|
52
|
+
export { blockGitHubApps };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { base } from "../base.js";
|
|
3
|
+
const zApp = z.object({
|
|
4
|
+
name: z.string(),
|
|
5
|
+
url: z.string()
|
|
6
|
+
});
|
|
7
|
+
const blockGitHubApps = base.createBlock({
|
|
8
|
+
about: {
|
|
9
|
+
name: "GitHub Apps"
|
|
10
|
+
},
|
|
11
|
+
addons: {
|
|
12
|
+
apps: z.array(zApp).default([])
|
|
13
|
+
},
|
|
14
|
+
produce({ addons }) {
|
|
15
|
+
return {
|
|
16
|
+
suggestions: addons.apps.length ? [
|
|
17
|
+
[
|
|
18
|
+
`- enable the GitHub app`,
|
|
19
|
+
addons.apps.length === 1 ? "" : "s",
|
|
20
|
+
`:
|
|
21
|
+
`,
|
|
22
|
+
addons.apps.map(printApp).join("\n")
|
|
23
|
+
].join("")
|
|
24
|
+
] : void 0
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
function printApp(app) {
|
|
29
|
+
return ` - ${app.name} (${app.url})`;
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
blockGitHubApps
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=blockGitHubApps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/next/blocks/blockGitHubApps.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\n\nconst zApp = z.object({\n\tname: z.string(),\n\turl: z.string(),\n});\nexport const blockGitHubApps = base.createBlock({\n\tabout: {\n\t\tname: \"GitHub Apps\",\n\t},\n\taddons: {\n\t\tapps: z.array(zApp).default([]),\n\t},\n\tproduce({ addons }) {\n\t\treturn {\n\t\t\tsuggestions: addons.apps.length\n\t\t\t\t? [\n\t\t\t\t\t\t[\n\t\t\t\t\t\t\t`- enable the GitHub app`,\n\t\t\t\t\t\t\taddons.apps.length === 1 ? \"\" : \"s\",\n\t\t\t\t\t\t\t`:\\n`,\n\t\t\t\t\t\t\taddons.apps.map(printApp).join(\"\\n\"),\n\t\t\t\t\t\t].join(\"\"),\n\t\t\t\t\t]\n\t\t\t\t: undefined,\n\t\t};\n\t},\n});\n\nfunction printApp(app: z.infer<typeof zApp>) {\n\treturn ` - ${app.name} (${app.url})`;\n}\n"],"mappings":"AAAA,SAAS,SAAS;AAElB,SAAS,YAAY;AAErB,MAAM,OAAO,EAAE,OAAO;AAAA,EACrB,MAAM,EAAE,OAAO;AAAA,EACf,KAAK,EAAE,OAAO;AACf,CAAC;AACM,MAAM,kBAAkB,KAAK,YAAY;AAAA,EAC/C,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,MAAM,EAAE,MAAM,IAAI,EAAE,QAAQ,CAAC,CAAC;AAAA,EAC/B;AAAA,EACA,QAAQ,EAAE,OAAO,GAAG;AACnB,WAAO;AAAA,MACN,aAAa,OAAO,KAAK,SACtB;AAAA,QACA;AAAA,UACC;AAAA,UACA,OAAO,KAAK,WAAW,IAAI,KAAK;AAAA,UAChC;AAAA;AAAA,UACA,OAAO,KAAK,IAAI,QAAQ,EAAE,KAAK,IAAI;AAAA,QACpC,EAAE,KAAK,EAAE;AAAA,MACV,IACC;AAAA,IACJ;AAAA,EACD;AACD,CAAC;AAED,SAAS,SAAS,KAA2B;AAC5C,SAAO,QAAQ,IAAI,IAAI,KAAK,IAAI,GAAG;AACpC;","names":[]}
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockGitHubIssueTemplates: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockGitHubIssueTemplates: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockGitHubIssueTemplates: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockGitHubPRTemplate: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockGitHubPRTemplate: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockGitHubPRTemplate: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|
|
@@ -4,6 +4,7 @@ declare const blockGitignore: create.BlockWithAddons<{
|
|
|
4
4
|
ignores: string[];
|
|
5
5
|
}, {
|
|
6
6
|
description: string;
|
|
7
|
+
directory: string;
|
|
7
8
|
email: {
|
|
8
9
|
github: string;
|
|
9
10
|
npm: string;
|
|
@@ -14,7 +15,6 @@ declare const blockGitignore: create.BlockWithAddons<{
|
|
|
14
15
|
access?: "public" | "restricted" | undefined;
|
|
15
16
|
author?: string | undefined;
|
|
16
17
|
bin?: string | undefined;
|
|
17
|
-
login?: string | undefined;
|
|
18
18
|
contributors?: {
|
|
19
19
|
name: string;
|
|
20
20
|
avatar_url: string;
|
|
@@ -43,7 +43,6 @@ declare const blockGitignore: create.BlockWithAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
47
46
|
version?: string | undefined;
|
|
48
47
|
}>;
|
|
49
48
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockKnip: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockKnip: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockKnip: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|
|
@@ -2,7 +2,7 @@ import { base } from "../base.js";
|
|
|
2
2
|
import { blockDevelopmentDocs } from "./blockDevelopmentDocs.js";
|
|
3
3
|
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.js";
|
|
4
4
|
import { blockPackageJson } from "./blockPackageJson.js";
|
|
5
|
-
import { getPackageDependencies } from "./packageData.js";
|
|
5
|
+
import { getPackageDependencies, getPackageDependency } from "./packageData.js";
|
|
6
6
|
const blockKnip = base.createBlock({
|
|
7
7
|
about: {
|
|
8
8
|
name: "Knip"
|
|
@@ -40,7 +40,7 @@ const blockKnip = base.createBlock({
|
|
|
40
40
|
],
|
|
41
41
|
files: {
|
|
42
42
|
"knip.json": JSON.stringify({
|
|
43
|
-
$schema:
|
|
43
|
+
$schema: `https://unpkg.com/knip@${getPackageDependency("knip")}/schema.json`,
|
|
44
44
|
entry: ["src/index.ts!"],
|
|
45
45
|
ignoreExportsUsedInFile: {
|
|
46
46
|
interface: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/next/blocks/blockKnip.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { getPackageDependencies } from \"./packageData.js\";\n\nexport const blockKnip = base.createBlock({\n\tabout: {\n\t\tname: \"Knip\",\n\t},\n\tproduce() {\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:knip\\` ([knip](https://github.com/webpro/knip)): Detects unused files, dependencies, and code exports`,\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 Knip\",\n\t\t\t\t\t\t\tsteps: [{ run: \"pnpm lint:knip\" }],\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(\"knip\"),\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\t\"lint:knip\": \"knip\",\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\"knip.json\": JSON.stringify({\n\t\t\t\t\t$schema:
|
|
1
|
+
{"version":3,"sources":["../../../src/next/blocks/blockKnip.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { getPackageDependencies, getPackageDependency } from \"./packageData.js\";\n\nexport const blockKnip = base.createBlock({\n\tabout: {\n\t\tname: \"Knip\",\n\t},\n\tproduce() {\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:knip\\` ([knip](https://github.com/webpro/knip)): Detects unused files, dependencies, and code exports`,\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 Knip\",\n\t\t\t\t\t\t\tsteps: [{ run: \"pnpm lint:knip\" }],\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(\"knip\"),\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\t\"lint:knip\": \"knip\",\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\"knip.json\": JSON.stringify({\n\t\t\t\t\t$schema: `https://unpkg.com/knip@${getPackageDependency(\"knip\")}/schema.json`,\n\t\t\t\t\tentry: [\"src/index.ts!\"],\n\t\t\t\t\tignoreExportsUsedInFile: {\n\t\t\t\t\t\tinterface: true,\n\t\t\t\t\t\ttype: true,\n\t\t\t\t\t},\n\t\t\t\t\tproject: [\"src/**/*.ts!\"],\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,4BAA4B;AACrC,SAAS,wBAAwB;AACjC,SAAS,wBAAwB,4BAA4B;AAEtD,MAAM,YAAY,KAAK,YAAY;AAAA,EACzC,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AACT,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,qBAAqB;AAAA,UACpB,UAAU;AAAA,YACT,SAAS;AAAA,cACR,UAAU;AAAA,gBACT,OAAO;AAAA,kBACN;AAAA,gBACD;AAAA,cACD;AAAA,YACD;AAAA,UACD;AAAA,QACD,CAAC;AAAA,QACD,qBAAqB;AAAA,UACpB,MAAM;AAAA,YACL;AAAA,cACC,MAAM;AAAA,cACN,OAAO,CAAC,EAAE,KAAK,iBAAiB,CAAC;AAAA,YAClC;AAAA,UACD;AAAA,QACD,CAAC;AAAA,QACD,iBAAiB;AAAA,UAChB,YAAY;AAAA,YACX,iBAAiB,uBAAuB,MAAM;AAAA,YAC9C,SAAS;AAAA,cACR,aAAa;AAAA,YACd;AAAA,UACD;AAAA,QACD,CAAC;AAAA,MACF;AAAA,MACA,OAAO;AAAA,QACN,aAAa,KAAK,UAAU;AAAA,UAC3B,SAAS,0BAA0B,qBAAqB,MAAM,CAAC;AAAA,UAC/D,OAAO,CAAC,eAAe;AAAA,UACvB,yBAAyB;AAAA,YACxB,WAAW;AAAA,YACX,MAAM;AAAA,UACP;AAAA,UACA,SAAS,CAAC,cAAc;AAAA,QACzB,CAAC;AAAA,MACF;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockMITLicense: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockMITLicense: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockMITLicense: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|
|
@@ -4,6 +4,7 @@ declare const blockMarkdownlint: create.BlockWithAddons<{
|
|
|
4
4
|
ignores: string[];
|
|
5
5
|
}, {
|
|
6
6
|
description: string;
|
|
7
|
+
directory: string;
|
|
7
8
|
email: {
|
|
8
9
|
github: string;
|
|
9
10
|
npm: string;
|
|
@@ -14,7 +15,6 @@ declare const blockMarkdownlint: create.BlockWithAddons<{
|
|
|
14
15
|
access?: "public" | "restricted" | undefined;
|
|
15
16
|
author?: string | undefined;
|
|
16
17
|
bin?: string | undefined;
|
|
17
|
-
login?: string | undefined;
|
|
18
18
|
contributors?: {
|
|
19
19
|
name: string;
|
|
20
20
|
avatar_url: string;
|
|
@@ -43,7 +43,6 @@ declare const blockMarkdownlint: create.BlockWithAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
47
46
|
version?: string | undefined;
|
|
48
47
|
}>;
|
|
49
48
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockNvmrc: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockNvmrc: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockNvmrc: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockPRCompliance: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockPRCompliance: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockPRCompliance: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|
|
@@ -11,6 +11,7 @@ declare const blockPackageJson: create.BlockWithAddons<{
|
|
|
11
11
|
} & Record<string, unknown>;
|
|
12
12
|
}, {
|
|
13
13
|
description: string;
|
|
14
|
+
directory: string;
|
|
14
15
|
email: {
|
|
15
16
|
github: string;
|
|
16
17
|
npm: string;
|
|
@@ -21,7 +22,6 @@ declare const blockPackageJson: create.BlockWithAddons<{
|
|
|
21
22
|
access?: "public" | "restricted" | undefined;
|
|
22
23
|
author?: string | undefined;
|
|
23
24
|
bin?: string | undefined;
|
|
24
|
-
login?: string | undefined;
|
|
25
25
|
contributors?: {
|
|
26
26
|
name: string;
|
|
27
27
|
avatar_url: string;
|
|
@@ -50,7 +50,6 @@ declare const blockPackageJson: create.BlockWithAddons<{
|
|
|
50
50
|
devDependencies?: Record<string, string> | undefined;
|
|
51
51
|
scripts?: Record<string, string> | undefined;
|
|
52
52
|
} | undefined;
|
|
53
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
54
53
|
version?: string | undefined;
|
|
55
54
|
}>;
|
|
56
55
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import removeUndefinedObjects from "remove-undefined-objects";
|
|
1
2
|
import sortPackageJson from "sort-package-json";
|
|
2
3
|
import { z } from "zod";
|
|
3
4
|
import { base } from "../base.js";
|
|
@@ -31,50 +32,54 @@ const blockPackageJson = base.createBlock({
|
|
|
31
32
|
};
|
|
32
33
|
},
|
|
33
34
|
produce({ addons, options }) {
|
|
35
|
+
const dependencies = {
|
|
36
|
+
...options.packageData?.dependencies,
|
|
37
|
+
...addons.properties.dependencies
|
|
38
|
+
};
|
|
39
|
+
const devDependencies = {
|
|
40
|
+
...options.packageData?.devDependencies,
|
|
41
|
+
...addons.properties.devDependencies
|
|
42
|
+
};
|
|
34
43
|
return {
|
|
35
44
|
files: {
|
|
36
45
|
"package.json": sortPackageJson(
|
|
37
|
-
JSON.stringify(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
options.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
},
|
|
75
|
-
type: "module",
|
|
76
|
-
version: options.version ?? "0.0.0"
|
|
77
|
-
})
|
|
46
|
+
JSON.stringify(
|
|
47
|
+
removeUndefinedObjects({
|
|
48
|
+
...addons.properties,
|
|
49
|
+
author: { email: options.email.npm, name: options.author },
|
|
50
|
+
bin: options.bin,
|
|
51
|
+
dependencies: Object.keys(dependencies).length ? dependencies : void 0,
|
|
52
|
+
description: options.description,
|
|
53
|
+
devDependencies: Object.keys(devDependencies).length ? devDependencies : void 0,
|
|
54
|
+
...options.node && {
|
|
55
|
+
engines: {
|
|
56
|
+
node: `>=${options.node.minimum}`
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
files: [
|
|
60
|
+
options.bin?.replace(/^\.\//, ""),
|
|
61
|
+
...addons.properties.files ?? [],
|
|
62
|
+
"package.json",
|
|
63
|
+
"README.md"
|
|
64
|
+
].filter(Boolean).sort(),
|
|
65
|
+
keywords: options.keywords?.flatMap(
|
|
66
|
+
(keyword) => keyword.split(/ /)
|
|
67
|
+
),
|
|
68
|
+
license: "MIT",
|
|
69
|
+
main: "./lib/index.js",
|
|
70
|
+
name: options.repository,
|
|
71
|
+
repository: {
|
|
72
|
+
type: "git",
|
|
73
|
+
url: `https://github.com/${options.owner}/${options.repository}`
|
|
74
|
+
},
|
|
75
|
+
scripts: {
|
|
76
|
+
...options.packageData?.scripts,
|
|
77
|
+
...addons.properties.scripts
|
|
78
|
+
},
|
|
79
|
+
type: "module",
|
|
80
|
+
version: options.version ?? "0.0.0"
|
|
81
|
+
})
|
|
82
|
+
)
|
|
78
83
|
)
|
|
79
84
|
},
|
|
80
85
|
scripts: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/next/blocks/blockPackageJson.ts"],"sourcesContent":["import sortPackageJson from \"sort-package-json\";\nimport { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockPackageJson = base.createBlock({\n\tabout: {\n\t\tname: \"Package JSON\",\n\t},\n\taddons: {\n\t\tcleanupCommands: z.array(z.string()).default([]),\n\t\t// TODO: Find a zod package for this?\n\t\tproperties: z\n\t\t\t.intersection(\n\t\t\t\tz.object({\n\t\t\t\t\tdependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\t\tdevDependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\t\tfiles: z.array(z.string()).optional(),\n\t\t\t\t\tpeerDependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\t\tscripts: z.record(z.string(), z.string()).optional(),\n\t\t\t\t}),\n\t\t\t\tz.record(z.string(), z.unknown()),\n\t\t\t)\n\t\t\t.default({}),\n\t},\n\tmigrate() {\n\t\treturn {\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"rm package-lock.json yarn.lock\"],\n\t\t\t\t\tphase: CommandPhase.Migrations,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n\tproduce({ addons, options }) {\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\t\"package.json\": sortPackageJson(\n\t\t\t\t\tJSON.stringify({\n\t\t\t\t\t\t...addons.properties,\n\t\t\t\t\t\tauthor: { email: options.email.npm, name: options.author },\n\t\t\t\t\t\tbin: options.bin,\n\t\t\t\t\t\tdependencies:
|
|
1
|
+
{"version":3,"sources":["../../../src/next/blocks/blockPackageJson.ts"],"sourcesContent":["import removeUndefinedObjects from \"remove-undefined-objects\";\nimport sortPackageJson from \"sort-package-json\";\nimport { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockPackageJson = base.createBlock({\n\tabout: {\n\t\tname: \"Package JSON\",\n\t},\n\taddons: {\n\t\tcleanupCommands: z.array(z.string()).default([]),\n\t\t// TODO: Find a zod package for this?\n\t\tproperties: z\n\t\t\t.intersection(\n\t\t\t\tz.object({\n\t\t\t\t\tdependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\t\tdevDependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\t\tfiles: z.array(z.string()).optional(),\n\t\t\t\t\tpeerDependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\t\tscripts: z.record(z.string(), z.string()).optional(),\n\t\t\t\t}),\n\t\t\t\tz.record(z.string(), z.unknown()),\n\t\t\t)\n\t\t\t.default({}),\n\t},\n\tmigrate() {\n\t\treturn {\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"rm package-lock.json yarn.lock\"],\n\t\t\t\t\tphase: CommandPhase.Migrations,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n\tproduce({ addons, options }) {\n\t\tconst dependencies = {\n\t\t\t...options.packageData?.dependencies,\n\t\t\t...addons.properties.dependencies,\n\t\t};\n\t\tconst devDependencies = {\n\t\t\t...options.packageData?.devDependencies,\n\t\t\t...addons.properties.devDependencies,\n\t\t};\n\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\t\"package.json\": sortPackageJson(\n\t\t\t\t\tJSON.stringify(\n\t\t\t\t\t\tremoveUndefinedObjects({\n\t\t\t\t\t\t\t...addons.properties,\n\t\t\t\t\t\t\tauthor: { email: options.email.npm, name: options.author },\n\t\t\t\t\t\t\tbin: options.bin,\n\t\t\t\t\t\t\tdependencies: Object.keys(dependencies).length\n\t\t\t\t\t\t\t\t? dependencies\n\t\t\t\t\t\t\t\t: undefined,\n\t\t\t\t\t\t\tdescription: options.description,\n\t\t\t\t\t\t\tdevDependencies: Object.keys(devDependencies).length\n\t\t\t\t\t\t\t\t? devDependencies\n\t\t\t\t\t\t\t\t: undefined,\n\t\t\t\t\t\t\t...(options.node && {\n\t\t\t\t\t\t\t\tengines: {\n\t\t\t\t\t\t\t\t\tnode: `>=${options.node.minimum}`,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tfiles: [\n\t\t\t\t\t\t\t\toptions.bin?.replace(/^\\.\\//, \"\"),\n\t\t\t\t\t\t\t\t...(addons.properties.files ?? []),\n\t\t\t\t\t\t\t\t\"package.json\",\n\t\t\t\t\t\t\t\t\"README.md\",\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t.filter(Boolean)\n\t\t\t\t\t\t\t\t.sort(),\n\t\t\t\t\t\t\tkeywords: options.keywords?.flatMap((keyword) =>\n\t\t\t\t\t\t\t\tkeyword.split(/ /),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tlicense: \"MIT\",\n\t\t\t\t\t\t\tmain: \"./lib/index.js\",\n\t\t\t\t\t\t\tname: options.repository,\n\t\t\t\t\t\t\trepository: {\n\t\t\t\t\t\t\t\ttype: \"git\",\n\t\t\t\t\t\t\t\turl: `https://github.com/${options.owner}/${options.repository}`,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\t\t...options.packageData?.scripts,\n\t\t\t\t\t\t\t\t...addons.properties.scripts,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\ttype: \"module\",\n\t\t\t\t\t\t\tversion: options.version ?? \"0.0.0\",\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\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"pnpm install\", ...addons.cleanupCommands],\n\t\t\t\t\tphase: CommandPhase.Install,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,OAAO,4BAA4B;AACnC,OAAO,qBAAqB;AAC5B,SAAS,SAAS;AAElB,SAAS,YAAY;AACrB,SAAS,oBAAoB;AAEtB,MAAM,mBAAmB,KAAK,YAAY;AAAA,EAChD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC;AAAA;AAAA,IAE/C,YAAY,EACV;AAAA,MACA,EAAE,OAAO;AAAA,QACR,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,EAAE,SAAS;AAAA,QACxD,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,EAAE,SAAS;AAAA,QAC3D,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS;AAAA,QACpC,kBAAkB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,EAAE,SAAS;AAAA,QAC5D,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,EAAE,SAAS;AAAA,MACpD,CAAC;AAAA,MACD,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;AAAA,IACjC,EACC,QAAQ,CAAC,CAAC;AAAA,EACb;AAAA,EACA,UAAU;AACT,WAAO;AAAA,MACN,SAAS;AAAA,QACR;AAAA,UACC,UAAU,CAAC,gCAAgC;AAAA,UAC3C,OAAO,aAAa;AAAA,QACrB;AAAA,MACD;AAAA,IACD;AAAA,EACD;AAAA,EACA,QAAQ,EAAE,QAAQ,QAAQ,GAAG;AAC5B,UAAM,eAAe;AAAA,MACpB,GAAG,QAAQ,aAAa;AAAA,MACxB,GAAG,OAAO,WAAW;AAAA,IACtB;AACA,UAAM,kBAAkB;AAAA,MACvB,GAAG,QAAQ,aAAa;AAAA,MACxB,GAAG,OAAO,WAAW;AAAA,IACtB;AAEA,WAAO;AAAA,MACN,OAAO;AAAA,QACN,gBAAgB;AAAA,UACf,KAAK;AAAA,YACJ,uBAAuB;AAAA,cACtB,GAAG,OAAO;AAAA,cACV,QAAQ,EAAE,OAAO,QAAQ,MAAM,KAAK,MAAM,QAAQ,OAAO;AAAA,cACzD,KAAK,QAAQ;AAAA,cACb,cAAc,OAAO,KAAK,YAAY,EAAE,SACrC,eACA;AAAA,cACH,aAAa,QAAQ;AAAA,cACrB,iBAAiB,OAAO,KAAK,eAAe,EAAE,SAC3C,kBACA;AAAA,cACH,GAAI,QAAQ,QAAQ;AAAA,gBACnB,SAAS;AAAA,kBACR,MAAM,KAAK,QAAQ,KAAK,OAAO;AAAA,gBAChC;AAAA,cACD;AAAA,cACA,OAAO;AAAA,gBACN,QAAQ,KAAK,QAAQ,SAAS,EAAE;AAAA,gBAChC,GAAI,OAAO,WAAW,SAAS,CAAC;AAAA,gBAChC;AAAA,gBACA;AAAA,cACD,EACE,OAAO,OAAO,EACd,KAAK;AAAA,cACP,UAAU,QAAQ,UAAU;AAAA,gBAAQ,CAAC,YACpC,QAAQ,MAAM,GAAG;AAAA,cAClB;AAAA,cACA,SAAS;AAAA,cACT,MAAM;AAAA,cACN,MAAM,QAAQ;AAAA,cACd,YAAY;AAAA,gBACX,MAAM;AAAA,gBACN,KAAK,sBAAsB,QAAQ,KAAK,IAAI,QAAQ,UAAU;AAAA,cAC/D;AAAA,cACA,SAAS;AAAA,gBACR,GAAG,QAAQ,aAAa;AAAA,gBACxB,GAAG,OAAO,WAAW;AAAA,cACtB;AAAA,cACA,MAAM;AAAA,cACN,SAAS,QAAQ,WAAW;AAAA,YAC7B,CAAC;AAAA,UACF;AAAA,QACD;AAAA,MACD;AAAA,MACA,SAAS;AAAA,QACR;AAAA,UACC,UAAU,CAAC,gBAAgB,GAAG,OAAO,eAAe;AAAA,UACpD,OAAO,aAAa;AAAA,QACrB;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockPnpmDedupe: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockPnpmDedupe: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockPnpmDedupe: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|
|
@@ -11,6 +11,7 @@ declare const blockPrettier: create.BlockWithAddons<{
|
|
|
11
11
|
}[];
|
|
12
12
|
}, {
|
|
13
13
|
description: string;
|
|
14
|
+
directory: string;
|
|
14
15
|
email: {
|
|
15
16
|
github: string;
|
|
16
17
|
npm: string;
|
|
@@ -21,7 +22,6 @@ declare const blockPrettier: create.BlockWithAddons<{
|
|
|
21
22
|
access?: "public" | "restricted" | undefined;
|
|
22
23
|
author?: string | undefined;
|
|
23
24
|
bin?: string | undefined;
|
|
24
|
-
login?: string | undefined;
|
|
25
25
|
contributors?: {
|
|
26
26
|
name: string;
|
|
27
27
|
avatar_url: string;
|
|
@@ -50,7 +50,6 @@ declare const blockPrettier: create.BlockWithAddons<{
|
|
|
50
50
|
devDependencies?: Record<string, string> | undefined;
|
|
51
51
|
scripts?: Record<string, string> | undefined;
|
|
52
52
|
} | undefined;
|
|
53
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
54
53
|
version?: string | undefined;
|
|
55
54
|
}>;
|
|
56
55
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockPrettierPluginCurly: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockPrettierPluginCurly: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockPrettierPluginCurly: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockPrettierPluginPackageJson: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockPrettierPluginPackageJson: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockPrettierPluginPackageJson: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockPrettierPluginSh: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockPrettierPluginSh: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockPrettierPluginSh: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|
|
@@ -4,6 +4,7 @@ declare const blockREADME: create.BlockWithAddons<{
|
|
|
4
4
|
notices: string[];
|
|
5
5
|
}, {
|
|
6
6
|
description: string;
|
|
7
|
+
directory: string;
|
|
7
8
|
email: {
|
|
8
9
|
github: string;
|
|
9
10
|
npm: string;
|
|
@@ -14,7 +15,6 @@ declare const blockREADME: create.BlockWithAddons<{
|
|
|
14
15
|
access?: "public" | "restricted" | undefined;
|
|
15
16
|
author?: string | undefined;
|
|
16
17
|
bin?: string | undefined;
|
|
17
|
-
login?: string | undefined;
|
|
18
18
|
contributors?: {
|
|
19
19
|
name: string;
|
|
20
20
|
avatar_url: string;
|
|
@@ -43,7 +43,6 @@ declare const blockREADME: create.BlockWithAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
47
46
|
version?: string | undefined;
|
|
48
47
|
}>;
|
|
49
48
|
|
|
@@ -2,6 +2,7 @@ import * as create from 'create';
|
|
|
2
2
|
|
|
3
3
|
declare const blockReleaseIt: create.BlockWithoutAddons<{
|
|
4
4
|
description: string;
|
|
5
|
+
directory: string;
|
|
5
6
|
email: {
|
|
6
7
|
github: string;
|
|
7
8
|
npm: string;
|
|
@@ -12,7 +13,6 @@ declare const blockReleaseIt: create.BlockWithoutAddons<{
|
|
|
12
13
|
access?: "public" | "restricted" | undefined;
|
|
13
14
|
author?: string | undefined;
|
|
14
15
|
bin?: string | undefined;
|
|
15
|
-
login?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
17
|
name: string;
|
|
18
18
|
avatar_url: string;
|
|
@@ -41,7 +41,6 @@ declare const blockReleaseIt: create.BlockWithoutAddons<{
|
|
|
41
41
|
devDependencies?: Record<string, string> | undefined;
|
|
42
42
|
scripts?: Record<string, string> | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
preserveGeneratedFrom?: boolean | undefined;
|
|
45
44
|
version?: string | undefined;
|
|
46
45
|
}>;
|
|
47
46
|
|