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
  • Select an option

  • Save jeffmay/5864679 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown
Author

jeffmay commented Jun 26, 2013

I still get the error:

[root] $ project web
[info] Set current project to web (in build file:/Users/jeffmay/code/righttrack/)
[web] $ show coffee
[info] ArrayBuffer()
[success] Total time: 0 s, completed Jun 26, 2013 12:03:01 AM

@jeffmay
Copy link
Copy Markdown
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