Skip to content

Commit 24695fc

Browse files
committed
docs: 补充README
1 parent 943d80b commit 24695fc

File tree

1 file changed

+25
-13
lines changed

1 file changed

+25
-13
lines changed

README.md

+25-13
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
19. Vitest 单元测试支持
2929
20. 支持 Markdown 渲染
3030
21. 路径别名 `~` 支持
31+
22. 命令行自动创建与删除
3132

3233
<br />
3334
<br />
@@ -41,46 +42,46 @@ pnpm install
4142

4243
2. 开发
4344
```shell
44-
pnpm dev
45+
pnpm run dev
4546
```
4647

4748
3. 预览
4849
```shell
49-
pnpm preview
50+
pnpm run preview
5051
```
5152

5253
4. 打包
5354

5455
```shell
55-
pnpm build
56+
pnpm run build
5657
```
5758

5859
5. 单元测试
5960
```shell
60-
pnpm test
61+
pnpm run test
6162
```
6263

6364
6. 单元测试报告生成
6465
```shell
65-
pnpm coverage
66+
pnpm run coverage
6667
```
6768

6869
7. 样式报告预览
6970

7071
```shell
71-
pnpm analysis
72+
pnpm run analysis
7273
```
7374

7475
8. 样式报告打包
7576

7677
```shell
77-
pnpm analysis:build
78+
pnpm run analysis:build
7879
```
7980

8081
9. 类型检查
8182

8283
```shell
83-
pnpm typecheck
84+
pnpm run typecheck
8485
```
8586

8687
<br />
@@ -454,11 +455,11 @@ pnpm add naive-ui
454455

455456
在终端中输入命令,即可看到报告
456457
```shell
457-
pnpm analysis
458+
pnpm run analysis
458459
```
459460
或者打包输出该报告
460461
```shell
461-
pnpm analysis:build
462+
pnpm run analysis:build
462463
```
463464

464465
具体可见 👉 [Windi CSS](https://cn.windicss.org/)
@@ -606,7 +607,7 @@ export const useCounterStore = defineStore('counter', {
606607
607608
启动项目
608609
```shell
609-
pnpm dev
610+
pnpm run dev
610611
```
611612
可以看到一个 `url`
612613
@@ -682,13 +683,13 @@ describe('suite name', () => {
682683
然后在终端中输入命令即可测试
683684
684685
```shell
685-
pnpm test
686+
pnpm run test
686687
```
687688
688689
或者生成报告
689690
690691
```shell
691-
pnpm coverage
692+
pnpm run coverage
692693
```
693694
694695
具体可见 👉 [Vitest](https://vitest.dev/guide/#configuring-vitest)
@@ -731,3 +732,14 @@ pnpm coverage
731732
// import { isDark, toggleDark } from "../composables/dark"
732733
</script>
733734
```
735+
736+
### 22. 命令行自动创建与删除
737+
738+
只要输入 👇,即可创建一个标准的页面或组件
739+
```shell
740+
pnpm run auto:create
741+
```
742+
当然也可以进行删除 👇
743+
```shell
744+
pnpm run auto:remove
745+
```

0 commit comments

Comments
 (0)