Skip to content

Commit

Permalink
chore: added husky configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodf committed Apr 28, 2021
1 parent 90b2b9a commit 32a6bf6
Show file tree
Hide file tree
Showing 6 changed files with 221 additions and 85 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/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx commitlint --edit
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"

lerna run --parallel precommit
7 changes: 0 additions & 7 deletions .huskyrc

This file was deleted.

17 changes: 8 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"engines": {
"node": ">=10.x"
},
"workspaces": [
"packages/*"
],
"scripts": {
"build": "yarn build:api-client && yarn build:composables && yarn build:theme",
"build:api-client": "cd packages/api-client && yarn build",
Expand All @@ -18,14 +21,16 @@
"test:composables": "cd packages/composables && yarn test --passWithNoTests",
"test:theme": "cd packages/theme && yarn test --passWithNoTests",
"start": "cd packages/theme && yarn start",
"lint": "eslint . --ext .ts,.vue --fix"
"lint": "eslint . --ext .ts,.vue --fix",
"prepare": "husky install"
},
"devDependencies": {
"@babel/core": "^7.13.16",
"@commitlint/cli": "^12.1.1",
"@commitlint/config-conventional": "^12.1.1",
"@commitlint/config-lerna-scopes": "^12.1.1",
"@manypkg/cli": "^0.17.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@types/graphql": "^14.5.0",
"@types/jest": "^26.0.22",
"@types/jsdom": "^16.2.10",
Expand All @@ -35,6 +40,7 @@
"@typescript-eslint/parser": "^4.22.0",
"@vue/eslint-config-typescript": "^7.0.0",
"babel-eslint": "^10.1.0",
"commitizen": "^4.2.3",
"ejs": "^3.1.6",
"eslint": "7.24.0",
"eslint-config-airbnb-base": "^14.2.1",
Expand All @@ -49,7 +55,7 @@
"eslint-plugin-standard": "^5.0.0",
"eslint-plugin-unicorn": "30.0.0",
"eslint-plugin-vue": "^7.9.0",
"husky": "^4.3.8",
"husky": "^6.0.0",
"jest": "^26.6.3",
"jest-date-mock": "^1.0.8",
"jest-environment-jsdom-sixteen": "^2.0.0",
Expand All @@ -68,17 +74,10 @@
"rimraf": "^3.0.2",
"rollup": "^2.45.2",
"rollup-plugin-typescript2": "^0.30.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"ts-jest": "^26.5.5",
"ts-node": "^9.1.1",
"tslib": "^2.2.0",
"typescript": "^4.2.4",
"vue-eslint-parser": "^7.6.0"
},
"workspaces": [
"packages/*"
],
"lint-staged": {
"*.{js,ts,vue}": "eslint --fix"
}
}
Loading

0 comments on commit 32a6bf6

Please sign in to comment.