@book000/create-ts 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/index.d.mts +1 -0
  2. package/dist/index.mjs +543 -0
  3. package/package.json +50 -0
  4. package/templates/gitignore/Node.gitignore +147 -0
  5. package/templates/nodejs/base/package.json +54 -0
  6. package/templates/nodejs/base/pnpm-lock.yaml +5639 -0
  7. package/templates/nodejs/base/pnpm-workspace.yaml +5 -0
  8. package/templates/nodejs/base/src/main.ts +13 -0
  9. package/templates/nodejs/base/template.json +8 -0
  10. package/templates/nodejs/base/test/smoke.test.ts +32 -0
  11. package/templates/nodejs/base/tsconfig.test.json +7 -0
  12. package/templates/nodejs/common/.depcheckrc.json +3 -0
  13. package/templates/nodejs/common/.devcontainer/devcontainer.json +9 -0
  14. package/templates/nodejs/common/.fixpackrc +4 -0
  15. package/templates/nodejs/common/.prettierrc.yml +7 -0
  16. package/templates/nodejs/common/Dockerfile +31 -0
  17. package/templates/nodejs/common/entrypoint.sh +4 -0
  18. package/templates/nodejs/common/eslint.config.mjs +1 -0
  19. package/templates/nodejs/common/package.json +29 -0
  20. package/templates/nodejs/common/pnpm-workspace.yaml +5 -0
  21. package/templates/nodejs/common/renovate.json +4 -0
  22. package/templates/nodejs/common/tsconfig.json +22 -0
  23. package/templates/nodejs/config-batch/package.json +59 -0
  24. package/templates/nodejs/config-batch/pnpm-lock.yaml +6128 -0
  25. package/templates/nodejs/config-batch/pnpm-workspace.yaml +5 -0
  26. package/templates/nodejs/config-batch/src/config.ts +7 -0
  27. package/templates/nodejs/config-batch/src/main.ts +38 -0
  28. package/templates/nodejs/config-batch/template.json +11 -0
  29. package/templates/nodejs/config-batch/test/config.test.ts +76 -0
  30. package/templates/nodejs/config-batch/tsconfig.test.json +7 -0
  31. package/templates/nodejs/discord-bot/package.json +60 -0
  32. package/templates/nodejs/discord-bot/pnpm-lock.yaml +6315 -0
  33. package/templates/nodejs/discord-bot/pnpm-workspace.yaml +5 -0
  34. package/templates/nodejs/discord-bot/src/config.ts +8 -0
  35. package/templates/nodejs/discord-bot/src/discord.ts +35 -0
  36. package/templates/nodejs/discord-bot/src/main.ts +53 -0
  37. package/templates/nodejs/discord-bot/template.json +11 -0
  38. package/templates/nodejs/discord-bot/test/discord.test.ts +68 -0
  39. package/templates/nodejs/discord-bot/tsconfig.test.json +7 -0
  40. package/templates/nodejs/fastify/package.json +59 -0
  41. package/templates/nodejs/fastify/pnpm-lock.yaml +6077 -0
  42. package/templates/nodejs/fastify/pnpm-workspace.yaml +5 -0
  43. package/templates/nodejs/fastify/src/main.ts +34 -0
  44. package/templates/nodejs/fastify/template.json +9 -0
  45. package/templates/nodejs/fastify/test/app.test.ts +49 -0
  46. package/templates/nodejs/fastify/tsconfig.test.json +7 -0
  47. package/templates/workflows/add-reviewer.yml +15 -0
  48. package/templates/workflows/docker.yml +92 -0
  49. package/templates/workflows/nodejs-ci-pnpm.yml +79 -0
