瀏覽代碼

Add husky to prevent commit without green tests

pull/342/head
Guillaume Vincent 7 年之前
父節點
當前提交
da019fb5d7
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      package.json

+ 4
- 1
package.json 查看文件

@@ -18,6 +18,8 @@
},
"repository": "lesspass/cli",
"scripts": {
"precommit": "npm test",
"prepush": "npm test",
"test": "ava"
},
"dependencies": {
@@ -29,6 +31,7 @@
},
"devDependencies": {
"ava": "^0.18.2",
"execa": "^0.6.0"
"execa": "^0.6.0",
"husky": "^0.13.2"
}
}

Loading…
取消
儲存