mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-27 06:34:14 +00:00
21 lines
No EOL
479 B
JavaScript
21 lines
No EOL
479 B
JavaScript
"use strict";
|
|
|
|
var gulp = require("gulp");
|
|
var concat = require("gulp-concat");
|
|
var watch = require("gulp-watch");
|
|
var babel = require("gulp-babel");
|
|
var plumber = require("gulp-plumber");
|
|
|
|
gulp.task('default', ['compile']);
|
|
|
|
gulp.task('compile', function () {
|
|
return gulp.src('lib/react/**')
|
|
.pipe(plumber())
|
|
.pipe(concat('app.js'))
|
|
.pipe(babel())
|
|
.pipe(gulp.dest('public/js/'));
|
|
});
|
|
|
|
gulp.task('watch', function () {
|
|
gulp.watch('lib/react/**', ['compile']);
|
|
}); |