fix: site script

This commit is contained in:
ycjcl868 2019-12-20 16:37:10 +08:00
parent 9630712b51
commit f9e9ab784d
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[build]
publish = "_site"
command = "npm run compile && npm run dist && npm run site"
command = "npm run site"
[[redirects]]
from = "/docs/resource/download"

View File

@ -66,7 +66,7 @@
"pretty-quick": "pretty-quick",
"pub": "antd-tools run pub",
"prepublish": "antd-tools run guard",
"site": "cross-env NODE_ICU_DATA=node_modules/full-icu bisheng build --ssr -c ./site/bisheng.config.js && node ./scripts/generateColorLess.js",
"site": "cross-env npm run compile && npm run dist && NODE_ICU_DATA=node_modules/full-icu bisheng build --ssr -c ./site/bisheng.config.js && node ./scripts/generateColorLess.js",
"sort": "npx sort-package-json",
"sort-api": "antd-tools run sort-api-table",
"start": "rimraf _site && mkdir _site && node ./scripts/generateColorLess.js && cross-env NODE_ENV=development bisheng start -c ./site/bisheng.config.js",