https://github.com/dispalt/sbt-reactjs
React SBT Plugin using npm
https://github.com/dispalt/sbt-reactjs
Last synced: about 1 month ago
JSON representation
React SBT Plugin using npm
- Host: GitHub
- URL: https://github.com/dispalt/sbt-reactjs
- Owner: dispalt
- License: other
- Created: 2014-05-02T17:34:14.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2023-07-11T16:13:48.000Z (almost 2 years ago)
- Last Synced: 2025-03-05T22:52:22.295Z (about 1 month ago)
- Language: Scala
- Size: 80.1 KB
- Stars: 81
- Watchers: 5
- Forks: 22
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-react-cn - sbt-reactjs - React SBT Plugin using npm (Uncategorized / Uncategorized)
README
# ReactJS Source Compiler

- The master series is for React 0.14.x
- The [0.4.x](https://github.com/ddispaltro/sbt-reactjs/tree/0.4.x) series is for React 0.12
- The [0.3.x](https://github.com/ddispaltro/sbt-reactjs/tree/0.3.x) series is for React 0.11
- The [0.2.x](https://github.com/ddispaltro/sbt-reactjs/tree/0.2.x) series is for React 0.10This 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.:```scala
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:
```scala
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 sourceThe artifact is hosted as part of the [community plugins](http://www.scala-sbt.org/0.13.5/docs/Community/Bintray-For-Plugins.html)
via [bintray service](https://bintray.com/ddispaltro/sbt-plugins/sbt-reactjs/view).## License
`sbt-reactjs` is licensed under the [Apache License, Version 2.0](./LICENSE)