aboutsummaryrefslogtreecommitdiffstats
path: root/.husky/pre-commit
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-13 00:45:01 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-08-13 00:45:01 +0530
commit2d27d5e66649d4f5baf127a53ee5ae524eae3a59 (patch)
treec592ea219ac8cd987fc367f57b54034c450ab2ab /.husky/pre-commit
parentFerdi v5.6.0 (diff)
parent5.6.1-nightly.24 [skip ci] (diff)
downloadferdium-app-2d27d5e66649d4f5baf127a53ee5ae524eae3a59.tar.gz
ferdium-app-2d27d5e66649d4f5baf127a53ee5ae524eae3a59.tar.zst
ferdium-app-2d27d5e66649d4f5baf127a53ee5ae524eae3a59.zip
chore: merge from nightly branch into release branch in prep for next beta
Diffstat (limited to '.husky/pre-commit')
-rwxr-xr-x.husky/pre-commit9
1 files changed, 7 insertions, 2 deletions
diff --git a/.husky/pre-commit b/.husky/pre-commit
index f1e7b9824..305fe1ebf 100755
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -1,4 +1,9 @@
1#!/bin/sh 1#!/bin/sh
2. "$(dirname "$0")/_/husky.sh"
3 2
4npm run lint && npm run reformat-files && npm run manage-translations && npm run apply-branding 3FILE_NAME="$(dirname "$0")/_/husky.sh"
4
5# Conditionally invoke so as to avoid running npm commands if this is a clean checkout (ie before installing npm modules)
6if [ -f $FILE_NAME ]; then
7 . $FILE_NAME
8 npm run prepare-code
9fi