create-typescript-app 0.1.1 → 1.29.14
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/LICENSE.md +17 -5
- package/README.md +118 -0
- package/bin/index.js +4 -0
- package/lib/bin/index.d.ts +3 -0
- package/lib/bin/index.js +52 -0
- package/lib/bin/index.js.map +1 -0
- package/lib/bin/mode.d.ts +4 -0
- package/lib/bin/mode.js +43 -0
- package/lib/bin/mode.js.map +1 -0
- package/lib/create/createRerunSuggestion.d.ts +6 -0
- package/lib/create/createRerunSuggestion.js +17 -0
- package/lib/create/createRerunSuggestion.js.map +1 -0
- package/lib/create/createWithOptions.d.ts +9 -0
- package/lib/create/createWithOptions.js +62 -0
- package/lib/create/createWithOptions.js.map +1 -0
- package/lib/create/index.d.ts +3 -0
- package/lib/create/index.js +64 -0
- package/lib/create/index.js.map +1 -0
- package/lib/greet.d.ts +5 -0
- package/lib/greet.js +14 -0
- package/lib/greet.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -0
- package/lib/initialize/index.d.ts +3 -0
- package/lib/initialize/index.js +32 -0
- package/lib/initialize/index.js.map +1 -0
- package/lib/initialize/initializeWithOptions.d.ts +7 -0
- package/lib/initialize/initializeWithOptions.js +60 -0
- package/lib/initialize/initializeWithOptions.js.map +1 -0
- package/lib/migrate/index.d.ts +3 -0
- package/lib/migrate/index.js +29 -0
- package/lib/migrate/index.js.map +1 -0
- package/lib/migrate/migrateWithOptions.d.ts +7 -0
- package/lib/migrate/migrateWithOptions.js +67 -0
- package/lib/migrate/migrateWithOptions.js.map +1 -0
- package/lib/shared/cli/lines.d.ts +5 -0
- package/lib/shared/cli/lines.js +17 -0
- package/lib/shared/cli/lines.js.map +1 -0
- package/lib/shared/cli/lowerFirst.d.ts +3 -0
- package/lib/shared/cli/lowerFirst.js +7 -0
- package/lib/shared/cli/lowerFirst.js.map +1 -0
- package/lib/shared/cli/outro.d.ts +7 -0
- package/lib/shared/cli/outro.js +21 -0
- package/lib/shared/cli/outro.js.map +1 -0
- package/lib/shared/cli/spinners.d.ts +6 -0
- package/lib/shared/cli/spinners.js +49 -0
- package/lib/shared/cli/spinners.js.map +1 -0
- package/lib/shared/cli/startLineWithDots.d.ts +3 -0
- package/lib/shared/cli/startLineWithDots.js +31 -0
- package/lib/shared/cli/startLineWithDots.js.map +1 -0
- package/lib/shared/doesRepositoryExist.d.ts +9 -0
- package/lib/shared/doesRepositoryExist.js +18 -0
- package/lib/shared/doesRepositoryExist.js.map +1 -0
- package/lib/shared/ensureGitRepository.d.ts +3 -0
- package/lib/shared/ensureGitRepository.js +12 -0
- package/lib/shared/ensureGitRepository.js.map +1 -0
- package/lib/shared/getGitHubUserAsAllContributor.d.ts +3 -0
- package/lib/shared/getGitHubUserAsAllContributor.js +31 -0
- package/lib/shared/getGitHubUserAsAllContributor.js.map +1 -0
- package/lib/shared/options/args.d.ts +85 -0
- package/lib/shared/options/args.js +33 -0
- package/lib/shared/options/args.js.map +1 -0
- package/lib/shared/options/augmentOptionsWithExcludes.d.ts +5 -0
- package/lib/shared/options/augmentOptionsWithExcludes.js +126 -0
- package/lib/shared/options/augmentOptionsWithExcludes.js.map +1 -0
- package/lib/shared/options/ensureRepositoryExists.d.ts +11 -0
- package/lib/shared/options/ensureRepositoryExists.js +58 -0
- package/lib/shared/options/ensureRepositoryExists.js.map +1 -0
- package/lib/shared/options/getOctokit.d.ts +5 -0
- package/lib/shared/options/getOctokit.js +17 -0
- package/lib/shared/options/getOctokit.js.map +1 -0
- package/lib/shared/options/getPrefillOrPromptedOption.d.ts +3 -0
- package/lib/shared/options/getPrefillOrPromptedOption.js +23 -0
- package/lib/shared/options/getPrefillOrPromptedOption.js.map +1 -0
- package/lib/shared/options/optionalDefault.d.ts +3 -0
- package/lib/shared/options/optionalDefault.js +13 -0
- package/lib/shared/options/optionalDefault.js.map +1 -0
- package/lib/shared/options/readGitAndNpmDefaults/index.d.ts +11 -0
- package/lib/shared/options/readGitAndNpmDefaults/index.js +36 -0
- package/lib/shared/options/readGitAndNpmDefaults/index.js.map +1 -0
- package/lib/shared/options/readGitAndNpmDefaults/parsePackageAuthor.d.ts +8 -0
- package/lib/shared/options/readGitAndNpmDefaults/parsePackageAuthor.js +14 -0
- package/lib/shared/options/readGitAndNpmDefaults/parsePackageAuthor.js.map +1 -0
- package/lib/shared/options/readGitAndNpmDefaults/readTitleFromReadme.d.ts +3 -0
- package/lib/shared/options/readGitAndNpmDefaults/readTitleFromReadme.js +8 -0
- package/lib/shared/options/readGitAndNpmDefaults/readTitleFromReadme.js.map +1 -0
- package/lib/shared/options/readOptions.d.ts +10 -0
- package/lib/shared/options/readOptions.js +83 -0
- package/lib/shared/options/readOptions.js.map +1 -0
- package/lib/shared/packages.d.ts +6 -0
- package/lib/shared/packages.js +20 -0
- package/lib/shared/packages.js.map +1 -0
- package/lib/shared/prompts.d.ts +4 -0
- package/lib/shared/prompts.js +16 -0
- package/lib/shared/prompts.js.map +1 -0
- package/lib/shared/readFileAsJson.d.ts +3 -0
- package/lib/shared/readFileAsJson.js +15 -0
- package/lib/shared/readFileAsJson.js.map +1 -0
- package/lib/shared/readFileSafe.d.ts +3 -0
- package/lib/shared/readFileSafe.js +12 -0
- package/lib/shared/readFileSafe.js.map +1 -0
- package/lib/shared/readFileSafeAsJson.d.ts +3 -0
- package/lib/shared/readFileSafeAsJson.js +8 -0
- package/lib/shared/readFileSafeAsJson.js.map +1 -0
- package/lib/shared/runOrRestore.d.ts +7 -0
- package/lib/shared/runOrRestore.js +41 -0
- package/lib/shared/runOrRestore.js.map +1 -0
- package/lib/shared/tryCatchAsync.d.ts +3 -0
- package/lib/shared/tryCatchAsync.js +11 -0
- package/lib/shared/tryCatchAsync.js.map +1 -0
- package/lib/shared/types.d.ts +54 -0
- package/lib/shared/types.js +1 -0
- package/lib/shared/types.js.map +1 -0
- package/lib/steps/addOwnerAsAllContributor.d.ts +3 -0
- package/lib/steps/addOwnerAsAllContributor.js +41 -0
- package/lib/steps/addOwnerAsAllContributor.js.map +1 -0
- package/lib/steps/addToolAllContributors.d.ts +3 -0
- package/lib/steps/addToolAllContributors.js +12 -0
- package/lib/steps/addToolAllContributors.js.map +1 -0
- package/lib/steps/clearChangelog.d.ts +3 -0
- package/lib/steps/clearChangelog.js +12 -0
- package/lib/steps/clearChangelog.js.map +1 -0
- package/lib/steps/clearUnnecessaryFiles.d.ts +3 -0
- package/lib/steps/clearUnnecessaryFiles.js +33 -0
- package/lib/steps/clearUnnecessaryFiles.js.map +1 -0
- package/lib/steps/detectExistingContributors.d.ts +3 -0
- package/lib/steps/detectExistingContributors.js +16 -0
- package/lib/steps/detectExistingContributors.js.map +1 -0
- package/lib/steps/finalizeDependencies.d.ts +5 -0
- package/lib/steps/finalizeDependencies.js +59 -0
- package/lib/steps/finalizeDependencies.js.map +1 -0
- package/lib/steps/initializeGitHubRepository/index.d.ts +6 -0
- package/lib/steps/initializeGitHubRepository/index.js +14 -0
- package/lib/steps/initializeGitHubRepository/index.js.map +1 -0
- package/lib/steps/initializeGitHubRepository/initializeBranchProtectionSettings.d.ts +6 -0
- package/lib/steps/initializeGitHubRepository/initializeBranchProtectionSettings.js +46 -0
- package/lib/steps/initializeGitHubRepository/initializeBranchProtectionSettings.js.map +1 -0
- package/lib/steps/initializeGitHubRepository/labels/getExistingEquivalentLabel.d.ts +3 -0
- package/lib/steps/initializeGitHubRepository/labels/getExistingEquivalentLabel.js +14 -0
- package/lib/steps/initializeGitHubRepository/labels/getExistingEquivalentLabel.js.map +1 -0
- package/lib/steps/initializeGitHubRepository/labels/initializeRepositoryLabels.d.ts +3 -0
- package/lib/steps/initializeGitHubRepository/labels/initializeRepositoryLabels.js +31 -0
- package/lib/steps/initializeGitHubRepository/labels/initializeRepositoryLabels.js.map +1 -0
- package/lib/steps/initializeGitHubRepository/labels/outcomeLabels.d.ts +7 -0
- package/lib/steps/initializeGitHubRepository/labels/outcomeLabels.js +86 -0
- package/lib/steps/initializeGitHubRepository/labels/outcomeLabels.js.map +1 -0
- package/lib/steps/initializeGitRemote.d.ts +6 -0
- package/lib/steps/initializeGitRemote.js +15 -0
- package/lib/steps/initializeGitRemote.js.map +1 -0
- package/lib/steps/initializeRepositorySettings.d.ts +7 -0
- package/lib/steps/initializeRepositorySettings.js +27 -0
- package/lib/steps/initializeRepositorySettings.js.map +1 -0
- package/lib/steps/removeSetupScripts.d.ts +3 -0
- package/lib/steps/removeSetupScripts.js +23 -0
- package/lib/steps/removeSetupScripts.js.map +1 -0
- package/lib/steps/resetGitTags.d.ts +3 -0
- package/lib/steps/resetGitTags.js +12 -0
- package/lib/steps/resetGitTags.js.map +1 -0
- package/lib/steps/runCommands.d.ts +3 -0
- package/lib/steps/runCommands.js +33 -0
- package/lib/steps/runCommands.js.map +1 -0
- package/lib/steps/uninstallPackages.d.ts +3 -0
- package/lib/steps/uninstallPackages.js +41 -0
- package/lib/steps/uninstallPackages.js.map +1 -0
- package/lib/steps/updateAllContributorsTable.d.ts +5 -0
- package/lib/steps/updateAllContributorsTable.js +27 -0
- package/lib/steps/updateAllContributorsTable.js.map +1 -0
- package/lib/steps/updateLocalFiles.d.ts +5 -0
- package/lib/steps/updateLocalFiles.js +58 -0
- package/lib/steps/updateLocalFiles.js.map +1 -0
- package/lib/steps/updateReadme.d.ts +4 -0
- package/lib/steps/updateReadme.js +17 -0
- package/lib/steps/updateReadme.js.map +1 -0
- package/lib/steps/writeReadme.d.ts +5 -0
- package/lib/steps/writeReadme.js +87 -0
- package/lib/steps/writeReadme.js.map +1 -0
- package/lib/steps/writing/creation/createESLintRC.d.ts +5 -0
- package/lib/steps/writing/creation/createESLintRC.js +163 -0
- package/lib/steps/writing/creation/createESLintRC.js.map +1 -0
- package/lib/steps/writing/creation/dotGitHub/actions.d.ts +7 -0
- package/lib/steps/writing/creation/dotGitHub/actions.js +29 -0
- package/lib/steps/writing/creation/dotGitHub/actions.js.map +1 -0
- package/lib/steps/writing/creation/dotGitHub/createDevelopment.d.ts +5 -0
- package/lib/steps/writing/creation/dotGitHub/createDevelopment.js +96 -0
- package/lib/steps/writing/creation/dotGitHub/createDevelopment.js.map +1 -0
- package/lib/steps/writing/creation/dotGitHub/createDotGitHubFiles.d.ts +14 -0
- package/lib/steps/writing/creation/dotGitHub/createDotGitHubFiles.js +282 -0
- package/lib/steps/writing/creation/dotGitHub/createDotGitHubFiles.js.map +1 -0
- package/lib/steps/writing/creation/dotGitHub/createWorkflowFile.d.ts +49 -0
- package/lib/steps/writing/creation/dotGitHub/createWorkflowFile.js +34 -0
- package/lib/steps/writing/creation/dotGitHub/createWorkflowFile.js.map +1 -0
- package/lib/steps/writing/creation/dotGitHub/index.d.ts +41 -0
- package/lib/steps/writing/creation/dotGitHub/index.js +16 -0
- package/lib/steps/writing/creation/dotGitHub/index.js.map +1 -0
- package/lib/steps/writing/creation/dotGitHub/issueTemplate.d.ts +10 -0
- package/lib/steps/writing/creation/dotGitHub/issueTemplate.js +202 -0
- package/lib/steps/writing/creation/dotGitHub/issueTemplate.js.map +1 -0
- package/lib/steps/writing/creation/dotGitHub/workflows.d.ts +20 -0
- package/lib/steps/writing/creation/dotGitHub/workflows.js +280 -0
- package/lib/steps/writing/creation/dotGitHub/workflows.js.map +1 -0
- package/lib/steps/writing/creation/dotHusky.d.ts +6 -0
- package/lib/steps/writing/creation/dotHusky.js +15 -0
- package/lib/steps/writing/creation/dotHusky.js.map +1 -0
- package/lib/steps/writing/creation/dotVSCode.d.ts +9 -0
- package/lib/steps/writing/creation/dotVSCode.js +55 -0
- package/lib/steps/writing/creation/dotVSCode.js.map +1 -0
- package/lib/steps/writing/creation/formatters/formatIgnoreFile.d.ts +3 -0
- package/lib/steps/writing/creation/formatters/formatIgnoreFile.js +7 -0
- package/lib/steps/writing/creation/formatters/formatIgnoreFile.js.map +1 -0
- package/lib/steps/writing/creation/formatters/formatJson.d.ts +3 -0
- package/lib/steps/writing/creation/formatters/formatJson.js +17 -0
- package/lib/steps/writing/creation/formatters/formatJson.js.map +1 -0
- package/lib/steps/writing/creation/formatters/formatTypeScript.d.ts +3 -0
- package/lib/steps/writing/creation/formatters/formatTypeScript.js +8 -0
- package/lib/steps/writing/creation/formatters/formatTypeScript.js.map +1 -0
- package/lib/steps/writing/creation/formatters/formatYaml.d.ts +3 -0
- package/lib/steps/writing/creation/formatters/formatYaml.js +23 -0
- package/lib/steps/writing/creation/formatters/formatYaml.js.map +1 -0
- package/lib/steps/writing/creation/index.d.ts +6 -0
- package/lib/steps/writing/creation/index.js +18 -0
- package/lib/steps/writing/creation/index.js.map +1 -0
- package/lib/steps/writing/creation/rootFiles.d.ts +25 -0
- package/lib/steps/writing/creation/rootFiles.js +202 -0
- package/lib/steps/writing/creation/rootFiles.js.map +1 -0
- package/lib/steps/writing/creation/src.d.ts +10 -0
- package/lib/steps/writing/creation/src.js +90 -0
- package/lib/steps/writing/creation/src.js.map +1 -0
- package/lib/steps/writing/creation/writeAllContributorsRC.d.ts +5 -0
- package/lib/steps/writing/creation/writeAllContributorsRC.js +25 -0
- package/lib/steps/writing/creation/writeAllContributorsRC.js.map +1 -0
- package/lib/steps/writing/creation/writePackageJson.d.ts +5 -0
- package/lib/steps/writing/creation/writePackageJson.js +98 -0
- package/lib/steps/writing/creation/writePackageJson.js.map +1 -0
- package/lib/steps/writing/types.d.ts +5 -0
- package/lib/steps/writing/types.js +1 -0
- package/lib/steps/writing/types.js.map +1 -0
- package/lib/steps/writing/writeStructure.d.ts +5 -0
- package/lib/steps/writing/writeStructure.js +11 -0
- package/lib/steps/writing/writeStructure.js.map +1 -0
- package/lib/steps/writing/writeStructureWorker.d.ts +5 -0
- package/lib/steps/writing/writeStructureWorker.js +47 -0
- package/lib/steps/writing/writeStructureWorker.js.map +1 -0
- package/lib/types.d.ts +7 -0
- package/lib/types.js +1 -0
- package/lib/types.js.map +1 -0
- package/package.json +112 -23
- package/.vscode/settings.json +0 -3
- package/dist/src/cli.d.ts +0 -0
- package/dist/src/cli.js +0 -2
- package/dist/src/cli.js.map +0 -1
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.js +0 -53
- package/dist/src/index.js.map +0 -1
- package/dist/template/src/cli.d.ts +0 -0
- package/dist/template/src/cli.js +0 -2
- package/dist/template/src/cli.js.map +0 -1
- package/dist/template/src/index.d.ts +0 -0
- package/dist/template/src/index.js +0 -2
- package/dist/template/src/index.js.map +0 -1
- package/src/cli.ts +0 -0
- package/src/index.ts +0 -56
- package/src/types.d.ts +0 -10
- package/template/.vscode/settings.json +0 -3
- package/template/README.md +0 -28
- package/template/package.json +0 -34
- package/template/src/cli.ts +0 -0
- package/template/src/index.ts +0 -0
- package/template/tsconfig.json +0 -15
- package/template/tslint.json +0 -48
- package/tsconfig.json +0 -15
- package/tslint.json +0 -48
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
const outcomeLabels = [
|
|
2
|
+
{
|
|
3
|
+
color: "0075ca",
|
|
4
|
+
description: "Improvements or additions to docs",
|
|
5
|
+
name: "area: documentation"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
color: "6009D7",
|
|
9
|
+
description: "Improving how the repository's tests are run and/or code is tested",
|
|
10
|
+
name: "area: testing"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
color: "f9d0c4",
|
|
14
|
+
description: "Managing the repository's maintenance",
|
|
15
|
+
name: "area: tooling"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
color: "5319E7",
|
|
19
|
+
description: "Good for newcomers, please hop on!",
|
|
20
|
+
name: "good first issue"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
color: "7a5901",
|
|
24
|
+
description: "This doesn't seem right",
|
|
25
|
+
name: "invalid"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
color: "0E8A16",
|
|
29
|
+
description: "Please, send a pull request to resolve this!",
|
|
30
|
+
name: "status: accepting prs"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
color: "#ddcccc",
|
|
34
|
+
description: "Waiting for something else to be resolved",
|
|
35
|
+
name: "status: blocked"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
color: "cfd3d7",
|
|
39
|
+
description: "This issue or pull request already exists",
|
|
40
|
+
name: "status: duplicate"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
color: "#05104F",
|
|
44
|
+
description: "Not yet ready for implementation or a pull request",
|
|
45
|
+
name: "status: in discussion"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
color: "D3F82D",
|
|
49
|
+
description: "Further research required...?",
|
|
50
|
+
name: "status: needs investigation"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
color: "E4BC82",
|
|
54
|
+
description: "Needs an action taken by the original poster",
|
|
55
|
+
name: "status: waiting for author"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
color: "ffffff",
|
|
59
|
+
description: "This will not be worked on",
|
|
60
|
+
name: "status: wontfix"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
color: "d73a4a",
|
|
64
|
+
description: "Something isn't working :(",
|
|
65
|
+
name: "type: bug"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
color: "a2eeef",
|
|
69
|
+
description: "New enhancement or request",
|
|
70
|
+
name: "type: feature"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
color: "d876e3",
|
|
74
|
+
description: "Further information is requested",
|
|
75
|
+
name: "type: question"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
color: "fde282",
|
|
79
|
+
description: "Tech debt or other code/repository cleanups",
|
|
80
|
+
name: "type: cleanup"
|
|
81
|
+
}
|
|
82
|
+
];
|
|
83
|
+
export {
|
|
84
|
+
outcomeLabels
|
|
85
|
+
};
|
|
86
|
+
//# sourceMappingURL=outcomeLabels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/steps/initializeGitHubRepository/labels/outcomeLabels.ts"],"sourcesContent":["/* spellchecker: disable */\nexport const outcomeLabels = [\n\t{\n\t\tcolor: \"0075ca\",\n\t\tdescription: \"Improvements or additions to docs\",\n\t\tname: \"area: documentation\",\n\t},\n\t{\n\t\tcolor: \"6009D7\",\n\t\tdescription:\n\t\t\t\"Improving how the repository's tests are run and/or code is tested\",\n\t\tname: \"area: testing\",\n\t},\n\t{\n\t\tcolor: \"f9d0c4\",\n\t\tdescription: \"Managing the repository's maintenance\",\n\t\tname: \"area: tooling\",\n\t},\n\t{\n\t\tcolor: \"5319E7\",\n\t\tdescription: \"Good for newcomers, please hop on!\",\n\t\tname: \"good first issue\",\n\t},\n\t{\n\t\tcolor: \"7a5901\",\n\t\tdescription: \"This doesn't seem right\",\n\t\tname: \"invalid\",\n\t},\n\t{\n\t\tcolor: \"0E8A16\",\n\t\tdescription: \"Please, send a pull request to resolve this!\",\n\t\tname: \"status: accepting prs\",\n\t},\n\t{\n\t\tcolor: \"#ddcccc\",\n\t\tdescription: \"Waiting for something else to be resolved\",\n\t\tname: \"status: blocked\",\n\t},\n\t{\n\t\tcolor: \"cfd3d7\",\n\t\tdescription: \"This issue or pull request already exists\",\n\t\tname: \"status: duplicate\",\n\t},\n\t{\n\t\tcolor: \"#05104F\",\n\t\tdescription: \"Not yet ready for implementation or a pull request\",\n\t\tname: \"status: in discussion\",\n\t},\n\t{\n\t\tcolor: \"D3F82D\",\n\t\tdescription: \"Further research required...?\",\n\t\tname: \"status: needs investigation\",\n\t},\n\t{\n\t\tcolor: \"E4BC82\",\n\t\tdescription: \"Needs an action taken by the original poster\",\n\t\tname: \"status: waiting for author\",\n\t},\n\t{\n\t\tcolor: \"ffffff\",\n\t\tdescription: \"This will not be worked on\",\n\t\tname: \"status: wontfix\",\n\t},\n\t{\n\t\tcolor: \"d73a4a\",\n\t\tdescription: \"Something isn't working :(\",\n\t\tname: \"type: bug\",\n\t},\n\t{\n\t\tcolor: \"a2eeef\",\n\t\tdescription: \"New enhancement or request\",\n\t\tname: \"type: feature\",\n\t},\n\t{\n\t\tcolor: \"d876e3\",\n\t\tdescription: \"Further information is requested\",\n\t\tname: \"type: question\",\n\t},\n\t{\n\t\tcolor: \"fde282\",\n\t\tdescription: \"Tech debt or other code/repository cleanups\",\n\t\tname: \"type: cleanup\",\n\t},\n];\n"],"mappings":"AACO,MAAM,gBAAgB;AAAA,EAC5B;AAAA,IACC,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AAAA,EACA;AAAA,IACC,OAAO;AAAA,IACP,aACC;AAAA,IACD,MAAM;AAAA,EACP;AAAA,EACA;AAAA,IACC,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AAAA,EACA;AAAA,IACC,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AAAA,EACA;AAAA,IACC,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AAAA,EACA;AAAA,IACC,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AAAA,EACA;AAAA,IACC,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AAAA,EACA;AAAA,IACC,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AAAA,EACA;AAAA,IACC,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AAAA,EACA;AAAA,IACC,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AAAA,EACA;AAAA,IACC,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AAAA,EACA;AAAA,IACC,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AAAA,EACA;AAAA,IACC,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AAAA,EACA;AAAA,IACC,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AAAA,EACA;AAAA,IACC,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AAAA,EACA;AAAA,IACC,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AACD;","names":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { $ } from "execa";
|
|
2
|
+
async function initializeGitRemote({
|
|
3
|
+
owner,
|
|
4
|
+
repository
|
|
5
|
+
}) {
|
|
6
|
+
const remotes = (await $`git remote`).stdout.trim().split("\n");
|
|
7
|
+
if (!remotes.includes("origin")) {
|
|
8
|
+
await $`git remote add origin https://github.com/${owner}/${repository}`;
|
|
9
|
+
await $`git fetch`;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
initializeGitRemote
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=initializeGitRemote.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/steps/initializeGitRemote.ts"],"sourcesContent":["import { $ } from \"execa\";\n\nimport { Options } from \"../shared/types.js\";\n\ntype InitializeRepositorySettings = Pick<Options, \"owner\" | \"repository\">;\n\nexport async function initializeGitRemote({\n\towner,\n\trepository,\n}: InitializeRepositorySettings) {\n\tconst remotes = (await $`git remote`).stdout.trim().split(\"\\n\");\n\n\tif (!remotes.includes(\"origin\")) {\n\t\tawait $`git remote add origin https://github.com/${owner}/${repository}`;\n\t\tawait $`git fetch`;\n\t}\n}\n"],"mappings":"AAAA,SAAS,SAAS;AAMlB,eAAsB,oBAAoB;AAAA,EACzC;AAAA,EACA;AACD,GAAiC;AAChC,QAAM,WAAW,MAAM,eAAe,OAAO,KAAK,EAAE,MAAM,IAAI;AAE9D,MAAI,CAAC,QAAQ,SAAS,QAAQ,GAAG;AAChC,UAAM,6CAA6C,KAAK,IAAI,UAAU;AACtE,UAAM;AAAA,EACP;AACD;","names":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Octokit } from 'octokit';
|
|
2
|
+
import { Options } from '../shared/types.js';
|
|
3
|
+
|
|
4
|
+
type InitializeRepositorySettings = Pick<Options, "description" | "owner" | "repository">;
|
|
5
|
+
declare function initializeRepositorySettings(octokit: Octokit, { description, owner, repository }: InitializeRepositorySettings): Promise<void>;
|
|
6
|
+
|
|
7
|
+
export { initializeRepositorySettings };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
async function initializeRepositorySettings(octokit, { description, owner, repository }) {
|
|
2
|
+
await octokit.rest.repos.update({
|
|
3
|
+
allow_auto_merge: true,
|
|
4
|
+
allow_rebase_merge: false,
|
|
5
|
+
allow_squash_merge: true,
|
|
6
|
+
default_branch: "main",
|
|
7
|
+
delete_branch_on_merge: true,
|
|
8
|
+
description,
|
|
9
|
+
has_wiki: false,
|
|
10
|
+
owner,
|
|
11
|
+
repo: repository,
|
|
12
|
+
security_and_analysis: {
|
|
13
|
+
secret_scanning: {
|
|
14
|
+
status: "enabled"
|
|
15
|
+
},
|
|
16
|
+
secret_scanning_push_protection: {
|
|
17
|
+
status: "enabled"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
squash_merge_commit_message: "PR_BODY",
|
|
21
|
+
squash_merge_commit_title: "PR_TITLE"
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
initializeRepositorySettings
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=initializeRepositorySettings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/steps/initializeRepositorySettings.ts"],"sourcesContent":["import { Octokit } from \"octokit\";\n\nimport { Options } from \"../shared/types.js\";\n\ntype InitializeRepositorySettings = Pick<\n\tOptions,\n\t\"description\" | \"owner\" | \"repository\"\n>;\n\nexport async function initializeRepositorySettings(\n\toctokit: Octokit,\n\t{ description, owner, repository }: InitializeRepositorySettings,\n) {\n\tawait octokit.rest.repos.update({\n\t\tallow_auto_merge: true,\n\t\tallow_rebase_merge: false,\n\t\tallow_squash_merge: true,\n\t\tdefault_branch: \"main\",\n\t\tdelete_branch_on_merge: true,\n\t\tdescription,\n\t\thas_wiki: false,\n\t\towner,\n\t\trepo: repository,\n\t\tsecurity_and_analysis: {\n\t\t\tsecret_scanning: {\n\t\t\t\tstatus: \"enabled\",\n\t\t\t},\n\t\t\tsecret_scanning_push_protection: {\n\t\t\t\tstatus: \"enabled\",\n\t\t\t},\n\t\t},\n\t\tsquash_merge_commit_message: \"PR_BODY\",\n\t\tsquash_merge_commit_title: \"PR_TITLE\",\n\t});\n}\n"],"mappings":"AASA,eAAsB,6BACrB,SACA,EAAE,aAAa,OAAO,WAAW,GAChC;AACD,QAAM,QAAQ,KAAK,MAAM,OAAO;AAAA,IAC/B,kBAAkB;AAAA,IAClB,oBAAoB;AAAA,IACpB,oBAAoB;AAAA,IACpB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,IACxB;AAAA,IACA,UAAU;AAAA,IACV;AAAA,IACA,MAAM;AAAA,IACN,uBAAuB;AAAA,MACtB,iBAAiB;AAAA,QAChB,QAAQ;AAAA,MACT;AAAA,MACA,iCAAiC;AAAA,QAChC,QAAQ;AAAA,MACT;AAAA,IACD;AAAA,IACA,6BAA6B;AAAA,IAC7B,2BAA2B;AAAA,EAC5B,CAAC;AACF;","names":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import fs from "node:fs/promises";
|
|
2
|
+
const globPaths = [
|
|
3
|
+
"./bin",
|
|
4
|
+
"./docs",
|
|
5
|
+
"./script",
|
|
6
|
+
"./src/bin",
|
|
7
|
+
"./src/create",
|
|
8
|
+
"./src/initialize",
|
|
9
|
+
"./src/migrate",
|
|
10
|
+
"./src/shared",
|
|
11
|
+
"./src/steps",
|
|
12
|
+
".github/workflows/test-initialize.yml",
|
|
13
|
+
".github/workflows/test-migrate.yml"
|
|
14
|
+
];
|
|
15
|
+
async function removeSetupScripts() {
|
|
16
|
+
for (const globPath of globPaths) {
|
|
17
|
+
await fs.rm(globPath, { force: true, recursive: true });
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
removeSetupScripts
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=removeSetupScripts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/steps/removeSetupScripts.ts"],"sourcesContent":["import fs from \"node:fs/promises\";\n\nconst globPaths = [\n\t\"./bin\",\n\t\"./docs\",\n\t\"./script\",\n\t\"./src/bin\",\n\t\"./src/create\",\n\t\"./src/initialize\",\n\t\"./src/migrate\",\n\t\"./src/shared\",\n\t\"./src/steps\",\n\t\".github/workflows/test-initialize.yml\",\n\t\".github/workflows/test-migrate.yml\",\n];\n\nexport async function removeSetupScripts() {\n\tfor (const globPath of globPaths) {\n\t\tawait fs.rm(globPath, { force: true, recursive: true });\n\t}\n}\n"],"mappings":"AAAA,OAAO,QAAQ;AAEf,MAAM,YAAY;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AAEA,eAAsB,qBAAqB;AAC1C,aAAW,YAAY,WAAW;AACjC,UAAM,GAAG,GAAG,UAAU,EAAE,OAAO,MAAM,WAAW,KAAK,CAAC;AAAA,EACvD;AACD;","names":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { $ } from "execa";
|
|
2
|
+
async function resetGitTags() {
|
|
3
|
+
const { stdout: allLocalTags } = await $`git tag -l`;
|
|
4
|
+
const allLocalTagsArray = allLocalTags.split("\n").filter(Boolean);
|
|
5
|
+
if (allLocalTagsArray.length !== 0) {
|
|
6
|
+
await $`git tag -d ${allLocalTagsArray}`;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
resetGitTags
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=resetGitTags.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/steps/resetGitTags.ts"],"sourcesContent":["import { $ } from \"execa\";\n\nexport async function resetGitTags() {\n\tconst { stdout: allLocalTags } = await $`git tag -l`;\n\n\t// Create array of local tags by splitting the string at each new line and filtering out empty strings\n\tconst allLocalTagsArray = allLocalTags.split(\"\\n\").filter(Boolean);\n\n\t// Delete all local tags if there are any\n\tif (allLocalTagsArray.length !== 0) {\n\t\tawait $`git tag -d ${allLocalTagsArray}`;\n\t}\n}\n"],"mappings":"AAAA,SAAS,SAAS;AAElB,eAAsB,eAAe;AACpC,QAAM,EAAE,QAAQ,aAAa,IAAI,MAAM;AAGvC,QAAM,oBAAoB,aAAa,MAAM,IAAI,EAAE,OAAO,OAAO;AAGjE,MAAI,kBAAkB,WAAW,GAAG;AACnC,UAAM,eAAe,iBAAiB;AAAA,EACvC;AACD;","names":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import chalk from "chalk";
|
|
2
|
+
import { execaCommand } from "execa";
|
|
3
|
+
import { logLine } from "../shared/cli/lines.js";
|
|
4
|
+
import { withSpinner } from "../shared/cli/spinners.js";
|
|
5
|
+
async function runCommands(label, commands) {
|
|
6
|
+
const failed = [];
|
|
7
|
+
await withSpinner(label, async () => {
|
|
8
|
+
for (const command of commands) {
|
|
9
|
+
try {
|
|
10
|
+
await execaCommand(command);
|
|
11
|
+
} catch {
|
|
12
|
+
failed.push(command);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
if (!failed.length) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
logLine();
|
|
20
|
+
for (const command of failed) {
|
|
21
|
+
logLine(
|
|
22
|
+
[
|
|
23
|
+
chalk.yellow(`\u{1F7E1} Running \``),
|
|
24
|
+
chalk.yellowBright(command),
|
|
25
|
+
chalk.yellow(`\` failed. You should run it and fix its complaints.`)
|
|
26
|
+
].join("")
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
runCommands
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=runCommands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/steps/runCommands.ts"],"sourcesContent":["import chalk from \"chalk\";\nimport { execaCommand } from \"execa\";\n\nimport { logLine } from \"../shared/cli/lines.js\";\nimport { withSpinner } from \"../shared/cli/spinners.js\";\n\nexport async function runCommands(label: string, commands: string[]) {\n\tconst failed: string[] = [];\n\n\tawait withSpinner(label, async () => {\n\t\tfor (const command of commands) {\n\t\t\ttry {\n\t\t\t\tawait execaCommand(command);\n\t\t\t} catch {\n\t\t\t\tfailed.push(command);\n\t\t\t}\n\t\t}\n\t});\n\n\tif (!failed.length) {\n\t\treturn;\n\t}\n\n\tlogLine();\n\n\tfor (const command of failed) {\n\t\tlogLine(\n\t\t\t[\n\t\t\t\tchalk.yellow(`🟡 Running \\``),\n\t\t\t\tchalk.yellowBright(command),\n\t\t\t\tchalk.yellow(`\\` failed. You should run it and fix its complaints.`),\n\t\t\t].join(\"\"),\n\t\t);\n\t}\n}\n"],"mappings":"AAAA,OAAO,WAAW;AAClB,SAAS,oBAAoB;AAE7B,SAAS,eAAe;AACxB,SAAS,mBAAmB;AAE5B,eAAsB,YAAY,OAAe,UAAoB;AACpE,QAAM,SAAmB,CAAC;AAE1B,QAAM,YAAY,OAAO,YAAY;AACpC,eAAW,WAAW,UAAU;AAC/B,UAAI;AACH,cAAM,aAAa,OAAO;AAAA,MAC3B,QAAQ;AACP,eAAO,KAAK,OAAO;AAAA,MACpB;AAAA,IACD;AAAA,EACD,CAAC;AAED,MAAI,CAAC,OAAO,QAAQ;AACnB;AAAA,EACD;AAEA,UAAQ;AAER,aAAW,WAAW,QAAQ;AAC7B;AAAA,MACC;AAAA,QACC,MAAM,OAAO,sBAAe;AAAA,QAC5B,MAAM,aAAa,OAAO;AAAA,QAC1B,MAAM,OAAO,sDAAsD;AAAA,MACpE,EAAE,KAAK,EAAE;AAAA,IACV;AAAA,EACD;AACD;","names":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { $ } from "execa";
|
|
2
|
+
import { readPackageData, removeDependencies } from "../shared/packages.js";
|
|
3
|
+
async function uninstallPackages() {
|
|
4
|
+
const packageData = await readPackageData();
|
|
5
|
+
await removeDependencies(
|
|
6
|
+
[
|
|
7
|
+
"@clack/prompts",
|
|
8
|
+
"all-contributors-for-repository",
|
|
9
|
+
"chalk",
|
|
10
|
+
"execa",
|
|
11
|
+
"git-remote-origin-url",
|
|
12
|
+
"git-url-parse",
|
|
13
|
+
"js-yaml",
|
|
14
|
+
"npm-user",
|
|
15
|
+
"octokit",
|
|
16
|
+
"prettier",
|
|
17
|
+
"replace-in-file",
|
|
18
|
+
"title-case"
|
|
19
|
+
],
|
|
20
|
+
packageData.dependencies
|
|
21
|
+
);
|
|
22
|
+
await removeDependencies(
|
|
23
|
+
[
|
|
24
|
+
"@octokit/request-error",
|
|
25
|
+
"@types/git-url-parse",
|
|
26
|
+
"@types/js-yaml",
|
|
27
|
+
"@types/prettier",
|
|
28
|
+
"all-contributors-cli",
|
|
29
|
+
"c8",
|
|
30
|
+
"globby",
|
|
31
|
+
"tsx"
|
|
32
|
+
],
|
|
33
|
+
packageData.devDependencies,
|
|
34
|
+
"-D"
|
|
35
|
+
);
|
|
36
|
+
await $`pnpm add prettier -D`;
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
uninstallPackages
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=uninstallPackages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/steps/uninstallPackages.ts"],"sourcesContent":["import { $ } from \"execa\";\n\nimport { readPackageData, removeDependencies } from \"../shared/packages.js\";\n\nexport async function uninstallPackages() {\n\tconst packageData = await readPackageData();\n\n\tawait removeDependencies(\n\t\t[\n\t\t\t\"@clack/prompts\",\n\t\t\t\"all-contributors-for-repository\",\n\t\t\t\"chalk\",\n\t\t\t\"execa\",\n\t\t\t\"git-remote-origin-url\",\n\t\t\t\"git-url-parse\",\n\t\t\t\"js-yaml\",\n\t\t\t\"npm-user\",\n\t\t\t\"octokit\",\n\t\t\t\"prettier\",\n\t\t\t\"replace-in-file\",\n\t\t\t\"title-case\",\n\t\t],\n\t\tpackageData.dependencies,\n\t);\n\n\tawait removeDependencies(\n\t\t[\n\t\t\t\"@octokit/request-error\",\n\t\t\t\"@types/git-url-parse\",\n\t\t\t\"@types/js-yaml\",\n\t\t\t\"@types/prettier\",\n\t\t\t\"all-contributors-cli\",\n\t\t\t\"c8\",\n\t\t\t\"globby\",\n\t\t\t\"tsx\",\n\t\t],\n\t\tpackageData.devDependencies,\n\t\t\"-D\",\n\t);\n\n\tawait $`pnpm add prettier -D`;\n}\n"],"mappings":"AAAA,SAAS,SAAS;AAElB,SAAS,iBAAiB,0BAA0B;AAEpD,eAAsB,oBAAoB;AACzC,QAAM,cAAc,MAAM,gBAAgB;AAE1C,QAAM;AAAA,IACL;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACD;AAAA,IACA,YAAY;AAAA,EACb;AAEA,QAAM;AAAA,IACL;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACD;AAAA,IACA,YAAY;AAAA,IACZ;AAAA,EACD;AAEA,QAAM;AACP;","names":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { $ } from "execa";
|
|
2
|
+
import fs from "node:fs/promises";
|
|
3
|
+
import prettier from "prettier";
|
|
4
|
+
import { readFileSafeAsJson } from "../shared/readFileSafeAsJson.js";
|
|
5
|
+
async function updateAllContributorsTable({
|
|
6
|
+
owner,
|
|
7
|
+
repository
|
|
8
|
+
}) {
|
|
9
|
+
await fs.writeFile(
|
|
10
|
+
".all-contributorsrc",
|
|
11
|
+
await prettier.format(
|
|
12
|
+
JSON.stringify({
|
|
13
|
+
...await readFileSafeAsJson(
|
|
14
|
+
".all-contributorsrc"
|
|
15
|
+
),
|
|
16
|
+
projectName: repository,
|
|
17
|
+
projectOwner: owner
|
|
18
|
+
}),
|
|
19
|
+
{ parser: "json" }
|
|
20
|
+
)
|
|
21
|
+
);
|
|
22
|
+
await $`npx -y all-contributors-cli generate`;
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
updateAllContributorsTable
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=updateAllContributorsTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/steps/updateAllContributorsTable.ts"],"sourcesContent":["import { $ } from \"execa\";\nimport fs from \"node:fs/promises\";\nimport prettier from \"prettier\";\n\nimport { readFileSafeAsJson } from \"../shared/readFileSafeAsJson.js\";\nimport { AllContributorsData, Options } from \"../shared/types.js\";\n\nexport async function updateAllContributorsTable({\n\towner,\n\trepository,\n}: Pick<Options, \"owner\" | \"repository\">) {\n\tawait fs.writeFile(\n\t\t\".all-contributorsrc\",\n\t\tawait prettier.format(\n\t\t\tJSON.stringify({\n\t\t\t\t...((await readFileSafeAsJson(\n\t\t\t\t\t\".all-contributorsrc\",\n\t\t\t\t)) as AllContributorsData),\n\t\t\t\tprojectName: repository,\n\t\t\t\tprojectOwner: owner,\n\t\t\t}),\n\t\t\t{ parser: \"json\" },\n\t\t),\n\t);\n\n\tawait $`npx -y all-contributors-cli generate`;\n}\n"],"mappings":"AAAA,SAAS,SAAS;AAClB,OAAO,QAAQ;AACf,OAAO,cAAc;AAErB,SAAS,0BAA0B;AAGnC,eAAsB,2BAA2B;AAAA,EAChD;AAAA,EACA;AACD,GAA0C;AACzC,QAAM,GAAG;AAAA,IACR;AAAA,IACA,MAAM,SAAS;AAAA,MACd,KAAK,UAAU;AAAA,QACd,GAAK,MAAM;AAAA,UACV;AAAA,QACD;AAAA,QACA,aAAa;AAAA,QACb,cAAc;AAAA,MACf,CAAC;AAAA,MACD,EAAE,QAAQ,OAAO;AAAA,IAClB;AAAA,EACD;AAEA,QAAM;AACP;","names":[]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import replaceInFile from "replace-in-file";
|
|
2
|
+
import { readFileSafeAsJson } from "../shared/readFileSafeAsJson.js";
|
|
3
|
+
async function updateLocalFiles(options) {
|
|
4
|
+
const existingPackage = await readFileSafeAsJson("./package.json") ?? {};
|
|
5
|
+
const replacements = [
|
|
6
|
+
[/Create TypeScript App/g, options.title],
|
|
7
|
+
[/JoshuaKGoldberg/g, options.owner],
|
|
8
|
+
[/create-typescript-app/g, options.repository],
|
|
9
|
+
[/\/\*\n.+\*\/\n\n/gs, ``, ".eslintrc.cjs"],
|
|
10
|
+
[/"author": ".+"/g, `"author": "${options.author}"`, "./package.json"],
|
|
11
|
+
[/"bin": ".+\n/g, ``, "./package.json"],
|
|
12
|
+
[/"create:test": ".+\n/g, ``, "./package.json"],
|
|
13
|
+
[/"initialize:test": ".*/g, ``, "./package.json"],
|
|
14
|
+
[/"initialize": ".*/g, ``, "./package.json"],
|
|
15
|
+
[/"migrate:test": ".+\n/g, ``, "./package.json"],
|
|
16
|
+
[/## Getting Started.*## Development/gs, `## Development`, "./README.md"],
|
|
17
|
+
[/\n## Setup Scripts.*$/gs, "", "./.github/DEVELOPMENT.md"],
|
|
18
|
+
[` "src/initialize/index.ts",
|
|
19
|
+
`, ``, "./knip.jsonc"],
|
|
20
|
+
[` "src/migrate/index.ts",
|
|
21
|
+
`, ``, "./knip.jsonc"],
|
|
22
|
+
[
|
|
23
|
+
`["src/index.ts!", "script/initialize*.js"]`,
|
|
24
|
+
`"src/index.ts!"`,
|
|
25
|
+
"./knip.jsonc"
|
|
26
|
+
],
|
|
27
|
+
[`["src/**/*.ts!", "script/**/*.js"]`, `"src/**/*.ts!"`, "./knip.jsonc"]
|
|
28
|
+
];
|
|
29
|
+
if (existingPackage.description) {
|
|
30
|
+
replacements.push([
|
|
31
|
+
new RegExp(existingPackage.description, "g"),
|
|
32
|
+
options.description
|
|
33
|
+
]);
|
|
34
|
+
}
|
|
35
|
+
if (existingPackage.version) {
|
|
36
|
+
replacements.push([
|
|
37
|
+
new RegExp(`"version": "${existingPackage.version}"`, "g"),
|
|
38
|
+
`"version": "0.0.0"`,
|
|
39
|
+
"./package.json"
|
|
40
|
+
]);
|
|
41
|
+
}
|
|
42
|
+
for (const [from, to, files = ["./.github/**/*", "./*.*"]] of replacements) {
|
|
43
|
+
try {
|
|
44
|
+
await replaceInFile({ files, from, to });
|
|
45
|
+
} catch (error) {
|
|
46
|
+
throw new Error(
|
|
47
|
+
`Failed to replace ${from.toString()} with ${to} in ${files.toString()}`,
|
|
48
|
+
{
|
|
49
|
+
cause: error
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
updateLocalFiles
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=updateLocalFiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/steps/updateLocalFiles.ts"],"sourcesContent":["import replaceInFile from \"replace-in-file\";\n\nimport { readFileSafeAsJson } from \"../shared/readFileSafeAsJson.js\";\nimport { Options } from \"../shared/types.js\";\n\ninterface ExistingPackageData {\n\tdescription?: string;\n\tversion?: string;\n}\n\nexport async function updateLocalFiles(options: Options) {\n\tconst existingPackage = ((await readFileSafeAsJson(\"./package.json\")) ??\n\t\t{}) as ExistingPackageData;\n\n\tconst replacements = [\n\t\t[/Create TypeScript App/g, options.title],\n\t\t[/JoshuaKGoldberg/g, options.owner],\n\t\t[/create-typescript-app/g, options.repository],\n\t\t[/\\/\\*\\n.+\\*\\/\\n\\n/gs, ``, \".eslintrc.cjs\"],\n\t\t[/\"author\": \".+\"/g, `\"author\": \"${options.author}\"`, \"./package.json\"],\n\t\t[/\"bin\": \".+\\n/g, ``, \"./package.json\"],\n\t\t[/\"create:test\": \".+\\n/g, ``, \"./package.json\"],\n\t\t[/\"initialize:test\": \".*/g, ``, \"./package.json\"],\n\t\t[/\"initialize\": \".*/g, ``, \"./package.json\"],\n\t\t[/\"migrate:test\": \".+\\n/g, ``, \"./package.json\"],\n\t\t[/## Getting Started.*## Development/gs, `## Development`, \"./README.md\"],\n\t\t[/\\n## Setup Scripts.*$/gs, \"\", \"./.github/DEVELOPMENT.md\"],\n\t\t[`\\t\\t\"src/initialize/index.ts\",\\n`, ``, \"./knip.jsonc\"],\n\t\t[`\\t\\t\"src/migrate/index.ts\",\\n`, ``, \"./knip.jsonc\"],\n\t\t[\n\t\t\t`[\"src/index.ts!\", \"script/initialize*.js\"]`,\n\t\t\t`\"src/index.ts!\"`,\n\t\t\t\"./knip.jsonc\",\n\t\t],\n\t\t[`[\"src/**/*.ts!\", \"script/**/*.js\"]`, `\"src/**/*.ts!\"`, \"./knip.jsonc\"],\n\t];\n\n\tif (existingPackage.description) {\n\t\treplacements.push([\n\t\t\tnew RegExp(existingPackage.description, \"g\"),\n\t\t\toptions.description,\n\t\t]);\n\t}\n\n\tif (existingPackage.version) {\n\t\treplacements.push([\n\t\t\tnew RegExp(`\"version\": \"${existingPackage.version}\"`, \"g\"),\n\t\t\t`\"version\": \"0.0.0\"`,\n\t\t\t\"./package.json\",\n\t\t]);\n\t}\n\n\tfor (const [from, to, files = [\"./.github/**/*\", \"./*.*\"]] of replacements) {\n\t\ttry {\n\t\t\t// @ts-expect-error -- https://github.com/microsoft/TypeScript/issues/54342\n\t\t\tawait replaceInFile({ files, from, to });\n\t\t} catch (error) {\n\t\t\tthrow new Error(\n\t\t\t\t`Failed to replace ${from.toString()} with ${to} in ${files.toString()}`,\n\t\t\t\t{\n\t\t\t\t\tcause: error,\n\t\t\t\t},\n\t\t\t);\n\t\t}\n\t}\n}\n"],"mappings":"AAAA,OAAO,mBAAmB;AAE1B,SAAS,0BAA0B;AAQnC,eAAsB,iBAAiB,SAAkB;AACxD,QAAM,kBAAoB,MAAM,mBAAmB,gBAAgB,KAClE,CAAC;AAEF,QAAM,eAAe;AAAA,IACpB,CAAC,0BAA0B,QAAQ,KAAK;AAAA,IACxC,CAAC,oBAAoB,QAAQ,KAAK;AAAA,IAClC,CAAC,0BAA0B,QAAQ,UAAU;AAAA,IAC7C,CAAC,sBAAsB,IAAI,eAAe;AAAA,IAC1C,CAAC,mBAAmB,cAAc,QAAQ,MAAM,KAAK,gBAAgB;AAAA,IACrE,CAAC,iBAAiB,IAAI,gBAAgB;AAAA,IACtC,CAAC,yBAAyB,IAAI,gBAAgB;AAAA,IAC9C,CAAC,2BAA2B,IAAI,gBAAgB;AAAA,IAChD,CAAC,sBAAsB,IAAI,gBAAgB;AAAA,IAC3C,CAAC,0BAA0B,IAAI,gBAAgB;AAAA,IAC/C,CAAC,wCAAwC,kBAAkB,aAAa;AAAA,IACxE,CAAC,2BAA2B,IAAI,0BAA0B;AAAA,IAC1D,CAAC;AAAA,GAAoC,IAAI,cAAc;AAAA,IACvD,CAAC;AAAA,GAAiC,IAAI,cAAc;AAAA,IACpD;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,IACD;AAAA,IACA,CAAC,sCAAsC,kBAAkB,cAAc;AAAA,EACxE;AAEA,MAAI,gBAAgB,aAAa;AAChC,iBAAa,KAAK;AAAA,MACjB,IAAI,OAAO,gBAAgB,aAAa,GAAG;AAAA,MAC3C,QAAQ;AAAA,IACT,CAAC;AAAA,EACF;AAEA,MAAI,gBAAgB,SAAS;AAC5B,iBAAa,KAAK;AAAA,MACjB,IAAI,OAAO,eAAe,gBAAgB,OAAO,KAAK,GAAG;AAAA,MACzD;AAAA,MACA;AAAA,IACD,CAAC;AAAA,EACF;AAEA,aAAW,CAAC,MAAM,IAAI,QAAQ,CAAC,kBAAkB,OAAO,CAAC,KAAK,cAAc;AAC3E,QAAI;AAEH,YAAM,cAAc,EAAE,OAAO,MAAM,GAAG,CAAC;AAAA,IACxC,SAAS,OAAO;AACf,YAAM,IAAI;AAAA,QACT,qBAAqB,KAAK,SAAS,CAAC,SAAS,EAAE,OAAO,MAAM,SAAS,CAAC;AAAA,QACtE;AAAA,UACC,OAAO;AAAA,QACR;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD;","names":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import fs from "node:fs/promises";
|
|
2
|
+
import { EOL } from "node:os";
|
|
3
|
+
const endOfReadmeNotice = [
|
|
4
|
+
``,
|
|
5
|
+
`<!-- You can remove this notice if you don't want it \u{1F642} no worries! -->`,
|
|
6
|
+
``,
|
|
7
|
+
`> \u{1F499} This package is based on [@JoshuaKGoldberg](https://github.com/JoshuaKGoldberg)'s [create-typescript-app](https://github.com/JoshuaKGoldberg/create-typescript-app).`,
|
|
8
|
+
``
|
|
9
|
+
].join(EOL);
|
|
10
|
+
async function updateReadme() {
|
|
11
|
+
await fs.appendFile("./README.md", endOfReadmeNotice);
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
endOfReadmeNotice,
|
|
15
|
+
updateReadme
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=updateReadme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/steps/updateReadme.ts"],"sourcesContent":["import fs from \"node:fs/promises\";\nimport { EOL } from \"node:os\";\n\nexport const endOfReadmeNotice = [\n\t``,\n\t`<!-- You can remove this notice if you don't want it 🙂 no worries! -->`,\n\t``,\n\t`> 💙 This package is based on [@JoshuaKGoldberg](https://github.com/JoshuaKGoldberg)'s [create-typescript-app](https://github.com/JoshuaKGoldberg/create-typescript-app).`,\n\t``,\n].join(EOL);\n\nexport async function updateReadme() {\n\tawait fs.appendFile(\"./README.md\", endOfReadmeNotice);\n}\n"],"mappings":"AAAA,OAAO,QAAQ;AACf,SAAS,WAAW;AAEb,MAAM,oBAAoB;AAAA,EAChC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,EAAE,KAAK,GAAG;AAEV,eAAsB,eAAe;AACpC,QAAM,GAAG,WAAW,eAAe,iBAAiB;AACrD;","names":[]}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import fs from "node:fs/promises";
|
|
2
|
+
import { readFileSafe } from "../shared/readFileSafe.js";
|
|
3
|
+
import { endOfReadmeNotice } from "./updateReadme.js";
|
|
4
|
+
const contributorsIndicator = `<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->`;
|
|
5
|
+
function generateAllContributorsContent(options) {
|
|
6
|
+
return [
|
|
7
|
+
`## Contributors`,
|
|
8
|
+
``,
|
|
9
|
+
`<!-- spellchecker: disable -->`,
|
|
10
|
+
contributorsIndicator,
|
|
11
|
+
`<!-- prettier-ignore-start -->`,
|
|
12
|
+
!options.excludeLintMd && `<!-- markdownlint-disable -->`,
|
|
13
|
+
`<table>`,
|
|
14
|
+
`<!-- (this will be filled in by all-contributors) -->`,
|
|
15
|
+
`</table>`,
|
|
16
|
+
``,
|
|
17
|
+
!options.excludeLintMd && `<!-- markdownlint-restore -->`,
|
|
18
|
+
`<!-- prettier-ignore-end -->`,
|
|
19
|
+
``,
|
|
20
|
+
`<!-- ALL-CONTRIBUTORS-LIST:END -->`,
|
|
21
|
+
`<!-- spellchecker: enable -->`
|
|
22
|
+
].filter(Boolean).join("\n");
|
|
23
|
+
}
|
|
24
|
+
async function writeReadme(options) {
|
|
25
|
+
const allContributorsContent = !options.excludeContributors && generateAllContributorsContent(options);
|
|
26
|
+
let contents = await readFileSafe("README.md", "");
|
|
27
|
+
if (!contents) {
|
|
28
|
+
await fs.writeFile(
|
|
29
|
+
"README.md",
|
|
30
|
+
[generateTopContent(options), allContributorsContent, endOfReadmeNotice].filter(Boolean).join("\n\n")
|
|
31
|
+
);
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const endOfH1 = findH1Close(contents);
|
|
35
|
+
contents = [generateTopContent(options), contents.slice(endOfH1)].join("").replace(/\[!\[.+\]\(.+\)\]\(.+\)/g, "").replace(/!\[.+\]\(.+\)/g, "").replaceAll("\r", "").replaceAll("\n\n\n", "\n\n");
|
|
36
|
+
if (allContributorsContent && !contents.includes(contributorsIndicator)) {
|
|
37
|
+
contents = [contents, allContributorsContent].join("\n\n");
|
|
38
|
+
}
|
|
39
|
+
if (!contents.includes(endOfReadmeNotice)) {
|
|
40
|
+
contents = [contents, endOfReadmeNotice].join("\n\n");
|
|
41
|
+
}
|
|
42
|
+
await fs.writeFile("README.md", contents);
|
|
43
|
+
}
|
|
44
|
+
function findH1Close(contents) {
|
|
45
|
+
const markdownMatch = contents.match(/^#.+/);
|
|
46
|
+
if (markdownMatch) {
|
|
47
|
+
return (markdownMatch.index ?? 0) + markdownMatch[0].length;
|
|
48
|
+
}
|
|
49
|
+
return contents.indexOf("</h1>") + "</h1>".length;
|
|
50
|
+
}
|
|
51
|
+
function generateTopContent(options) {
|
|
52
|
+
const badgeLines = [
|
|
53
|
+
!options.excludeContributors && `<a href="#contributors" target="_blank">
|
|
54
|
+
<!-- prettier-ignore-start -->
|
|
55
|
+
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
56
|
+
<img alt="All Contributors: 2" src="https://img.shields.io/badge/all_contributors-17-21bb42.svg" />
|
|
57
|
+
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
58
|
+
<!-- prettier-ignore-end -->
|
|
59
|
+
</a>`,
|
|
60
|
+
!options.excludeTests && `<a href="https://codecov.io/gh/${options.owner}/${options.repository}" target="_blank">
|
|
61
|
+
<img alt="Codecov Test Coverage" src="https://codecov.io/gh/${options.owner}/${options.repository}/branch/main/graph/badge.svg"/>
|
|
62
|
+
</a>`,
|
|
63
|
+
`<a href="https://github.com/${options.owner}/${options.repository}/blob/main/.github/CODE_OF_CONDUCT.md" target="_blank">
|
|
64
|
+
<img alt="Contributor Covenant" src="https://img.shields.io/badge/code_of_conduct-enforced-21bb42" />
|
|
65
|
+
</a>`,
|
|
66
|
+
`<a href="https://github.com/${options.owner}/${options.repository}/blob/main/LICENSE.md" target="_blank">
|
|
67
|
+
<img alt="License: MIT" src="https://img.shields.io/github/license/${options.owner}/${options.repository}?color=21bb42">
|
|
68
|
+
</a>`,
|
|
69
|
+
options.funding && `
|
|
70
|
+
<a href="https://github.com/sponsors/${options.funding}" target="_blank">
|
|
71
|
+
<img alt="Sponsor: On GitHub" src="https://img.shields.io/badge/sponsor-on_github-21bb42.svg" />
|
|
72
|
+
</a>`,
|
|
73
|
+
`<img alt="Style: Prettier" src="https://img.shields.io/badge/style-prettier-21bb42.svg" />`,
|
|
74
|
+
`<img alt="TypeScript: Strict" src="https://img.shields.io/badge/typescript-strict-21bb42.svg" />`
|
|
75
|
+
].filter(Boolean);
|
|
76
|
+
return `<h1 align="center">${options.title}</h1>
|
|
77
|
+
|
|
78
|
+
<p align="center">${options.description}</p>
|
|
79
|
+
|
|
80
|
+
<p align="center">
|
|
81
|
+
${badgeLines.join("")}
|
|
82
|
+
</p>`;
|
|
83
|
+
}
|
|
84
|
+
export {
|
|
85
|
+
writeReadme
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=writeReadme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/steps/writeReadme.ts"],"sourcesContent":["import fs from \"node:fs/promises\";\n\nimport { readFileSafe } from \"../shared/readFileSafe.js\";\nimport { Options } from \"../shared/types.js\";\nimport { endOfReadmeNotice } from \"./updateReadme.js\";\n\nconst contributorsIndicator = `<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->`;\n\nfunction generateAllContributorsContent(options: Options) {\n\treturn [\n\t\t`## Contributors`,\n\t\t``,\n\t\t`<!-- spellchecker: disable -->`,\n\t\tcontributorsIndicator,\n\t\t`<!-- prettier-ignore-start -->`,\n\t\t!options.excludeLintMd && `<!-- markdownlint-disable -->`,\n\t\t`<table>`,\n\t\t`<!-- (this will be filled in by all-contributors) -->`,\n\t\t`</table>`,\n\t\t``,\n\t\t!options.excludeLintMd && `<!-- markdownlint-restore -->`,\n\t\t`<!-- prettier-ignore-end -->`,\n\t\t``,\n\t\t`<!-- ALL-CONTRIBUTORS-LIST:END -->`,\n\t\t`<!-- spellchecker: enable -->`,\n\t]\n\t\t.filter(Boolean)\n\t\t.join(\"\\n\");\n}\n\nexport async function writeReadme(options: Options) {\n\tconst allContributorsContent =\n\t\t!options.excludeContributors && generateAllContributorsContent(options);\n\tlet contents = await readFileSafe(\"README.md\", \"\");\n\tif (!contents) {\n\t\tawait fs.writeFile(\n\t\t\t\"README.md\",\n\t\t\t[generateTopContent(options), allContributorsContent, endOfReadmeNotice]\n\t\t\t\t.filter(Boolean)\n\t\t\t\t.join(\"\\n\\n\"),\n\t\t);\n\t\treturn;\n\t}\n\n\tconst endOfH1 = findH1Close(contents);\n\n\tcontents = [generateTopContent(options), contents.slice(endOfH1)]\n\t\t.join(\"\")\n\t\t.replace(/\\[!\\[.+\\]\\(.+\\)\\]\\(.+\\)/g, \"\")\n\t\t.replace(/!\\[.+\\]\\(.+\\)/g, \"\")\n\t\t.replaceAll(\"\\r\", \"\")\n\t\t.replaceAll(\"\\n\\n\\n\", \"\\n\\n\");\n\n\tif (allContributorsContent && !contents.includes(contributorsIndicator)) {\n\t\tcontents = [contents, allContributorsContent].join(\"\\n\\n\");\n\t}\n\n\tif (!contents.includes(endOfReadmeNotice)) {\n\t\tcontents = [contents, endOfReadmeNotice].join(\"\\n\\n\");\n\t}\n\n\tawait fs.writeFile(\"README.md\", contents);\n}\n\nfunction findH1Close(contents: string) {\n\tconst markdownMatch = contents.match(/^#.+/);\n\tif (markdownMatch) {\n\t\treturn (markdownMatch.index ?? 0) + markdownMatch[0].length;\n\t}\n\n\treturn contents.indexOf(\"</h1>\") + \"</h1>\".length;\n}\n\nfunction generateTopContent(options: Options) {\n\tconst badgeLines = [\n\t\t!options.excludeContributors &&\n\t\t\t`<a href=\"#contributors\" target=\"_blank\">\n<!-- prettier-ignore-start -->\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n<img alt=\"All Contributors: 2\" src=\"https://img.shields.io/badge/all_contributors-17-21bb42.svg\" />\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n<!-- prettier-ignore-end -->\n</a>`,\n\t\t!options.excludeTests &&\n\t\t\t`<a href=\"https://codecov.io/gh/${options.owner}/${options.repository}\" target=\"_blank\">\n\t<img alt=\"Codecov Test Coverage\" src=\"https://codecov.io/gh/${options.owner}/${options.repository}/branch/main/graph/badge.svg\"/>\n</a>`,\n\t\t`<a href=\"https://github.com/${options.owner}/${options.repository}/blob/main/.github/CODE_OF_CONDUCT.md\" target=\"_blank\">\n\t<img alt=\"Contributor Covenant\" src=\"https://img.shields.io/badge/code_of_conduct-enforced-21bb42\" />\n</a>`,\n\t\t`<a href=\"https://github.com/${options.owner}/${options.repository}/blob/main/LICENSE.md\" target=\"_blank\">\n\t<img alt=\"License: MIT\" src=\"https://img.shields.io/github/license/${options.owner}/${options.repository}?color=21bb42\">\n</a>`,\n\t\toptions.funding &&\n\t\t\t`\n\t\t<a href=\"https://github.com/sponsors/${options.funding}\" target=\"_blank\">\n\t\t\t<img alt=\"Sponsor: On GitHub\" src=\"https://img.shields.io/badge/sponsor-on_github-21bb42.svg\" />\n\t\t</a>`,\n\t\t`<img alt=\"Style: Prettier\" src=\"https://img.shields.io/badge/style-prettier-21bb42.svg\" />`,\n\t\t`<img alt=\"TypeScript: Strict\" src=\"https://img.shields.io/badge/typescript-strict-21bb42.svg\" />`,\n\t].filter(Boolean);\n\n\treturn `<h1 align=\"center\">${options.title}</h1>\n\n<p align=\"center\">${options.description}</p>\n\n<p align=\"center\">\n\t${badgeLines.join(\"\")}\n</p>`;\n}\n"],"mappings":"AAAA,OAAO,QAAQ;AAEf,SAAS,oBAAoB;AAE7B,SAAS,yBAAyB;AAElC,MAAM,wBAAwB;AAE9B,SAAS,+BAA+B,SAAkB;AACzD,SAAO;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,CAAC,QAAQ,iBAAiB;AAAA,IAC1B;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,CAAC,QAAQ,iBAAiB;AAAA,IAC1B;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD,EACE,OAAO,OAAO,EACd,KAAK,IAAI;AACZ;AAEA,eAAsB,YAAY,SAAkB;AACnD,QAAM,yBACL,CAAC,QAAQ,uBAAuB,+BAA+B,OAAO;AACvE,MAAI,WAAW,MAAM,aAAa,aAAa,EAAE;AACjD,MAAI,CAAC,UAAU;AACd,UAAM,GAAG;AAAA,MACR;AAAA,MACA,CAAC,mBAAmB,OAAO,GAAG,wBAAwB,iBAAiB,EACrE,OAAO,OAAO,EACd,KAAK,MAAM;AAAA,IACd;AACA;AAAA,EACD;AAEA,QAAM,UAAU,YAAY,QAAQ;AAEpC,aAAW,CAAC,mBAAmB,OAAO,GAAG,SAAS,MAAM,OAAO,CAAC,EAC9D,KAAK,EAAE,EACP,QAAQ,4BAA4B,EAAE,EACtC,QAAQ,kBAAkB,EAAE,EAC5B,WAAW,MAAM,EAAE,EACnB,WAAW,UAAU,MAAM;AAE7B,MAAI,0BAA0B,CAAC,SAAS,SAAS,qBAAqB,GAAG;AACxE,eAAW,CAAC,UAAU,sBAAsB,EAAE,KAAK,MAAM;AAAA,EAC1D;AAEA,MAAI,CAAC,SAAS,SAAS,iBAAiB,GAAG;AAC1C,eAAW,CAAC,UAAU,iBAAiB,EAAE,KAAK,MAAM;AAAA,EACrD;AAEA,QAAM,GAAG,UAAU,aAAa,QAAQ;AACzC;AAEA,SAAS,YAAY,UAAkB;AACtC,QAAM,gBAAgB,SAAS,MAAM,MAAM;AAC3C,MAAI,eAAe;AAClB,YAAQ,cAAc,SAAS,KAAK,cAAc,CAAC,EAAE;AAAA,EACtD;AAEA,SAAO,SAAS,QAAQ,OAAO,IAAI,QAAQ;AAC5C;AAEA,SAAS,mBAAmB,SAAkB;AAC7C,QAAM,aAAa;AAAA,IAClB,CAAC,QAAQ,uBACR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOD,CAAC,QAAQ,gBACR,kCAAkC,QAAQ,KAAK,IAAI,QAAQ,UAAU;AAAA,+DACT,QAAQ,KAAK,IAAI,QAAQ,UAAU;AAAA;AAAA,IAEhG,+BAA+B,QAAQ,KAAK,IAAI,QAAQ,UAAU;AAAA;AAAA;AAAA,IAGlE,+BAA+B,QAAQ,KAAK,IAAI,QAAQ,UAAU;AAAA,sEACE,QAAQ,KAAK,IAAI,QAAQ,UAAU;AAAA;AAAA,IAEvG,QAAQ,WACP;AAAA,yCACsC,QAAQ,OAAO;AAAA;AAAA;AAAA,IAGtD;AAAA,IACA;AAAA,EACD,EAAE,OAAO,OAAO;AAEhB,SAAO,sBAAsB,QAAQ,KAAK;AAAA;AAAA,oBAEvB,QAAQ,WAAW;AAAA;AAAA;AAAA,GAGpC,WAAW,KAAK,EAAE,CAAC;AAAA;AAEtB;","names":[]}
|