Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wdamron/duo-jsx
react-tools plugin for duo
https://github.com/wdamron/duo-jsx
Last synced: about 2 months ago
JSON representation
react-tools plugin for duo
- Host: GitHub
- URL: https://github.com/wdamron/duo-jsx
- Owner: wdamron
- License: apache-2.0
- Created: 2014-11-22T01:54:55.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-18T02:27:42.000Z (about 10 years ago)
- Last Synced: 2023-03-24T03:51:12.653Z (almost 2 years ago)
- Language: JavaScript
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# duo-jsx
[react-tools](https://github.com/facebook/react) plugin for [duo](https://github.com/duojs/duo).
## Examples
```sh
$ npm install --save-dev duo-jsx
```###CLI
```sh
$ duo -u duo-jsx in.js > out.js
```###Node
```js
var Duo = require('duo'),
jsx = require('duo-jsx');Duo(__dirname)
.entry('main.js')
.use(jsx())
.run(function (err, src) {
// ...
});
```
##API```js
var jsx = require('duo-jsx');
```###jsx([options])
options: ```Object```
Options are passed to react-tools
####options.sourceMap
Type: ```Boolean``` Default: ```false```
Append inline source map at the end of the transformed source.
####options.harmony
Type: ```Boolean``` Default: ```false```
Enable ES6 features.
####options.filename
Type: ```string``` Default: ```source.js```
The output filename for the source map.