Skip to content

F# to JavaScript compiler with JQuery etc. mappings through a TypeScript type provider

Notifications You must be signed in to change notification settings

cgravill/FunScript

 
 

Repository files navigation

FunScript

FunScript consists of a standalone F# to JavaScript compiler library and a Type Provider to TypeScript. FunScript lets you connect to client and server APIs with Intellisense and types automagically using F# 3's Type Provider mechanism.

Compiler Library

The compiler library generates JavaScript code that can be run in-browser or server-side inside Node.js. Simply mark F# modules to be compiled with the ReflectedDefinition attribute. The compiler library has minimal dependencies and can be run inside either Visual Studio or MonoDevelop.

TypeScript Type Provider

The TypeScript Type Provider leverages the excellent work of the TypeScript community to annotate popular JavaScript libraries like jQuery with type information by parsing TypeScript definition files.

Presentations

Tomas Petricek demonstrated FunScript in his presentation at the TechMesh conference in early December 2012: [How F# Learned to Stop Worrying and Love the Data](http://techmeshconf.com/techmesh-london-2012/presentation/How%20F# Learned to Stop Worrying and Love the Data). Try the WorldBank sample and Movie Database sample in your browser.

Contributing

Please help test the compiler libary and type provider by building samples and reporting issues.

About

F# to JavaScript compiler with JQuery etc. mappings through a TypeScript type provider

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published