NPM version build status

gulp-react-templates

Build react-templates

Installation

Install package with NPM and add it to your development dependencies:

npm install --save-dev gulp-react-templates

Usage

var gulp = require('gulp');
var rt = require('gulp-react-templates');

gulp.task('rt', function() {
    gulp.src('src/**/*.rt')
        .pipe(rt({modules: 'amd'}))
        .pipe(gulp.dest('src'));
});

Options

  • modules

    Select modules system (amd|commonjs|es6|typescript|none).

See more here