mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-12-30 12:01:50 +01:00
chore(package): setting up husky CI
This commit is contained in:
parent
c6ec6abd52
commit
1fb36bf832
4
.husky/pre-commit
Normal file
4
.husky/pre-commit
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
npm run pretty-quick && npm run lint
|
4
.prettierignore
Normal file
4
.prettierignore
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
node_modules
|
||||||
|
# Ignore artifacts:
|
||||||
|
build
|
||||||
|
coverage
|
11
package.json
11
package.json
@ -3,9 +3,12 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "Official website for the Tachiyomi app.",
|
"description": "Official website for the Tachiyomi app.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run lint && vuepress build src",
|
"build": "npm run lint:fix && vuepress build src",
|
||||||
"lint": "eslint --fix 'src/.vuepress/**/*.{js,vue}' --no-ignore",
|
"lint": "eslint src",
|
||||||
"serve": "vuepress dev src"
|
"lint:fix": "eslint --fix 'src/.vuepress/**/*.{js,vue}' --no-ignore",
|
||||||
|
"serve": "vuepress dev src",
|
||||||
|
"prepare": "husky install",
|
||||||
|
"pretty-quick": "pretty-quick"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -31,8 +34,10 @@
|
|||||||
"eslint-plugin-markdown": "^2.2.1",
|
"eslint-plugin-markdown": "^2.2.1",
|
||||||
"eslint-plugin-promise": "^6.0.0",
|
"eslint-plugin-promise": "^6.0.0",
|
||||||
"eslint-plugin-vue": "^8.5.0",
|
"eslint-plugin-vue": "^8.5.0",
|
||||||
|
"husky": "^7.0.0",
|
||||||
"node-sass": "^6.0.1",
|
"node-sass": "^6.0.1",
|
||||||
"prettier": "^2.5.1",
|
"prettier": "^2.5.1",
|
||||||
|
"pretty-quick": "^3.1.3",
|
||||||
"sass-loader": "^10.1.1",
|
"sass-loader": "^10.1.1",
|
||||||
"vuepress": "^1.9.7",
|
"vuepress": "^1.9.7",
|
||||||
"vuepress-plugin-clean-urls": "^1.1.2",
|
"vuepress-plugin-clean-urls": "^1.1.2",
|
||||||
|
Loading…
Reference in New Issue
Block a user