Add pre-commit hook and setup script #129
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/pre_commit_linting"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Runs the appropriate linter on staged files before committing.
Can be easily installed in the local repo by running
npm run setup
.I find this name a bit confusing as it sounds it has something todo with the setup to install/run the code. We have
bootstrap
,reset
,install-all
- so I'd by a bit more specific here as so far this setup task is only installing the git hooks.This setup is meant to include anything that is necessary, other than
npm install
, to set up the repo itself. In fact, I'd probably make this apostinstall
script, so one doesn't even have to run it manually.Moved the entire thing to
postinstall
now.There's a weird issue with npm, in that when running a
postinstall
script it re-validates the entire npm dependency stack. I don't know why that is.@bumi Can we merge this now?
Isn't
postinstall
also executed when this is installed as a dependency? e.g. in kredits-web?if it only runs when running
npm install
I am ok with merging it. though as much as I need this am not a fan of postinstall scripts doing such modifications.when we tried to run the app installations in a post-install script it was also only causing problems (don't remember the details though).
Renamed it to your suggestion.