create-pubinfo 2.0.0-beta.25 → 2.0.0-beta.27

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/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import consola6 from "consola";
8
8
  var package_default = {
9
9
  name: "create-pubinfo",
10
10
  type: "module",
11
- version: "2.0.0-beta.25",
11
+ version: "2.0.0-beta.27",
12
12
  description: "\u521D\u59CB\u5316\u9879\u76EE\u6846\u67B6",
13
13
  author: "Werheng <werheng.zhang@gmail.com>",
14
14
  license: "MIT",
@@ -46,6 +46,7 @@ var package_default = {
46
46
  };
47
47
 
48
48
  // src/core/generate.ts
49
+ import { renameSync } from "node:fs";
49
50
  import { dirname, resolve as resolve2 } from "node:path";
50
51
  import { cwd } from "node:process";
51
52
  import { fileURLToPath } from "node:url";
@@ -134,6 +135,15 @@ function generate(options, version) {
134
135
  return `"${pkgName}": "${version}"`;
135
136
  });
136
137
  });
138
+ const renameFiles = {
139
+ _gitignore: ".gitignore",
140
+ _npmrc: ".npmrc"
141
+ };
142
+ for (const [oldName, newName] of Object.entries(renameFiles)) {
143
+ const oldPath = resolve2(targetPath, oldName);
144
+ const newPath = resolve2(targetPath, newName || oldName);
145
+ renameSync(oldPath, newPath);
146
+ }
137
147
  }
138
148
 
139
149
  // src/core/init.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-pubinfo",
3
3
  "type": "module",
4
- "version": "2.0.0-beta.25",
4
+ "version": "2.0.0-beta.27",
5
5
  "description": "初始化项目框架",
6
6
  "author": "Werheng <werheng.zhang@gmail.com>",
7
7
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  # 页面标题
2
- VITE_APP_TITLE = 腾龙开发底座
2
+ VITE_APP_TITLE = 产数开发底座
3
3
 
4
4
  # 开启4A单点登录
5
5
  VITE_AUTH_4A_ENABLED = false
@@ -0,0 +1,37 @@
1
+ .pubinfo
2
+ .eslintcache
3
+ .stylelintcache
4
+
5
+ # auto generated
6
+ auto-imports.d.ts
7
+ components.d.ts
8
+
9
+ .DS_Store
10
+ node_modules
11
+ dist
12
+ cache
13
+ coverage
14
+ .turbo
15
+ .eslintcache
16
+ .stylelintcache
17
+
18
+ # local env files
19
+ .env.local
20
+ .env.*.local
21
+
22
+ # Log files
23
+ npm-debug.log*
24
+ yarn-debug.log*
25
+ yarn-error.log*
26
+ pnpm-debug.log*
27
+ lerna-debug.log*
28
+
29
+ # Editor directories and files
30
+ .idea
31
+ # .vscode
32
+ *.suo
33
+ *.ntvs*
34
+ *.njsproj
35
+ *.sln
36
+ *.sw?
37
+
@@ -0,0 +1,5 @@
1
+ ignore-workspace-root-check=true
2
+ shamefully-hoist=true
3
+ strict-peer-dependencies=false
4
+ shell-emulator=true
5
+ max-old-space-size=4096