React SBT Plugin using npm
Scala JavaScript
Clone or download
carview.php?tsp= Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
carview.php?tsp= project Some more cleanup Feb 22, 2018
carview.php?tsp= src Fixes test Feb 24, 2018
carview.php?tsp= .gitignore Upgraded to use react 0.12.2 Mar 6, 2015
carview.php?tsp= .jvmopts Add jvmopts Jul 22, 2014
carview.php?tsp= .travis.yml A couple minor upgrades Jun 18, 2015
carview.php?tsp= LICENSE License the software May 28, 2014
carview.php?tsp= README.md Update the readme Apr 7, 2016
carview.php?tsp= build.sbt Fix scripted Feb 24, 2018
carview.php?tsp= version.sbt Got it running with sbt version 1.0.2 Feb 22, 2018

README.md

ReactJS Source Compiler

Build Status

  • The master series is for React 0.14.x
  • The 0.4.x series is for React 0.12
  • The 0.3.x series is for React 0.11
  • The 0.2.x series is for React 0.10

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.ddispaltro" % "sbt-reactjs" % "0.6.8")

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)

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