Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to add SVN hooks to NPM similar to git hooks?

I am looking to add an npm script that will run my linting and tests before svn commit happens.

If the linting or tests fail I'd like the commit to stop, just the same as it would with a git commit hook.

Does anyone know of a package? I have been searching with no real luck.

like image 730
Justin Avatar asked Nov 08 '22 18:11

Justin


1 Answers

This would be an SVN pre-commit hook. The downside (IMO) in comparison to git is the hook code will run on the SVN server, whereas with git it would run on the local environment.

like image 145
quickshiftin Avatar answered Nov 14 '22 22:11

quickshiftin