Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edd/broccoli-react
Broccoli preprocessor for React JSX
https://github.com/edd/broccoli-react
Last synced: 2 months ago
JSON representation
Broccoli preprocessor for React JSX
- Host: GitHub
- URL: https://github.com/edd/broccoli-react
- Owner: edd
- License: mit
- Created: 2014-02-17T21:30:01.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-04-05T12:42:43.000Z (almost 5 years ago)
- Last Synced: 2024-10-29T08:28:16.886Z (3 months ago)
- Language: JavaScript
- Size: 23.4 KB
- Stars: 9
- Watchers: 4
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# [broccoli](https://github.com/joliss/broccoli)-[react](https://github.com/facebook/react) [![Build Status](https://travis-ci.org/eddhannay/broccoli-react.png?branch=master)](https://travis-ci.org/eddhannay/broccoli-react)
A [React JSX](https://github.com/facebook/react) filter for [broccoli](https://github.com/joliss/broccoli).
## Installation
```bash
npm install --save broccoli-react
```
## Usage```js
var filterReact = require('broccoli-react');
tree = filterReact(tree);
```## Options
### extensions
Type: `Array`
Default: `['jsx']`Specify the extensions for the source files.
### babelOptions
Type: `Object`
Default: `{}`Specify options for babel, useful for e.g. plugins, transforms etc.
```js
tree = filterReact(tree, {
extensions: ['js'],
babelOptions: { plugins: ["transform-class-properties"] }
});
```