0.0.1 • Published 11 years ago
lineman-react v0.0.1
lineman-react
Compiles JSX files in your Lineman app. Uses grunt-react under the hood.
Installation
$ npm install lineman-react --saveGenerated files
This will compile all of the JSX files in app/js/**/*.jsx to generated/jsx/**/*.js, and then include them in the generated app.js file. This does generate and concatenate sourcemaps for the compiled JSX files onto app.js.map.
You will need to include the JSX directive at the top of each JSX file.
/** @jsx React.DOM */
window.app.components.MyComponent = React.createClass({
render: function(){
return <p>A react component!</p>;
}
});License
0.0.1
11 years ago