Skip to content

Commit 090f6fb

Browse files
committed
chore: run yarn test on pre-commit hook
1 parent cb876a3 commit 090f6fb

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.circleci/config.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ jobs:
4646
- attach_workspace:
4747
at: ~/react-native-paper
4848
- run: |
49-
yarn run lint
50-
yarn run flow
49+
yarn lint
50+
yarn flow
5151
5252
unit-tests:
5353
<<: *defaults
@@ -64,7 +64,7 @@ jobs:
6464
- attach_workspace:
6565
at: ~/react-native-paper
6666
- run: |
67-
cd docs && yarn run build && cd ..
67+
cd docs && yarn build && cd ..
6868
bash .circleci/comment-artifacts.sh
6969
- store_artifacts:
7070
path: docs/dist

.circleci/deploy-docs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ cd ..
2727
rm -rf dist/**/* || exit 0
2828

2929
# Run our build script.
30-
yarn run build
30+
yarn build
3131

3232
cd dist
3333

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ You can learn how from this *free* series [How to Contribute to an Open Source P
4040

4141
5. In case of doubts, check out the current code. For example, we use the prop `icon` not `iconName`.
4242

43-
6. You can run `yarn run bootstrap` which will install all the dependencies in example & docs folder respectively.
43+
6. You can run `yarn bootstrap` which will install all the dependencies in example & docs folder respectively.
4444

4545
## Running the example
4646

docs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"start": "babel-node index",
88
"build": "babel-node index build",
99
"clean": "del dist/",
10-
"prestart": "yarn run clean"
10+
"prestart": "yarn clean"
1111
},
1212
"devDependencies": {
1313
"babel-cli": "^6.18.0",

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"homepage": "https://callstack.github.io/react-native-paper",
1919
"scripts": {
2020
"commitmsg": "node ./scripts/validate-commit-message.js $GIT_PARAMS",
21-
"precommit": "yarn run lint && yarn run flow",
21+
"precommit": "yarn lint && yarn flow && yarn test",
2222
"flow": "flow",
2323
"lint": "eslint .",
2424
"test": "jest",

0 commit comments

Comments
 (0)