chore: 避免 react 17 依赖导致的安装报错 (#3555)

This commit is contained in:
吴多益 2022-02-10 14:35:40 +08:00 committed by GitHub
parent 060e1b9f8a
commit 495b93942a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 20 deletions

View File

@ -27,7 +27,7 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: build - name: build
run: | run: |
npm i npm i --legacy-peer-deps
sh deploy-gh-pages.sh sh deploy-gh-pages.sh
- name: Deploy 🚀 - name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@3.7.1 uses: JamesIves/github-pages-deploy-action@3.7.1

View File

@ -24,6 +24,6 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: test - name: test
run: | run: |
npm i npm i --legacy-peer-deps
npm test npm test
sh deploy-gh-pages.sh sh deploy-gh-pages.sh

View File

@ -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"]

View File

@ -10,7 +10,7 @@ To build your own backend system with amis, you can refer to this: https://githu
``` ```
# Install project npm dependencies. # 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. # Start compiling and output the code to the webroot directory of the service you just opened.
npm run dev npm run dev
@ -23,7 +23,7 @@ npm start
```bash ```bash
#Installation dependency #Installation dependency
npm i npm i --legacy-peer-deps
#Executing test cases #Executing test cases
npm test npm test

View File

@ -41,7 +41,7 @@
```bash ```bash
# 安装项目 npm 依赖,在 node 12 下会有报错但不影响正常使用。 # 安装项目 npm 依赖,在 node 12 下会有报错但不影响正常使用。
npm i npm i --legacy-peer-deps
# 启动项目,等编译结束后通过 http://127.0.0.1:8888/examples/pages/simple 访问。 # 启动项目,等编译结束后通过 http://127.0.0.1:8888/examples/pages/simple 访问。
npm start npm start
@ -51,7 +51,7 @@ npm start
```bash ```bash
# 安装依赖 # 安装依赖
npm i npm i --legacy-peer-deps
# 执行测试用例 # 执行测试用例
npm test npm test

View File

@ -115,7 +115,6 @@
"@types/react": "^17.0.39", "@types/react": "^17.0.39",
"@types/react-color": "^3.0.5", "@types/react-color": "^3.0.5",
"@types/react-dom": "^17.0.11", "@types/react-dom": "^17.0.11",
"@types/react-dropzone": "^5.1.0",
"@types/react-onclickoutside": "^6.0.2", "@types/react-onclickoutside": "^6.0.2",
"@types/react-router-dom": "^5.3.3", "@types/react-router-dom": "^5.3.3",
"@types/react-test-renderer": "^17.0.1", "@types/react-test-renderer": "^17.0.1",