Skip to content

Commit 298a004

Browse files
committed
Make pre-commit hook more explicit
1 parent 56f492b commit 298a004

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@
2020
"build:mac": "./node_modules/.bin/gulp",
2121
"build:win": "./node_modules/.bin/gulp.cmd",
2222
"dev": "./node_modules/.bin/webpack-dev-server --config example/webpack.config.js --devtool eval --progress --colors --hot --content-base example",
23-
"lint": "./node_modules/.bin/eslint src/ DateTime.js test/ && echo 'Linting OK!'",
23+
"lint": "./node_modules/.bin/eslint src/ DateTime.js test/ && echo 'Linting OK! 💪'",
24+
"notify-pre-commit-hook": "echo '### Starting pre-commit hook 🦄'",
2425
"test": "./node_modules/.bin/jest",
2526
"test:typings": "./node_modules/.bin/tsc -p ./typings",
2627
"test:snapshot": "./node_modules/.bin/jest snapshot",
2728
"test:snapshot:update": "./node_modules/.bin/jest snapshot --updateSnapshot",
28-
"test:all": "npm run test:typings && npm run test",
29+
"test:all": "echo 'Running tests...' && npm run test:typings && npm run test && echo 'All tests passed! 🤘'",
2930
"test:watch": "./node_modules/.bin/jest --watch"
3031
},
3132
"keywords": [
@@ -84,6 +85,7 @@
8485
"react-onclickoutside": "^6.5.0"
8586
},
8687
"pre-commit": [
88+
"notify-pre-commit-hook",
8789
"lint",
8890
"test:all"
8991
]

0 commit comments

Comments
 (0)