Typescript

20 views
Skip to first unread message

Clement Escoffier

unread,
Dec 14, 2015, 2:37:27 AM12/14/15
to wisdom-discuss
Hi guys,

Typescript compilation is now supported by the main wisdom maven plugin. This makes the external plugin we did “deprecated”. Next step is the Babel support (EcmaScript 6).

Enjoy,

Clement

jonathan

unread,
Dec 14, 2015, 2:40:28 AM12/14/15
to wisdom-discuss
Oh nice :) 

Thanks for the update Clement. 

Cheers, 

Jonathan

---
Jonathan


--
You received this message because you are subscribed to the Google Groups "wisdom-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wisdom-discus...@googlegroups.com.
Visit this group at https://groups.google.com/group/wisdom-discuss.
To view this discussion on the web visit https://groups.google.com/d/msgid/wisdom-discuss/75FCBBEF-85C3-4866-AC40-6C8D89B19C58%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

kevin.s...@dooapp.com

unread,
Dec 18, 2015, 4:57:31 AM12/18/15
to wisdom-discuss
Hi Clement!

How can I skip the typescript compilation? I have this error with a basic example of angularjs 2 (see attachment)

Thank you in advance

Kevin
typescript.png

Clement Escoffier

unread,
Dec 18, 2015, 5:06:01 AM12/18/15
to wisdom-...@googlegroups.com
Hi,

Of course you can ;-)

<typescript>
    <enabled>false</enabled>
</typescript>

But, you have a .ts file that does not compile ?
According to the error message, you should just add the <module>commonsjs or amd</module> in the <typescript> element.

Clement

--
You received this message because you are subscribed to the Google Groups "wisdom-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wisdom-discus...@googlegroups.com.
Visit this group at https://groups.google.com/group/wisdom-discuss.

For more options, visit https://groups.google.com/d/optout.
<typescript.png>

kevin.s...@dooapp.com

unread,
Dec 18, 2015, 7:30:16 AM12/18/15
to wisdom-discuss
Thank you for your answer. I successfully skip it.

Where should I add the commonjs module given this example https://angular.io/resources/live-examples/quickstart/ts/plnkr.html ?

Thank you in advance for your help!

Kévin

clement escoffier

unread,
Dec 18, 2015, 9:45:37 AM12/18/15
to wisdom-...@googlegroups.com
In your case, you have a transpiler at runtime, so no need for a compilation at package time. However, notice that using transpiler are not recommended in production.

About the module format to use, it's just <module>commonjs</module> in the <typescript> element.

Clement
Reply all
Reply to author
Forward
0 new messages