mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-12 04:13:13 +08:00
chore: test-all script support skip build to faster pub speed
This commit is contained in:
parent
b689c9044c
commit
2caa658b6d
@ -73,7 +73,7 @@
|
|||||||
"lint:md": "remark . -f -q",
|
"lint:md": "remark . -f -q",
|
||||||
"lint:script": "eslint . --ext '.js,.jsx,.ts,.tsx'",
|
"lint:script": "eslint . --ext '.js,.jsx,.ts,.tsx'",
|
||||||
"lint:style": "stylelint '{site,components}/**/*.less' --syntax less",
|
"lint:style": "stylelint '{site,components}/**/*.less' --syntax less",
|
||||||
"pre-publish": "npm run check-commit && npm run test-all",
|
"pre-publish": "npm run test-all -- --skip-build",
|
||||||
"prettier": "prettier -c --write '**/*'",
|
"prettier": "prettier -c --write '**/*'",
|
||||||
"pretty-quick": "pretty-quick",
|
"pretty-quick": "pretty-quick",
|
||||||
"pub": "npm run version && antd-tools run pub",
|
"pub": "npm run version && antd-tools run pub",
|
||||||
|
@ -1,24 +1,37 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
cho "[TEST ALL] check-commit" && \
|
if [ "$1" != "--skip-build" ]; then
|
||||||
|
echo "[TEST ALL] dist"
|
||||||
|
npm run dist
|
||||||
|
|
||||||
|
echo "[TEST ALL] compile"
|
||||||
|
npm run compile
|
||||||
|
else
|
||||||
|
echo "Skip build..."
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "[TEST ALL] check-commit"
|
||||||
npm run check-commit
|
npm run check-commit
|
||||||
echo "[TEST ALL] lint" && \
|
|
||||||
npm run lint && \
|
echo "[TEST ALL] lint"
|
||||||
echo "[TEST ALL] dist" && \
|
npm run lint
|
||||||
npm run dist && \
|
|
||||||
echo "[TEST ALL] dekko dist" && \
|
echo "[TEST ALL] dekko dist"
|
||||||
node ./tests/dekko/dist.test.js && \
|
node ./tests/dekko/dist.test.js
|
||||||
echo "[TEST ALL] dist test" && \
|
|
||||||
LIB_DIR=dist npm test && \
|
echo "[TEST ALL] dist test"
|
||||||
echo "[TEST ALL] compile" && \
|
LIB_DIR=dist npm test
|
||||||
npm run compile && \
|
|
||||||
echo "[TEST ALL] dekko lib" && \
|
echo "[TEST ALL] dekko lib"
|
||||||
node ./tests/dekko/lib.test.js && \
|
|
||||||
echo "[TEST ALL] test es" && \
|
echo "[TEST ALL] test es"
|
||||||
LIB_DIR=es npm test && \
|
LIB_DIR=es npm test
|
||||||
echo "[TEST ALL] test lib" && \
|
|
||||||
LIB_DIR=lib npm test && \
|
echo "[TEST ALL] test lib"
|
||||||
echo "[TEST ALL] test" && \
|
LIB_DIR=lib npm test
|
||||||
npm test && \
|
|
||||||
echo "[TEST ALL] test node" && \
|
echo "[TEST ALL] test"
|
||||||
|
npm test
|
||||||
|
|
||||||
|
echo "[TEST ALL] test node"
|
||||||
npm run test-node
|
npm run test-node
|
||||||
|
Loading…
Reference in New Issue
Block a user