(Based on gulp-react)
Precompiles Mithril views which use JSX into JavaScript, using msx.
npm install --save-dev gulp-msx
var gulp = require('gulp') var msx = require('gulp-msx') gulp.task('transform-jsx', function() { return gulp.src('./src/**/*.jsx') .pipe(msx({harmony: true})) .pipe(gulp.dest('./dist')) })
.jsx
files are automatically renamed to .js
for you, ready for output.
options
- options to be passed to the call to msx.transform()
.
MIT Licensed
AboutPrecompile Mithril views which use JSX into JavaScript
Resources License Stars Watchers ForksYou can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4