Saltarelle / SaltarelleCompiler

C# to JavaScript compiler – Now http://bridge.net
http://saltarelle-compiler.com
Other
297 stars 74 forks source link

Add support for System.Reactive #352

Open amerkoleci opened 10 years ago

amerkoleci commented 10 years ago

I know there is Reactive.JS (Rx.JS) any possibility to integrate it? Or some simple startup guide or help?

Thanks

erik-kallen commented 10 years ago

It would absolutely be possible to integrate it, but I don't know when/if I will have the time. Good news is that import libraries are nothing but assemblies with special attributes (http://www.saltarelle-compiler.com/documentation/attributes) so you don't need to wait for it officially shipped.

ProdigySim commented 9 years ago

Building support for a third party library in Saltarelle is pretty simple. You can see some good examples of building a third party library in nipper72's repositories (the simplest probably being PagerJs), or in erik-kallen's other repos like Saltarelle.Linq.

You can also take the shortcut route and just put your "import" classes in your existing codebase. n9 has a repo full of simple external library class declarations.

Also, I noticed this Reactive ScriptSharp project (not sure if it's the same Reactive?) that might be able to jump start support for the library. Saltarelle has very good compatibility with ScriptSharp attributes.