mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-23 22:16:48 +00:00
chore: add pre-commit git hooks to repo #474
This commit is contained in:
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
set -u
|
||||
|
||||
npm run fmt
|
||||
npm run lint
|
||||
npm run test
|
||||
@@ -7,6 +7,7 @@
|
||||
"scripts": {
|
||||
"fmt": "npm run prettier && npm run shfmt",
|
||||
"lint": "npm run shellcheck && npm run jshint",
|
||||
"prepare": "node _scripts/git-hooks-init.js",
|
||||
"test": "node _webi/test.js ./node/",
|
||||
"----": "------------------------------------",
|
||||
"jshint": "npx -p jshint@2.x -- jshint -c ./.jshintrc --exclude 'node_modules/**/*' */*.js */*/*.js",
|
||||
|
||||
Reference in New Issue
Block a user