bahmutov / pre-git

Automatically install pre-commit / pre-push hooks in your git repo
168 stars 22 forks source link

doesnt work #67

Closed NickStefan closed 8 years ago

NickStefan commented 8 years ago
$ .git/hooks/pre-push -f
pre-push Detected files in diff: 1

pre-push Nothing the hook needs to do. Bailing out

package.json

  "engines": {
    "node": "0.12.7"
  },
  "scripts": {
    "lint-es6": "eslint --ext .es6 packages",
    "bc-spec": "node wocha -f packages/bc-new-index/wocha.webpack.js",
    "lint": "echo lint-placeholder",
    "validate": "npm ls",
    "commit": "commit-wizard"
  },
  "config": {
    "pre-git": {
        "post-commit": "git status",
        "pre-push": "npm run bc-spec",
        "post-merge": "npm install"
    }
  },
  "dependencies": {
    "JSONStream": "1.0.6",
bahmutov commented 8 years ago

Seems the -f option does not run, will need to change

NickStefan commented 8 years ago

okay. sorry. seriously embarrassing. we have an enormous package.json, and I had no idea that this project automatically added its own config object (at the bottom of our package.json). was trying to define all by myself...