Unverified Commit 664f39f4 authored by Daniel's avatar Daniel Committed by GitHub

Upgrade node version (#368)

* Update various packages to support Node 12
* Update webpack-terser-plugin for security
* Update babel to resolve security issue
* Remove unused package and upgrade babel loader
* Upgrade travis build to node v12
* Update supported node versions to v10 and v12
* Relax 'prefer-template' rule in tslint config
parent 358f8c79
......@@ -14,7 +14,7 @@ matrix:
- codecov
- language: node_js
node_js:
- '8'
- '12'
env:
- IS_DEPLOYABLE=false
before_install:
......
......@@ -16,7 +16,7 @@ For information about Amundsen and our other services, visit the [main repositor
## Requirements
- Python >= 3.5
- Node = v8.x.x or v10.x.x (v11.x.x has compatibility issues)
- Node = v10 or v12
- npm >= 6.x.x
## User Interface
......
......@@ -32,16 +32,16 @@
"@types/react-redux": "^6.0.0",
"@types/react-router": "^4.0.25",
"@types/react-tagsinput": "^3.19.2",
"@types/webpack": "^4.4.19",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"@types/webpack": "^4.41.2",
"@babel/cli": "^7.7.7",
"@babel/core": "^7.7.7",
"babel-jest": "^24.9.0",
"babel-loader": "^7.1.4",
"babel-polyfill": "^6.0.16",
"babel-preset-env": "^1.7.0",
"babel-loader": "^8.0.6",
"@babel/polyfill": "^7.7.0",
"@babel/preset-env": "^7.7.7",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.0.15",
"@babel/preset-react": "^7.7.4",
"@babel/preset-stage-0": "^7.0.0",
"bootstrap-sass": "^3.4.1",
"clean-webpack-plugin": "^0.1.19",
"cross-env": "^5.2.1",
......@@ -58,7 +58,7 @@
"jest": "^24.9.0",
"jest-css-modules": "^2.1.0",
"mini-css-extract-plugin": "^0.4.5",
"node-sass": "^4.10.0",
"node-sass": "^4.13.0",
"postcss": "^7.0.6",
"prettier": "^1.12.1",
"redux-mock-store": "^1.5.3",
......@@ -66,7 +66,7 @@
"redux-saga-test-plan": "4.0.0-beta.3",
"sass-loader": "^7.1.0",
"style-loader": "^0.20.3",
"terser-webpack-plugin": "^1.1.0",
"terser-webpack-plugin": "^2.3.2",
"ts-jest": "^24.1.0",
"ts-loader": "^6.2.1",
"ts-node": "^8.5.2",
......@@ -77,7 +77,6 @@
"tslint-eslint-rules": "^5.2.0",
"tslint-react": "^3.6.0",
"typescript": "^3.1.1",
"uglifyjs-webpack-plugin": "^1.1.0",
"webpack": "^4.41.3",
"webpack-cli": "^3.1.1",
"webpack-merge": "^4.1.4",
......
......@@ -20,7 +20,8 @@
"no-parameter-reassignment": false,
"prefer-array-literal": [
false
]
],
"prefer-template": false
},
"rulesDirectory": []
}
......@@ -26,7 +26,7 @@ const htmlWebpackPluginConfig = templatesList.map(file => {
const config: webpack.Configuration = {
entry: {
main: ['babel-polyfill', path.join(__dirname, '/css/styles.scss'), path.join(__dirname, '/js/index.tsx')],
main: ['@babel/polyfill', path.join(__dirname, '/css/styles.scss'), path.join(__dirname, '/js/index.tsx')],
},
output: {
path: path.join(__dirname, '/dist'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment