kwseok / sbt-babeljs   1.0.6

MIT License GitHub

sbt-web source task plugin for the bablejs.io transpiler

Scala versions: 2.10
sbt plugins: 0.13

sbt-babeljs Build Status

Provides an sbt-web source task for the babeljs.io transpiler. derived from onelson/sbt-babeljs

Installation

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"
  }
}