ソースを参照

update pre-commit hook

Artur Paikin 9 年 前
コミット
f5d5d762ad
2 ファイル変更4 行追加7 行削除
  1. 0 7
      pre-commit.hook
  2. 4 0
      pre-commit.sample

+ 0 - 7
pre-commit.hook

@@ -1,7 +0,0 @@
-#!/usr/bin/env bash
-PATH=$PATH:/usr/local/bin:/usr/local/sbin
-
-npm run test || echo "Tests (or tasks) failed, aborting the commit" && exit 1
-
-echo "All tests passed, committing your changes"
-exit 0

+ 4 - 0
pre-commit.sample

@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+PATH=$PATH:/usr/local/bin:/usr/local/sbin
+
+npm run test