hooks:
commit-msg: >
- node ./script/husky-commitmsg.js --color -e $GIT_PARAMS &&
- node ./script/husky-precommit.js --color
+ node ./script/husky-commit-lint.js --color -e $GIT_PARAMS &&
+ node ./script/husky-commit-test.js --color
pre-push:
- node ./script/husky-prepush.js --color
+ node ./script/husky-push-test.js --color
const args = process.argv.splice(process.execArgv.length + 2);
-console.log(chalk.yellow('🐶 Checking your commit message...'))
+console.log(chalk.yellow('🐶 Checking the commit message...'))
const child = spawn('commitlint', args, { shell: true })
const chalk = require('chalk')
const spawn = require('child_process').spawn
-console.log(chalk.yellow('🐶 Checking tests before committing with Husky...'))
+console.log(chalk.yellow('🐶 Checking tests before committing...'))
const child = spawn('npm run test', [], { shell: true })
const chalk = require('chalk')
const spawn = require('child_process').spawn
-console.log(chalk.yellow('🐶 Checking tests before pushing with Husky...'))
+console.log(chalk.yellow('🐶 Checking tests before pushing...'))
const child = spawn('npm run test', [], { shell: true })