chore: init node workspace, add husky, add post-commit hook for auto mirror

This commit is contained in:
Ayo Ayco 2026-02-22 15:11:01 +01:00
parent dbe3664bf3
commit f2bc445581
4 changed files with 50 additions and 1 deletions

4
.gitignore vendored
View file

@ -9,4 +9,6 @@ vendor
.*swp
.jekyll-cache
*.DS_Store
*.DS_Store
node_modules

3
.husky/post-commit Executable file
View file

@ -0,0 +1,3 @@
echo "post-commit..."
git push gh --mirror
git push sh --mirror

20
package.json Normal file
View file

@ -0,0 +1,20 @@
{
"name": "ayos-blog",
"private": "true",
"version": "1.0.0",
"description": "Ayo's Blog",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"prepare": "husky"
},
"repository": {
"type": "git",
"url": "https://git.ayo.run/ayo/blog"
},
"author": "Ayo Ayco",
"license": "MIT",
"devDependencies": {
"husky": "^9.1.7"
}
}

24
pnpm-lock.yaml Normal file
View file

@ -0,0 +1,24 @@
lockfileVersion: '9.0'
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
importers:
.:
devDependencies:
husky:
specifier: ^9.1.7
version: 9.1.7
packages:
husky@9.1.7:
resolution: {integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==}
engines: {node: '>=18'}
hasBin: true
snapshots:
husky@9.1.7: {}