Use frontend-base! (#220)

* Adding frontend-builder and frontend-core stubs

* gatsby stub added

* Remove gatsby stuff.

* Reorganization of top level app.

Some naming TBD.

* Review feedback.

* Various config improvements

- Adding APP_ERROR handler for top level errors.
- Splitting footer config out of main app config.
- Simplifying config variables and deriving some from others in the files that need them.

* Use App.error()

* Improving exports/imports from frontend-core

* Moving header and footer out of src.

Getting rid of “common”

* Setting authentication directlty from App.authentication in AppProvider.

* Switching over to using frontend-base.

Updating a bunch of dependencies to their latest versions in the process.

* Bumping versions of frontend-base and frontend-auth

* Getting tests working again.

* Addressing review feedback and bumping to a newer version of frontend-base.

* Removing unneeded eslint disable lines.

* Updating usage of frontend-logging to remove deprecated method names.

* Bumping node-sass version to 4.12.0 - hopefully fixes node 12 build

* css-loader now requires cssnano for minification

* fix: couldn’t set preferred language visibility.
This commit is contained in:
David Joy
2019-09-16 16:49:16 -04:00
committed by GitHub
parent 6dd2a0c78e
commit 5ac0558a92
51 changed files with 4548 additions and 7169 deletions

View File

@@ -8,7 +8,6 @@
},
"scripts": {
"build": "NODE_ENV=production BABEL_ENV=production webpack --config=webpack/webpack.prod.config.js",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"i18n_extract": "BABEL_ENV=i18n babel src --quiet > /dev/null",
"is-es5": "es-check es5 ./dist/*.js",
"lint": "eslint --ext .js --ext .jsx .",
@@ -26,14 +25,14 @@
},
"dependencies": {
"@cospired/i18n-iso-languages": "2.0.2",
"@edx/edx-bootstrap": "2.2.2",
"@edx/frontend-analytics": "2.0.0",
"@edx/frontend-auth": "5.3.5",
"@edx/frontend-auth": "6.0.1",
"@edx/frontend-base": "1.1.0",
"@edx/frontend-component-footer": "6.0.2",
"@edx/frontend-component-site-header": "2.4.0",
"@edx/frontend-i18n": "2.1.0",
"@edx/frontend-logging": "2.1.0",
"@edx/paragon": "4.2.5",
"@edx/frontend-i18n": "3.0.2",
"@edx/frontend-logging": "3.0.1",
"@edx/paragon": "7.1.2",
"@fortawesome/fontawesome-svg-core": "1.2.14",
"@fortawesome/free-brands-svg-icons": "5.7.2",
"@fortawesome/free-regular-svg-icons": "5.7.1",
@@ -51,44 +50,49 @@
"iso-countries-languages": "0.2.1",
"lodash.camelcase": "4.3.0",
"lodash.get": "4.4.2",
"lodash.memoize": "4.1.2",
"lodash.pick": "4.4.0",
"lodash.snakecase": "4.1.1",
"newrelic": "5.5.0",
"prop-types": "15.6.2",
"react": "16.8.3",
"react-dom": "16.8.3",
"react-redux": "5.1.1",
"react-router": "4.3.1",
"react-router-dom": "4.3.1",
"react-transition-group": "2.5.3",
"redux": "4.0.1",
"prop-types": "15.7.2",
"pubsub-js": "1.7.0",
"react": "16.9.0",
"react-dom": "16.9.0",
"react-redux": "7.1.1",
"react-router": "5.0.1",
"react-router-dom": "5.0.1",
"react-transition-group": "4.3.0",
"redux": "4.0.4",
"redux-devtools-extension": "2.13.8",
"redux-logger": "3.0.6",
"redux-saga": "1.0.1",
"redux-saga": "1.0.5",
"redux-thunk": "2.3.0",
"reselect": "4.0.0",
"universal-cookie": "3.1.0"
},
"devDependencies": {
"@babel/cli": "7.6.0",
"@babel/core": "7.6.0",
"@babel/plugin-proposal-class-properties": "7.5.5",
"@babel/plugin-proposal-object-rest-spread": "7.5.5",
"@babel/plugin-syntax-dynamic-import": "7.2.0",
"@babel/preset-env": "7.6.0",
"@babel/preset-react": "7.0.0",
"@svgr/webpack": "4.3.2",
"autoprefixer": "9.6.1",
"axios-mock-adapter": "1.16.0",
"babel-cli": "6.26.0",
"babel-eslint": "8.2.6",
"babel-jest": "22.4.4",
"babel-loader": "7.1.5",
"babel-plugin-react-intl": "3.0.1",
"babel-plugin-transform-class-properties": "6.24.1",
"babel-plugin-transform-imports": "1.5.1",
"babel-plugin-transform-object-rest-spread": "6.26.0",
"babel-preset-env": "1.7.0",
"babel-preset-react": "6.24.1",
"babel-eslint": "10.0.3",
"babel-jest": "24.9.0",
"babel-loader": "8.0.6",
"babel-plugin-react-intl": "4.1.16",
"babel-plugin-transform-imports": "2.0.0",
"clean-webpack-plugin": "0.1.19",
"codecov": "3.1.0",
"copy-webpack-plugin": "4.6.0",
"css-loader": "0.28.11",
"enzyme": "3.8.0",
"enzyme-adapter-react-16": "1.9.1",
"css-loader": "^3.2.0",
"cssnano": "^4.1.10",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.14.0",
"es-check": "5.0.0",
"eslint-config-edx": "4.0.4",
"fetch-mock": "6.5.2",
@@ -99,15 +103,15 @@
"husky": "0.14.3",
"identity-obj-proxy": "3.0.0",
"image-webpack-loader": "4.6.0",
"jest": "23.6.0",
"jest": "24.9.0",
"mini-css-extract-plugin": "0.4.5",
"new-relic-source-map-webpack-plugin": "1.2.0",
"node-sass": "4.11.0",
"node-sass": "^4.12.0",
"postcss-loader": "3.0.0",
"postcss-rtl": "1.3.3",
"purgecss-webpack-plugin": "1.5.0",
"react-dev-utils": "5.0.3",
"react-test-renderer": "16.8.6",
"react-dev-utils": "9.0.3",
"react-test-renderer": "16.9.0",
"reactifex": "1.1.1",
"redux-mock-store": "1.5.3",
"sass-loader": "6.0.7",
@@ -137,11 +141,11 @@
"coveragePathIgnorePatterns": [
"/node_modules/",
"src/setupTest.js",
"src/index.js",
"src/index.jsx",
"/tests/"
],
"transformIgnorePatterns": [
"/node_modules/(?!(@edx/paragon)/).*/"
"/node_modules/(?!((@edx/paragon)|(@edx/frontend-base))/).*/"
]
}
}