Skip to content

Remove unused dependencies #248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 14 commits into from
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@

- Updated dependencies
- Migrated to GitHub actions
- Removed unused dependencies (`css-loader`,`file-loader`,`html-webpack-plugin`,`postcss-loader`,`sass-loader`,`style-loader`)
- Upgraded `memoize-one` dependency and remove no longer maintained `@types/memoize-one`
- Bump up `jest-puppeteer-docker` to `1.4.2`
- Sorted package.json using `npx sort-package-json` command
- Fixed `cellRenderer` passed key in `AccordionTableCard`
- Add `UNSAFE_` prefix for deprecated lifecycle hooks
- Added `UNSAFE_` prefix for deprecated lifecycle hooks

## 1.5.2

Expand Down
Binary file modified integration/__image_snapshots__/AccordionTable_13-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified integration/__image_snapshots__/Anchor_3-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified integration/__image_snapshots__/Breadcrumbs_3-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified integration/__image_snapshots__/Flyout_11-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified integration/__image_snapshots__/Form_5-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified integration/__image_snapshots__/Highlight_3-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified integration/__image_snapshots__/Highlight_6-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified integration/__image_snapshots__/RadioButtonGroup_1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified integration/__image_snapshots__/RadioButtonGroup_11-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified integration/__image_snapshots__/RadioButtonGroup_5-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified integration/__image_snapshots__/RadioButtonGroup_7-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified integration/__image_snapshots__/RadioButtonGroup_9-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified integration/__image_snapshots__/RadioButton_1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified integration/__image_snapshots__/RadioButton_11-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified integration/__image_snapshots__/RadioButton_13-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified integration/__image_snapshots__/RadioButton_3-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified integration/__image_snapshots__/RadioButton_7-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified integration/__image_snapshots__/RadioButton_9-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified integration/__image_snapshots__/Tag_3-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
402 changes: 200 additions & 202 deletions package-lock.json

Large diffs are not rendered by default.

