create-template-project 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/config/dependencies.json +10 -14
- package/dist/index.js +1259 -0
- package/dist/templates/base/files/.husky/commit-msg +1 -0
- package/dist/templates/base/files/.husky/pre-commit +1 -0
- package/dist/templates/base/files/.prettierignore +3 -0
- package/dist/templates/base/files/package.json +1 -1
- package/dist/templates/base/files/vitest.config.ts +10 -1
- package/dist/templates/cli/files/package.json +4 -3
- package/dist/templates/cli/files/src/index.test.ts +10 -2
- package/dist/templates/cli/files/src/index.ts +4 -1
- package/dist/templates/cli/files/src/lib.ts +10 -0
- package/dist/templates/cli/files/vite.config.ts +22 -0
- package/dist/templates/web-app/files/src/App.test.tsx +9 -0
- package/dist/templates/web-app/files/src/App.tsx +14 -0
- package/dist/templates/web-app/files/src/index.tsx +1 -14
- package/dist/templates/web-app/files/vite.config.ts +4 -0
- package/dist/templates/web-fullstack/files/client/src/App.test.tsx +5 -2
- package/dist/templates/web-fullstack/files/client/vite.config.ts +4 -0
- package/dist/templates/web-fullstack/files/package.json +1 -2
- package/dist/templates/web-fullstack/files/server/src/index.test.ts +24 -3
- package/dist/templates/web-fullstack/files/server/src/trpc.ts +1 -1
- package/dist/templates/web-fullstack/files/server/vite.config.ts +6 -3
- package/dist/templates/web-vanilla/files/index.html +1 -1
- package/dist/templates/web-vanilla/files/src/index.test.ts +9 -2
- package/dist/templates/web-vanilla/files/src/index.ts +3 -1
- package/dist/templates/web-vanilla/files/src/lib.ts +9 -0
- package/dist/templates/web-vanilla/files/vite.config.ts +4 -0
- package/package.json +13 -18
- package/dist/cli.mjs +0 -308
- package/dist/generators/info.mjs +0 -58
- package/dist/generators/project.mjs +0 -387
- package/dist/index.d.mts +0 -4
- package/dist/index.mjs +0 -35
- package/dist/templates/base/index.mjs +0 -55
- package/dist/templates/cli/files/tsdown.config.ts +0 -3
- package/dist/templates/cli/index.mjs +0 -29
- package/dist/templates/web-app/files/src/index.test.ts +0 -5
- package/dist/templates/web-app/index.mjs +0 -69
- package/dist/templates/web-fullstack/index.mjs +0 -78
- package/dist/templates/web-vanilla/index.mjs +0 -45
- package/dist/types.mjs +0 -30
- package/dist/utils/file.mjs +0 -119
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ An ultra-modular, type-safe Node.js CLI tool used to scaffold new project templa
|
|
|
12
12
|
- **Modern Tech Stack:** All templates come with `commitlint`, `husky`, `vitest`, `oxlint`, `prettier`, and `typescript` (strict mode).
|
|
13
13
|
- **Interactive CLI:** Prompts you for project details if CLI arguments are missing, using `@clack/prompts`.
|
|
14
14
|
- **Update Mode:** Detects existing projects and offers a safe update path using `git merge-file`.
|
|
15
|
-
- **No-Build Option:** Supports creating simple projects without a build step (strips
|
|
15
|
+
- **No-Build Option:** Supports creating simple projects without a build step (strips Vite).
|
|
16
16
|
- **GitHub Integration:** Automatically initializes a Git repository and can create a GitHub repository using the `gh` CLI.
|
|
17
17
|
- **CI Ready:** Generates GitHub Actions workflows for automated testing and linting.
|
|
18
18
|
|
|
@@ -69,12 +69,12 @@ create-template-project update --template cli --name existing-project
|
|
|
69
69
|
- `-d, --directory <path>`: Output directory (defaults to `.`)
|
|
70
70
|
- `--overwrite`: Overwrite existing directory by removing it first (create & update)
|
|
71
71
|
- `--no-build`: Create a project without a build step (not allowed for `web-app`)
|
|
72
|
-
- `--
|
|
72
|
+
- `--no-progress`: Do not show progress indicators (useful for AI environments)
|
|
73
73
|
|
|
74
74
|
## Project Templates
|
|
75
75
|
|
|
76
76
|
### 🟢 CLI
|
|
77
|
-
A clean Node.js CLI environment featuring `commander` and `cli-progress`. Supports optional
|
|
77
|
+
A clean Node.js CLI environment featuring `commander` and `cli-progress`. Supports optional Vite bundling.
|
|
78
78
|
|
|
79
79
|
### 🔵 Web-Vanilla
|
|
80
80
|
Standalone web page setup for modern browsers. Can be used with or without a build step.
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"description": "Shareable commitlint config enforcing conventional commits."
|
|
34
34
|
},
|
|
35
35
|
"@types/debug": {
|
|
36
|
-
"version": "
|
|
36
|
+
"version": "4.1.13",
|
|
37
37
|
"description": "TypeScript definitions for debug."
|
|
38
38
|
},
|
|
39
39
|
"@types/node": {
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"description": "A JavaScript linter written in Rust."
|
|
58
58
|
},
|
|
59
59
|
"oxlint-tsgolint": {
|
|
60
|
-
"version": "0.17.
|
|
60
|
+
"version": "0.17.1",
|
|
61
61
|
"description": "TypeScript-specific rules for oxlint."
|
|
62
62
|
},
|
|
63
63
|
"prettier": {
|
|
@@ -84,10 +84,6 @@
|
|
|
84
84
|
"version": "3.11.6",
|
|
85
85
|
"description": "TypeScript definitions for cli-progress."
|
|
86
86
|
},
|
|
87
|
-
"tsdown": {
|
|
88
|
-
"version": "0.21.4",
|
|
89
|
-
"description": "A zero-config bundler for TypeScript."
|
|
90
|
-
},
|
|
91
87
|
"express": {
|
|
92
88
|
"version": "5.2.1",
|
|
93
89
|
"description": "Fast, unopinionated, minimalist web framework for Node.js."
|
|
@@ -133,29 +129,25 @@
|
|
|
133
129
|
"description": "End-to-end testing framework."
|
|
134
130
|
},
|
|
135
131
|
"@trpc/server": {
|
|
136
|
-
"version": "11.
|
|
132
|
+
"version": "11.14.1",
|
|
137
133
|
"description": "tRPC server library."
|
|
138
134
|
},
|
|
139
135
|
"@trpc/client": {
|
|
140
|
-
"version": "11.
|
|
136
|
+
"version": "11.14.1",
|
|
141
137
|
"description": "tRPC client library."
|
|
142
138
|
},
|
|
143
139
|
"@trpc/react-query": {
|
|
144
|
-
"version": "11.
|
|
140
|
+
"version": "11.14.1",
|
|
145
141
|
"description": "tRPC integration for React Query."
|
|
146
142
|
},
|
|
147
143
|
"@tanstack/react-query": {
|
|
148
|
-
"version": "
|
|
144
|
+
"version": "5.94.5",
|
|
149
145
|
"description": "Powerful asynchronous state management for TS/JS."
|
|
150
146
|
},
|
|
151
147
|
"zod": {
|
|
152
148
|
"version": "4.3.6",
|
|
153
149
|
"description": "TypeScript-first schema validation with static type inference."
|
|
154
150
|
},
|
|
155
|
-
"tinyexec": {
|
|
156
|
-
"version": "1.0.4",
|
|
157
|
-
"description": "A minimal library for executing processes in Node."
|
|
158
|
-
},
|
|
159
151
|
"react-router-dom": {
|
|
160
152
|
"version": "7.13.1",
|
|
161
153
|
"description": "Declarative routing for React web applications."
|
|
@@ -171,6 +163,10 @@
|
|
|
171
163
|
"eslint-plugin-regexp": {
|
|
172
164
|
"version": "3.1.0",
|
|
173
165
|
"description": "ESLint plugin for finding regexp mistakes and style guide violations."
|
|
166
|
+
},
|
|
167
|
+
"vitest-browser-react": {
|
|
168
|
+
"version": "2.1.0",
|
|
169
|
+
"description": "Native React testing utilities for Vitest browser mode."
|
|
174
170
|
}
|
|
175
171
|
}
|
|
176
172
|
}
|