I think the best you can do is install nodeJS and gulp. And with gulp you can automate some processes.
You can make it do something anytime you save a file. So you put a "watch" on your script and tell gulp to run it maybe via batch command. But this requires you to keep the node command prompt running.
So i'd say that this is possible, but a bit tricky to organize.