@@ -0,0 +1,147 @@
1
+ # Logs
2
+ logs
3
+ *.log
4
+ npm-debug.log*
5
+ yarn-debug.log*
6
+ yarn-error.log*
7
+ lerna-debug.log*
8
+
9
+ # Diagnostic reports (https://nodejs.org/api/report.html)
10
+ report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11
+
12
+ # Runtime data
13
+ pids
14
+ *.pid
15
+ *.seed
16
+ *.pid.lock
17
+
18
+ # Directory for instrumented libs generated by jscoverage/JSCover
19
+ lib-cov
20
+
21
+ # Coverage directory used by tools like istanbul
22
+ coverage
23
+ *.lcov
24
+
25
+ # nyc test coverage
26
+ .nyc_output
27
+
28
+ # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29
+ .grunt
30
+
31
+ # Bower dependency directory (https://bower.io/)
32
+ bower_components
33
+
34
+ # node-waf configuration
35
+ .lock-wscript
36
+
37
+ # Compiled binary addons (https://nodejs.org/api/addons.html)
38
+ build/Release
39
+
40
+ # Dependency directories
41
+ node_modules/
42
+ jspm_packages/
43
+
44
+ # Snowpack dependency directory (https://snowpack.dev/)
45
+ web_modules/
46
+
47
+ # TypeScript cache
48
+ *.tsbuildinfo
49
+
50
+ # Optional npm cache directory
51
+ .npm
52
+
53
+ # Optional eslint cache
54
+ .eslintcache
55
+
56
+ # Optional stylelint cache
57
+ .stylelintcache
58
+
59
+ # Optional REPL history
60
+ .node_repl_history
61
+
62
+ # Output of 'npm pack'
63
+ *.tgz
64
+
65
+ # Yarn Integrity file
66
+ .yarn-integrity
67
+
68
+ # dotenv environment variable files
69
+ .env
70
+ .env.*
71
+ !.env.example
72
+
73
+ # parcel-bundler cache (https://parceljs.org/)
74
+ .cache
75
+ .parcel-cache
76
+
77
+ # Next.js build output
78
+ .next
79
+ out
80
+
81
+ # Nuxt.js build / generate output
82
+ .nuxt
83
+ dist
84
+ .output
85
+
86
+ # Gatsby files
87
+ .cache/
88
+ # Comment in the public line in if your project uses Gatsby and not Next.js
89
+ # https://nextjs.org/blog/next-9-1#public-directory-support
90
+ # public
91
+
92
+ # vuepress build output
93
+ .vuepress/dist
94
+
95
+ # vuepress v2.x temp directory
96
+ .temp
97
+
98
+ # Sveltekit cache directory
99
+ .svelte-kit/
100
+
101
+ # vitepress build output
102
+ **/.vitepress/dist
103
+
104
+ # vitepress cache directory
105
+ **/.vitepress/cache
106
+
107
+ # Docusaurus cache and generated files
108
+ .docusaurus
109
+
110
+ # Serverless directories
111
+ .serverless/
112
+
113
+ # FuseBox cache
114
+ .fusebox/
115
+
116
+ # DynamoDB Local files
117
+ .dynamodb/
118
+
119
+ # Firebase cache directory
120
+ .firebase/
121
+
122
+ # TernJS port file
123
+ .tern-port
124
+
125
+ # Stores VSCode versions used for testing VSCode extensions
126
+ .vscode-test
127
+
128
+ # pnpm
129
+ .pnpm-store
130
+
131
+ # yarn v3
132
+ .pnp.*
133
+ .yarn/*
134
+ !.yarn/patches
135
+ !.yarn/plugins
136
+ !.yarn/releases
137
+ !.yarn/sdks
138
+ !.yarn/versions
139
+
140
+ # Vite files
141
+ vite.config.js.timestamp-*
142
+ vite.config.ts.timestamp-*
143
+ .vite/
144
+
145
+
146
+ # pnpm
147
+ pnpm-debug.log*
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "@book000/template",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "license": "MIT",
6
+ "author": "book000",
7
+ "scripts": {
8
+ "preinstall": "npx only-allow pnpm",
9
+ "start": "tsx ./src/main.ts",
10
+ "dev": "tsx watch ./src/main.ts",
11
+ "test": "jest --runInBand --passWithNoTests --detectOpenHandles --forceExit",
12
+ "lint": "run-z lint:prettier,lint:eslint,lint:tsc",
13
+ "lint:prettier": "prettier --check src/",
14
+ "lint:eslint": "eslint src/ -c eslint.config.mjs",
15
+ "lint:tsc": "tsc --noEmit",
16
+ "fix": "run-z fix:prettier fix:eslint",
17
+ "fix:eslint": "eslint src/ -c eslint.config.mjs --fix",
18
+ "fix:prettier": "prettier --write src/"
19
+ },
20
+ "devDependencies": {
21
+ "@book000/eslint-config": "*",
22
+ "@types/jest": "*",
23
+ "@types/node": "*",
24
+ "eslint": "*",
25
+ "jest": "*",
26
+ "prettier": "*",
27
+ "run-z": "*",
28
+ "ts-jest": "*",
29
+ "tsx": "*",
30
+ "typescript": "*"
31
+ },
32
+ "engines": {
33
+ "node": ">=24"
34
+ },
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "git+https://github.com/book000/template.git"
38
+ },
39
+ "bugs": {
40
+ "url": "https://github.com/book000/template/issues"
41
+ },
42
+ "jest": {
43
+ "preset": "ts-jest",
44
+ "testEnvironment": "node",
45
+ "transform": {
46
+ "^.+\\.tsx?$": [
47
+ "ts-jest",
48
+ {
49
+ "tsconfig": "tsconfig.test.json"
50
+ }
51
+ ]
52
+ }
53
+ }
54
+ }