mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-23 18:50:06 +08:00
Added Gitpod support (#14307)
This commit is contained in:
parent
0399450920
commit
d06db43b41
8
.gitpod.yml
Normal file
8
.gitpod.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
ports:
|
||||||
|
- port: 8001
|
||||||
|
onOpen: open-preview
|
||||||
|
tasks:
|
||||||
|
- before: >
|
||||||
|
export DEV_HOST=$(gp url 8001)
|
||||||
|
init: npm install
|
||||||
|
command: npm start
|
@ -100,6 +100,12 @@ See [i18n](http://ant.design/docs/react/i18n).
|
|||||||
|
|
||||||
## ⌨️ Development
|
## ⌨️ Development
|
||||||
|
|
||||||
|
Use Gitpod, a free online dev environment for GitHub.
|
||||||
|
|
||||||
|
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/ant-design/ant-design)
|
||||||
|
|
||||||
|
Or clone locally:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ git clone git@github.com:ant-design/ant-design.git
|
$ git clone git@github.com:ant-design/ant-design.git
|
||||||
$ cd ant-design
|
$ cd ant-design
|
||||||
|
@ -123,6 +123,11 @@ module.exports = {
|
|||||||
return config;
|
return config;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
devServerConfig: {
|
||||||
|
public: process.env.DEV_HOST || 'localhost',
|
||||||
|
disableHostCheck: !!process.env.DEV_HOST,
|
||||||
|
},
|
||||||
|
|
||||||
htmlTemplateExtraData: {
|
htmlTemplateExtraData: {
|
||||||
isDev,
|
isDev,
|
||||||
usePreact,
|
usePreact,
|
||||||
|
Loading…
Reference in New Issue
Block a user