Browse code

fixup: Port 'husky' configuration to v6

Payson Wallach authored on 12/06/2021 22:40:12
Showing 4 changed files

1 1
new file mode 100644
... ...
@@ -0,0 +1 @@
1
+_
0 2
new file mode 100755
... ...
@@ -0,0 +1,4 @@
1
+#!/bin/sh
2
+. "$(dirname "$0")/_/husky.sh"
3
+
4
+npx --no-install commitlint --edit "$1"
0 5
new file mode 100755
... ...
@@ -0,0 +1,4 @@
1
+#!/bin/sh
2
+. "$(dirname "$0")/_/husky.sh"
3
+
4
+npm run format
... ...
@@ -5,8 +5,9 @@
5 5
   "description": "A semantic application launcher and desktop search application for GNOME.",
6 6
   "scripts": {
7 7
     "format": "find . -name '*.vala' -exec uncrustify -c uncrustify.cfg --replace {} \\;",
8
-    "prerelease": "node scripts/build.js",
9
-    "release": "standard-version"
8
+    "prerelease": "scrivano",
9
+    "release": "standard-version",
10
+    "prepare": "husky install"
10 11
   },
11 12
   "repository": {
12 13
     "type": "git",
... ...
@@ -37,10 +38,5 @@
37 38
     "scripts": {
38 39
       "precommit": "npm run prerelease"
39 40
     }
40
-  },
41
-  "husky": {
42
-    "hooks": {
43
-      "pre-commit": "npm run format"
44
-    }
45 41
   }
46 42
 }