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: ...@@ -14,7 +14,7 @@ matrix:
- codecov - codecov
- language: node_js - language: node_js
node_js: node_js:
- '8' - '12'
env: env:
- IS_DEPLOYABLE=false - IS_DEPLOYABLE=false
before_install: before_install:
......
...@@ -16,7 +16,7 @@ For information about Amundsen and our other services, visit the [main repositor ...@@ -16,7 +16,7 @@ For information about Amundsen and our other services, visit the [main repositor
## Requirements ## Requirements
- Python >= 3.5 - 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 - npm >= 6.x.x
## User Interface ## User Interface
......
...@@ -32,16 +32,16 @@ ...@@ -32,16 +32,16 @@
"@types/react-redux": "^6.0.0", "@types/react-redux": "^6.0.0",
"@types/react-router": "^4.0.25", "@types/react-router": "^4.0.25",
"@types/react-tagsinput": "^3.19.2", "@types/react-tagsinput": "^3.19.2",
"@types/webpack": "^4.4.19", "@types/webpack": "^4.41.2",
"babel-cli": "^6.26.0", "@babel/cli": "^7.7.7",
"babel-core": "^6.26.0", "@babel/core": "^7.7.7",
"babel-jest": "^24.9.0", "babel-jest": "^24.9.0",
"babel-loader": "^7.1.4", "babel-loader": "^8.0.6",
"babel-polyfill": "^6.0.16", "@babel/polyfill": "^7.7.0",
"babel-preset-env": "^1.7.0", "@babel/preset-env": "^7.7.7",
"babel-preset-es2015": "^6.24.1", "babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1", "@babel/preset-react": "^7.7.4",
"babel-preset-stage-0": "^6.0.15", "@babel/preset-stage-0": "^7.0.0",
"bootstrap-sass": "^3.4.1", "bootstrap-sass": "^3.4.1",
"clean-webpack-plugin": "^0.1.19", "clean-webpack-plugin": "^0.1.19",
"cross-env": "^5.2.1", "cross-env": "^5.2.1",
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
"jest": "^24.9.0", "jest": "^24.9.0",
"jest-css-modules": "^2.1.0", "jest-css-modules": "^2.1.0",
"mini-css-extract-plugin": "^0.4.5", "mini-css-extract-plugin": "^0.4.5",
"node-sass": "^4.10.0", "node-sass": "^4.13.0",
"postcss": "^7.0.6", "postcss": "^7.0.6",
"prettier": "^1.12.1", "prettier": "^1.12.1",
"redux-mock-store": "^1.5.3", "redux-mock-store": "^1.5.3",
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
"redux-saga-test-plan": "4.0.0-beta.3", "redux-saga-test-plan": "4.0.0-beta.3",
"sass-loader": "^7.1.0", "sass-loader": "^7.1.0",
"style-loader": "^0.20.3", "style-loader": "^0.20.3",
"terser-webpack-plugin": "^1.1.0", "terser-webpack-plugin": "^2.3.2",
"ts-jest": "^24.1.0", "ts-jest": "^24.1.0",
"ts-loader": "^6.2.1", "ts-loader": "^6.2.1",
"ts-node": "^8.5.2", "ts-node": "^8.5.2",
...@@ -77,7 +77,6 @@ ...@@ -77,7 +77,6 @@
"tslint-eslint-rules": "^5.2.0", "tslint-eslint-rules": "^5.2.0",
"tslint-react": "^3.6.0", "tslint-react": "^3.6.0",
"typescript": "^3.1.1", "typescript": "^3.1.1",
"uglifyjs-webpack-plugin": "^1.1.0",
"webpack": "^4.41.3", "webpack": "^4.41.3",
"webpack-cli": "^3.1.1", "webpack-cli": "^3.1.1",
"webpack-merge": "^4.1.4", "webpack-merge": "^4.1.4",
......
...@@ -20,7 +20,8 @@ ...@@ -20,7 +20,8 @@
"no-parameter-reassignment": false, "no-parameter-reassignment": false,
"prefer-array-literal": [ "prefer-array-literal": [
false false
] ],
"prefer-template": false
}, },
"rulesDirectory": [] "rulesDirectory": []
} }
...@@ -26,7 +26,7 @@ const htmlWebpackPluginConfig = templatesList.map(file => { ...@@ -26,7 +26,7 @@ const htmlWebpackPluginConfig = templatesList.map(file => {
const config: webpack.Configuration = { const config: webpack.Configuration = {
entry: { 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: { output: {
path: path.join(__dirname, '/dist'), 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