Skip to content

Commit

Permalink
Added Gitpod support (ant-design#14307)
Browse files Browse the repository at this point in the history
  • Loading branch information
svenefftinge authored and zombieJ committed Feb 8, 2019
1 parent 0399450 commit d06db43
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]:ant-design/ant-design.git
$ cd ant-design
Expand Down
5 changes: 5 additions & 0 deletions site/bisheng.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ module.exports = {
return config;
},

devServerConfig: {
public: process.env.DEV_HOST || 'localhost',
disableHostCheck: !!process.env.DEV_HOST,
},

htmlTemplateExtraData: {
isDev,
usePreact,
Expand Down

0 comments on commit d06db43

Please sign in to comment.