mirror of
https://github.com/gotson/komga.git
synced 2026-01-05 23:36:07 +01:00
build(webui): run lint on pre-commit
run linter in production mode
This commit is contained in:
parent
521cc42858
commit
7003d8a687
2 changed files with 2 additions and 1 deletions
|
|
@ -6,7 +6,7 @@
|
|||
"serve": "vue-cli-service serve --port 8081",
|
||||
"build": "vue-cli-service build",
|
||||
"test:unit": "vue-cli-service test:unit",
|
||||
"lint": "vue-cli-service lint"
|
||||
"lint": "vue-cli-service lint --mode production"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^0.19.2",
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "npm run --prefix komga-webui lint",
|
||||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue