Execute script before commit?

I have a script that bundles (AMD) and minifies (uglify) my application assets. Since I have no CI this needs to run everytime before I do a Git commit in IntelliJ.

So, how can I execute a script before the commit?

PS: I tried creating a 'Compiler' for this and record a macro - but the script runs in the background and the dialog pops up too early.

Regards
Stephan

Please sign in to leave a comment.