filesystemwatcher - PHPStorm IDE TypeScript File Watcher -


by default in phpstorm 6 compiled *.js created in same folder *.ts files.

what need compiled *.js , *.d.js in different subdirectory same of *.ts files.

in resume:

  • i have root folder "project"

  • i have subfolder "ts" *.ts files resides.

  • i have subfolder "scripts" want compiled *.js , *.d.js be.

how can accomplish phpstorm typescript file watcher?

i've tried several macros in output field @ file watcher dialog like:

$fileparentdir$/scripts/$filenamewithoutextension$.js:$fileparentdir$/scripts/$filenamewithoutextension$.js.map 

but none of them worked.

the 'output paths' field in file watcher configuration tells ide created files (used auto-synchronization) , has no meaning program being run. typescript compiler has --out option tells compiler put generated files

please, try following:

arguments: --sourcemap $filename$ --out $projectfiledir$/scripts/$filenamewithoutextension$.js

working directory: $filedir$

output paths: $projectfiledir$/bin/$filenamewithoutextension$.js:$projectfiledir$/bin/$filenamewithoutextension$.js.map

hope helps


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -