How to create a custom File Watcher with my own compiler?

I want to create a File Watcher for PhpStorm 7.1 that will compiled a simple textual data into some JavaScript code using my own compiler.
While the File Watcher documentation has a lot of information, it doesn't seem to have any tutorials or information about creating my own File Watcher.

I have a very simple data file which I want to automatically be compiled/transpiled into JavaScript whenever I make a change in it.

In what way can I accomplish this?

Please sign in to leave a comment.