update README

This commit is contained in:
afc163 2015-05-08 11:56:39 +08:00
parent 97f8d04623
commit a9ac2ecdc8
2 changed files with 24 additions and 1 deletions

View File

@ -2,3 +2,24 @@
---
咩咩咩。
---
### 站点开发
在 dev 分支上进行开发。
#### 本地调试
```bash
$ npm start
```
然后访问 http://127.0.0.1:8000 。
#### 部署上线
```bash
$ npm run deploy
```

View File

@ -11,11 +11,13 @@
"url": "https://github.com/ant-design/ant-design.github.io/issues"
},
"dependencies": {
"gh-pages-cli": "~0.2.0",
"nico": "*"
},
"scripts": {
"build": "npm run clean && nico build",
"start": "npm run clean && nico server",
"clean": "rm -rf _site"
"clean": "rm -rf _site",
"deploy": "npm run build && gh-pages -d _site -b master"
}
}