From daea08e7ce1eabbcbaaa42b90d92c8de982aaf3a Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 30 Aug 2017 17:37:11 +0800 Subject: [PATCH] pub to gh-pages --- README.md | 2 +- package.json | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c2eb0a0a..f5e45903 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 04794798..d8b4b269 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", -- GitLab