chore: add pre-commit test & lint
This commit is contained in:
parent
fc8a15326f
commit
5151f79dc1
2 changed files with 5 additions and 1 deletions
3
.husky/pre-commit
Normal file
3
.husky/pre-commit
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
echo "pre-commit..."
|
||||
pnpm run lint
|
||||
pnpm run test
|
||||
|
|
@ -11,11 +11,12 @@
|
|||
"test": "pnpm -F @ayco/astro-sw test",
|
||||
"build": "pnpm -F @ayco/astro-sw build",
|
||||
"demo": "pnpm run build && pnpm -F demo build:preview",
|
||||
"dev": "pnpm run demo",
|
||||
"postinstall": "pnpm run build"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+ssh://git@git.sr.ht/~ayoayco/astro-sw.git"
|
||||
"url": "https://git.ayo.run/ayo/astro-sw"
|
||||
},
|
||||
"author": "Ayo Ayco",
|
||||
"license": "MIT",
|
||||
|
|
|
|||
Loading…
Reference in a new issue