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

Diff for: .gitpod.yml

+8
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

Diff for: README.md

+6
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

Diff for: site/bisheng.config.js

+5
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)