create-template-project 1.1.1 → 1.1.3

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 (28) hide show
  1. package/README.md +1 -0
  2. package/dist/config/dependencies.json +18 -18
  3. package/dist/index.js +669 -478
  4. package/dist/templates/base/files/_oxc.config.ts +205 -86
  5. package/dist/templates/cli/files/src/index.ts +1 -2
  6. package/dist/templates/cli/files/src/lib.ts +1 -3
  7. package/dist/templates/web-app/files/playwright.config.ts +7 -4
  8. package/dist/templates/web-app/files/src/App.tsx +11 -12
  9. package/dist/templates/web-app/files/src/index.tsx +1 -1
  10. package/dist/templates/web-app/files/tests/e2e/basic.e2e-test.ts +2 -2
  11. package/dist/templates/web-fullstack/files/client/src/App.tsx +4 -3
  12. package/dist/templates/web-fullstack/files/client/src/components/ProtectedRoute.tsx +4 -2
  13. package/dist/templates/web-fullstack/files/client/src/contexts/AuthContext.tsx +22 -18
  14. package/dist/templates/web-fullstack/files/client/src/main.tsx +8 -5
  15. package/dist/templates/web-fullstack/files/client/src/pages/Dashboard.tsx +9 -4
  16. package/dist/templates/web-fullstack/files/client/src/pages/Login.tsx +10 -6
  17. package/dist/templates/web-fullstack/files/client/src/trpc.ts +2 -1
  18. package/dist/templates/web-fullstack/files/playwright.config.ts +8 -5
  19. package/dist/templates/web-fullstack/files/server/src/context.ts +7 -5
  20. package/dist/templates/web-fullstack/files/server/src/index.ts +1 -1
  21. package/dist/templates/web-fullstack/files/server/src/routers/_app.ts +1 -0
  22. package/dist/templates/web-fullstack/files/server/src/routers/auth.ts +4 -4
  23. package/dist/templates/web-fullstack/files/server/src/trpc.ts +3 -4
  24. package/dist/templates/web-vanilla/files/playwright.config.ts +7 -4
  25. package/dist/templates/web-vanilla/files/src/index.test.ts +1 -1
  26. package/dist/templates/web-vanilla/files/src/index.ts +1 -1
  27. package/dist/templates/web-vanilla/files/src/lib.ts +1 -3
  28. package/package.json +21 -15
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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "dependencies": {
3
3
  "vite": {
4
- "version": "8.0.2",
4
+ "version": "8.0.5",
5
5
  "description": "Native-ESM powered web dev build tool"
6
6
  },
7
7
  "@vitejs/plugin-react": {
@@ -9,15 +9,15 @@
9
9
  "description": "The default Vite plugin for React projects."
10
10
  },
11
11
  "@vitest/browser": {
12
- "version": "4.1.1",
12
+ "version": "4.1.2",
13
13
  "description": "Run Vitest in the browser."
14
14
  },
15
15
  "@vitest/browser-playwright": {
16
- "version": "4.1.1",
16
+ "version": "4.1.2",
17
17
  "description": "Playwright provider for Vitest browser mode."
18
18
  },
19
19
  "playwright": {
20
- "version": "1.58.2",
20
+ "version": "1.59.1",
21
21
  "description": "Framework for Web-browser automation."
22
22
  },
23
23
  "debug": {
@@ -37,11 +37,11 @@
37
37
  "description": "TypeScript definitions for debug."
38
38
  },
39
39
  "@types/node": {
40
- "version": "25.5.0",
40
+ "version": "25.5.2",
41
41
  "description": "TypeScript definitions for Node.js."
42
42
  },
43
43
  "@vitest/coverage-v8": {
44
- "version": "4.1.1",
44
+ "version": "4.1.2",
45
45
  "description": "V8 coverage provider for Vitest."
46
46
  },
47
47
  "conventional-changelog": {
@@ -53,23 +53,23 @@
53
53
  "description": "Modern native git hooks made easy."
54
54
  },
55
55
  "oxlint": {
56
- "version": "1.56.0",
56
+ "version": "1.58.0",
57
57
  "description": "A JavaScript linter written in Rust."
58
58
  },
59
59
  "oxlint-tsgolint": {
60
- "version": "0.17.1",
60
+ "version": "0.20.0",
61
61
  "description": "TypeScript-specific rules for oxlint."
62
62
  },
63
63
  "oxfmt": {
64
- "version": "0.41.0",
64
+ "version": "0.43.0",
65
65
  "description": "High performance JavaScript / TypeScript formatter."
66
66
  },
67
67
  "typescript": {
68
- "version": "5.9.3",
68
+ "version": "6.0.2",
69
69
  "description": "A superset of JavaScript that compiles to clean JavaScript output."
70
70
  },
71
71
  "vitest": {
72
- "version": "4.1.1",
72
+ "version": "4.1.2",
73
73
  "description": "A Vite-native unit test framework."
74
74
  },
75
75
  "commander": {
@@ -125,23 +125,23 @@
125
125
  "description": "TypeScript definitions for React DOM."
126
126
  },
127
127
  "@playwright/test": {
128
- "version": "1.58.2",
128
+ "version": "1.59.1",
129
129
  "description": "End-to-end testing framework."
130
130
  },
131
131
  "@trpc/server": {
132
- "version": "11.15.0",
132
+ "version": "11.16.0",
133
133
  "description": "tRPC server library."
134
134
  },
135
135
  "@trpc/client": {
136
- "version": "11.15.0",
136
+ "version": "11.16.0",
137
137
  "description": "tRPC client library."
138
138
  },
139
139
  "@trpc/react-query": {
140
- "version": "11.15.0",
140
+ "version": "11.16.0",
141
141
  "description": "tRPC integration for React Query."
142
142
  },
143
143
  "@tanstack/react-query": {
144
- "version": "5.95.2",
144
+ "version": "5.96.2",
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.13.2",
152
+ "version": "7.14.0",
153
153
  "description": "Declarative routing for React web applications."
154
154
  },
155
155
  "release-it": {
@@ -169,7 +169,7 @@
169
169
  "description": "ESLint plugin for finding regexp mistakes and style guide violations."
170
170
  },
171
171
  "vitest-browser-react": {
172
- "version": "2.1.0",
172
+ "version": "2.2.0",
173
173
  "description": "Native React testing utilities for Vitest browser mode."
174
174
  }
175
175
  }