create-typescript-app 0.1.2 → 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.
Files changed (272) hide show
  1. package/LICENSE.md +17 -5
  2. package/README.md +118 -0
  3. package/bin/index.js +4 -0
  4. package/lib/bin/index.d.ts +3 -0
  5. package/lib/bin/index.js +52 -0
  6. package/lib/bin/index.js.map +1 -0
  7. package/lib/bin/mode.d.ts +4 -0
  8. package/lib/bin/mode.js +43 -0
  9. package/lib/bin/mode.js.map +1 -0
  10. package/lib/create/createRerunSuggestion.d.ts +6 -0
  11. package/lib/create/createRerunSuggestion.js +17 -0
  12. package/lib/create/createRerunSuggestion.js.map +1 -0
  13. package/lib/create/createWithOptions.d.ts +9 -0
  14. package/lib/create/createWithOptions.js +62 -0
  15. package/lib/create/createWithOptions.js.map +1 -0
  16. package/lib/create/index.d.ts +3 -0
  17. package/lib/create/index.js +64 -0
  18. package/lib/create/index.js.map +1 -0
  19. package/lib/greet.d.ts +5 -0
  20. package/lib/greet.js +14 -0
  21. package/lib/greet.js.map +1 -0
  22. package/lib/index.d.ts +2 -0
  23. package/lib/index.js +3 -0
  24. package/lib/index.js.map +1 -0
  25. package/lib/initialize/index.d.ts +3 -0
  26. package/lib/initialize/index.js +32 -0
  27. package/lib/initialize/index.js.map +1 -0
  28. package/lib/initialize/initializeWithOptions.d.ts +7 -0
  29. package/lib/initialize/initializeWithOptions.js +60 -0
  30. package/lib/initialize/initializeWithOptions.js.map +1 -0
  31. package/lib/migrate/index.d.ts +3 -0
  32. package/lib/migrate/index.js +29 -0
  33. package/lib/migrate/index.js.map +1 -0
  34. package/lib/migrate/migrateWithOptions.d.ts +7 -0
  35. package/lib/migrate/migrateWithOptions.js +67 -0
  36. package/lib/migrate/migrateWithOptions.js.map +1 -0
  37. package/lib/shared/cli/lines.d.ts +5 -0
  38. package/lib/shared/cli/lines.js +17 -0
  39. package/lib/shared/cli/lines.js.map +1 -0
  40. package/lib/shared/cli/lowerFirst.d.ts +3 -0
  41. package/lib/shared/cli/lowerFirst.js +7 -0
  42. package/lib/shared/cli/lowerFirst.js.map +1 -0
  43. package/lib/shared/cli/outro.d.ts +7 -0
  44. package/lib/shared/cli/outro.js +21 -0
  45. package/lib/shared/cli/outro.js.map +1 -0
  46. package/lib/shared/cli/spinners.d.ts +6 -0
  47. package/lib/shared/cli/spinners.js +49 -0
  48. package/lib/shared/cli/spinners.js.map +1 -0
  49. package/lib/shared/cli/startLineWithDots.d.ts +3 -0
  50. package/lib/shared/cli/startLineWithDots.js +31 -0
  51. package/lib/shared/cli/startLineWithDots.js.map +1 -0
  52. package/lib/shared/doesRepositoryExist.d.ts +9 -0
  53. package/lib/shared/doesRepositoryExist.js +18 -0
  54. package/lib/shared/doesRepositoryExist.js.map +1 -0
  55. package/lib/shared/ensureGitRepository.d.ts +3 -0
  56. package/lib/shared/ensureGitRepository.js +12 -0
  57. package/lib/shared/ensureGitRepository.js.map +1 -0
  58. package/lib/shared/getGitHubUserAsAllContributor.d.ts +3 -0
  59. package/lib/shared/getGitHubUserAsAllContributor.js +31 -0
  60. package/lib/shared/getGitHubUserAsAllContributor.js.map +1 -0
  61. package/lib/shared/options/args.d.ts +85 -0
  62. package/lib/shared/options/args.js +33 -0
  63. package/lib/shared/options/args.js.map +1 -0
  64. package/lib/shared/options/augmentOptionsWithExcludes.d.ts +5 -0
  65. package/lib/shared/options/augmentOptionsWithExcludes.js +126 -0
  66. package/lib/shared/options/augmentOptionsWithExcludes.js.map +1 -0
  67. package/lib/shared/options/ensureRepositoryExists.d.ts +11 -0
  68. package/lib/shared/options/ensureRepositoryExists.js +58 -0
  69. package/lib/shared/options/ensureRepositoryExists.js.map +1 -0
  70. package/lib/shared/options/getOctokit.d.ts +5 -0
  71. package/lib/shared/options/getOctokit.js +17 -0
  72. package/lib/shared/options/getOctokit.js.map +1 -0
  73. package/lib/shared/options/getPrefillOrPromptedOption.d.ts +3 -0
  74. package/lib/shared/options/getPrefillOrPromptedOption.js +23 -0
  75. package/lib/shared/options/getPrefillOrPromptedOption.js.map +1 -0
  76. package/lib/shared/options/optionalDefault.d.ts +3 -0
  77. package/lib/shared/options/optionalDefault.js +13 -0
  78. package/lib/shared/options/optionalDefault.js.map +1 -0
  79. package/lib/shared/options/readGitAndNpmDefaults/index.d.ts +11 -0
  80. package/lib/shared/options/readGitAndNpmDefaults/index.js +36 -0
  81. package/lib/shared/options/readGitAndNpmDefaults/index.js.map +1 -0
  82. package/lib/shared/options/readGitAndNpmDefaults/parsePackageAuthor.d.ts +8 -0
  83. package/lib/shared/options/readGitAndNpmDefaults/parsePackageAuthor.js +14 -0
  84. package/lib/shared/options/readGitAndNpmDefaults/parsePackageAuthor.js.map +1 -0
  85. package/lib/shared/options/readGitAndNpmDefaults/readTitleFromReadme.d.ts +3 -0
  86. package/lib/shared/options/readGitAndNpmDefaults/readTitleFromReadme.js +8 -0
  87. package/lib/shared/options/readGitAndNpmDefaults/readTitleFromReadme.js.map +1 -0
  88. package/lib/shared/options/readOptions.d.ts +10 -0
  89. package/lib/shared/options/readOptions.js +83 -0
  90. package/lib/shared/options/readOptions.js.map +1 -0
  91. package/lib/shared/packages.d.ts +6 -0
  92. package/lib/shared/packages.js +20 -0
  93. package/lib/shared/packages.js.map +1 -0
  94. package/lib/shared/prompts.d.ts +4 -0
  95. package/lib/shared/prompts.js +16 -0
  96. package/lib/shared/prompts.js.map +1 -0
  97. package/lib/shared/readFileAsJson.d.ts +3 -0
  98. package/lib/shared/readFileAsJson.js +15 -0
  99. package/lib/shared/readFileAsJson.js.map +1 -0
  100. package/lib/shared/readFileSafe.d.ts +3 -0
  101. package/lib/shared/readFileSafe.js +12 -0
  102. package/lib/shared/readFileSafe.js.map +1 -0
  103. package/lib/shared/readFileSafeAsJson.d.ts +3 -0
  104. package/lib/shared/readFileSafeAsJson.js +8 -0
  105. package/lib/shared/readFileSafeAsJson.js.map +1 -0
  106. package/lib/shared/runOrRestore.d.ts +7 -0
  107. package/lib/shared/runOrRestore.js +41 -0
  108. package/lib/shared/runOrRestore.js.map +1 -0
  109. package/lib/shared/tryCatchAsync.d.ts +3 -0
  110. package/lib/shared/tryCatchAsync.js +11 -0
  111. package/lib/shared/tryCatchAsync.js.map +1 -0
  112. package/lib/shared/types.d.ts +54 -0
  113. package/lib/shared/types.js +1 -0
  114. package/lib/shared/types.js.map +1 -0
  115. package/lib/steps/addOwnerAsAllContributor.d.ts +3 -0
  116. package/lib/steps/addOwnerAsAllContributor.js +41 -0
  117. package/lib/steps/addOwnerAsAllContributor.js.map +1 -0
  118. package/lib/steps/addToolAllContributors.d.ts +3 -0
  119. package/lib/steps/addToolAllContributors.js +12 -0
  120. package/lib/steps/addToolAllContributors.js.map +1 -0
  121. package/lib/steps/clearChangelog.d.ts +3 -0
  122. package/lib/steps/clearChangelog.js +12 -0
  123. package/lib/steps/clearChangelog.js.map +1 -0
  124. package/lib/steps/clearUnnecessaryFiles.d.ts +3 -0
  125. package/lib/steps/clearUnnecessaryFiles.js +33 -0
  126. package/lib/steps/clearUnnecessaryFiles.js.map +1 -0
  127. package/lib/steps/detectExistingContributors.d.ts +3 -0
  128. package/lib/steps/detectExistingContributors.js +16 -0
  129. package/lib/steps/detectExistingContributors.js.map +1 -0
  130. package/lib/steps/finalizeDependencies.d.ts +5 -0
  131. package/lib/steps/finalizeDependencies.js +59 -0
  132. package/lib/steps/finalizeDependencies.js.map +1 -0
  133. package/lib/steps/initializeGitHubRepository/index.d.ts +6 -0
  134. package/lib/steps/initializeGitHubRepository/index.js +14 -0
  135. package/lib/steps/initializeGitHubRepository/index.js.map +1 -0
  136. package/lib/steps/initializeGitHubRepository/initializeBranchProtectionSettings.d.ts +6 -0
  137. package/lib/steps/initializeGitHubRepository/initializeBranchProtectionSettings.js +46 -0
  138. package/lib/steps/initializeGitHubRepository/initializeBranchProtectionSettings.js.map +1 -0
  139. package/lib/steps/initializeGitHubRepository/labels/getExistingEquivalentLabel.d.ts +3 -0
  140. package/lib/steps/initializeGitHubRepository/labels/getExistingEquivalentLabel.js +14 -0
  141. package/lib/steps/initializeGitHubRepository/labels/getExistingEquivalentLabel.js.map +1 -0
  142. package/lib/steps/initializeGitHubRepository/labels/initializeRepositoryLabels.d.ts +3 -0
  143. package/lib/steps/initializeGitHubRepository/labels/initializeRepositoryLabels.js +31 -0
  144. package/lib/steps/initializeGitHubRepository/labels/initializeRepositoryLabels.js.map +1 -0
  145. package/lib/steps/initializeGitHubRepository/labels/outcomeLabels.d.ts +7 -0
  146. package/lib/steps/initializeGitHubRepository/labels/outcomeLabels.js +86 -0
  147. package/lib/steps/initializeGitHubRepository/labels/outcomeLabels.js.map +1 -0
  148. package/lib/steps/initializeGitRemote.d.ts +6 -0
  149. package/lib/steps/initializeGitRemote.js +15 -0
  150. package/lib/steps/initializeGitRemote.js.map +1 -0
  151. package/lib/steps/initializeRepositorySettings.d.ts +7 -0
  152. package/lib/steps/initializeRepositorySettings.js +27 -0
  153. package/lib/steps/initializeRepositorySettings.js.map +1 -0
  154. package/lib/steps/removeSetupScripts.d.ts +3 -0
  155. package/lib/steps/removeSetupScripts.js +23 -0
  156. package/lib/steps/removeSetupScripts.js.map +1 -0
  157. package/lib/steps/resetGitTags.d.ts +3 -0
  158. package/lib/steps/resetGitTags.js +12 -0
  159. package/lib/steps/resetGitTags.js.map +1 -0
  160. package/lib/steps/runCommands.d.ts +3 -0
  161. package/lib/steps/runCommands.js +33 -0
  162. package/lib/steps/runCommands.js.map +1 -0
  163. package/lib/steps/uninstallPackages.d.ts +3 -0
  164. package/lib/steps/uninstallPackages.js +41 -0
  165. package/lib/steps/uninstallPackages.js.map +1 -0
  166. package/lib/steps/updateAllContributorsTable.d.ts +5 -0
  167. package/lib/steps/updateAllContributorsTable.js +27 -0
  168. package/lib/steps/updateAllContributorsTable.js.map +1 -0
  169. package/lib/steps/updateLocalFiles.d.ts +5 -0
  170. package/lib/steps/updateLocalFiles.js +58 -0
  171. package/lib/steps/updateLocalFiles.js.map +1 -0
  172. package/lib/steps/updateReadme.d.ts +4 -0
  173. package/lib/steps/updateReadme.js +17 -0
  174. package/lib/steps/updateReadme.js.map +1 -0
  175. package/lib/steps/writeReadme.d.ts +5 -0
  176. package/lib/steps/writeReadme.js +87 -0
  177. package/lib/steps/writeReadme.js.map +1 -0
  178. package/lib/steps/writing/creation/createESLintRC.d.ts +5 -0
  179. package/lib/steps/writing/creation/createESLintRC.js +163 -0
  180. package/lib/steps/writing/creation/createESLintRC.js.map +1 -0
  181. package/lib/steps/writing/creation/dotGitHub/actions.d.ts +7 -0
  182. package/lib/steps/writing/creation/dotGitHub/actions.js +29 -0
  183. package/lib/steps/writing/creation/dotGitHub/actions.js.map +1 -0
  184. package/lib/steps/writing/creation/dotGitHub/createDevelopment.d.ts +5 -0
  185. package/lib/steps/writing/creation/dotGitHub/createDevelopment.js +96 -0
  186. package/lib/steps/writing/creation/dotGitHub/createDevelopment.js.map +1 -0
  187. package/lib/steps/writing/creation/dotGitHub/createDotGitHubFiles.d.ts +14 -0
  188. package/lib/steps/writing/creation/dotGitHub/createDotGitHubFiles.js +282 -0
  189. package/lib/steps/writing/creation/dotGitHub/createDotGitHubFiles.js.map +1 -0
  190. package/lib/steps/writing/creation/dotGitHub/createWorkflowFile.d.ts +49 -0
  191. package/lib/steps/writing/creation/dotGitHub/createWorkflowFile.js +34 -0
  192. package/lib/steps/writing/creation/dotGitHub/createWorkflowFile.js.map +1 -0
  193. package/lib/steps/writing/creation/dotGitHub/index.d.ts +41 -0
  194. package/lib/steps/writing/creation/dotGitHub/index.js +16 -0
  195. package/lib/steps/writing/creation/dotGitHub/index.js.map +1 -0
  196. package/lib/steps/writing/creation/dotGitHub/issueTemplate.d.ts +10 -0
  197. package/lib/steps/writing/creation/dotGitHub/issueTemplate.js +202 -0
  198. package/lib/steps/writing/creation/dotGitHub/issueTemplate.js.map +1 -0
  199. package/lib/steps/writing/creation/dotGitHub/workflows.d.ts +20 -0
  200. package/lib/steps/writing/creation/dotGitHub/workflows.js +280 -0
  201. package/lib/steps/writing/creation/dotGitHub/workflows.js.map +1 -0
  202. package/lib/steps/writing/creation/dotHusky.d.ts +6 -0
  203. package/lib/steps/writing/creation/dotHusky.js +15 -0
  204. package/lib/steps/writing/creation/dotHusky.js.map +1 -0
  205. package/lib/steps/writing/creation/dotVSCode.d.ts +9 -0
  206. package/lib/steps/writing/creation/dotVSCode.js +55 -0
  207. package/lib/steps/writing/creation/dotVSCode.js.map +1 -0
  208. package/lib/steps/writing/creation/formatters/formatIgnoreFile.d.ts +3 -0
  209. package/lib/steps/writing/creation/formatters/formatIgnoreFile.js +7 -0
  210. package/lib/steps/writing/creation/formatters/formatIgnoreFile.js.map +1 -0
  211. package/lib/steps/writing/creation/formatters/formatJson.d.ts +3 -0
  212. package/lib/steps/writing/creation/formatters/formatJson.js +17 -0
  213. package/lib/steps/writing/creation/formatters/formatJson.js.map +1 -0
  214. package/lib/steps/writing/creation/formatters/formatTypeScript.d.ts +3 -0
  215. package/lib/steps/writing/creation/formatters/formatTypeScript.js +8 -0
  216. package/lib/steps/writing/creation/formatters/formatTypeScript.js.map +1 -0
  217. package/lib/steps/writing/creation/formatters/formatYaml.d.ts +3 -0
  218. package/lib/steps/writing/creation/formatters/formatYaml.js +23 -0
  219. package/lib/steps/writing/creation/formatters/formatYaml.js.map +1 -0
  220. package/lib/steps/writing/creation/index.d.ts +6 -0
  221. package/lib/steps/writing/creation/index.js +18 -0
  222. package/lib/steps/writing/creation/index.js.map +1 -0
  223. package/lib/steps/writing/creation/rootFiles.d.ts +25 -0
  224. package/lib/steps/writing/creation/rootFiles.js +202 -0
  225. package/lib/steps/writing/creation/rootFiles.js.map +1 -0
  226. package/lib/steps/writing/creation/src.d.ts +10 -0
  227. package/lib/steps/writing/creation/src.js +90 -0
  228. package/lib/steps/writing/creation/src.js.map +1 -0
  229. package/lib/steps/writing/creation/writeAllContributorsRC.d.ts +5 -0
  230. package/lib/steps/writing/creation/writeAllContributorsRC.js +25 -0
  231. package/lib/steps/writing/creation/writeAllContributorsRC.js.map +1 -0
  232. package/lib/steps/writing/creation/writePackageJson.d.ts +5 -0
  233. package/lib/steps/writing/creation/writePackageJson.js +98 -0
  234. package/lib/steps/writing/creation/writePackageJson.js.map +1 -0
  235. package/lib/steps/writing/types.d.ts +5 -0
  236. package/lib/steps/writing/types.js +1 -0
  237. package/lib/steps/writing/types.js.map +1 -0
  238. package/lib/steps/writing/writeStructure.d.ts +5 -0
  239. package/lib/steps/writing/writeStructure.js +11 -0
  240. package/lib/steps/writing/writeStructure.js.map +1 -0
  241. package/lib/steps/writing/writeStructureWorker.d.ts +5 -0
  242. package/lib/steps/writing/writeStructureWorker.js +47 -0
  243. package/lib/steps/writing/writeStructureWorker.js.map +1 -0
  244. package/lib/types.d.ts +7 -0
  245. package/lib/types.js +1 -0
  246. package/lib/types.js.map +1 -0
  247. package/package.json +112 -23
  248. package/.vscode/settings.json +0 -3
  249. package/dist/src/cli.d.ts +0 -0
  250. package/dist/src/cli.js +0 -2
  251. package/dist/src/cli.js.map +0 -1
  252. package/dist/src/index.d.ts +0 -1
  253. package/dist/src/index.js +0 -54
  254. package/dist/src/index.js.map +0 -1
  255. package/dist/template/src/cli.d.ts +0 -0
  256. package/dist/template/src/cli.js +0 -2
  257. package/dist/template/src/cli.js.map +0 -1
  258. package/dist/template/src/index.d.ts +0 -0
  259. package/dist/template/src/index.js +0 -2
  260. package/dist/template/src/index.js.map +0 -1
  261. package/src/cli.ts +0 -0
  262. package/src/index.ts +0 -58
  263. package/src/types.d.ts +0 -10
  264. package/template/.vscode/settings.json +0 -3
  265. package/template/README.md +0 -28
  266. package/template/package.json +0 -34
  267. package/template/src/cli.ts +0 -0
  268. package/template/src/index.ts +0 -0
  269. package/template/tsconfig.json +0 -15
  270. package/template/tslint.json +0 -48
  271. package/tsconfig.json +0 -15
  272. package/tslint.json +0 -48
