Browse Source

Upgraded to babel v6

codeClimate
jos 8 years ago
parent
commit
1c7d5ebe5d
5 changed files with 23 additions and 13 deletions
  1. +1
    -0
      HISTORY.md
  2. +9
    -1
      gulpfile.js
  3. +1
    -2
      lib/network/Network.js
  4. +3
    -2
      lib/network/modules/SelectionHandler.js
  5. +9
    -8
      package.json

+ 1
- 0
HISTORY.md View File

@ -6,6 +6,7 @@ http://visjs.org
### Graph2d ### Graph2d
- Fixed #1455: allow vertical panning of the web page on touch devices.
- Fixed #1692: Error when y-axis values are equal. - Fixed #1692: Error when y-axis values are equal.
### Timeline ### Timeline

+ 9
- 1
gulpfile.js View File

@ -45,7 +45,15 @@ var webpackConfig = {
}, },
module: { module: {
loaders: [ loaders: [
{ test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader'}
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel',
query: {
cacheDirectory: true,
presets: ['es2015']
}
}
], ],
// exclude requires of moment.js language files // exclude requires of moment.js language files

+ 1
- 2
lib/network/Network.js View File

@ -2,16 +2,15 @@
require('./shapes'); require('./shapes');
let Emitter = require('emitter-component'); let Emitter = require('emitter-component');
let Hammer = require('../module/hammer');
let util = require('../util'); let util = require('../util');
let DataSet = require('../DataSet'); let DataSet = require('../DataSet');
let DataView = require('../DataView'); let DataView = require('../DataView');
let dotparser = require('./dotparser'); let dotparser = require('./dotparser');
let gephiParser = require('./gephiParser'); let gephiParser = require('./gephiParser');
let Images = require('./Images');
let Activator = require('../shared/Activator'); let Activator = require('../shared/Activator');
let locales = require('./locales'); let locales = require('./locales');
import Images from './Images';
import Groups from './modules/Groups'; import Groups from './modules/Groups';
import NodesHandler from './modules/NodesHandler'; import NodesHandler from './modules/NodesHandler';
import EdgesHandler from './modules/EdgesHandler'; import EdgesHandler from './modules/EdgesHandler';

+ 3
- 2
lib/network/modules/SelectionHandler.js View File

@ -1,5 +1,6 @@
let Node = require("./components/Node");
let Edge = require("./components/Edge");
import Node from './components/Node';
import Edge from './components/Edge';
let util = require('../../util'); let util = require('../../util');
class SelectionHandler { class SelectionHandler {

+ 9
- 8
package.json View File

@ -30,25 +30,26 @@
}, },
"dependencies": {}, "dependencies": {},
"devDependencies": { "devDependencies": {
"emitter-component": "^1.1.1",
"hammerjs": "^2.0.6",
"keycharm": "^0.2.0",
"moment": "^2.12.0",
"propagating-hammerjs": "^1.4.6",
"uuid": "^2.0.1",
"babel": "^5.1.11",
"babel-loader": "^5.0.0",
"babel-core": "^6.6.5",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.6.0",
"babelify": "^7.2.0", "babelify": "^7.2.0",
"clean-css": "^3.4.10", "clean-css": "^3.4.10",
"emitter-component": "^1.1.1",
"gulp": "^3.9.1", "gulp": "^3.9.1",
"gulp-concat": "^2.6.0", "gulp-concat": "^2.6.0",
"gulp-minify-css": "^1.2.4", "gulp-minify-css": "^1.2.4",
"gulp-rename": "^1.2.2", "gulp-rename": "^1.2.2",
"gulp-util": "^3.0.7", "gulp-util": "^3.0.7",
"hammerjs": "^2.0.6",
"keycharm": "^0.2.0",
"merge-stream": "^1.0.0", "merge-stream": "^1.0.0",
"mocha": "^2.4.5", "mocha": "^2.4.5",
"moment": "^2.12.0",
"propagating-hammerjs": "^1.4.6",
"rimraf": "^2.5.2", "rimraf": "^2.5.2",
"uglify-js": "^2.6.2", "uglify-js": "^2.6.2",
"uuid": "^2.0.1",
"webpack": "^1.12.14", "webpack": "^1.12.14",
"yargs": "^4.2.0" "yargs": "^4.2.0"
} }

Loading…
Cancel
Save