Typescript seems to work fine - but how do I compile ?

Just tried out Typescript. Happy to see autocompletion and navigation work nicely, but how do I compile to js? Do I setup that myself, or should there be a function somewhere (I'm new to Webstorm)?

Edit: Ok, I run tsc mytypescript/app.ts from the command prompt. That's the way?

Thanks

3 comments
Comment actions Permalink

Yes, we do not support built-in compilation yet.

Regards,
Konstantin

0
Comment actions Permalink

Ok, np, another thing : I tried to debug and set a breakpoint within my ts (compiled with tsc --sourcemap). Did not work. But when I added the breakpoint within the compiled js it worked. And the sourcemap pointed me to the correct place in the ts. A little odd. Just an EAP-thing?

Thanks

0
Comment actions Permalink

If code executed on page load and sourcemap backed breakpoint is not working — it is known bug. If code executed on event — please attach test typescript.

0

Please sign in to leave a comment.