All Projects → insin → gulp-msx

insin / gulp-msx

Licence: other
Precompile Mithril views which use JSX into JavaScript

Programming Languages

javascript
184084 projects - #8 most used programming language

gulp-msx Build Status

(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({harmony: true}))
    .pipe(gulp.dest('./dist'))
})

.jsx files are automatically renamed to .js for you, ready for output.

API

msx([options: Object])

options - options to be passed to the call to msx.transform().


MIT Licensed

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].