How can I compile CoffeeScript from .NET?

后端 未结 18 1949
后悔当初
后悔当初 2020-12-23 01:54

I want to write an HttpHandler that compiles CoffeeScript code on-the-fly and sends the resulting JavaScript code. I have tried MS [JScript][1] and IronJS without success. I

18条回答
  •  再見小時候
    2020-12-23 02:50

    CoffeeScript-dotnet

    Command line tool for compiling CoffeeScript. Includes a file system watcher to automatically recompile CoffeeScripts when they change. Roughly equivalent to the coffee-script node package for linux / mac.

    CoffeeSharp

    Includes a command line tool similar to CoffeeScript-dotnet as well as a http handler that compiles CoffeeScripts when requested from an asp.net site.

    SassAndCoffeeScript

    Library for Asp.net mvc that compiles sass and coffeescript files on request. Also supports minification and combination.

    Manually Compile With IronJS

    IronJS is a .NET javascript interpreter that can successfully load the CoffeeScript compiler and compile CoffeeScript.

    Manually Compile With Node.js

    Get the node binaries and add the bin directory to your path. Write a node.js script to load the CoffeeScript compiler and your CoffeeScript files and save the compiled javascript.

提交回复
热议问题