Skip to content

Commit

Permalink
chore(build): npm updates (#930)
Browse files Browse the repository at this point in the history
* build, expand deps check for core packages
* testing, update based on platform webpack
  • Loading branch information
cdcabrera committed May 25, 2022
1 parent 4fba61a commit a1c9316
Show file tree
Hide file tree
Showing 5 changed files with 1,046 additions and 475 deletions.
53 changes: 27 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@
"api:docs": "node ./scripts/openapi.docs.js",
"api:proxy-hosts": "bash ./scripts/proxy.api.sh",
"build": "run-s -l build:pre build:js build:post test:integration",
"build:deps": "bash ./scripts/dependencies.sh --doctor -u --doctorInstall \"yarn\" --doctorTest \"yarn test:deps\" --reject \"@patternfly/*, @redhat-cloud-services/frontend*, victory*\"",
"build:deps-core": "bash ./scripts/dependencies.sh --doctor -u --doctorInstall \"yarn\" --doctorTest \"yarn test:deps\" --filter \"@patternfly/*, @redhat-cloud-services/frontend*, victory*\"",
"build:ephemeral": "run-s -l build:pre build:js build:post test:integration-ephemeral",
"build:js": "export NODE_ENV=production; webpack --config config/webpack.prod.config.js",
"build:post": "bash ./scripts/post.sh",
"build:pre": "bash ./scripts/pre.sh",
"build:deps": "bash ./scripts/dependencies.sh --doctor -u --doctorInstall \"yarn\" --doctorTest \"yarn test:deps\" --reject \"@patternfly/*, @redhat-cloud-services/frontend*, victory*\"",
"build:prod": "run-s build:ephemeral",
"dev:chrome": "bash ./scripts/dev.chrome.sh -b prod-stable",
"release": "standard-version",
Expand All @@ -84,36 +85,36 @@
},
"dependencies": {
"@joi/date": "^2.1.0",
"@patternfly/patternfly": "4.183.1",
"@patternfly/patternfly": "4.192.1",
"@patternfly/react-charts": "6.51.19",
"@patternfly/react-core": "4.198.19",
"@patternfly/react-icons": "4.49.19",
"@patternfly/react-styles": "4.48.19",
"@patternfly/react-table": "4.67.19",
"@patternfly/react-tokens": "4.50.19",
"@redhat-cloud-services/frontend-components": "3.8.3",
"@redhat-cloud-services/frontend-components": "3.8.12",
"@redhat-cloud-services/frontend-components-notifications": "3.2.5",
"@redhat-cloud-services/frontend-components-utilities": "3.2.12",
"@redhat-cloud-services/frontend-components-utilities": "3.2.16",
"axios": "^0.26.1",
"classnames": "^2.3.1",
"i18next": "^21.6.14",
"i18next": "^21.6.16",
"i18next-xhr-backend": "^3.2.2",
"joi": "^17.6.0",
"js-cookie": "^3.0.1",
"locale-code": "^2.0.2",
"lodash": "^4.17.21",
"lru-cache": "^7.7.1",
"lru-cache": "^7.9.0",
"moment": "^2.29.1",
"numbro": "^2.3.6",
"prop-types": "^15.8.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-i18next": "^11.16.2",
"react-i18next": "^11.16.7",
"react-redux": "^7.2.6",
"react-router": "^5.2.1",
"react-router-dom": "^5.3.0",
"react-router": "5.3.1",
"react-router-dom": "5.3.0",
"react-use": "^17.3.2",
"redux": "^4.1.2",
"redux": "^4.2.0",
"redux-logger": "^3.0.6",
"redux-promise-middleware": "^6.1.2",
"redux-thunk": "^2.4.1",
Expand All @@ -122,43 +123,43 @@
"victory-create-container": "36.3.1"
},
"devDependencies": {
"@babel/core": "7.17.8",
"@babel/core": "7.17.10",
"@babel/eslint-parser": "^7.17.0",
"@redhat-cloud-services/frontend-components-config": "4.6.6",
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.6",
"apidoc-mock": "^4.0.2",
"babel-jest": "^27.5.1",
"@redhat-cloud-services/frontend-components-config": "4.6.11",
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
"apidoc-mock": "^4.0.3",
"babel-jest": "^28.0.3",
"babel-preset-react-app": "^10.0.1",
"copy-webpack-plugin": "^10.2.4",
"cspell": "^5.19.3",
"cspell": "^5.20.0",
"dotenv": "^16.0.0",
"dotenv-expand": "^8.0.3",
"dotenv-webpack": "^7.1.0",
"enzyme": "^3.11.0",
"enzyme-to-json": "^3.6.2",
"eslint": "8.11.0",
"eslint": "8.14.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.5.0",
"eslint-config-react-app": "^7.0.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^26.1.3",
"eslint-plugin-jsdoc": "^38.0.6",
"eslint-plugin-jest": "^26.1.5",
"eslint-plugin-jsdoc": "^39.2.9",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-webpack-plugin": "^3.1.1",
"express": "^4.17.3",
"glob": "^7.2.0",
"express": "^4.18.1",
"glob": "^8.0.1",
"jest": "27.5.1",
"jest-resolve": "27.5.1",
"jest-watch-typeahead": "1.0.0",
"jest-resolve": "28.0.3",
"jest-watch-typeahead": "1.1.0",
"moxios": "^0.4.0",
"npm-check-updates": "^12.5.4",
"npm-check-updates": "^12.5.11",
"npm-run-all": "^4.1.5",
"prettier": "^2.6.1",
"prettier": "^2.6.2",
"redux-mock-store": "^1.5.4",
"standard-version": "^9.3.2",
"swagger-ui-express": "^4.3.0",
Expand Down
1 change: 0 additions & 1 deletion tests/__snapshots__/dist.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Array [
"./dist/fed-mods.json",
"./dist/fonts/graph2x.png",
"./dist/fonts/graph4x.png",
"./dist/index.html",
"./dist/js/1014*js",
"./dist/js/1026*js",
"./dist/js/1064*js",
Expand Down
16 changes: 1 addition & 15 deletions tests/__snapshots__/html.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Index.HTML should have a specific html output: html output 1`] = `
"
<!doctype html>
<html lang=\\"en-US\\">
<head>
<meta charset=\\"utf-8\\"/>
<title>Subscriptions
</title>
<esi:include src=\\"*/apps/chrome/snippets/head.html\\"/>
</head>
<body>
<esi:include src=\\"*/apps/chrome/snippets/body.html\\"/>
</body>
</html>"
`;
exports[`Index.HTML should have a specific html output: html output 1`] = `""`;
2 changes: 1 addition & 1 deletion tests/html.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('Index.HTML', () => {
.replace(/"([/a-z0-9]*)\/apps\//gi, '"*/apps/')
.replace(/\/([a-z0-9]+)\.([a-z0-9]+)\.chunk.css"/gi, '/*.chunk.css"')
.replace(/\/([a-z0-9]+)\.([a-z0-9]+)\.chunk.js"/gi, '/*.chunk.js"')
.replace(/\/([a-z]+)\.([a-z0-9]+)\.js"/gi, '/$1.*.js"')
.replace(/\/([a-z-]+)\.([a-z0-9]+)\.js"/gi, '/$1.*.js"')
.replace(/<script>([\d\D])+?<\/script>/gi, '<script>/* filtered */</script>');

expect(replacedFile).toMatchSnapshot('html output');
Expand Down
Loading

0 comments on commit a1c9316

Please sign in to comment.