create-web-kit 25.1117.1926 → 26.202.1356

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.
@@ -32,8 +32,8 @@ export const FRAMEWORKS = [
32
32
  workingDir: "target",
33
33
  },
34
34
  {
35
- command: "pnpm add date-fns next-themes motion",
36
- description: "Installing date-fns for date utilities",
35
+ command: "pnpm add date-fns next-themes motion dotenv",
36
+ description: "Installing runtime utilities",
37
37
  workingDir: "target",
38
38
  },
39
39
  {
@@ -8,9 +8,9 @@ const TEMPLATE_FILES = [
8
8
  { source: "prettier.config.json", destination: ".prettierrc", isJson: true },
9
9
  { source: "eslint.config.mjs", destination: "eslint.config.mjs" },
10
10
  { source: "next.config.ts", destination: "next.config.ts" },
11
- { source: ".env.test", destination: ".env.test" },
12
11
  { source: ".env.development", destination: ".env.development" },
13
12
  { source: ".env.production", destination: ".env.production" },
13
+ { source: ".env.stage", destination: ".env.stage" },
14
14
  { source: ".husky/pre-commit", destination: ".husky/pre-commit" },
15
15
  { source: ".husky/_/husky.sh", destination: ".husky/_/husky.sh" },
16
16
  // DevContainer
@@ -64,6 +64,10 @@ function copyConfigHuskyPackage(root) {
64
64
  pkg.scripts = {};
65
65
  }
66
66
  pkg.scripts.prepare = "husky";
67
+ if (!pkg.scripts["build:stage"]) {
68
+ pkg.scripts["build:stage"] =
69
+ "NODE_ENV=production dotenv -e .env.stage next build";
70
+ }
67
71
  // 添加 lint-staged 配置
68
72
  pkg["lint-staged"] = {
69
73
  "**/*.{js,jsx,ts,tsx,json,css,scss,md}": ["prettier --write"],
@@ -0,0 +1,2 @@
1
+ NEXT_PUBLIC_API_URL=/api
2
+ NEXT_PUBLIC_BASE_URL=/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-web-kit",
3
- "version": "25.1117.1926",
3
+ "version": "26.0202.1356",
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": {