Skip to content

Instantly share code, notes, and snippets.

@jeffmay
Forked from softprops/WebModule.scala.diff
Last active December 18, 2015 23:49
Show Gist options
  • Save jeffmay/5864679 to your computer and use it in GitHub Desktop.
Save jeffmay/5864679 to your computer and use it in GitHub Desktop.
I updated the settings.
import coffeescript.Plugin.{CoffeeKeys, coffeeSettings}
import sbt._
import sbt.Keys._
object WebModule extends BaseModule {
val moduleName = "web"
val moduleVersion = "0.1"
val location = "web"
def settings = coffeeSettings ++ Seq(
// Add your own project settings here
testOptions in Test += Tests.Argument("junitxml", "console")
)
val libraries = Seq(
Libraries.WebJars.angularJs,
Libraries.WebJars.requireJs,
Libraries.WebJars.play,
Libraries.specs2 % "test",
Libraries.mockito % "test"
)
lazy val project = baseProject
override def baseProject = play
.Project(moduleName, moduleVersion, libraries, file(location), moduleSettings)
.settings(
// where coffee task is allowed to manage resources
sourceManaged in (Compile, CoffeeKeys.coffee) <<= (baseDirectory in Compile)(_ / "public"),
// where coffee task reads source files
sourceDirectory in (Compile, CoffeeKeys.coffee) <<= (sourceDirectory in Compile)(_ / "assets" / "javascripts"),
// where coffee task compiles javascript
resourceManaged in (Compile, CoffeeKeys.coffee) <<= (sourceManaged in (Compile, CoffeeKeys.coffee))(_ / "js")
)
}
@jeffmay
Copy link
Author

jeffmay commented Jun 26, 2013

Okay, fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment