Browse Source

Added Gitpod support (#14307)

pull/14755/head
Sven Efftinge 6 years ago
committed by zombieJ
parent
commit
d06db43b41
  1. 8
      .gitpod.yml
  2. 6
      README.md
  3. 5
      site/bisheng.config.js

8
.gitpod.yml

@ -0,0 +1,8 @@
ports:
- port: 8001
onOpen: open-preview
tasks:
- before: >
export DEV_HOST=$(gp url 8001)
init: npm install
command: npm start

6
README.md

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

5
site/bisheng.config.js

@ -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…
Cancel
Save