Gulp plugin for react-templates - Light weight templates for react -> write html get valid react code
npm install gulp-react-templates[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
__This version simply updates the react-templates version so that it works with react 15.x__
> Build react-templates
Install package with NPM and add it to your development dependencies:
npm install --save-dev gulp-react-templates
``javascript
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'));
});
`
- modules`
Select modules system (amd|commonjs|es6|typescript|none).
See more here
[npm-image]: https://img.shields.io/npm/v/gulp-react-templates.svg?style=flat-square
[npm-url]: https://npmjs.org/package/gulp-react-templates
[travis-image]: https://img.shields.io/travis/wix-incubator/gulp-react-templates/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/wix-incubator/gulp-react-templates