From 298a004fd1bd163402c3aa2e370cc186d9afeecd Mon Sep 17 00:00:00 2001 From: Simon Egersand Date: Fri, 9 Feb 2018 12:03:11 +0100 Subject: [PATCH] Make pre-commit hook more explicit --- package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 61e2745ad..50937c8a7 100644 --- a/package.json +++ b/package.json @@ -20,12 +20,13 @@ "build:mac": "./node_modules/.bin/gulp", "build:win": "./node_modules/.bin/gulp.cmd", "dev": "./node_modules/.bin/webpack-dev-server --config example/webpack.config.js --devtool eval --progress --colors --hot --content-base example", - "lint": "./node_modules/.bin/eslint src/ DateTime.js test/ && echo 'Linting OK!'", + "lint": "./node_modules/.bin/eslint src/ DateTime.js test/ && echo 'Linting OK! 💪'", + "notify-pre-commit-hook": "echo '### Starting pre-commit hook 🦄'", "test": "./node_modules/.bin/jest", "test:typings": "./node_modules/.bin/tsc -p ./typings", "test:snapshot": "./node_modules/.bin/jest snapshot", "test:snapshot:update": "./node_modules/.bin/jest snapshot --updateSnapshot", - "test:all": "npm run test:typings && npm run test", + "test:all": "echo 'Running tests...' && npm run test:typings && npm run test && echo 'All tests passed! 🤘'", "test:watch": "./node_modules/.bin/jest --watch" }, "keywords": [ @@ -84,6 +85,7 @@ "react-onclickoutside": "^6.5.0" }, "pre-commit": [ + "notify-pre-commit-hook", "lint", "test:all" ]