From f3b8761ecf8c3e2883efe507cad8f474ecef583b Mon Sep 17 00:00:00 2001 From: Heorhii Shvab Date: Tue, 21 Jan 2025 12:27:47 +0200 Subject: [PATCH] Added git hooks, for now it is unit tests and linter on push. --- .husky/pre-push | 1 + package-lock.json | 28 ++++++++++++++++++++++++++++ package.json | 8 ++++++++ 3 files changed, 37 insertions(+) create mode 100644 .husky/pre-push create mode 100644 package-lock.json create mode 100644 package.json diff --git a/.husky/pre-push b/.husky/pre-push new file mode 100644 index 0000000..2bb3f96 --- /dev/null +++ b/.husky/pre-push @@ -0,0 +1 @@ +cd core && npm run test && npm run lint diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..960bdaf --- /dev/null +++ b/package-lock.json @@ -0,0 +1,28 @@ +{ + "name": "statify", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "devDependencies": { + "husky": "^9.1.7" + } + }, + "node_modules/husky": { + "version": "9.1.7", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.7.tgz", + "integrity": "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==", + "dev": true, + "license": "MIT", + "bin": { + "husky": "bin.js" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/typicode" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..6b87ff3 --- /dev/null +++ b/package.json @@ -0,0 +1,8 @@ +{ + "devDependencies": { + "husky": "^9.1.7" + }, + "scripts": { + "prepare": "husky" + } +}