Skip to content

Commit 537b8cb

Browse files
committed
build: update outdated dependencies
1 parent 324a367 commit 537b8cb

File tree

7 files changed

+3350
-2458
lines changed

7 files changed

+3350
-2458
lines changed

.babelrc

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
{
22
"presets": [
3-
"env",
4-
"es2015"
3+
"@babel/preset-env",
54
],
65
"plugins": [
7-
"syntax-dynamic-import",
6+
"@babel/syntax-dynamic-import",
87
],
98
"env": {
109
"build": {
1110
"plugins": [
12-
"syntax-dynamic-import"
11+
"@babel/syntax-dynamic-import"
1312
]
1413
},
1514
"test": {
1615
"plugins": [
17-
"istanbul",
18-
"syntax-dynamic-import",
19-
"dynamic-import-node"
16+
"@babel/syntax-dynamic-import",
17+
"@babel/dynamic-import-node"
2018
]
2119
}
2220
}

package.json

Lines changed: 29 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"main": "dist/dashboard.js",
66
"module": "src/index.js",
77
"scripts": {
8-
"test": "mocha-webpack \"src/**/*.test.js\" --webpack-config webpack.test.config.js --require babel-polyfill --reporter mochawesome",
9-
"test:watch": "mocha-webpack --watch \"src/**/*.test.js\" --webpack-config webpack.test.config.js --require babel-polyfill --reporter mochawesome",
8+
"test": "mocha-webpack \"src/**/*.test.js\" --webpack-config webpack.test.config.js --require @babel/polyfill --reporter mochawesome",
9+
"test:watch": "mocha-webpack --watch \"src/**/*.test.js\" --webpack-config webpack.test.config.js --require @babel/polyfill --reporter mochawesome",
1010
"build": "WEBPACK_ENV=build webpack",
1111
"dev": "WEBPACK_ENV=dev webpack --progress --colors --watch",
1212
"html-coverage": "cross-env NODE_ENV=test nyc --reporter=html mocha-webpack \"src/**/*.test.js\" --webpack-config webpack.test.config.js",
@@ -19,7 +19,7 @@
1919
"analyze": "yarn analyze:generate && yarn analyze:tool",
2020
"manual-test": "webpack-dev-server --webpack-config webpack.test.config.js './src/manual_test.js' --hot --inline --output-filename 'test.js'",
2121
"semantic-release": "semantic-release",
22-
"test:e2e": "webpack src/manual_test.js --output-filename test.js --config webpack.config.js --mode development && mocha-webpack \"src/e2e-test.js\" --timeout 80000 --webpack-config webpack.test.config.js --require babel-polyfill"
22+
"test:e2e": "webpack src/manual_test.js --output-filename test.js --config webpack.config.js --mode development && mocha-webpack \"src/e2e-test.js\" --timeout 80000 --webpack-config webpack.test.config.js --require @babel/polyfill"
2323
},
2424
"keywords": [],
2525
"author": "",
@@ -28,53 +28,50 @@
2828
"billboard.js": "^1.4.1",
2929
"d3": "4.10.0",
3030
"fast-deep-equal": "^2.0.1",
31-
"fd-slicer": "^1.0.1",
31+
"fd-slicer": "^1.1.0",
3232
"jq-web": "^0.1.3",
3333
"sassline": "^2.1.2",
3434
"spinkit": "^1.2.5",
3535
"yamljs": "^0.3.0"
3636
},
3737
"devDependencies": {
38-
"babel-cli": "^6.26.0",
39-
"babel-core": "^6.26.3",
40-
"babel-eslint": "^8.2.2",
41-
"babel-loader": "^7.1.2",
42-
"babel-plugin-dynamic-import-node": "^1.2.0",
43-
"babel-plugin-istanbul": "^4.1.6",
44-
"babel-plugin-syntax-async-functions": "^6.13.0",
45-
"babel-plugin-syntax-dynamic-import": "^6.18.0",
46-
"babel-polyfill": "^6.26.0",
47-
"babel-preset-env": "^1.7.0",
48-
"babel-preset-es2015": "^6.24.1",
49-
"babel-register": "^6.26.0",
50-
"css-loader": "^0.28.9",
38+
"@babel/cli": "^7.2.3",
39+
"@babel/core": "^7.4.0",
40+
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
41+
"@babel/polyfill": "^7.4.0",
42+
"@babel/preset-env": "^7.4.2",
43+
"@babel/register": "^7.4.0",
44+
"autoprefixer": "^9.5.0",
45+
"babel-eslint": "^10.0.1",
46+
"babel-loader": "^8.0.5",
47+
"css-loader": "^2.1.1",
5148
"cz-conventional-changelog": "^2.1.0",
52-
"docdash": "^0.4.0",
53-
"eslint": "^4.19.1",
54-
"eslint-loader": "^2.0.0",
49+
"docdash": "^1.1.0",
50+
"eslint": "^5.16.0",
51+
"eslint-loader": "^2.1.2",
5552
"fake-style-loader": "^1.0.1",
56-
"file-loader": "^1.1.8",
53+
"file-loader": "^3.0.1",
5754
"get-stdin": "^6.0.0",
58-
"hard-source-webpack-plugin": "^0.8.1",
55+
"hard-source-webpack-plugin": "^0.13.1",
5956
"html-webpack-plugin": "^3.2.0",
6057
"inject-loader": "^4.0.1",
6158
"jsdoc": "^3.5.5",
62-
"jsdoc-babel": "^0.4.0",
63-
"jsdom": "^11.10.0",
59+
"jsdoc-babel": "^0.5.0",
60+
"jsdom": "^14.0.0",
6461
"jsdom-global": "^3.0.2",
6562
"json2yaml": "^1.1.0",
6663
"minami": "^1.2.3",
67-
"mocha": "^5.1.1",
64+
"mocha": "^6.0.2",
6865
"mocha-webpack": "^2.0.0-beta.0",
69-
"mochawesome": "^3.0.2",
70-
"node-sass": "^4.9.0",
71-
"postcss-loader": "^2.1.5",
72-
"sass-loader": "^7.0.1",
66+
"mochawesome": "^3.1.1",
67+
"node-sass": "^4.11.0",
68+
"postcss-loader": "^3.0.0",
69+
"sass-loader": "^7.1.0",
7370
"selenium-webdriver": "^4.0.0-alpha.1",
74-
"semantic-release": "^15.5.0",
75-
"should": "^13.2.1",
71+
"semantic-release": "^15.13.3",
72+
"should": "^13.2.3",
7673
"should-sinon": "0.0.6",
77-
"sinon": "^6.0.0",
74+
"sinon": "^7.3.1",
7875
"style-loader": "^0.23.1",
7976
"stylish": "^1.0.0",
8077
"webpack": "^4.29.6",
@@ -84,17 +81,6 @@
8481
"webpack-node-externals": "^1.7.2",
8582
"webshot": "^0.18.0"
8683
},
87-
"nyc": {
88-
"require": [
89-
"babel-register"
90-
],
91-
"reporter": [
92-
"lcov",
93-
"text"
94-
],
95-
"sourceMap": false,
96-
"instrument": false
97-
},
9884
"repository": {
9985
"type": "git",
10086
"url": "https://github.com/kantord/dashboard.git"

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import 'babel-polyfill'
1+
import '@babel/polyfill'
22
import './style.scss'
33
import json_parser from './default_parser'
44
import yaml_parser from './yaml-format/parser'

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
compress: true,
1010
port: 9000
1111
},
12-
entry: ["babel-polyfill", './src/index.js'],
12+
entry: ["@babel/polyfill", './src/index.js'],
1313
target: 'web',
1414
mode: 'production',
1515
node: {
@@ -49,7 +49,7 @@ module.exports = {
4949
use: {
5050
loader: 'babel-loader',
5151
options: {
52-
presets: ['babel-preset-env']
52+
presets: ['@babel/preset-env']
5353
}
5454
}
5555
}

webpack.screenshot.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const path = require('path');
22
const nodeExternals = require('webpack-node-externals');
33

44
module.exports = {
5-
entry: ["babel-polyfill", './src/index.js'],
5+
entry: ["@babel/polyfill", './src/index.js'],
66
target: 'web',
77
devtool: 'source-map',
88
mode: 'development',
@@ -40,7 +40,7 @@ module.exports = {
4040
use: {
4141
loader: 'babel-loader',
4242
options: {
43-
presets: ['babel-preset-env']
43+
presets: ['@babel/preset-env']
4444
}
4545
}
4646
}

webpack.test.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const path = require('path');
22
const nodeExternals = require('webpack-node-externals');
33

44
module.exports = {
5-
entry: ["babel-polyfill", './src/index.js'],
5+
entry: ["@babel/polyfill", './src/index.js'],
66
target: 'node',
77
mode: 'development',
88
externals: [nodeExternals()],
@@ -31,7 +31,7 @@ module.exports = {
3131
use: {
3232
loader: 'babel-loader',
3333
options: {
34-
presets: ['babel-preset-env']
34+
presets: ['@babel/preset-env']
3535
}
3636
}
3737
}

0 commit comments

Comments
 (0)