Browse Source

chore: 🛠 quit pub script when throw error (#26006)

* eslint

* chore: quit pub script when throw error

close #25965

https://stackoverflow.com/a/2871034

* revert
pull/26009/head
偏右 4 years ago
committed by GitHub
parent
commit
a33dc19ec8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      package.json
  2. 12
      scripts/test-all.sh

2
package.json

@ -86,7 +86,7 @@
"start:preact": "antd-tools run clean && cross-env NODE_ENV=development REACT_ENV=preact concurrently \"npm run color-less\" \"bisheng start -c ./site/bisheng.config.js\"",
"test": "jest --config .jest.js --no-cache",
"test:update": "jest --config .jest.js --no-cache --update-snapshot",
"test-all": "./scripts/test-all.sh",
"test-all": "sh -e ./scripts/test-all.sh",
"test-node": "jest --config .jest.node.js --no-cache",
"tsc": "tsc --noEmit",
"site:test": "jest --config .jest.site.js --cache=false",

12
scripts/test-all.sh

@ -1,5 +1,11 @@
#!/bin/sh
echo "[TEST ALL] check-commit"
npm run check-commit
echo "[TEST ALL] lint"
npm run lint
if [ "$1" != "--skip-build" ]; then
echo "[TEST ALL] dist"
npm run dist
@ -10,12 +16,6 @@ else
echo "Skip build..."
fi
echo "[TEST ALL] check-commit"
npm run check-commit
echo "[TEST ALL] lint"
npm run lint
echo "[TEST ALL] dekko dist"
node ./tests/dekko/dist.test.js

Loading…
Cancel
Save