create-web-kit 25.728.1412 → 25.728.1414

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 CHANGED
@@ -1,4 +1,4 @@
1
- # Web Kit
1
+ # Create Web Kit
2
2
 
3
3
  一个强大的前端项目脚手架工具,基于官方脚手架命令整合开发者常用配置。
4
4
 
@@ -32,15 +32,10 @@ export const FRAMEWORKS = [
32
32
  workingDir: "target",
33
33
  },
34
34
  {
35
- command: "pnpm add date-fns",
35
+ command: "pnpm add date-fns next-themes motion",
36
36
  description: "Installing date-fns for date utilities",
37
37
  workingDir: "target",
38
38
  },
39
- {
40
- command: "pnpm add next-themes",
41
- description: "Installing next-themes for theme support",
42
- workingDir: "target",
43
- },
44
39
  {
45
40
  command: "pnpm dlx shadcn@latest add --all",
46
41
  description: "Installing all shadcnui components",
@@ -64,7 +59,7 @@ export const FRAMEWORKS = [
64
59
  workingDir: "target",
65
60
  },
66
61
  {
67
- command: "pnpm add @tanstack/react-query next-auth prisma",
62
+ command: "pnpm add @tanstack/react-query next-auth prisma motion",
68
63
  description: "Installing SSR dependencies",
69
64
  workingDir: "target",
70
65
  },
@@ -5,30 +5,38 @@ const TEMPLATE_NAME = "nextjs-csr";
5
5
  const TEMPLATE_FILES = [
6
6
  // Config files
7
7
  { source: "prettier.config.json", destination: ".prettierrc", isJson: true },
8
- { source: "eslint.config.js", destination: "eslint.config.js" },
9
- { source: "next.config.js", destination: "next.config.js" },
8
+ { source: "eslint.config.mjs", destination: "eslint.config.mjs" },
9
+ { source: "next.config.ts", destination: "next.config.ts" },
10
10
  // DevContainer
11
11
  {
12
- source: "devcontainer.json",
12
+ source: ".devcontainer/devcontainer.json",
13
13
  destination: ".devcontainer/devcontainer.json",
14
14
  isJson: true,
15
15
  },
16
16
  // App files
17
- { source: "layout.tsx", destination: "src/app/layout.tsx" },
18
- { source: "not-found.tsx", destination: "src/app/not-found.tsx" },
17
+ { source: "src/app/layout.tsx", destination: "src/app/layout.tsx" },
18
+ { source: "src/app/not-found.tsx", destination: "src/app/not-found.tsx" },
19
+ { source: "src/app/error.tsx", destination: "src/app/error.tsx" },
19
20
  // Components
20
- { source: "show.tsx", destination: "src/components/show.tsx" },
21
- { source: "build-info.tsx", destination: "src/components/build-info.tsx" },
21
+ { source: "src/components/show.tsx", destination: "src/components/show.tsx" },
22
22
  {
23
- source: "theme-provider.tsx",
24
- destination: "src/components/providers/theme-provider.tsx",
23
+ source: "src/components/build-info.tsx",
24
+ destination: "src/components/build-info.tsx",
25
25
  },
26
26
  {
27
- source: "query-provider.tsx",
28
- destination: "src/components/providers/query-provider.tsx",
27
+ source: "src/components/providers/theme.tsx",
28
+ destination: "src/components/providers/theme.tsx",
29
+ },
30
+ {
31
+ source: "src/components/providers/query.tsx",
32
+ destination: "src/components/providers/query.tsx",
33
+ },
34
+ {
35
+ source: "src/components/providers/index.tsx",
36
+ destination: "src/components/providers/index.tsx",
29
37
  },
30
38
  // Utils
31
- { source: "request.ts", destination: "src/utils/request.ts" },
39
+ { source: "src/lib/request.ts", destination: "src/lib/request.ts" },
32
40
  ];
33
41
  export function createNextjsCSRFiles(root) {
34
42
  // Copy all template files
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-web-kit",
3
- "version": "25.0728.1412",
3
+ "version": "25.0728.1414",
4
4
  "description": "A powerful scaffolding tool for creating modern frontend projects with Vue, Next.js, and Electron templates",
5
5
  "type": "module",
6
6
  "bin": {