8000 GitHub - dominicbarnes/duo-jsx: A react-tools plugin for duo · GitHub
[go: up one dir, main page]

Skip to content
dominicbarnesPublic

About

A react-tools plugin for duo

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

duo-jsx

Build Status

A react-tools plugin for duo.

install

$ npm install --save-dev duo-jsx

examples

cli

$ duo -u duo-jsx example.jsx > example.js

node.js

var Duo = require('duo');
var jsx = require('duo-jsx');
var duo = new Duo(__dirname);

duo.entry('example.jsx').use(jsx()).run(function (err, src) {
    /* do something with the output */
});

api

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.

About

A react-tools plugin for duo

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0