create-template-project 1.1.2 → 1.2.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 +11 -0
- package/dist/config/dependencies.json +15 -15
- package/dist/index.js +677 -483
- package/dist/templates/base/files/.release-it.json +1 -1
- package/dist/templates/base/files/_oxc.config.ts +212 -87
- package/dist/templates/cli/files/src/index.ts +1 -2
- package/dist/templates/cli/files/src/lib.ts +1 -3
- package/dist/templates/web-app/files/playwright.config.ts +7 -4
- package/dist/templates/web-app/files/src/App.tsx +11 -12
- package/dist/templates/web-app/files/src/index.tsx +1 -1
- package/dist/templates/web-app/files/tests/e2e/basic.e2e-test.ts +2 -2
- package/dist/templates/web-fullstack/files/client/src/App.tsx +8 -5
- package/dist/templates/web-fullstack/files/client/src/components/ProtectedRoute.tsx +5 -3
- package/dist/templates/web-fullstack/files/client/src/contexts/AuthContext.tsx +22 -18
- package/dist/templates/web-fullstack/files/client/src/main.tsx +8 -5
- package/dist/templates/web-fullstack/files/client/src/pages/Dashboard.tsx +12 -7
- package/dist/templates/web-fullstack/files/client/src/pages/Login.tsx +11 -7
- package/dist/templates/web-fullstack/files/client/src/trpc.ts +2 -1
- package/dist/templates/web-fullstack/files/playwright.config.ts +8 -5
- package/dist/templates/web-fullstack/files/server/src/context.ts +7 -5
- package/dist/templates/web-fullstack/files/server/src/index.ts +2 -3
- package/dist/templates/web-fullstack/files/server/src/routers/_app.ts +1 -0
- package/dist/templates/web-fullstack/files/server/src/routers/auth.ts +4 -4
- package/dist/templates/web-fullstack/files/server/src/trpc.ts +3 -4
- package/dist/templates/web-vanilla/files/playwright.config.ts +7 -4
- package/dist/templates/web-vanilla/files/src/index.test.ts +1 -1
- package/dist/templates/web-vanilla/files/src/index.ts +1 -1
- package/dist/templates/web-vanilla/files/src/lib.ts +1 -3
- package/package.json +13 -7
package/README.md
CHANGED
|
@@ -21,6 +21,7 @@ pnpm dlx create-template-project interactive
|
|
|
21
21
|
## ✨ Features
|
|
22
22
|
|
|
23
23
|
- **Modern Tech Stack:** All templates come with `commitlint`, `husky`, `vitest`, `oxlint`, `oxfmt`, and `typescript` (strict mode).
|
|
24
|
+
- **Enhanced Oxlint Setup:** Linting is driven by a shared, type-aware Oxlint configuration (`oxc.config.ts` + `oxlint.config.ts`) so template updates keep rule behavior consistent.
|
|
24
25
|
- **Interactive CLI:** Prompts you for project details if CLI arguments are missing, using `@clack/prompts`.
|
|
25
26
|
- **🔄 Update Mode:** Detects existing projects and offers a safe update path.
|
|
26
27
|
- **Intelligent Tracking:** Automatically generates a detailed `GENERATED.md` with an "Upgrade Details" table showing exactly what changed, why, and what actions (like conflict resolution) are needed.
|
|
@@ -131,6 +132,16 @@ A full-stack monorepo featuring:
|
|
|
131
132
|
- **Server**: Express.js backend with tRPC for end-to-end type safety.
|
|
132
133
|
- **E2E**: Playwright for end-to-end testing.
|
|
133
134
|
|
|
135
|
+
## Release Process
|
|
136
|
+
|
|
137
|
+
To cut a new release and automatically create a GitHub Release securely:
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
GITHUB_TOKEN=$(gh auth token) pnpm release -- patch # minor, or major
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
For more details on the release flow, see [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
144
|
+
|
|
134
145
|
## Contributing
|
|
135
146
|
|
|
136
147
|
Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to this project.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
3
|
"vite": {
|
|
4
|
-
"version": "8.0.
|
|
4
|
+
"version": "8.0.8",
|
|
5
5
|
"description": "Native-ESM powered web dev build tool"
|
|
6
6
|
},
|
|
7
7
|
"@vitejs/plugin-react": {
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
"description": "The default Vite plugin for React projects."
|
|
10
10
|
},
|
|
11
11
|
"@vitest/browser": {
|
|
12
|
-
"version": "4.1.
|
|
12
|
+
"version": "4.1.4",
|
|
13
13
|
"description": "Run Vitest in the browser."
|
|
14
14
|
},
|
|
15
15
|
"@vitest/browser-playwright": {
|
|
16
|
-
"version": "4.1.
|
|
16
|
+
"version": "4.1.4",
|
|
17
17
|
"description": "Playwright provider for Vitest browser mode."
|
|
18
18
|
},
|
|
19
19
|
"playwright": {
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"description": "TypeScript definitions for debug."
|
|
38
38
|
},
|
|
39
39
|
"@types/node": {
|
|
40
|
-
"version": "25.
|
|
40
|
+
"version": "25.6.0",
|
|
41
41
|
"description": "TypeScript definitions for Node.js."
|
|
42
42
|
},
|
|
43
43
|
"@vitest/coverage-v8": {
|
|
44
|
-
"version": "4.1.
|
|
44
|
+
"version": "4.1.4",
|
|
45
45
|
"description": "V8 coverage provider for Vitest."
|
|
46
46
|
},
|
|
47
47
|
"conventional-changelog": {
|
|
@@ -53,15 +53,15 @@
|
|
|
53
53
|
"description": "Modern native git hooks made easy."
|
|
54
54
|
},
|
|
55
55
|
"oxlint": {
|
|
56
|
-
"version": "1.
|
|
56
|
+
"version": "1.60.0",
|
|
57
57
|
"description": "A JavaScript linter written in Rust."
|
|
58
58
|
},
|
|
59
59
|
"oxlint-tsgolint": {
|
|
60
|
-
"version": "0.
|
|
60
|
+
"version": "0.20.0",
|
|
61
61
|
"description": "TypeScript-specific rules for oxlint."
|
|
62
62
|
},
|
|
63
63
|
"oxfmt": {
|
|
64
|
-
"version": "0.
|
|
64
|
+
"version": "0.45.0",
|
|
65
65
|
"description": "High performance JavaScript / TypeScript formatter."
|
|
66
66
|
},
|
|
67
67
|
"typescript": {
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"description": "A superset of JavaScript that compiles to clean JavaScript output."
|
|
70
70
|
},
|
|
71
71
|
"vitest": {
|
|
72
|
-
"version": "4.1.
|
|
72
|
+
"version": "4.1.4",
|
|
73
73
|
"description": "A Vite-native unit test framework."
|
|
74
74
|
},
|
|
75
75
|
"commander": {
|
|
@@ -93,19 +93,19 @@
|
|
|
93
93
|
"description": "TypeScript definitions for Express."
|
|
94
94
|
},
|
|
95
95
|
"react": {
|
|
96
|
-
"version": "19.2.
|
|
96
|
+
"version": "19.2.5",
|
|
97
97
|
"description": "A JavaScript library for building user interfaces."
|
|
98
98
|
},
|
|
99
99
|
"react-dom": {
|
|
100
|
-
"version": "19.2.
|
|
100
|
+
"version": "19.2.5",
|
|
101
101
|
"description": "React package for working with the DOM."
|
|
102
102
|
},
|
|
103
103
|
"@mui/material": {
|
|
104
|
-
"version": "
|
|
104
|
+
"version": "9.0.0",
|
|
105
105
|
"description": "Material UI components."
|
|
106
106
|
},
|
|
107
107
|
"@mui/icons-material": {
|
|
108
|
-
"version": "
|
|
108
|
+
"version": "9.0.0",
|
|
109
109
|
"description": "Material Design icons distributed as SVG React components."
|
|
110
110
|
},
|
|
111
111
|
"@emotion/react": {
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"description": "tRPC integration for React Query."
|
|
142
142
|
},
|
|
143
143
|
"@tanstack/react-query": {
|
|
144
|
-
"version": "5.
|
|
144
|
+
"version": "5.99.0",
|
|
145
145
|
"description": "Powerful asynchronous state management for TS/JS."
|
|
146
146
|
},
|
|
147
147
|
"zod": {
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
"description": "TypeScript-first schema validation with static type inference."
|
|
150
150
|
},
|
|
151
151
|
"react-router-dom": {
|
|
152
|
-
"version": "7.14.
|
|
152
|
+
"version": "7.14.1",
|
|
153
153
|
"description": "Declarative routing for React web applications."
|
|
154
154
|
},
|
|
155
155
|
"release-it": {
|