chore: add husky; auto mirror to gh & sh
This commit is contained in:
parent
c1b24a1d5f
commit
47dfb1bc67
3 changed files with 698 additions and 964 deletions
3
.husky/post-commit
Normal file
3
.husky/post-commit
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
echo "post-commit..."
|
||||||
|
git push gh --mirror
|
||||||
|
git push sh --mirror
|
||||||
14
package.json
14
package.json
|
|
@ -23,16 +23,18 @@
|
||||||
"index.ts"
|
"index.ts"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "astro dev",
|
|
||||||
"start": "astro dev",
|
|
||||||
"build": "astro build",
|
|
||||||
"preview": "astro preview",
|
|
||||||
"astro": "astro",
|
"astro": "astro",
|
||||||
|
"dev": "astro telemetry disable && astro dev",
|
||||||
|
"start": "astro telemetry disable && astro dev",
|
||||||
|
"build": "astro telemetry disable && astro build",
|
||||||
|
"preview": "astro preview",
|
||||||
"publish:patch": "npm version patch && npm publish --access public",
|
"publish:patch": "npm version patch && npm publish --access public",
|
||||||
"publish:minor": "npm version minor && npm publish --access public"
|
"publish:minor": "npm version minor && npm publish --access public",
|
||||||
|
"prepare": "husky"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"devalue": "^5.1.1"
|
"devalue": "^5.1.1",
|
||||||
|
"husky": "^9.1.7"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"astro": "^5"
|
"astro": "^5"
|
||||||
|
|
|
||||||
1645
pnpm-lock.yaml
1645
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue