guardian / sbt-grunt-plugin

For kicking off grunt tasks from inside sbt
38 stars 3 forks source link
production

sbt-grunt-plugin

An sbt plugin to wrap Grunt tasks and expose them as sbt tasks.

This plugin provides a gruntTask function will return an sbt task wrapping the Grunt task with the given name. You can use it to add steps to your compile or test setup in your build.sbt file, e.g.:

 (compile in Compile) <<= (compile in Compile) dependsOn (gruntTask("requirejs"))

This plugin also exposes a grunt command which can be called from the sbt console:

 > grunt jshint  # run the "jshint" grunt task

 Running "jshint" (jshint) task
 >> 150 files lint free.

 Done, without errors.