PyCharm, Django, and Coffeescript
I've been trying the new 2.0 EAP with regards to using it with Django, and using coffeescript to generate my javascript. One thing I'm trying to get my head around is possible methods of automating the compile of my coffeescript into a static file directory for my django application. I thought that the best way to do this would be to have a specific directory under my Django app directory for my coffeescript, and another for the static files, and set up a run/debug configuration to compile all of the scripts before deployment. However it doesn't seem that with NodeJS you can use a wildcard in the application parameters (even though the resulting command works fine in a shell).
I'm pretty new to PyCharm, django, and coffeescript, so maybe I'm missing something. Anyone have any pointers?
Please sign in to leave a comment.
Hello Kevin,
It may be more convenient for you to set up an external tool (Settings |
External Tools) for the compiler, rather than a run configuration. One of
the advantages of using an external tool is that you can assign a keyboard
shortcut to it.
Hopefully we'll have a built-in solution for compiling CoffeeScript to JS
eventually (maybe even in time for 2.0 final).
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"