chore: run yarn test on pre-commit hook

This commit is contained in:
Satyajit Sahoo
2018-03-14 14:55:08 +01:00
parent cb876a3856
commit 090f6fbde0
5 changed files with 7 additions and 7 deletions

View File

@@ -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

View File

@@ -27,7 +27,7 @@ cd ..
rm -rf dist/**/* || exit 0
# Run our build script.
yarn run build
yarn build
cd dist

View File

@@ -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

View File

@@ -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",

View File

@@ -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",