karasiq / sbt-gulp   1.0.2

GitHub

SBT plugin for auto compilation of Gulp.js assets

Scala versions: 2.12
sbt plugins: 1.x

sbt-gulp

SBT plugin for auto compilation of Gulp.js assets

Usage

In project/plugins.sbt:

addSbtPlugin("com.github.karasiq" % "sbt-gulp" % "1.0.2")

In build.sbt:

enablePlugins(GulpPlugin)

Settings

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"

Using with Scala.js

Add dependency in build.sbt:

gulpCompile in Compile := (gulpCompile in Compile)
  .dependsOn(fullOptJS in Compile in yourScalaJsProject)
  .value