mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-29 10:39:38 +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
|
||||
|
||||
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
|
||||
$ git clone git@github.com:ant-design/ant-design.git
|
||||
$ cd ant-design
|
||||
|
@ -123,6 +123,11 @@ module.exports = {
|
||||
return config;
|
||||
},
|
||||
|
||||
devServerConfig: {
|
||||
public: process.env.DEV_HOST || 'localhost',
|
||||
disableHostCheck: !!process.env.DEV_HOST,
|
||||
},
|
||||
|
||||
htmlTemplateExtraData: {
|
||||
isDev,
|
||||
usePreact,
|
||||
|
Loading…
Reference in New Issue
Block a user