@duxweb/dvha-template 1.0.0 → 1.0.1
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
|
-
#
|
|
1
|
+
# @duxweb/dvha-template
|
|
2
2
|
|
|
3
3
|
快速创建 Dux Vue 项目的脚手架工具。
|
|
4
4
|
|
|
@@ -7,26 +7,42 @@
|
|
|
7
7
|
### 使用 bunx (推荐)
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
bunx dvha init
|
|
10
|
+
bunx @duxweb/dvha-template init
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
### 使用 npx
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
npx dvha init
|
|
16
|
+
npx @duxweb/dvha-template init
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
|
|
20
19
|
### 使用 yarn
|
|
21
20
|
|
|
22
21
|
```bash
|
|
23
|
-
yarn dvha init
|
|
22
|
+
yarn dlx @duxweb/dvha-template init
|
|
24
23
|
```
|
|
25
24
|
|
|
26
25
|
### 使用 pnpm
|
|
27
26
|
|
|
28
27
|
```bash
|
|
29
|
-
pnpm dvha init
|
|
28
|
+
pnpm dlx @duxweb/dvha-template init
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### 指定项目名称
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
bunx @duxweb/dvha-template init my-awesome-project
|
|
35
|
+
npx @duxweb/dvha-template init my-awesome-project
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### 全局安装后使用
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
# 安装到全局
|
|
42
|
+
npm install -g @duxweb/dvha-template
|
|
43
|
+
|
|
44
|
+
# 然后可以直接使用
|
|
45
|
+
duxweb-dvha init my-project
|
|
30
46
|
```
|
|
31
47
|
|
|
32
48
|
## 可用模板
|
|
@@ -41,6 +57,8 @@ pnpm dvha init
|
|
|
41
57
|
- 🎨 多种 UI 框架模板选择
|
|
42
58
|
- 📦 自动配置开发环境
|
|
43
59
|
- 🔧 开箱即用的开发工具
|
|
60
|
+
- 🌐 中英文双语界面
|
|
61
|
+
- 💻 支持 npm、yarn、pnpm、bun
|
|
44
62
|
|
|
45
63
|
## 开发
|
|
46
64
|
|
|
@@ -49,21 +67,21 @@ pnpm dvha init
|
|
|
49
67
|
bun install
|
|
50
68
|
|
|
51
69
|
# 本地测试
|
|
52
|
-
bun run bin/index.js test-project
|
|
70
|
+
bun run bin/index.js init test-project
|
|
53
71
|
|
|
54
72
|
# 或者使用 npm
|
|
55
73
|
npm install
|
|
56
|
-
node bin/index.js test-project
|
|
74
|
+
node bin/index.js init test-project
|
|
57
75
|
```
|
|
58
76
|
|
|
59
77
|
## 发布
|
|
60
78
|
|
|
61
79
|
```bash
|
|
62
|
-
#
|
|
63
|
-
|
|
80
|
+
# 使用发布脚本
|
|
81
|
+
npm run push
|
|
64
82
|
|
|
65
|
-
#
|
|
66
|
-
|
|
83
|
+
# 或者手动发布
|
|
84
|
+
npm publish --access=public
|
|
67
85
|
```
|
|
68
86
|
|
|
69
87
|
## 许可证
|
package/bin/index.js
CHANGED
|
@@ -211,7 +211,7 @@ async function createProject(projectName) {
|
|
|
211
211
|
const program = new Command()
|
|
212
212
|
|
|
213
213
|
program
|
|
214
|
-
.name('dvha')
|
|
214
|
+
.name('duxweb-dvha')
|
|
215
215
|
.description('DVHA 项目创建工具 / DVHA Project Creator')
|
|
216
216
|
.version(getVersion())
|
|
217
217
|
|
|
@@ -241,9 +241,9 @@ program
|
|
|
241
241
|
console.log()
|
|
242
242
|
console.log('使用以下命令开始创建项目 / Use the following command to start creating a project:')
|
|
243
243
|
console.log()
|
|
244
|
-
console.log(green(' dvha init [project-name]'))
|
|
244
|
+
console.log(green(' duxweb-dvha init [project-name]'))
|
|
245
245
|
console.log()
|
|
246
|
-
console.log('更多信息请使用 / For more information, use:', cyan('dvha --help'))
|
|
246
|
+
console.log('更多信息请使用 / For more information, use:', cyan('duxweb-dvha --help'))
|
|
247
247
|
console.log()
|
|
248
248
|
})
|
|
249
249
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duxweb/dvha-template",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Create DVHA project from template",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"dvha": "./bin/index.js"
|
|
7
|
+
"duxweb-dvha": "./bin/index.js"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"bin",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
],
|
|
14
14
|
"scripts": {
|
|
15
15
|
"test": "./scripts/test.sh",
|
|
16
|
-
"
|
|
16
|
+
"push": "./scripts/publish.sh",
|
|
17
17
|
"dev": "bun run bin/index.js"
|
|
18
18
|
},
|
|
19
19
|
"keywords": [
|
|
@@ -24,5 +24,15 @@
|
|
|
24
24
|
"lodash-es": "^4.17.21",
|
|
25
25
|
"unocss": "^66.1.2",
|
|
26
26
|
"@unocss/reset": "^66.1.2"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@antfu/eslint-config": "^4.13.1",
|
|
30
|
+
"@tanstack/eslint-plugin-query": "^5.74.7",
|
|
31
|
+
"@unocss/eslint-plugin": "^66.1.2",
|
|
32
|
+
"@vitejs/plugin-vue-jsx": "^4.2.0",
|
|
33
|
+
"eslint": "^9.27.0",
|
|
34
|
+
"typescript": "^5.8.2",
|
|
35
|
+
"vite": "^6.3.5",
|
|
36
|
+
"vitest": "^3.1.4"
|
|
27
37
|
}
|
|
28
38
|
}
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
<h3 class="text-xl font-bold text-gray-900 mb-4">开始构建您的管理系统</h3>
|
|
58
58
|
<p class="text-gray-600 mb-6">@duxweb/dvha-core 为您提供了构建现代化管理系统所需的所有工具</p>
|
|
59
59
|
<div class="flex justify-center space-x-4">
|
|
60
|
-
<a href="https://github.com/duxweb/
|
|
60
|
+
<a href="https://github.com/duxweb/dvha" target="_blank"
|
|
61
61
|
class="inline-flex items-center px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 text-sm font-medium">
|
|
62
62
|
<div class="i-tabler:brand-github mr-2"></div>
|
|
63
63
|
查看源码
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
<h3 class="text-xl font-bold text-gray-900 mb-4">开始构建您的管理系统</h3>
|
|
58
58
|
<p class="text-gray-600 mb-6">@duxweb/dvha-core 为您提供了构建现代化管理系统所需的所有工具</p>
|
|
59
59
|
<div class="flex justify-center space-x-4">
|
|
60
|
-
<a href="https://github.com/duxweb/
|
|
60
|
+
<a href="https://github.com/duxweb/dvha" target="_blank"
|
|
61
61
|
class="inline-flex items-center px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 text-sm font-medium">
|
|
62
62
|
<div class="i-tabler:brand-github mr-2"></div>
|
|
63
63
|
查看源码
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
<h3 class="text-xl font-bold text-gray-900 mb-4">开始构建您的管理系统</h3>
|
|
58
58
|
<p class="text-gray-600 mb-6">@duxweb/dvha-core 为您提供了构建现代化管理系统所需的所有工具</p>
|
|
59
59
|
<div class="flex justify-center space-x-4">
|
|
60
|
-
<a href="https://github.com/duxweb/
|
|
60
|
+
<a href="https://github.com/duxweb/dvha" target="_blank"
|
|
61
61
|
class="inline-flex items-center px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 text-sm font-medium">
|
|
62
62
|
<div class="i-tabler:brand-github mr-2"></div>
|
|
63
63
|
查看源码
|