Skip to content

insin/gulp-msx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Precompile Mithril views which use JSX into JavaScript

Resources

License

Stars

Watchers

Forks

Packages

No packages published