1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2024-12-26 07:33:21 -05:00

Enable ES2015 translation

This commit is contained in:
Aaron Lindsay 2017-06-07 21:08:39 -04:00
parent 2699d7b6c3
commit 7817e6f08e
4 changed files with 5 additions and 3 deletions

View File

@ -6,7 +6,7 @@ node_modules:
npm install npm install
static/bundle.js: $(JS_SOURCES) node_modules static/bundle.js: $(JS_SOURCES) node_modules
browserify -t [ babelify --presets [ react ] ] js/main.js -o static/bundle.js browserify -t [ babelify --presets [ react es2015 ] ] js/main.js -o static/bundle.js
static/react-widgets: node_modules/react-widgets/dist node_modules static/react-widgets: node_modules/react-widgets/dist node_modules
rsync -a node_modules/react-widgets/dist/ static/react-widgets/ rsync -a node_modules/react-widgets/dist/ static/react-widgets/

View File

@ -12,7 +12,8 @@ var FormControl = ReactBootstrap.FormControl;
var ControlLabel = ReactBootstrap.ControlLabel; var ControlLabel = ReactBootstrap.ControlLabel;
var Col = ReactBootstrap.Col; var Col = ReactBootstrap.Col;
var User = require('../models').User; var models = require('../models');
var User = models.User;
class AccountSettingsModal extends React.Component { class AccountSettingsModal extends React.Component {
_getInitialState(props) { _getInitialState(props) {

View File

@ -574,7 +574,7 @@ class OFXDownload {
} }
} }
module.exports = models = { module.exports = {
// Classes // Classes
User: User, User: User,
Session: Session, Session: Session,

View File

@ -5,6 +5,7 @@
"main": "js/main.js", "main": "js/main.js",
"dependencies": { "dependencies": {
"babel-preset-react": "^6.16.0", "babel-preset-react": "^6.16.0",
"babel-preset-es2015": "^6.24.1",
"babelify": "^7.3.0", "babelify": "^7.3.0",
"big.js": "^3.1.3", "big.js": "^3.1.3",
"browserify": "^14.4.0", "browserify": "^14.4.0",