Use babel to compile jsx

This commit is contained in:
Chris Blanchard 2015-08-09 15:48:42 +01:00
parent 6072e124df
commit 71cf954447
4 changed files with 1933 additions and 1091 deletions

View file

@ -1,9 +1,9 @@
"use strict";
var gulp = require("gulp");
var react = require("gulp-react");
var concat = require("gulp-concat");
var watch = require("gulp-watch");
var babel = require("gulp-babel");
var plumber = require("gulp-plumber");
gulp.task('default', ['compile']);
@ -12,7 +12,7 @@ gulp.task('compile', function () {
return gulp.src('lib/react/**')
.pipe(plumber())
.pipe(concat('app.js'))
.pipe(react())
.pipe(babel())
.pipe(gulp.dest('public/js/'));
});

1669
npm-shrinkwrap.json generated

File diff suppressed because it is too large Load diff

View file

@ -26,20 +26,19 @@
"homepage": "https://github.com/cblanc/sws_gathers",
"dependencies": {
"async": "~1.4.0",
"babel": "~5.8.21",
"express": "~4.13.1",
"express-handlebars": "~2.0.1",
"extend": "~3.0.0",
"gulp": "~3.9.0",
"gulp-babel": "^5.2.0",
"gulp-concat": "~2.6.0",
"gulp-plumber": "~1.0.1",
"gulp-react": "~3.0.1",
"gulp-watch": "~4.3.4",
"javascript-state-machine": "~2.3.5",
"lodash": "~3.10.0",
"mongoose": "~4.1.1",
"morgan": "~1.6.1",
"react-tools": "~0.13.3",
"babel": "~5.8.21",
"request": "~2.60.0",
"serve-favicon": "~2.3.0",
"socket.io": "~1.3.5",

File diff suppressed because it is too large Load diff