mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +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 }}
|
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
|
||||||
|
2
.github/workflows/pr-test.yml
vendored
2
.github/workflows/pr-test.yml
vendored
@ -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
|
||||||
|
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.
|
# 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
|
||||||
|
@ -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
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user