]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
chore: rename husky scripts according to their action
authorNicolas Coden <nicolas@ncoden.fr>
Tue, 24 Apr 2018 20:11:26 +0000 (22:11 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Tue, 24 Apr 2018 20:11:26 +0000 (22:11 +0200)
.huskyrc.yml
script/husky-commit-lint.js [moved from script/husky-commitmsg.js with 89% similarity]
script/husky-commit-test.js [moved from script/husky-precommit.js with 97% similarity]
script/husky-push-test.js [moved from script/husky-prepush.js with 87% similarity]

index 01d1617ee1c854840d58925fc558686be75dee31..389b55e3a06ec912413d4833a60a850d009002c0 100644 (file)
@@ -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
similarity index 89%
rename from script/husky-commitmsg.js
rename to script/husky-commit-lint.js
index 9b844f9bac8dbed0987a22ae8be3ad956fcab7ca..988df49444aa2238871eb4a805cf11fa3de78128 100644 (file)
@@ -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 })
 
similarity index 97%
rename from script/husky-precommit.js
rename to script/husky-commit-test.js
index b7944ff7a2490d5c9632119f84900f10fe98c34f..3a665ff50f31c51411e1856009caf8fd95cb0990 100644 (file)
@@ -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 })
 
similarity index 87%
rename from script/husky-prepush.js
rename to script/husky-push-test.js
index 1594b13eeb7f354280f9e94cb802b7bc145e50e5..259c98b6f3d1275c4ec33115bba47793968c10c8 100644 (file)
@@ -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 })