package/package.json CHANGED
@@ -1,25 +1,114 @@
1
1
  {
2
- "name": "create-typescript-app",
3
- "version": "0.1.2",
4
- "description": "Command line utility to create a TypeScript app",
5
- "bin": "dist/src/index.js",
6
- "main": "dist/src/index.js",
7
- "license": "MIT",
8
- "scripts": {
9
- "build": "npm run clean && npm run lint && tsc -d",
10
- "clean": "shx rm -rf dist",
11
- "lint": "tslint src/**/*",
12
- "prepublishOnly": "npm run build",
13
- "pretest": "npm run build",
14
- "tdd": "concurrently -k 'tsc -w' 'ava -w'",
15
- "test": "ava"
16
- },
17
- "devDependencies": {
18
- "@types/node": "^9.4.0",
19
- "ava": "^0.25.0",
20
- "concurrently": "^3.5.1",
21
- "shx": "^0.2.2",
22
- "tslint": "^5.9.1",
23
- "typescript": "^2.7.1"
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
  }
@@ -1,3 +0,0 @@
1
- {
2
- "typescript.tsdk": "node_modules/typescript/lib"
3
- }
package/dist/src/cli.d.ts DELETED
File without changes
package/dist/src/cli.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=cli.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export {};
package/dist/src/index.js DELETED
@@ -1,54 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- var __importDefault = (this && this.__importDefault) || function (mod) {
4
- return (mod && mod.__esModule) ? mod : { "default": mod };
5
- }
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var child_process_1 = require("child_process");
8
- var copy_template_dir_1 = __importDefault(require("copy-template-dir"));
9
- var path_1 = require("path");
10
- main();
11
- function main() {
12
- var input = path_1.join(__dirname, 'template');
13
- var output = process.cwd();
14
- var email = $('npm config get init.author.email');
15
- enforce(email, 'npm config set init.author.email [email]');
16
- var license = $('npm config get init.license') || 'MIT';
17
- var name = $('npm config get init.author.name');
18
- enforce(name, 'npm config set init.author.name [full name]');
19
- var username = $('git config --global github.user');
20
- enforce(username, 'git config --add github.user [username]');
21
- var vars = {
22
- email: email,
23
- license: license,
24
- name: name,
25
- projectname: path_1.basename(output),
26
- username: username
27
- };
28
- copy_template_dir_1.default(input, output, vars, function (err) {
29
- if (err) {
30
- throw err;
31
- }
32
- try {
33
- $('yarn install');
34
- }
35
- catch (e) {
36
- $('npm install');
37
- }
38
- });
39
- }
40
- function enforce(value, command) {
41
- if (value === '') {
42
- throw 'Please run: "' + command + '"';
43
- }
44
- }
45
- function $(command) {
46
- try {
47
- var _ = child_process_1.execSync(command, { cwd: process.cwd() });
48
- return _.toString().trim();
49
- }
50
- catch (e) {
51
- return '';
52
- }
53
- }
54
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;AAEA,+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
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=cli.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../template/src/cli.ts"],"names":[],"mappings":""}
File without changes
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=index.js.map
@@ -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,58 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- import { execSync } from 'child_process'
4
- import copy from 'copy-template-dir'
5
- import { basename, join } from 'path'
6
-
7
- main()
8
-
9
- function main() {
10
-
11
- let input = join(__dirname, 'template')
12
- let output = process.cwd()
13
-
14
- let email = $('npm config get init.author.email')
15
- enforce(email, 'npm config set init.author.email [email]')
16
-
17
- let license = $('npm config get init.license') || 'MIT'
18
-
19
- let name = $('npm config get init.author.name')
20
- enforce(name, 'npm config set init.author.name [full name]')
21
-
22
- let username = $('git config --global github.user')
23
- enforce(username, 'git config --add github.user [username]')
24
-
25
- let vars = {
26
- email,
27
- license,
28
- name,
29
- projectname: basename(output),
30
- username
31
- }
32
-
33
- copy(input, output, vars, err => {
34
- if (err) {
35
- throw err
36
- }
37
- try {
38
- $('yarn install')
39
- } catch (e) {
40
- $('npm install')
41
- }
42
- })
43
- }
44
-
45
- function enforce(value: string, command: string) {
46
- if (value === '') {
47
- throw 'Please run: "' + command + '"'
48
- }
49
- }
50
-
51
- function $(command: string) {
52
- try {
53
- let _ = execSync(command, { cwd: process.cwd() })
54
- return _.toString().trim()
55
- } catch (e) {
56
- return ''
57
- }
58
- }
package/src/types.d.ts DELETED
@@ -1,10 +0,0 @@
1
- declare module 'copy-template-dir' {
2
- type Callback = (error: Error | null, files: string[] | null) => any
3
- function copy<Vars extends object>(
4
- inputDir: string,
5
- outputDir: string,
6
- vars: Vars,
7
- cb: Callback
8
- ): void
9
- export = copy
10
- }
@@ -1,3 +0,0 @@
1
- {
2
- "typescript.tsdk": "node_modules/typescript/lib"
3
- }
@@ -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}}
@@ -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
- }
File without changes
File without changes
@@ -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
- }
@@ -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
- }