File tree 1 file changed +25
-13
lines changed
1 file changed +25
-13
lines changed Original file line number Diff line number Diff line change 28
28
19 . Vitest 单元测试支持
29
29
20 . 支持 Markdown 渲染
30
30
21 . 路径别名 ` ~ ` 支持
31
+ 22 . 命令行自动创建与删除
31
32
32
33
<br />
33
34
<br />
@@ -41,46 +42,46 @@ pnpm install
41
42
42
43
2 . 开发
43
44
``` shell
44
- pnpm dev
45
+ pnpm run dev
45
46
```
46
47
47
48
3 . 预览
48
49
``` shell
49
- pnpm preview
50
+ pnpm run preview
50
51
```
51
52
52
53
4 . 打包
53
54
54
55
``` shell
55
- pnpm build
56
+ pnpm run build
56
57
```
57
58
58
59
5 . 单元测试
59
60
``` shell
60
- pnpm test
61
+ pnpm run test
61
62
```
62
63
63
64
6 . 单元测试报告生成
64
65
``` shell
65
- pnpm coverage
66
+ pnpm run coverage
66
67
```
67
68
68
69
7 . 样式报告预览
69
70
70
71
``` shell
71
- pnpm analysis
72
+ pnpm run analysis
72
73
```
73
74
74
75
8 . 样式报告打包
75
76
76
77
``` shell
77
- pnpm analysis:build
78
+ pnpm run analysis:build
78
79
```
79
80
80
81
9 . 类型检查
81
82
82
83
``` shell
83
- pnpm typecheck
84
+ pnpm run typecheck
84
85
```
85
86
86
87
<br />
@@ -454,11 +455,11 @@ pnpm add naive-ui
454
455
455
456
在终端中输入命令,即可看到报告
456
457
``` shell
457
- pnpm analysis
458
+ pnpm run analysis
458
459
```
459
460
或者打包输出该报告
460
461
``` shell
461
- pnpm analysis:build
462
+ pnpm run analysis:build
462
463
```
463
464
464
465
具体可见 👉 [ Windi CSS] ( https://cn.windicss.org/ )
@@ -606,7 +607,7 @@ export const useCounterStore = defineStore('counter', {
606
607
607
608
启动项目
608
609
` ` ` shell
609
- pnpm dev
610
+ pnpm run dev
610
611
` ` `
611
612
可以看到一个 ` url`
612
613
@@ -682,13 +683,13 @@ describe('suite name', () => {
682
683
然后在终端中输入命令即可测试
683
684
684
685
` ` ` shell
685
- pnpm test
686
+ pnpm run test
686
687
` ` `
687
688
688
689
或者生成报告
689
690
690
691
` ` ` shell
691
- pnpm coverage
692
+ pnpm run coverage
692
693
` ` `
693
694
694
695
具体可见 👉 [Vitest](https: // vitest.dev/guide/#configuring-vitest)
@@ -731,3 +732,14 @@ pnpm coverage
731
732
// import { isDark, toggleDark } from "../composables/dark"
732
733
</script>
733
734
` ` `
735
+
736
+ ### 22. 命令行自动创建与删除
737
+
738
+ 只要输入 👇,即可创建一个标准的页面或组件
739
+ ` ` ` shell
740
+ pnpm run auto:create
741
+ ` ` `
742
+ 当然也可以进行删除 👇
743
+ ` ` ` shell
744
+ pnpm run auto:remove
745
+ ` ` `
You can’t perform that action at this time.
0 commit comments