Skip to content

Commit

Permalink
Upgrade husky
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyEckstein committed Apr 13, 2021
1 parent 8b83114 commit 6ea3423
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 15 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
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"

npx --no-install lint-staged && npm run build-docs
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run eslint && npm test
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ verifyDeps({ dir: './path-to/project-directory' })
<a name="exp_module_lifion-verify-deps--verifyDeps"></a>
### verifyDeps([options]) ⏏
Verifies the dependencies listed in the package.json of the given directory.
**Kind**: Exported function
**Kind**: Exported function
| Param | Type | Default | Description |
| --- | --- | --- | --- |
| [options] | <code>Object</code> | | Optional parameters. |
| [options.autoUpgrade] | <code>boolean</code> | <code>false</code> | Automatically upgrade all suggested dependencies. |
| [options.dir] | <code>string</code> | | The path where to look for the package.json file. |
| [options.logger] | <code>Object</code> | | A logger instance, with a similar API as the console object. |
| Param | Type | Default | Description |
| --------------------- | -------------------- | ------------------ | ------------------------------------------------------------ |
| [options] | <code>object</code> | | Optional parameters. |
| [options.autoUpgrade] | <code>boolean</code> | <code>false</code> | Automatically upgrade all suggested dependencies. |
| [options.dir] | <code>string</code> | | The path where to look for the package.json file. |
| [options.logger] | <code>object</code> | | A logger instance, with a similar API as the console object. |
## License
Expand Down
15 changes: 15 additions & 0 deletions package-lock.json

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

12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@
"build-docs-watch": "npm-watch build-docs",
"eslint": "eslint . --ext .js,.json --ignore-pattern='!.*.*'",
"format": "prettier --write '**/*.{md,js,json}' '!coverage/**/*.{js,json}'",
"prepare": "check-engines",
"prepare": "husky install",
"postinstall": "husky install",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable",
"test": "jest -c ./.jest.json",
"version": "auto-changelog -p && git add CHANGELOG.md"
},
Expand All @@ -65,14 +68,9 @@
"jsdoc-to-markdown": "^7.0.1",
"lint-staged": "^10.5.4",
"npm-watch": "^0.9.0",
"pinst": "^2.1.6",
"prettier": "^2.2.1"
},
"husky": {
"hooks": {
"pre-commit": "npm run build-docs && lint-staged",
"pre-push": "npm run eslint && npm test"
}
},
"watch": {
"build-docs": {
"patterns": [
Expand Down

0 comments on commit 6ea3423

Please sign in to comment.