mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-12-26 23:42:29 -05:00
Enable ES2015 translation
This commit is contained in:
parent
2699d7b6c3
commit
7817e6f08e
2
Makefile
2
Makefile
@ -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/
|
||||||
|
@ -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) {
|
||||||
|
@ -574,7 +574,7 @@ class OFXDownload {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = models = {
|
module.exports = {
|
||||||
// Classes
|
// Classes
|
||||||
User: User,
|
User: User,
|
||||||
Session: Session,
|
Session: Session,
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user