Skip to content

Commit 737948a

Browse files
authored
docs: update README (#202)
1 parent 12c2d7b commit 737948a

File tree

3 files changed

+29
-34
lines changed

3 files changed

+29
-34
lines changed

.github/workflows/pull-request.yml

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,27 @@ jobs:
1515
matrix:
1616
node-version: [16.x]
1717

18+
name: "Build: node-${{ matrix.node-version }}"
1819
steps:
19-
- uses: actions/checkout@v2
20-
- name: Install pnpm
21-
uses: pnpm/action-setup@v2
22-
with:
23-
version: 6
24-
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v2
26-
with:
27-
node-version: ${{ matrix.node-version }}
28-
cache: 'pnpm'
29-
- run: pnpm i
30-
- run: pnpm build
31-
# - run: yarn test
20+
- name: Checkout
21+
uses: actions/checkout@v2
22+
23+
- name: Install pnpm
24+
uses: pnpm/action-setup@v2
25+
with:
26+
version: 6
27+
28+
- name: Use Node.js ${{ matrix.node-version }}
29+
uses: actions/setup-node@v2
30+
with:
31+
node-version: ${{ matrix.node-version }}
32+
cache: 'pnpm'
33+
34+
- name: Install deps
35+
run: pnpm i
36+
37+
- name: Build site
38+
run: pnpm build
39+
40+
# - name: Test vue-devui
41+
# run: yarn test

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
enable-pre-post-scripts=true

README.md

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,13 @@ DevUI 官方网站:[https://devui.design](https://devui.design)
2525
### 1 安装依赖
2626

2727
```
28-
yarn(推荐)
29-
30-
or
31-
32-
npm i
28+
pnpm i
3329
```
3430

3531
### 2 启动
3632

3733
```
38-
yarn dev(推荐)
39-
40-
or
41-
42-
npm run dev
34+
pnpm dev
4335
```
4436

4537
### 3 访问
@@ -49,19 +41,15 @@ npm run dev
4941
### 4 生产打包
5042

5143
```
52-
yarn build(推荐)
53-
54-
or
55-
56-
npm run build
44+
pnpm build
5745
```
5846

5947
## 使用 Vue DevUI
6048

6149
### 1. 安装
6250

6351
```
64-
yarn add vue-devui
52+
pnpm i vue-devui
6553
```
6654

6755
### 2. 全量引入
@@ -143,11 +131,7 @@ export default defineConfig({
143131
#### 安装
144132

145133
```
146-
yarn add @devui-design/icons(推荐)
147-
148-
or
149-
150-
npm i @devui-design/icons
134+
pnpm i @devui-design/icons
151135
```
152136

153137
#### 引入

0 commit comments

Comments
 (0)