PyCharm coffee filewatcher

79 Views Asked by At

I got this directory structure (django project):

-myproject
  +mysite
  -myapp
    -static
      -myapp
        -script
          -coffee
            +views
            +controllers
            +models
            app.coffee
          -js
            +views
            +controllers
            +models
  manage.py

How can i set coffeescript watcher to save *.js files in the same subdirectory of js directory. For example:

/coffee/app.coffee -> /js/app.js

/coffee/views/myview.coffee -> /js/views/myview.js

1

There are 1 best solutions below

0
On BEST ANSWER

So i got the desired result by this macros:

$FileParentDir(coffee)$/js/$FileDirPathFromParent(coffee)$