broccoli-react-caching
Caching React compiler for Broccoli
Last updated 5 years ago by ccoenen .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install broccoli-react-caching 
SYNC missed versions from official npm registry.

broccoli-react-caching

React Compiler for Broccoli. Based on react-sass.

Installation

npm install --save-dev broccoli-react-caching

Usage

var react = require('broccoli-react-caching');

var outputTree = react(inputTrees, options);
  • inputTrees: An array of trees that act as the include paths for react jsx files. If you have a single tree, pass [tree].

  • options: An object with additional configuration, see below.

options

react(inputTrees, {
  fileExtension: 'jsx',  // files are matched against this, defaults to 'jsx'
  encoding: 'UTF-8',     // encoding of the jsx files, defaults to 'UTF-8'
  transformOptions: {    // These are passed to `transform`
    sourceMap: true
  }
});

For all possible transformOptions, see transform in react-tools.

Developing

I would like to invite you to contribute to this project. Clone this repository from github, then run the following in its directory:

npm install

Start in index.js

Happy Hacking!

Current Tags

  • 0.1.1                                ...           latest (5 years ago)

1 Versions

  • 0.1.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |