File watcher compile all .ts files in directory into $DirName$.js

What I am attempting to do is reduce the number of .js files I have by compiling all the typescript files in each particular directory into 1 file.

So if I have
main
  static
      js
        common
            setup.ts
            utilities.ts
        site
            site_state.ts
            site.ts

My ideal file watcher would output
/main/static/js/common/common.js
main/static/js/site/site.js

The problem I am running into is that I cannot get command line substitutions to work with the file watchers for pycharm and tsc.cmd does not have an input directory argument..

any ideas?

Thanks for reading!
0

Please sign in to leave a comment.