Skip to content

wix-incubator/gulp-react-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM version build status This version simply updates the react-templates version so that it works with react 15.x

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