Advertisement
Guest User

Untitled

a guest
Apr 18th, 2015
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1.  
  2. #r "../packages/FunScript.1.1.88/lib/net40/FunScript.dll"
  3. #r "../packages/FunScript.1.1.88/lib/net40/FunScript.Interop.dll"
  4. #load "MyModuleFile.fs"
  5.  
  6. open FunScript
  7.  
  8. //[<FunScript.JS>]
  9. //let main() =
  10. // let SomeFunc = MyNamespace.MyModule.SomeFunc
  11. // ()
  12.  
  13. let res = Compiler.compile(<@ MyNamespace.MyModule.SomeFunc @>)
  14.  
  15. let js = res.ToString()
  16.  
  17. let file = new System.IO.FileInfo("Output.js");
  18.  
  19. let ft = file.CreateText()
  20. ft.Write(js)
  21. ft.Dispose()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement