فهرست منبع

pub to gh-pages

afc163 8 سال پیش
والد
کامیت
daea08e7ce
2فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 1 1
      README.md
  2. 3 1
      package.json

+ 1 - 1
README.md

@@ -10,5 +10,5 @@ $ npm start
 ```
 
 ```bash
-$ npm run deploy
+$ npm run site
 ```

+ 3 - 1
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",