Help with compiling TypeScript using nashorn
Dan Bar-Yaakov
danbaryak at gmail.com
Tue Feb 10 13:25:13 UTC 2015
Hi
Marcus, thanks for the reply in LinkedIn. following that, here is a brief
description of what I'm trying to do:
I work for Luminis Technologies. We build open source components for
building modular web applications using OSGi (The Amdatu
<http://amdatu.org/> Project). We would like to add some components that
automatically compile frontend resources written in multiple languages
(typescript, coffeescript, lescss, sass etc.). As the first stage we would
like to get typescript working, as it's common in many projects that use
our stack. Since we want to do it automatically on each change, speed is
critical. That's why I was very glad to learn about your latest nashorn
performance enhancements.
To get started I've tried compiling the microsoft TypeScript distribution
(using Jake) and running it using jjs as I've seen in some examples online
(j*js tsc.js --optimistic-types=true -- hello.ts* for example) and got the
following error:
tsc.js:20361 TypeError: Cannot read property "args" from undefined
got the same thing when trying in Java code.
If it is indeed already possible to compile TS using nashorn, I'd really
appreciate any help you can provide on how to do so.
Many thanks,
Dan
More information about the nashorn-dev
mailing list