90 changes: 42 additions & 48 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,6 @@
"name": "precise-ui",
"version": "1.6.0",
"description": "Precise UI React component library powered by Styled Components.",
"main": "dist/es6",
"typings": "dist/es6",
"scripts": {
"start": "styleguidist server",
"serve": "pushstate-server -d styleguide -p 6060",
"serve:test": "pushstate-server -d integration/styleguide -p 6065",
"deploy": "gh-pages -d styleguide",
"lint": "tslint -c tslint.json 'src/**/*.{ts,tsx}' --project tsconfig.json",
"test": "npm run lint && npm run test:unit",
"test:visual": "PUPPETEER_CHROMIUM_REVISION=736695 jest -c integration/jest.config.js --noStackTrace --runInBand",
"test:visual:update": "npm run test:visual -- -u",
"test:unit": "cross-env NODE_ENV=test jest",
"test:watch": "npm run test:unit -- --watch",
"prettier": "prettier --config prettier.config.js --write 'src/**/*.{ts,tsx}'",
"build": "rimraf dist && npm run build:bundle && npm run build:es5 && npm run build:es6",
"build:bundle": "cross-env NODE_ENV=production webpack -p",
"build:es5": "build-with-transform-jsx -t es5 --outDir dist/es5 --declaration --inlineSourceMap --inlineSources --config ./tsconfig.json",
"build:es6": "build-with-transform-jsx -t es6 -m es6 --outDir dist/es6 --declaration --inlineSourceMap --inlineSources --config ./tsconfig.json",
"build:demo": "cross-env NODE_ENV=production styleguidist build",
"build:demo:test": "cross-env NODE_ENV=test styleguidist build",
"webpack:analyzer": "npm run build:bundle -- --config ./tools/bundle-analyzer.js",
"icongen": "node tools/convert-icons.js"
},
"keywords": [
"react",
"ui library",
Expand All @@ -35,23 +12,44 @@
"zeiss",
"ux"
],
"engines": {
"node": ">=10.0.0"
},
"author": "ZEISS Digital Innovation Partners",
"license": "MIT",
"author": "ZEISS Digital Innovation Partners",
"main": "dist/es6",
"typings": "dist/es6",
"scripts": {
"build": "rimraf dist && npm run build:bundle && npm run build:es5 && npm run build:es6",
"build:bundle": "cross-env NODE_ENV=production webpack -p",
"build:demo": "cross-env NODE_ENV=production styleguidist build",
"build:demo:test": "cross-env NODE_ENV=test styleguidist build",
"build:es5": "build-with-transform-jsx -t es5 --outDir dist/es5 --declaration --inlineSourceMap --inlineSources --config ./tsconfig.json",
"build:es6": "build-with-transform-jsx -t es6 -m es6 --outDir dist/es6 --declaration --inlineSourceMap --inlineSources --config ./tsconfig.json",
"deploy": "gh-pages -d styleguide",
"icongen": "node tools/convert-icons.js",
"lint": "tslint -c tslint.json 'src/**/*.{ts,tsx}' --project tsconfig.json",
"prepush": "npm run test & npm run build",
"prettier": "prettier --config prettier.config.js --write 'src/**/*.{ts,tsx}'",
"serve": "pushstate-server -d styleguide -p 6060",
"serve:test": "pushstate-server -d integration/styleguide -p 6065",
"start": "styleguidist server",
"test": "npm run lint && npm run test:unit",
"test:unit": "cross-env NODE_ENV=test jest",
"test:visual": "jest -c integration/jest.config.js --noStackTrace --runInBand",
"test:visual:update": "npm run test:visual -- -u",
"test:watch": "npm run test:unit -- --watch",
"webpack:analyzer": "npm run build:bundle -- --config ./tools/bundle-analyzer.js"
},
"husky": {
"hooks": {
"pre-push": "npm run test & npm run build"
}
},
"dependencies": {
"memoize-one": "^5.0.0",
"react-datepicker": "^2.8.0",
"@types/react-datepicker": "^2.8.0",
"date-fns": "^2.3.0",
"memoize-one": "^5.1.0",
"react-datepicker": "^2.8.0",
"react-onclickoutside": "^6.7.1",
"typescript-plugin-inner-jsx": "^0.1.9",
"date-fns": "^2.3.0"
},
"peerDependencies": {
"react": "^16.8.0",
"react-dom": "^16.8",
"styled-components": "^4.x"
"typescript-plugin-inner-jsx": "^0.1.9"
},
"devDependencies": {
"@babel/core": "^7.8.4",
Expand All @@ -67,7 +65,6 @@
"@types/jest": "^24.0.9",
"@types/jest-environment-puppeteer": "^4.0.0",
"@types/jest-image-snapshot": "^2.8.0",
"@types/memoize-one": "^4.1.0",
"@types/puppeteer": "^1.12.1",
"@types/react": "^16.7.18",
"@types/react-dom": "^16.0.11",
Expand All @@ -80,23 +77,19 @@
"babel-loader": "^8.0.6",
"circular-dependency-plugin": "^5.0.2",
"cross-env": "^5.0.5",
"css-loader": "^1.0.1",
"enzyme": "^3.1.0",
"enzyme-adapter-react-16": "^1.0.1",
"enzyme-to-json": "^3.3.5",
"file-loader": "^2.0.0",
"gh-pages": "^3.2.0",
"html-webpack-plugin": "^3.2.0",
"husky": "^1.3.1",
"jest": "^24.1.0",
"jest-environment-node": "^24.8.0",
"jest-enzyme": "^7.0.1",
"jest-image-snapshot": "^2.8.1",
"jest-puppeteer": "^4.0.0",
"jest-puppeteer-docker": "^1.2.0",
"jest-puppeteer-docker": "^1.4.2",
"jest-styled-components": "^6.3.1",
"material-design-icons": "^3.0.1",
"postcss-loader": "^3.0.0",
"prettier": "^1.15.3",
"puppeteer": "^1.13.0",
"pushstate-server": "^3.0.1",
Expand All @@ -108,9 +101,7 @@
"react-styleguidist": "^8.0.6",
"react-test-renderer": "^16.7.0",
"rimraf": "^2.6.3",
"sass-loader": "^7.1.0",
"source-map-loader": "^0.2.4",
"style-loader": "^0.23.1",
"styled-components": "^4.1.3",
"svg-react-loader": "^0.4.6",
"ts-jest": "^24.0.0",
Expand All @@ -124,9 +115,12 @@
"webpack-cli": "^3.2.1",
"webpack-dev-server": "^3.11.2"
},
"husky": {
"hooks": {
"pre-push": "npm run test & npm run build"
}
"peerDependencies": {
"react": "^16.8.0",
"react-dom": "^16.8",
"styled-components": "^4.x"
},
"engines": {
"node": ">=10.0.0"
}
}