0.0.3 • Published 9 years ago

gulp-jsxconvert v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

NPM

gulp plugin, wrapper for jsxhint to transform jsx to js before run jshint.

Getting Started

Gulp requires ~3.8.11

Please check out this Getting Started to install gulp if you haven't used gulp before. Then you may install this plugin with this command:

npm install gulp-jsxconvert --save-dev

Add "hint" task

Overview

Once the plugin has been installed, add a 'hint' task to your project's gulpfile.js.

var gulp   = require('gulp');
var jsxconvert = require("gulp-jsxconvert");
var jshint = require('gulp-jshint');
 
gulp.task('hint', function() {
  return gulp.src('./lib/*.js')
  	.pipe(jsxconvert())
    .pipe(jshint())
    .pipe(jshint.reporter('YOUR_REPORTER_HERE'));
});

License

This projected is licensed under the terms of the MIT license.