From ebe796525978872c5b4b4c80a4c3712832427ecf Mon Sep 17 00:00:00 2001 From: nikogu <644506165@qq.com> Date: Tue, 7 Nov 2017 15:45:04 +0800 Subject: [PATCH] fixed site script --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ca31afdb..af9ad39d 100755 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "start": "roadhog server", "start:no-proxy": "NO_PROXY=true roadhog server", "build": "roadhog build", - "site": "roadhog-api-doc static", + "site": "roadhog-api-doc static && gh-pages -d dist", "analyze": "roadhog build --analyze", "lint:style": "stylelint \"src/**/*.less\" --syntax less", "lint": "eslint --ext .js src mock tests && npm run lint:style", @@ -38,7 +38,8 @@ "react-container-query": "^0.9.1", "react-document-title": "^2.0.3", "react-dom": "^16.0.0", - "react-fittext": "^1.0.0" + "react-fittext": "^1.0.0", + "roadhog-api-doc": "^0.2.5" }, "devDependencies": { "babel-eslint": "^8.0.1", -- GitLab