Created
September 30, 2011 18:01
-
-
Save sroebuck/1254516 to your computer and use it in GitHub Desktop.
Combining xsbt-webapp-plugin with coffeescripted-sbt plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For the xsbt-web plugin... | |
seq(com.github.siasia.WebPlugin.webSettings :_*) | |
// Add an additional webappResources directory in the target directory... | |
webappResources <<= (webappResources, target in Compile)((wr, t) => wr +++ t / "webapp_managed" ) | |
// For the CoffeeScripted Sbt plugin... | |
seq(coffeescript.CoffeeScript.coffeeSettings: _*) | |
// Use the additional webappResources directory as the targetDirectory for coffee... | |
(targetDirectory in Coffee) <<= (target in Compile)(t => t / "webapp_managed" / "js") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This seems to work as a way of using the CoffeeScipted-sbt plugin to generate js files and then have them placed in the right location in the webapp by the xsbt-web-plugin.
Note: This was using xsbt-web-plugin
0.1.2
. The0.2.*
series of xsbt-web-plugin changes the syntax of the above.