observing / pre-commit

Automatically installs a git pre-commit script in your git repository which runs your `npm test` on pre-commit
MIT License
1.88k stars 153 forks source link

doesn't work with vue-cli v3.x #138

Open ralyodio opened 5 years ago

ralyodio commented 5 years ago
  "scripts": {
    "start": "npm run serve",
    "serve": "vue-cli-service serve",
    "lint": "vue-cli-service lint",
    "test:unit": "vue-cli-service test:unit",
    "test:e2e": "vue-cli-service test:e2e",
    "precommit-msg": "echo 'Pre-commit checks...' && exit 0",
    "pre-commit": ["precommit-msg", "lint"]
  },
AkatQuas commented 5 years ago

maybe you shouldn't put "pre-commit" in the "scripts" ...