gulp-msx ![Build Status](https://camo.githubusercontent.com/c18c53a085ba03a8fbd25d4d09c9426a2239fc2171f14ddce6a37b86008e822d/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f696e73696e2f67756c702d6d73782e706e673f6272616e63683d6d6173746572)
(Based on gulp-react)
Precompiles Mithril views which use JSX into JavaScript, using msx.
Install
npm install --save-dev gulp-msx
Example
var gulp = require('gulp')
var msx = require('gulp-msx')
gulp.task('transform-jsx', function() {
return gulp.src('./src/**/*.jsx')
.pipe(msx())
.pipe(gulp.dest('./dist'))
})
The JSX /** @jsx m */
pragma is prepended to .jsx
files if missing.
.jsx
files are automatically renamed to .js
for you, ready for output.
MIT Licensed