chore: add check script & use in precommit
This commit is contained in:
parent
4966cbbce0
commit
3a682b9232
2 changed files with 2 additions and 1 deletions
|
@ -1 +1 @@
|
||||||
npm run lint
|
npm run check
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
"preview": "astro preview",
|
"preview": "astro preview",
|
||||||
"lint": "eslint . --config eslint.config.mjs",
|
"lint": "eslint . --config eslint.config.mjs",
|
||||||
"format": "prettier . --write",
|
"format": "prettier . --write",
|
||||||
|
"check": "npm run format && npm run lint",
|
||||||
"astro": "astro",
|
"astro": "astro",
|
||||||
"build:preview": "astro build && astro preview",
|
"build:preview": "astro build && astro preview",
|
||||||
"deploy": "astro build && scp -r dist ayo@ayco.io:~/ayco.io-flask/",
|
"deploy": "astro build && scp -r dist ayo@ayco.io:~/ayco.io-flask/",
|
||||||
|
|
Loading…
Reference in a new issue