From 622a17e0c4e437ea7eb4412d1902d0f882faee36 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sun, 22 Feb 2026 18:42:45 +0100 Subject: [PATCH] chore: add husky; add post-commit hook & auto import to gh & sh --- .gitignore | 10 ++++++---- .husky/post-commit | 3 +++ package.json | 18 ++++++++++++++++++ pnpm-lock.yaml | 24 ++++++++++++++++++++++++ 4 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 .husky/post-commit create mode 100644 package.json create mode 100644 pnpm-lock.yaml diff --git a/.gitignore b/.gitignore index 81b68a9..dbc4a2b 100644 --- a/.gitignore +++ b/.gitignore @@ -5,9 +5,11 @@ __pycache__ *.spec -build/ -dist/ -outputs/ -inputs/ +build +dist +outputs +inputs env.sh + +node_modules diff --git a/.husky/post-commit b/.husky/post-commit new file mode 100644 index 0000000..013cec7 --- /dev/null +++ b/.husky/post-commit @@ -0,0 +1,3 @@ +echo "post-commit..." +git push gh --mirror +git push sh --mirror diff --git a/package.json b/package.json new file mode 100644 index 0000000..5ec7172 --- /dev/null +++ b/package.json @@ -0,0 +1,18 @@ +{ + "name": "simple-tts", + "private": "true", + "version": "1.0.0", + "description": "Machine learning text-to-speech for your terminal. Hear text read aloud by realistic voices, from a file or your clipboard.", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "prepare": "husky" + }, + "keywords": [], + "author": "", + "license": "ISC", + "packageManager": "pnpm@10.15.0", + "devDependencies": { + "husky": "^9.1.7" + } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..a177305 --- /dev/null +++ b/pnpm-lock.yaml @@ -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: {}