Skip to content

shiftfocus/sbt-reactjs

 
 

Repository files navigation

ReactJS Source Compiler

This plugin hooks your JSX files in to the Asset compilation phase. It uses the autoPlugin feature with 0.13.5 to make the setup dead-simple.

To use this plugin use the addSbtPlugin command within your project's plugins.sbt (or as a global setting) i.e.:

addSbtPlugin("com.github.shiftfocus" % "sbt-reactjs" % "0.7.1")

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)

Other notes

You may clone the repo and sbt publishLocal to make this available in your local ivy2 cache for other Play/sbt projects.

Options

  • harmony: Turns on JS transformations such as ES6 Classes etc.
  • stripTypes: Strips out type annotations.
  • sourceMapInline: Embed inline sourcemap in transformed source

The artifact is hosted as part of the community plugins via bintray service.

License

sbt-reactjs is licensed under the Apache License, Version 2.0

About

React SBT Plugin using npm

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 64.4%
  • JavaScript 35.6%