Skip to content

Commit 62918a6

Browse files
committed
chore: yarn -> npm (with 淘宝源)
1 parent d00052e commit 62918a6

File tree

13 files changed

+34422
-23128
lines changed

13 files changed

+34422
-23128
lines changed

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build
22
on: [push, pull_request]
33
jobs:
44
build:
5-
runs-on: linux-latest
5+
runs-on: ubuntu-latest
66
steps:
77
- uses: actions/checkout@v2
88
- uses: actions/setup-node@v2
@@ -11,11 +11,11 @@ jobs:
1111

1212
- name: Building Frontend
1313
run: |
14-
yarn global add lerna
15-
yarn
14+
npm i -g lerna
15+
npm i
1616
lerna bootstrap
1717
cd frontend
18-
yarn build
18+
npm run build
1919
2020
- name: Publish Frontend to Github Pages
2121
uses: peaceiris/actions-gh-pages@v3

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry = 'https://registry.npm.taobao.org/'

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
前后端放在一个仓库里面,使用 [lerna](https://github.com/lerna/lerna) 统一管理。你需要全局安装 lerna:
66

77
```bash
8-
yarn global add lerna
8+
npm i -g lerna
99
```
1010

1111
```bash
1212
# 安装根目录依赖
13-
yarn
13+
npm i
1414
# 自动前后端所有依赖
1515
lerna bootstrap
1616
```
@@ -19,10 +19,10 @@ lerna bootstrap
1919

2020
```bash
2121
cd frontend
22-
yarn start
22+
npm run start
2323
```
2424

25-
存放于文件夹 [frontend](frontend)
25+
存放于文件夹 [frontend](frontend),自动部署网址位于
2626

2727
- React
2828
- React Router

backend/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "bd7",
2+
"name": "bd7-backend",
33
"version": "1.0.0",
44
"description": "BD7",
55
"author": "techtrainingcamp-frontend-7",

0 commit comments

Comments
 (0)