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
package/package.json
CHANGED
|
@@ -1,25 +1,114 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
2
|
+
"name": "create-typescript-app",
|
|
3
|
+
"version": "1.29.14",
|
|
4
|
+
"description": "A quickstart-friendly TypeScript template with comprehensive formatting, linting, releases, testing, and other great tooling built-in. ✨",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/JoshuaKGoldberg/create-typescript-app"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"author": {
|
|
11
|
+
"name": "Josh Goldberg",
|
|
12
|
+
"email": "npm@joshuakgoldberg.com"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"main": "./lib/index.js",
|
|
16
|
+
"bin": "./bin/index.js",
|
|
17
|
+
"files": [
|
|
18
|
+
"bin/",
|
|
19
|
+
"lib/",
|
|
20
|
+
"package.json",
|
|
21
|
+
"LICENSE.md",
|
|
22
|
+
"README.md"
|
|
23
|
+
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "tsup",
|
|
26
|
+
"create:test": "node script/create-test-e2e.js",
|
|
27
|
+
"format": "prettier \"**/*\" --ignore-unknown",
|
|
28
|
+
"format:write": "pnpm format --write",
|
|
29
|
+
"initialize": "tsx ./src/bin/index.js --mode initialize",
|
|
30
|
+
"initialize:test": "node script/initialize-test-e2e.js",
|
|
31
|
+
"lint": "eslint . .*js --max-warnings 0 --report-unused-disable-directives",
|
|
32
|
+
"lint:knip": "knip",
|
|
33
|
+
"lint:md": "markdownlint \"**/*.md\" \".github/**/*.md\" --rules sentences-per-line",
|
|
34
|
+
"lint:package-json": "npmPkgJsonLint .",
|
|
35
|
+
"lint:packages": "pnpm dedupe --check",
|
|
36
|
+
"lint:spelling": "cspell \"**\" \".github/**/*\"",
|
|
37
|
+
"migrate:test": "node script/migrate-test-e2e.js",
|
|
38
|
+
"prepare": "husky install",
|
|
39
|
+
"should-semantic-release": "should-semantic-release --verbose",
|
|
40
|
+
"test": "vitest",
|
|
41
|
+
"tsc": "tsc"
|
|
42
|
+
},
|
|
43
|
+
"lint-staged": {
|
|
44
|
+
"*": "prettier --ignore-unknown --write"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@clack/prompts": "^0.7.0",
|
|
48
|
+
"all-contributors-for-repository": "^0.1.0",
|
|
49
|
+
"chalk": "^5.3.0",
|
|
50
|
+
"execa": "^8.0.1",
|
|
51
|
+
"git-remote-origin-url": "^4.0.0",
|
|
52
|
+
"git-url-parse": "^13.1.0",
|
|
53
|
+
"js-yaml": "^4.1.0",
|
|
54
|
+
"npm-user": "^5.0.1",
|
|
55
|
+
"octokit": "^3.1.0",
|
|
56
|
+
"prettier": "^3.0.2",
|
|
57
|
+
"replace-in-file": "^7.0.1",
|
|
58
|
+
"title-case": "^3.0.3"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@octokit/request-error": "^5.0.0",
|
|
62
|
+
"@types/eslint": "^8.44.2",
|
|
63
|
+
"@types/git-url-parse": "^9.0.1",
|
|
64
|
+
"@types/js-yaml": "^4.0.5",
|
|
65
|
+
"@types/node": "^20.5.6",
|
|
66
|
+
"@types/prettier": "^2.7.3",
|
|
67
|
+
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
|
68
|
+
"@typescript-eslint/parser": "^6.4.1",
|
|
69
|
+
"@vitest/coverage-v8": "^0.34.3",
|
|
70
|
+
"c8": "^8.0.1",
|
|
71
|
+
"console-fail-test": "^0.2.3",
|
|
72
|
+
"cspell": "^7.0.1",
|
|
73
|
+
"eslint": "^8.48.0",
|
|
74
|
+
"eslint-config-prettier": "^9.0.0",
|
|
75
|
+
"eslint-plugin-deprecation": "^1.5.0",
|
|
76
|
+
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
77
|
+
"eslint-plugin-import": "^2.28.1",
|
|
78
|
+
"eslint-plugin-jsdoc": "^46.5.0",
|
|
79
|
+
"eslint-plugin-jsonc": "^2.9.0",
|
|
80
|
+
"eslint-plugin-markdown": "^3.0.1",
|
|
81
|
+
"eslint-plugin-n": "^16.0.2",
|
|
82
|
+
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
83
|
+
"eslint-plugin-perfectionist": "^1.5.1",
|
|
84
|
+
"eslint-plugin-regexp": "^1.15.0",
|
|
85
|
+
"eslint-plugin-vitest": "^0.2.8",
|
|
86
|
+
"eslint-plugin-yml": "^1.8.0",
|
|
87
|
+
"globby": "^13.2.2",
|
|
88
|
+
"husky": "^8.0.3",
|
|
89
|
+
"jsonc-eslint-parser": "^2.3.0",
|
|
90
|
+
"knip": "2.20.1",
|
|
91
|
+
"lint-staged": "^14.0.1",
|
|
92
|
+
"markdownlint": "^0.30.0",
|
|
93
|
+
"markdownlint-cli": "^0.35.0",
|
|
94
|
+
"npm-package-json-lint": "^7.0.0",
|
|
95
|
+
"npm-package-json-lint-config-default": "^6.0.0",
|
|
96
|
+
"prettier-plugin-curly": "^0.1.2",
|
|
97
|
+
"prettier-plugin-packagejson": "^2.4.5",
|
|
98
|
+
"release-it": "^16.1.5",
|
|
99
|
+
"sentences-per-line": "^0.2.1",
|
|
100
|
+
"should-semantic-release": "^0.1.1",
|
|
101
|
+
"tsup": "^7.2.0",
|
|
102
|
+
"tsx": "^3.12.7",
|
|
103
|
+
"typescript": "^5.1.6",
|
|
104
|
+
"vitest": "^0.34.3",
|
|
105
|
+
"yaml-eslint-parser": "^1.2.2"
|
|
106
|
+
},
|
|
107
|
+
"packageManager": "pnpm@8.7.0",
|
|
108
|
+
"engines": {
|
|
109
|
+
"node": ">=18"
|
|
110
|
+
},
|
|
111
|
+
"publishConfig": {
|
|
112
|
+
"provenance": true
|
|
113
|
+
}
|
|
25
114
|
}
|
package/.vscode/settings.json
DELETED
package/dist/src/cli.d.ts
DELETED
|
File without changes
|
package/dist/src/cli.js
DELETED
package/dist/src/cli.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":""}
|
package/dist/src/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/src/index.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
}
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var child_process_1 = require("child_process");
|
|
7
|
-
var copy_template_dir_1 = __importDefault(require("copy-template-dir"));
|
|
8
|
-
var path_1 = require("path");
|
|
9
|
-
main();
|
|
10
|
-
function main() {
|
|
11
|
-
var input = path_1.join(__dirname, 'template');
|
|
12
|
-
var output = process.cwd();
|
|
13
|
-
var email = $('npm config get init.author.email');
|
|
14
|
-
enforce(email, 'npm config set init.author.email [email]');
|
|
15
|
-
var license = $('npm config get init.license') || 'MIT';
|
|
16
|
-
var name = $('npm config get init.author.name');
|
|
17
|
-
enforce(name, 'npm config set init.author.name [full name]');
|
|
18
|
-
var username = $('git config --global github.user');
|
|
19
|
-
enforce(username, 'git config --add github.user [username]');
|
|
20
|
-
var vars = {
|
|
21
|
-
email: email,
|
|
22
|
-
license: license,
|
|
23
|
-
name: name,
|
|
24
|
-
projectname: path_1.basename(output),
|
|
25
|
-
username: username
|
|
26
|
-
};
|
|
27
|
-
copy_template_dir_1.default(input, output, vars, function (err) {
|
|
28
|
-
if (err) {
|
|
29
|
-
throw err;
|
|
30
|
-
}
|
|
31
|
-
try {
|
|
32
|
-
$('yarn install');
|
|
33
|
-
}
|
|
34
|
-
catch (e) {
|
|
35
|
-
$('npm install');
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
function enforce(value, command) {
|
|
40
|
-
if (value === '') {
|
|
41
|
-
throw 'Please run: "' + command + '"';
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
function $(command) {
|
|
45
|
-
try {
|
|
46
|
-
var _ = child_process_1.execSync(command, { cwd: process.cwd() });
|
|
47
|
-
return _.toString().trim();
|
|
48
|
-
}
|
|
49
|
-
catch (e) {
|
|
50
|
-
return '';
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;AAAA,+CAAwC;AACxC,wEAAoC;AACpC,6BAAqC;AAErC,IAAI,EAAE,CAAA;AAEN;IAEE,IAAI,KAAK,GAAG,WAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAA;IACvC,IAAI,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE,CAAA;IAE1B,IAAI,KAAK,GAAG,CAAC,CAAC,kCAAkC,CAAC,CAAA;IACjD,OAAO,CAAC,KAAK,EAAE,0CAA0C,CAAC,CAAA;IAE1D,IAAI,OAAO,GAAG,CAAC,CAAC,6BAA6B,CAAC,IAAI,KAAK,CAAA;IAEvD,IAAI,IAAI,GAAG,CAAC,CAAC,iCAAiC,CAAC,CAAA;IAC/C,OAAO,CAAC,IAAI,EAAE,6CAA6C,CAAC,CAAA;IAE5D,IAAI,QAAQ,GAAG,CAAC,CAAC,iCAAiC,CAAC,CAAA;IACnD,OAAO,CAAC,QAAQ,EAAE,yCAAyC,CAAC,CAAA;IAE5D,IAAI,IAAI,GAAG;QACT,KAAK,OAAA;QACL,OAAO,SAAA;QACP,IAAI,MAAA;QACJ,WAAW,EAAE,eAAQ,CAAC,MAAM,CAAC;QAC7B,QAAQ,UAAA;KACT,CAAA;IAED,2BAAI,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,UAAA,GAAG;QAC3B,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;YACR,MAAM,GAAG,CAAA;QACX,CAAC;QACD,IAAI,CAAC;YACH,CAAC,CAAC,cAAc,CAAC,CAAA;QACnB,CAAC;QAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACX,CAAC,CAAC,aAAa,CAAC,CAAA;QAClB,CAAC;IACH,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,iBAAiB,KAAa,EAAE,OAAe;IAC7C,EAAE,CAAC,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC;QACjB,MAAM,eAAe,GAAG,OAAO,GAAG,GAAG,CAAA;IACvC,CAAC;AACH,CAAC;AAED,WAAW,OAAe;IACxB,IAAI,CAAC;QACH,IAAI,CAAC,GAAG,wBAAQ,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAA;QACjD,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAA;IAC5B,CAAC;IAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACX,MAAM,CAAC,EAAE,CAAA;IACX,CAAC;AACH,CAAC"}
|
|
File without changes
|
package/dist/template/src/cli.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../template/src/cli.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../template/src/index.ts"],"names":[],"mappings":""}
|
package/src/cli.ts
DELETED
|
File without changes
|
package/src/index.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { execSync } from 'child_process'
|
|
2
|
-
import copy from 'copy-template-dir'
|
|
3
|
-
import { basename, join } from 'path'
|
|
4
|
-
|
|
5
|
-
main()
|
|
6
|
-
|
|
7
|
-
function main() {
|
|
8
|
-
|
|
9
|
-
let input = join(__dirname, 'template')
|
|
10
|
-
let output = process.cwd()
|
|
11
|
-
|
|
12
|
-
let email = $('npm config get init.author.email')
|
|
13
|
-
enforce(email, 'npm config set init.author.email [email]')
|
|
14
|
-
|
|
15
|
-
let license = $('npm config get init.license') || 'MIT'
|
|
16
|
-
|
|
17
|
-
let name = $('npm config get init.author.name')
|
|
18
|
-
enforce(name, 'npm config set init.author.name [full name]')
|
|
19
|
-
|
|
20
|
-
let username = $('git config --global github.user')
|
|
21
|
-
enforce(username, 'git config --add github.user [username]')
|
|
22
|
-
|
|
23
|
-
let vars = {
|
|
24
|
-
email,
|
|
25
|
-
license,
|
|
26
|
-
name,
|
|
27
|
-
projectname: basename(output),
|
|
28
|
-
username
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
copy(input, output, vars, err => {
|
|
32
|
-
if (err) {
|
|
33
|
-
throw err
|
|
34
|
-
}
|
|
35
|
-
try {
|
|
36
|
-
$('yarn install')
|
|
37
|
-
} catch (e) {
|
|
38
|
-
$('npm install')
|
|
39
|
-
}
|
|
40
|
-
})
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function enforce(value: string, command: string) {
|
|
44
|
-
if (value === '') {
|
|
45
|
-
throw 'Please run: "' + command + '"'
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
function $(command: string) {
|
|
50
|
-
try {
|
|
51
|
-
let _ = execSync(command, { cwd: process.cwd() })
|
|
52
|
-
return _.toString().trim()
|
|
53
|
-
} catch (e) {
|
|
54
|
-
return ''
|
|
55
|
-
}
|
|
56
|
-
}
|
package/src/types.d.ts
DELETED
package/template/README.md
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# {{projectname}}
|
|
2
|
-
|
|
3
|
-
[![Build Status][build]](https://circleci.com/gh/{{username}}/{{projectname}}) [![npm]](https://www.npmjs.com/package/{{projectname}}) [![mit]](https://opensource.org/licenses/MIT)
|
|
4
|
-
|
|
5
|
-
[build]: https://img.shields.io/circleci/project/{{username}}/{{projectname}}.svg?branch=master&style=flat-square
|
|
6
|
-
[npm]: https://img.shields.io/npm/v/{{projectname}}.svg?style=flat-square
|
|
7
|
-
[mit]: https://img.shields.io/npm/l/{{projectname}}.svg?style=flat-square
|
|
8
|
-
|
|
9
|
-
> Description
|
|
10
|
-
|
|
11
|
-
## Install
|
|
12
|
-
|
|
13
|
-
```sh
|
|
14
|
-
# Using Yarn:
|
|
15
|
-
yarn add {{projectname}}
|
|
16
|
-
|
|
17
|
-
# Or, using NPM:
|
|
18
|
-
npm install {{projectname}} --save
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Usage
|
|
22
|
-
|
|
23
|
-
```ts
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## License
|
|
27
|
-
|
|
28
|
-
{{license}}
|
package/template/package.json
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "{{projectname}}",
|
|
3
|
-
"version": "0.1.0",
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "dist/src/index.js",
|
|
6
|
-
"typings": "dist/src/index.d.ts",
|
|
7
|
-
"author": "{{name}} <{{email}}>",
|
|
8
|
-
"license": "{{license}}",
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "git+ssh://git@github.com/{{username}}/{{projectname}}.git"
|
|
12
|
-
},
|
|
13
|
-
"bugs": {
|
|
14
|
-
"url": "https://github.com/{{username}}/{{projectname}}/issues"
|
|
15
|
-
},
|
|
16
|
-
"homepage": "https://github.com/{{username}}/{{projectname}}#readme",
|
|
17
|
-
"keywords": [],
|
|
18
|
-
"scripts": {
|
|
19
|
-
"build": "npm run clean && npm run lint && tsc -d",
|
|
20
|
-
"clean": "shx rm -rf dist",
|
|
21
|
-
"lint": "tslint src/**/*",
|
|
22
|
-
"prepublishOnly": "npm run build",
|
|
23
|
-
"pretest": "npm run build",
|
|
24
|
-
"tdd": "concurrently -k 'tsc -w' 'ava -w'",
|
|
25
|
-
"test": "ava"
|
|
26
|
-
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"ava": "^0.25.0",
|
|
29
|
-
"concurrently": "^3.5.1",
|
|
30
|
-
"shx": "^0.2.2",
|
|
31
|
-
"tslint": "^5.9.1",
|
|
32
|
-
"typescript": "^2.7.1"
|
|
33
|
-
}
|
|
34
|
-
}
|
package/template/src/cli.ts
DELETED
|
File without changes
|
package/template/src/index.ts
DELETED
|
File without changes
|
package/template/tsconfig.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"forceConsistentCasingInFileNames": true,
|
|
4
|
-
"esModuleInterop": true,
|
|
5
|
-
"lib": [
|
|
6
|
-
"es2015"
|
|
7
|
-
],
|
|
8
|
-
"module": "commonjs",
|
|
9
|
-
"moduleResolution": "node",
|
|
10
|
-
"outDir": "dist",
|
|
11
|
-
"sourceMap": true,
|
|
12
|
-
"strict": true,
|
|
13
|
-
"target": "es5"
|
|
14
|
-
}
|
|
15
|
-
}
|
package/template/tslint.json
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"rules": {
|
|
3
|
-
"adjacent-overload-signatures": true,
|
|
4
|
-
"class-name": true,
|
|
5
|
-
"comment-format": [true, "check-space"],
|
|
6
|
-
"eofline": true,
|
|
7
|
-
"indent": [true, "spaces"],
|
|
8
|
-
"linebreak-style": [true, "LF"],
|
|
9
|
-
"member-access": false,
|
|
10
|
-
"no-angle-bracket-type-assertion": true,
|
|
11
|
-
"no-bitwise": true,
|
|
12
|
-
"no-conditional-assignment": true,
|
|
13
|
-
"no-consecutive-blank-lines": [true, 1],
|
|
14
|
-
"no-construct": true,
|
|
15
|
-
"no-debugger": true,
|
|
16
|
-
"no-default-export": true,
|
|
17
|
-
"no-duplicate-variable": true,
|
|
18
|
-
"no-eval": true,
|
|
19
|
-
"no-internal-module": true,
|
|
20
|
-
"no-invalid-this": true,
|
|
21
|
-
"no-reference": true,
|
|
22
|
-
"no-trailing-whitespace": true,
|
|
23
|
-
"no-unnecessary-type-assertion": true,
|
|
24
|
-
"no-unused-expression": true,
|
|
25
|
-
"no-var-keyword": true,
|
|
26
|
-
"no-var-requires": true,
|
|
27
|
-
"object-literal-key-quotes": [true, "as-needed"],
|
|
28
|
-
"object-literal-shorthand": true,
|
|
29
|
-
"one-line": [true, "check-catch", "check-finally", "check-else", "check-open-brace"],
|
|
30
|
-
"one-variable-per-declaration": [true, "ignore-for-loop"],
|
|
31
|
-
"ordered-imports": [
|
|
32
|
-
true
|
|
33
|
-
],
|
|
34
|
-
"quotemark": [true, "single", "avoid-escape"],
|
|
35
|
-
"semicolon": [true, "never"],
|
|
36
|
-
"trailing-comma": [true, {"multiline": "never", "singleline": "never"}],
|
|
37
|
-
"triple-equals": [true, "allow-null-check"],
|
|
38
|
-
"typedef-whitespace": [true, {
|
|
39
|
-
"call-signature": "nospace",
|
|
40
|
-
"index-signature": "nospace",
|
|
41
|
-
"parameter": "nospace",
|
|
42
|
-
"property-declaration": "nospace",
|
|
43
|
-
"variable-declaration": "nospace"
|
|
44
|
-
}],
|
|
45
|
-
"use-isnan": true,
|
|
46
|
-
"whitespace": [true, "check-branch", "check-decl", "check-module", "check-operator", "check-separator", "check-type"]
|
|
47
|
-
}
|
|
48
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"forceConsistentCasingInFileNames": true,
|
|
4
|
-
"esModuleInterop": true,
|
|
5
|
-
"lib": [
|
|
6
|
-
"es2015"
|
|
7
|
-
],
|
|
8
|
-
"module": "commonjs",
|
|
9
|
-
"moduleResolution": "node",
|
|
10
|
-
"outDir": "dist",
|
|
11
|
-
"sourceMap": true,
|
|
12
|
-
"strict": true,
|
|
13
|
-
"target": "es5"
|
|
14
|
-
}
|
|
15
|
-
}
|
package/tslint.json
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"rules": {
|
|
3
|
-
"adjacent-overload-signatures": true,
|
|
4
|
-
"class-name": true,
|
|
5
|
-
"comment-format": [true, "check-space"],
|
|
6
|
-
"eofline": true,
|
|
7
|
-
"indent": [true, "spaces"],
|
|
8
|
-
"linebreak-style": [true, "LF"],
|
|
9
|
-
"member-access": false,
|
|
10
|
-
"no-angle-bracket-type-assertion": true,
|
|
11
|
-
"no-bitwise": true,
|
|
12
|
-
"no-conditional-assignment": true,
|
|
13
|
-
"no-consecutive-blank-lines": [true, 1],
|
|
14
|
-
"no-construct": true,
|
|
15
|
-
"no-debugger": true,
|
|
16
|
-
"no-default-export": true,
|
|
17
|
-
"no-duplicate-variable": true,
|
|
18
|
-
"no-eval": true,
|
|
19
|
-
"no-internal-module": true,
|
|
20
|
-
"no-invalid-this": true,
|
|
21
|
-
"no-reference": true,
|
|
22
|
-
"no-trailing-whitespace": true,
|
|
23
|
-
"no-unnecessary-type-assertion": true,
|
|
24
|
-
"no-unused-expression": true,
|
|
25
|
-
"no-var-keyword": true,
|
|
26
|
-
"no-var-requires": true,
|
|
27
|
-
"object-literal-key-quotes": [true, "as-needed"],
|
|
28
|
-
"object-literal-shorthand": true,
|
|
29
|
-
"one-line": [true, "check-catch", "check-finally", "check-else", "check-open-brace"],
|
|
30
|
-
"one-variable-per-declaration": [true, "ignore-for-loop"],
|
|
31
|
-
"ordered-imports": [
|
|
32
|
-
true
|
|
33
|
-
],
|
|
34
|
-
"quotemark": [true, "single", "avoid-escape"],
|
|
35
|
-
"semicolon": [true, "never"],
|
|
36
|
-
"trailing-comma": [true, {"multiline": "never", "singleline": "never"}],
|
|
37
|
-
"triple-equals": [true, "allow-null-check"],
|
|
38
|
-
"typedef-whitespace": [true, {
|
|
39
|
-
"call-signature": "nospace",
|
|
40
|
-
"index-signature": "nospace",
|
|
41
|
-
"parameter": "nospace",
|
|
42
|
-
"property-declaration": "nospace",
|
|
43
|
-
"variable-declaration": "nospace"
|
|
44
|
-
}],
|
|
45
|
-
"use-isnan": true,
|
|
46
|
-
"whitespace": [true, "check-branch", "check-decl", "check-module", "check-operator", "check-separator", "check-type"]
|
|
47
|
-
}
|
|
48
|
-
}
|