mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
chore: 避免 react 17 依赖导致的安装报错 (#3555)
This commit is contained in:
parent
060e1b9f8a
commit
495b93942a
2
.github/workflows/gh-pages.yml
vendored
2
.github/workflows/gh-pages.yml
vendored
@ -27,7 +27,7 @@ jobs:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: build
|
||||
run: |
|
||||
npm i
|
||||
npm i --legacy-peer-deps
|
||||
sh deploy-gh-pages.sh
|
||||
- name: Deploy 🚀
|
||||
uses: JamesIves/github-pages-deploy-action@3.7.1
|
||||
|
2
.github/workflows/pr-test.yml
vendored
2
.github/workflows/pr-test.yml
vendored
@ -24,6 +24,6 @@ jobs:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: test
|
||||
run: |
|
||||
npm i
|
||||
npm i --legacy-peer-deps
|
||||
npm test
|
||||
sh deploy-gh-pages.sh
|
||||
|
13
Dockerfile
13
Dockerfile
@ -1,13 +0,0 @@
|
||||
FROM node:12
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm i \
|
||||
&& ./node_modules/.bin/fis3 release -cd ./public
|
||||
|
||||
EXPOSE 8888
|
||||
|
||||
CMD ["npm", "run", "serve"]
|
||||
|
@ -10,7 +10,7 @@ To build your own backend system with amis, you can refer to this: https://githu
|
||||
|
||||
```
|
||||
# Install project npm dependencies.
|
||||
npm i
|
||||
npm i --legacy-peer-deps
|
||||
|
||||
# Start compiling and output the code to the webroot directory of the service you just opened.
|
||||
npm run dev
|
||||
@ -23,7 +23,7 @@ npm start
|
||||
|
||||
```bash
|
||||
#Installation dependency
|
||||
npm i
|
||||
npm i --legacy-peer-deps
|
||||
|
||||
#Executing test cases
|
||||
npm test
|
||||
|
@ -41,7 +41,7 @@
|
||||
|
||||
```bash
|
||||
# 安装项目 npm 依赖,在 node 12 下会有报错但不影响正常使用。
|
||||
npm i
|
||||
npm i --legacy-peer-deps
|
||||
|
||||
# 启动项目,等编译结束后通过 http://127.0.0.1:8888/examples/pages/simple 访问。
|
||||
npm start
|
||||
@ -51,7 +51,7 @@ npm start
|
||||
|
||||
```bash
|
||||
# 安装依赖
|
||||
npm i
|
||||
npm i --legacy-peer-deps
|
||||
|
||||
# 执行测试用例
|
||||
npm test
|
||||
|
@ -115,7 +115,6 @@
|
||||
"@types/react": "^17.0.39",
|
||||
"@types/react-color": "^3.0.5",
|
||||
"@types/react-dom": "^17.0.11",
|
||||
"@types/react-dropzone": "^5.1.0",
|
||||
"@types/react-onclickoutside": "^6.0.2",
|
||||
"@types/react-router-dom": "^5.3.3",
|
||||
"@types/react-test-renderer": "^17.0.1",
|
||||
|
Loading…
Reference in New Issue
Block a user