Sha256: afa8a0723666652142c4ec11f7e04d7a1171368a068b508c4da56ca899bd80e4
Contents?: true
Size: 706 Bytes
Versions: 36
Compression:
Stored size: 706 Bytes
Contents
var gulp = require('gulp'); var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); var react = require('gulp-react'); var htmlreplace = require('gulp-html-replace'); var plumber = require('gulp-plumber'); var path = { HTML: 'index.html', ALL: ['js/react/src/*.js', 'index.html'], JS: ['js/react/src/*.js'], MINIFIED_OUT: 'build.min.js', DEST_SRC: 'js/react/dist', DEST_BUILD: 'js/react/dist', DEST: 'dist' }; gulp.task('transform', function(){ gulp.src(path.JS) .pipe(plumber()) .pipe(react()) .pipe(gulp.dest(path.DEST_SRC)); }); gulp.task('watch', function(){ gulp.watch(path.ALL, ['transform']); }); gulp.task('default', ['transform','watch']);
Version data entries
36 entries across 36 versions & 1 rubygems