Skip to content

richdougherty/sbt-coffeescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sbt-coffeescript-plugin

An SBT plugin to compile CoffeeScript sources to JavaScript.

To use this plugin use the addSbtPlugin command within your project's plugins.sbt file:

addSbtPlugin("com.typesafe" % "sbt-coffeescript-plugin" % "0.1-SNAPSHOT")

And add the following settings to your build.sbt file.

webSettings

jsEngineSettings

coffeeScriptSettings

Once configured, any *.coffee or *.litcoffee files placed in src/main/assets will be compiled to JavaScript code in target/public.

Supported settings:

  • sourceMaps When set, generates sourceMap files. Defaults to true.

    CoffeeScriptKeys.sourceMaps := true

  • bare When set, generates JavaScript without the top-level function safety wrapper. Defaults to false.

    CoffeeScriptKeys.bare := false

The plugin is built on top of JavaScript Engine which supports different JavaScript runtimes. At present, the CoffeeScript plugin only supports Node.

© Typesafe Inc., 2013-2014

About

A CoffeeScript plugin for SBT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published