A CoffeeScript plugin for SBT
Scala JavaScript ApacheConf CoffeeScript
#16 Compare This branch is 37 commits ahead, 13 commits behind richdougherty:master.
Latest commit 77cc504 Feb 26, 2015 @pvlugter pvlugter Merge pull request #11 from antonini/master
Fixed property name that was wrong (typo).
Permalink
Failed to load latest commit information.
project
sbt-coffeescript-plugin-tester
src
.gitignore
.travis.yml
CONTRIBUTING.md
LICENSE
NOTICE Simplified Mar 10, 2014
README.md
build.sbt

README.md

sbt-coffeescript

Build Status

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" % "sbt-coffeescript" % "1.0.0")

Your project's build file also needs to enable sbt-web plugins. For example with build.sbt:

lazy val root = (project in file(".")).enablePlugins(SbtWeb)

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

Supported settings:

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

    CoffeeScriptKeys.sourceMap := 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.

© Typesafe Inc., 2013, 2014