chore(package): setting up husky CI

This commit is contained in:
jessie 2022-03-15 09:07:43 +08:00
parent c6ec6abd52
commit 1fb36bf832
4 changed files with 10502 additions and 3 deletions

4
.husky/pre-commit Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npm run pretty-quick && npm run lint

4
.prettierignore Normal file
View File

@ -0,0 +1,4 @@
node_modules
# Ignore artifacts:
build
coverage

View File

@ -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",

10486
yarn.lock Normal file

File diff suppressed because it is too large Load Diff