From: Nicolas Coden Date: Tue, 24 Apr 2018 20:11:26 +0000 (+0200) Subject: chore: rename husky scripts according to their action X-Git-Tag: v6.6.0~3^2~216^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60ed481afa70cc3c12cbae4d3fa48aaafc2029aa;p=thirdparty%2Ffoundation%2Ffoundation-sites.git chore: rename husky scripts according to their action --- diff --git a/.huskyrc.yml b/.huskyrc.yml index 01d1617ee..389b55e3a 100644 --- a/.huskyrc.yml +++ b/.huskyrc.yml @@ -1,6 +1,6 @@ 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 diff --git a/script/husky-commitmsg.js b/script/husky-commit-lint.js similarity index 89% rename from script/husky-commitmsg.js rename to script/husky-commit-lint.js index 9b844f9ba..988df4944 100644 --- a/script/husky-commitmsg.js +++ b/script/husky-commit-lint.js @@ -3,7 +3,7 @@ const spawn = require('child_process').spawn 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 }) diff --git a/script/husky-precommit.js b/script/husky-commit-test.js similarity index 97% rename from script/husky-precommit.js rename to script/husky-commit-test.js index b7944ff7a..3a665ff50 100644 --- a/script/husky-precommit.js +++ b/script/husky-commit-test.js @@ -1,7 +1,7 @@ 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 }) diff --git a/script/husky-prepush.js b/script/husky-push-test.js similarity index 87% rename from script/husky-prepush.js rename to script/husky-push-test.js index 1594b13ee..259c98b6f 100644 --- a/script/husky-prepush.js +++ b/script/husky-push-test.js @@ -1,7 +1,7 @@ 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 })