diff --git a/README.md b/README.md index c2eb0a0a3e21c6000cdaa1474e3a54e730584ef8..f5e459037403e86b352c20334bf7c2b4cd95439d 100644 --- a/README.md +++ b/README.md @@ -10,5 +10,5 @@ $ npm start ``` ```bash -$ npm run deploy +$ npm run site ``` diff --git a/package.json b/package.json index 04794798255ea190626f77e327e6c1ea3c10923e..d8b4b2691c3f85c989000fdce858bf9ac08acf7d 100755 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "build": "roadhog build", "lint": "eslint --ext .js src test mock", "test": "npm run lint", - "precommit": "npm run lint" + "precommit": "npm run lint", + "site": "npm run build && gh-pages -d dist" }, "dependencies": { "antd": "next", @@ -35,6 +36,7 @@ "eslint-plugin-import": "^2.2.0", "eslint-plugin-jsx-a11y": "^5.0.1", "eslint-plugin-react": "^7.0.1", + "gh-pages": "^1.0.0", "husky": "^0.13.4", "mockjs": "^1.0.1-beta3", "redbox-react": "^1.3.2",