typescript --out compilation step

Hi

I have setup a File watcher to compile typescript and everything works fine.

I want to add a final step that invokes the typescript compiler on the main app with --out flag and concatenates everything into one js file.

Is this possible in webstorm?

James

2 comments
Comment actions Permalink

Hello!

Sure - just modify the arguments field in your file watcher settings accordingly (like --sourcemap $FileName$ --out $FileNameWithoutExtension$.js). See the attached screenshot



Attachment(s):
watcher.png
0
Comment actions Permalink

make sure not to forget to check the box for "track root files only" like I did, or the compiler will be running like mad ;)

0

Please sign in to leave a comment.