瀏覽代碼

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