introduce es6 and babel to whole app

This commit is contained in:
Berkeley Martinez
2015-06-29 12:01:56 -07:00
parent 28395a5957
commit c33c6c9a8f
4 changed files with 11 additions and 8 deletions

View File

@@ -1,13 +1,13 @@
// appFactory is an es6 module
var debug = require('debug')('freecc:servereact');
var app$ = require('../common/app/app-stream.jsx').default;
var Cat = require('thundercats').Cat;
import debugFactory from 'debug';
import app$ from '../common/app/app-stream.jsx';
import { Cat } from 'thundercats';
var routes = [
const debug = debugFactory('freecc:servereact');
const routes = [
'/jobs'
];
module.exports = function(app) {
export default function reactSubRouter(app) {
var router = app.Router();
routes.forEach(function(route) {
@@ -54,4 +54,4 @@ module.exports = function(app) {
next
);
}
};
}