More Build System Comfort

In my JavaScript project, I am using the build tool grunt. The current build workflow is as follows:

  1. Save changes in WebStorm
  2. Run grunt.cmd in the project directory via command line (I am on Windows)
  3. Refresh Web Browser

Basically I want to have a Run Configuration where I can at least run a command line script (i.e. batch file). Then the build workflow could go down to save changes and hit the run button.

So, my questions are:

  1. How can I run a script from WebStorm via a button/shortcut?
  2. Can I also run a script when a file is saved?
    This would be interesting for running unit tests only (grunt is task-based).


Please sign in to leave a comment.