Provides an sbt-web
source task for the babeljs.io transpiler. derived from onelson/sbt-babeljs
To use this plugin use the addSbtPlugin command within your project's plugins.sbt
file:
addSbtPlugin("com.github.stonexx.sbt" % "sbt-babeljs" % "1.0.6")
Your project's build file also needs to enable sbt-web plugins. For example with build.sbt
:
lazy val root = (project in file(".")).enablePlugins(SbtWeb)
JsEngineKeys.engineType := JsEngineKeys.EngineType.Node
Install babel-core, either globally with npm:
npm install babel-core -g
Or locally in your project with a package.json
file:
{
"devDependencies": {
"babel-core": "^6.2.4"
}
}