Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

gulp-jsx

2.0.1 • Public • Published

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

install

npm i gulp-jsx

Downloadsweekly downloads

89

version

2.0.1

license

BSD-3-Clause

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability