mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-22 20:51:23 +00:00
Use babel to compile jsx
This commit is contained in:
parent
6072e124df
commit
71cf954447
4 changed files with 1933 additions and 1091 deletions
|
@ -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
1669
npm-shrinkwrap.json
generated
File diff suppressed because it is too large
Load diff
|
@ -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",
|
||||
|
|
1346
public/js/app.js
1346
public/js/app.js
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue