All Projects → alexmingoia → gulp-jsx

alexmingoia / gulp-jsx

Licence: other
virtual-dom-jsx for gulp

Programming Languages

javascript
184084 projects - #8 most used programming language

gulp-jsx Build Status NPM version Dependency Status

jsx-transform for Gulp.

Installation

npm install gulp-jsx

Usage

var gulp = require('gulp');
var jsx = require('gulp-jsx');

gulp.task('build', function() {
  return gulp.src('views/**/*.js')
    .pipe(jsx({
      factory: 'React.createClass'
    }))
    .pipe(gulp.dest('dist'));
});

See jsx-transform for options and other usage information.

Options

Options are passed to jsx-transform.

options.match

Type: RegExp or String Default: /jsx?$/i

Only parses files with pathnames that match this value.

BSD 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].