Skip to content

sbt/sbt-coffeescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5463fcb · Jan 29, 2024
Jan 12, 2024
Jan 12, 2024
Jan 12, 2024
Jan 29, 2024
Jan 12, 2024
Mar 10, 2014
Mar 10, 2014
Mar 10, 2014
Jan 12, 2024
Jan 28, 2024

Repository files navigation

sbt-coffeescript

Build Status

An SBT plugin to compile CoffeeScript sources to JavaScript.

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

addSbtPlugin("com.github.sbt" % "sbt-coffeescript" % "2.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.

About

A CoffeeScript plugin for SBT

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 69.0%
  • JavaScript 29.4%
  • CoffeeScript 1.6%