SBT plugin for auto compilation of Gulp.js assets
In project/plugins.sbt
:
addSbtPlugin("com.github.karasiq" % "sbt-gulp" % "1.0.2")
In build.sbt
:
enablePlugins(GulpPlugin)
Default settings, can be overriden
gulpAssets in Compile := file("webapp")
gulpTask in Compile := "compile"
gulpOutput in Compile := gulpAssets.value / "out"
gulpDest in Compile := resourceManaged.value / "webapp"
Add dependency in build.sbt
:
gulpCompile in Compile := (gulpCompile in Compile)
.dependsOn(fullOptJS in Compile in yourScalaJsProject)
.value