Open tlvenn opened 11 years ago
Anyone around ?
Hi,
Would you please send me your whole project source code? So I can try to reproduce your problem myself.
Thanks!
Where can i send it to ? I was hoping to attach it in this comment but looks like github doesnt allow it...
By the way, I assume that resources are eargerly compiled like javascript ones, so the expected behavior is that once I create a TS script and recompile (refresh browser), the compiled js should appear in the target dir like any other js compiled files.
Thanks in advance !
Hi!
Excuse me for a late reply. I was on my little vacation.
Would you please send the source code to my e-mail, ykuoka@gmail.com Or uploading it to your own public repo on GitHub is OK, if your code can be publicized.
And yes, as you assume, the plugin should compile your .ts files in "assets/" to produce .js files in "target/", which can be served with the Assets controller then.
Hi,
I have just checked your code bundled in your e-mail :) Could you try putting .ts files in "app/assets/javascripts" instead of "app/assets/javascript"?
The path may be configurable via the tsDirectory
setting key (Unfortunately, not tested yet.), but by default, it is "app/assets/javascripts".
(Excuse me but I have just realized that I forgot to mention the path where .ts files must be placed!)
Hi and thanks for this plugin !
My env:
Play 2.1.0 Java 7 (jdk1.7.0_11x64) Windows 7 x64 Typescript 0.8.2.0
I follow the instruction by adding the: addSbtPlugin("com.github.mumoshu" % "play2-typescript" % "0.2-RC4") in my plugins.sbt file. I created a main.ts file in app/assets/javascript folder and yet I dont see any file generated under resource_managed
There is no error as far as i can see, it's like the plugin is not there/activated
How I can help you troubleshot the issue ?
Thanks in advance !