use babel

This commit is contained in:
isymchych 2015-12-04 15:46:25 +02:00
parent 1690be3e5b
commit ff6ec2ec6b
3 changed files with 14 additions and 3 deletions

View File

@ -15,5 +15,6 @@
"newcap": true, // true: Require capitalization of all constructor functions e.g. `new F()`
"maxlen": 80, // {int} Max number of characters per line
"latedef": false, //This option prohibits the use of a variable before it was defined
"laxbreak": true //Ignore line breaks around "=", "==", "&&", etc.
"laxbreak": true, //Ignore line breaks around "=", "==", "&&", etc.
"esnext": true //support ES2015
}

1
app.js
View File

@ -1,6 +1,7 @@
/* global $, JitsiMeetJS, config, Promise */
/* application specific logic */
import "babel-polyfill";
require("jquery");
require("jquery-ui");
require("strophe");

View File

@ -42,7 +42,10 @@
"jshint": "2.8.0",
"precommit-hook": "3.0.0",
"uglify-js": "2.4.24",
"clean-css": "*"
"clean-css": "*",
"babelify": "*",
"babel-preset-es2015": "*",
"babel-polyfill": "*"
},
"license": "Apache-2.0",
"scripts": {
@ -54,9 +57,15 @@
],
"browserify": {
"transform": [
"browserify-shim"
"browserify-shim",
["babelify", {
"ignore": "node_modules"
}]
]
},
"babel": {
"presets": ["es2015"]
},
"browser": {
"jquery": "./node_modules/jquery/dist/jquery.js",
"jquery-ui": "./node_modules/jquery-ui/jquery-ui.js",