Add husky
This commit is contained in:
parent
7e3eac7016
commit
ba88aeda9f
6
.husky/pre-commit
Executable file
6
.husky/pre-commit
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
npm run healthy-check
|
||||||
|
npm run increase-version
|
||||||
|
git add package.json
|
||||||
12
package.json
12
package.json
@ -1,10 +1,18 @@
|
|||||||
{
|
{
|
||||||
"name": "mlModelSaver",
|
"name": "mlModelSaver",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"description": "Make life easier for save and serving ml models",
|
"description": "Make life easier for save and serving ml models",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"repository": "git@github.com:smartdev-ca/mlModelSaver.git",
|
"repository": "git@github.com:smartdev-ca/mlModelSaver.git",
|
||||||
"author": "Jason Jafari <me@jasonjafari.com>",
|
"author": "Jason Jafari <me@jasonjafari.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"private": false
|
"private": false,
|
||||||
|
"dependencies": {
|
||||||
|
"husky": "^9.0.11"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"increase-version": "npm --force --no-git-tag-version version patch",
|
||||||
|
"healthy-check": "ls -la",
|
||||||
|
"prepare": "husky install"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,3 +2,7 @@
|
|||||||
# yarn lockfile v1
|
# yarn lockfile v1
|
||||||
|
|
||||||
|
|
||||||
|
husky@^9.0.11:
|
||||||
|
version "9.0.11"
|
||||||
|
resolved "https://registry.yarnpkg.com/husky/-/husky-9.0.11.tgz#fc91df4c756050de41b3e478b2158b87c1e79af9"
|
||||||
|
integrity sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user