Browse Source

Updating some dependencies (#182)

* Update Dockerfile

* Update axios

* Update resolve

* Update jest

* Update lodash

* Update autoprefixer

* Update chalk

* Update fs-extra

* Update promise

* Update postcss settings

* Remove postcss-flexbugs-fixes

* Remove digital climate strike widget
main
Marian Steinbach 1 year ago committed by GitHub
parent
commit
0e25194566
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Dockerfile
  2. 18
      config/webpack.config.dev.js
  3. 18
      config/webpack.config.prod.js
  4. 25
      package.json
  5. 9
      public/index.html
  6. 1602
      yarn.lock

4
Dockerfile

@ -1,4 +1,4 @@
FROM node:10-slim AS builder
FROM node:12-slim AS builder
WORKDIR /
@ -14,7 +14,7 @@ ADD src /src
RUN yarn build
FROM nginx:1.17-alpine
FROM nginx:1.18-alpine
# move this file, as /etc/nginx/ will be masked by a volume
RUN cp /etc/nginx/mime.types /mime.types

18
config/webpack.config.dev.js

@ -167,22 +167,8 @@ module.exports = {
{
loader: require.resolve('postcss-loader'),
options: {
// Necessary for external CSS imports to work
// https://github.com/facebookincubator/create-react-app/issues/2677
ident: 'postcss',
plugins: () => [
require('postcss-flexbugs-fixes'),
autoprefixer({
browsers: [
'>1%',
'last 4 versions',
'Firefox ESR',
'not ie < 9', // React doesn't support IE8 anyway
],
flexbox: 'no-2009',
}),
],
},
options: {}
}
},
],
},

18
config/webpack.config.prod.js

@ -187,22 +187,8 @@ module.exports = {
{
loader: require.resolve('postcss-loader'),
options: {
// Necessary for external CSS imports to work
// https://github.com/facebookincubator/create-react-app/issues/2677
ident: 'postcss',
plugins: () => [
require('postcss-flexbugs-fixes'),
autoprefixer({
browsers: [
'>1%',
'last 4 versions',
'Firefox ESR',
'not ie < 9', // React doesn't support IE8 anyway
],
flexbox: 'no-2009',
}),
],
},
options: {}
}
},
],
},

25
package.json

@ -4,20 +4,20 @@
"private": true,
"homepage": "https://green-spider.netzbegruenung.de",
"dependencies": {
"axios": "^0.19.2",
"axios": "^0.21.1",
"bootstrap": ">=4.4.1",
"chalk": "^3.0.0",
"chalk": "^4.1.0",
"chroma-js": "^2.1.0",
"css-loader": "0.28.11",
"dotenv": "^8.2.0",
"dotenv-expand": "^5.1.0",
"fs-extra": "8.1.0",
"fs-extra": "9.0.1",
"history": "^4.10.1",
"jest": "25.5.4",
"lodash": "^4.17.13",
"jest": "26.6.3",
"lodash": "^4.17.20",
"merge": "1.2.1",
"object-assign": "4.1.1",
"promise": "^8.0.3",
"promise": "^8.1.0",
"prop-types": "^15.7.2",
"punycode": "^2.1.1",
"raf": "^3.4.1",
@ -27,14 +27,14 @@
"react-infinite-scroller": "^1.2.4",
"react-router-dom": "^5.1.2",
"react-transition-group": "^4.3.0",
"resolve": "^1.15.1",
"resolve": "^1.19.0",
"style-loader": "^0.23.1",
"sw-precache-webpack-plugin": "^0.11.5",
"underscore": "^1.10.2",
"whatwg-fetch": "3.0.0"
},
"devDependencies": {
"autoprefixer": "^9.7.5",
"autoprefixer": "^10.1.0",
"babel-core": "^6.26.3",
"babel-eslint": "9.0.0",
"babel-jest": "23.6.0",
@ -53,7 +53,6 @@
"file-loader": "2.0.0",
"html-webpack-plugin": "3.2.0",
"js-yaml": "^3.13.1",
"postcss-flexbugs-fixes": "4.2.0",
"postcss-loader": "3.0.0",
"url-loader": "1.1.2",
"webpack": "3.8.1",
@ -106,5 +105,11 @@
},
"eslintConfig": {
"extends": "react-app"
}
},
"browserslist": [
">1%",
"last 4 versions",
"Firefox ESR",
"not ie < 9"
]
}

9
public/index.html

@ -19,14 +19,5 @@
</noscript>
<div id="root"></div>
<script type="text/javascript">
var DIGITAL_CLIMATE_STRIKE_OPTIONS = {
language: 'de',
disableGoogleAnalytics: true,
showCloseButtonOnFullPageWidget: true
};
</script>
<script src="https://assets.digitalclimatestrike.net/widget.js" async></script>
</body>
</html>

1602
yarn.lock

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save