Skip to content

Commit d06db43

Browse files
svenefftingezombieJ
authored andcommitted
Added Gitpod support (ant-design#14307)
1 parent 0399450 commit d06db43

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

.gitpod.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
ports:
2+
- port: 8001
3+
onOpen: open-preview
4+
tasks:
5+
- before: >
6+
export DEV_HOST=$(gp url 8001)
7+
init: npm install
8+
command: npm start

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ See [i18n](http://ant.design/docs/react/i18n).
100100

101101
## ⌨️ Development
102102

103+
Use Gitpod, a free online dev environment for GitHub.
104+
105+
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/ant-design/ant-design)
106+
107+
Or clone locally:
108+
103109
```bash
104110
$ git clone [email protected]:ant-design/ant-design.git
105111
$ cd ant-design

site/bisheng.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ module.exports = {
123123
return config;
124124
},
125125

126+
devServerConfig: {
127+
public: process.env.DEV_HOST || 'localhost',
128+
disableHostCheck: !!process.env.DEV_HOST,
129+
},
130+
126131
htmlTemplateExtraData: {
127132
isDev,
128133
usePreact,

0 commit comments

Comments
 (0)