mirror of
https://github.com/zhigang1992/react-native-paper.git
synced 2026-06-13 09:34:40 +08:00
chore: run yarn test on pre-commit hook
This commit is contained in:
@@ -46,8 +46,8 @@ jobs:
|
||||
- attach_workspace:
|
||||
at: ~/react-native-paper
|
||||
- run: |
|
||||
yarn run lint
|
||||
yarn run flow
|
||||
yarn lint
|
||||
yarn flow
|
||||
|
||||
unit-tests:
|
||||
<<: *defaults
|
||||
@@ -64,7 +64,7 @@ jobs:
|
||||
- attach_workspace:
|
||||
at: ~/react-native-paper
|
||||
- run: |
|
||||
cd docs && yarn run build && cd ..
|
||||
cd docs && yarn build && cd ..
|
||||
bash .circleci/comment-artifacts.sh
|
||||
- store_artifacts:
|
||||
path: docs/dist
|
||||
|
||||
@@ -27,7 +27,7 @@ cd ..
|
||||
rm -rf dist/**/* || exit 0
|
||||
|
||||
# Run our build script.
|
||||
yarn run build
|
||||
yarn build
|
||||
|
||||
cd dist
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ You can learn how from this *free* series [How to Contribute to an Open Source P
|
||||
|
||||
5. In case of doubts, check out the current code. For example, we use the prop `icon` not `iconName`.
|
||||
|
||||
6. You can run `yarn run bootstrap` which will install all the dependencies in example & docs folder respectively.
|
||||
6. You can run `yarn bootstrap` which will install all the dependencies in example & docs folder respectively.
|
||||
|
||||
## Running the example
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"start": "babel-node index",
|
||||
"build": "babel-node index build",
|
||||
"clean": "del dist/",
|
||||
"prestart": "yarn run clean"
|
||||
"prestart": "yarn clean"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-cli": "^6.18.0",
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"homepage": "https://callstack.github.io/react-native-paper",
|
||||
"scripts": {
|
||||
"commitmsg": "node ./scripts/validate-commit-message.js $GIT_PARAMS",
|
||||
"precommit": "yarn run lint && yarn run flow",
|
||||
"precommit": "yarn lint && yarn flow && yarn test",
|
||||
"flow": "flow",
|
||||
"lint": "eslint .",
|
||||
"test": "jest",
|
||||
|
||||
Reference in New Issue
Block a user