Skip to content

Commit

Permalink
Added husky package
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkonst committed Mar 15, 2024
1 parent d5fd04d commit fafb548
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm test
26 changes: 24 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ulms/api-clients",
"version": "7.2.0",
"version": "7.2.1",
"description": "JavaScript API clients for ULMS platform",
"keywords": [],
"homepage": "https://github.com/foxford/ulms-api-clients-js#readme",
Expand All @@ -26,9 +26,10 @@
"build": "npm run build:lib && npm run build:es",
"build:es": "cross-env BABEL_ENV=es babel src --config-file ./.babelrc.json -d es --copy-files",
"build:lib": "cross-env BABEL_ENV=lib babel src --config-file ./.babelrc.json -d lib --copy-files",
"prelint": "prettier --check .",
"lint": "eslint ./src --cache",
"prebuild": "rm -rf lib es",
"prelint": "prettier --check .",
"prepare": "husky install",
"prepublishOnly": "npm test && npm run build",
"test": "jest --coverage"
},
Expand Down Expand Up @@ -59,6 +60,7 @@
"eslint-plugin-promise": "6.0.0",
"eslint-plugin-sonarjs": "0.11.0",
"eslint-plugin-unicorn": "39.0.0",
"husky": "7.0.4",
"jest": "26.6.3",
"prettier": "2.5.1"
}
Expand Down

0 comments on commit fafb548

Please sign in to comment.