Skip to content

Commit 53a8568

Browse files
committed
add git hooks
1 parent c88ebb8 commit 53a8568

File tree

4 files changed

+2957
-5
lines changed

4 files changed

+2957
-5
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
pnpm-lock.yaml
21
yarn.lock
32
package-lock.json
43

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx lint-staged

package.json

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,27 @@
11
{
22
"name": "vue-use-active-scroll",
3-
"version": "0.9.0",
3+
"version": "0.8.8",
44
"private": false,
5+
"description": "Reactive and accurate TOC/sidebar links without compromises for Vue.",
6+
"keywords": [
7+
"vue",
8+
"vue3",
9+
"vue-scroll",
10+
"vue scroll",
11+
"vue-scroll-active",
12+
"vue scroll active",
13+
"vue-active-scroll",
14+
"vue active scroll",
15+
"vue-active-link",
16+
"vue active link",
17+
"vue-toc",
18+
"vue toc"
19+
],
20+
"license": "MIT",
21+
"author": {
22+
"name": "Simone Mastromattei",
23+
"email": "smastrom@proton.me"
24+
},
525
"main": "dist/index.js",
626
"module": "dist/index.mjs",
727
"types": "dist/index.d.ts",
@@ -12,7 +32,14 @@
1232
"build": "vue-tsc && vite build && rimraf dist/_redirects dist/favicon.ico",
1333
"build:app": "vue-tsc && vite build --mode app",
1434
"dev": "vite",
15-
"preview": "vite preview"
35+
"prepare": "husky install",
36+
"preview": "vite preview",
37+
"test": "cypress run --component",
38+
"test:gui": "cypress open --component"
39+
},
40+
"lint-staged": {
41+
"*.{ts,vue}": "eslint --cache --fix",
42+
"*.{ts,vue,md}": "prettier --write"
1643
},
1744
"devDependencies": {
1845
"@rollup/plugin-terser": "^0.3.0",
@@ -24,8 +51,9 @@
2451
"cypress": "^12.3.0",
2552
"eslint": "^8.32.0",
2653
"eslint-plugin-vue": "^9.9.0",
27-
"prettier": "^2.8.2",
28-
"rimraf": "^4.1.0",
54+
"husky": "^8.0.3",
55+
"prettier": "^2.8.3",
56+
"rimraf": "^4.1.1",
2957
"typescript": "^4.9.4",
3058
"vite": "^4.0.4",
3159
"vite-plugin-dts": "^1.7.1",

0 commit comments

Comments
 (0)