From 1a98febee7128d9defd041b7b3c5b7122c83fa3c Mon Sep 17 00:00:00 2001 From: ycjcl868 <45808948@qq.com> Date: Tue, 24 Dec 2019 18:58:34 +0800 Subject: [PATCH] fix: concurrently build site --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 20a38f14e4..41f4c9a691 100644 --- a/package.json +++ b/package.json @@ -66,10 +66,10 @@ "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 NODE_ICU_DATA=node_modules/full-icu concurrently \"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", + "start": "rimraf _site && mkdir _site && cross-env NODE_ENV=development concurrently \"node ./scripts/generateColorLess.js\" \"bisheng start -c ./site/bisheng.config.js\"", "start:preact": "node ./scripts/generateColorLess.js && cross-env NODE_ENV=development REACT_ENV=preact bisheng start -c ./site/bisheng.config.js", "test": "jest --config .jest.js --no-cache", "test-all": "./scripts/test-all.sh", @@ -156,8 +156,8 @@ "@types/warning": "^3.0.0", "@typescript-eslint/eslint-plugin": "^2.0.0", "@typescript-eslint/parser": "~2.9.0", - "antd-theme-generator": "^1.1.6", "antd-pro-merge-less": "^2.0.24", + "antd-theme-generator": "^1.1.6", "babel-eslint": "^10.0.1", "babel-plugin-add-react-displayname": "^0.0.5", "bisheng": "~1.3.3", @@ -167,6 +167,7 @@ "bundlesize": "^0.18.0", "chalk": "^3.0.0", "cheerio": "^1.0.0-rc.3", + "concurrently": "^5.0.2", "cross-env": "^6.0.0", "css-split-webpack-plugin": "^0.2.6", "dekko": "^0.2.1",