Added Gitpod support (#14307)

This commit is contained in:
Sven Efftinge 2019-02-08 03:01:01 +01:00 committed by zombieJ
parent 0399450920
commit d06db43b41
3 changed files with 19 additions and 0 deletions

8
.gitpod.yml Normal file
View 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

View File

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

View File

@ -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,