I want Django Compressor to work with the new Microsoft TypeScript language.
I downloaded the tsc compiler and it works great.
When trying to use it with a Django compressor as follows:
COMPRESS_PRECOMPILERS = ( ('text/less', 'lessc {infile} {outfile}'), ('text/typescript', 'tsc {infile} {outfile}'), )
and
{% compress js %} <script type="text/typescript" charset="utf-8"> var x=3; function greeter(person: string) { return "Hello, " + person; } var user = "Jane User"; </script> {% endcompress %}
the output is an empty JS script tag
<script type="text/javascript"></script>
I think this is because there is no way in tsc to write code to a predefined file.
Does anyone have any ideas?
(As said, tsc works, as well as a django compressor for LESS ..)
source share