Skip to content

Commit

Permalink
Remove unused packages from list of dependencies (plotly#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-Andre-Rivet committed Jan 29, 2019
1 parent 79f9e8d commit 2b54284
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"author": "Chris Parmer <[email protected]>",
"license": "MIT",
"dependencies": {
"cross-env": "^5.2.0",
"moment": "^2.20.1",
"prop-types": "^15.6.0",
"ramda": "^0.24.1",
Expand Down Expand Up @@ -64,15 +63,12 @@
"eslint-plugin-react": "^7.11.1",
"exec-sh": "^0.3.0",
"jest": "^23.6.0",
"lodash": "^4.17.11",
"npm-run-all": "^4.1.5",
"prettier": "^1.14.2",
"react": "^16.6.1",
"react-dom": "^16.6.1",
"regenerator-runtime": "^0.12.1",
"style-loader": "^0.23.1",
"styled-jsx": "^3.1.1",
"watch": "^1.0.2",
"webpack": "^4.25.1",
"webpack-cli": "^3.1.2",
"webpack-serve": "^2.0.2"
Expand Down
51 changes: 15 additions & 36 deletions packages/dash-core-components/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions packages/dash-core-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"author": "Chris Parmer <[email protected]>",
"license": "MIT",
"dependencies": {
"cross-env": "^5.2.0",
"moment": "^2.20.1",
"prop-types": "^15.6.0",
"ramda": "^0.24.1",
Expand Down Expand Up @@ -64,15 +63,12 @@
"eslint-plugin-react": "^7.11.1",
"exec-sh": "^0.3.0",
"jest": "^23.6.0",
"lodash": "^4.17.11",
"npm-run-all": "^4.1.5",
"prettier": "^1.14.2",
"react": "^16.6.1",
"react-dom": "^16.6.1",
"regenerator-runtime": "^0.12.1",
"style-loader": "^0.23.1",
"styled-jsx": "^3.1.1",
"watch": "^1.0.2",
"webpack": "^4.25.1",
"webpack-cli": "^3.1.2",
"webpack-serve": "^2.0.2"
Expand Down
8 changes: 4 additions & 4 deletions packages/dash-core-components/test/unit/Interval.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Interval from '../../src/components/Interval.react.js';
import React, {cloneElement, Component} from 'react';
import PropTypes from 'prop-types';
import omit from 'lodash/omit';
import {omit} from 'ramda';
import {mount, render} from 'enzyme';

test('Interval render', () => {
Expand Down Expand Up @@ -34,7 +34,7 @@ class IntervalWrapper extends Component {

render() {
return cloneElement(this.props.children, {
...omit(this.props, ['children']),
...omit(['children'], this.props),
n_intervals: this.state.n_intervals,
setProps: this.setProps,
});
Expand Down Expand Up @@ -130,7 +130,7 @@ describe('Delayed setProps provisioning', () => {

render() {
return cloneElement(this.props.children, {
...omit(this.props, ['children']),
...omit(['children'], this.props),
setProps: this.state.setPropsProvided
? this.props.setProps
: null,
Expand Down Expand Up @@ -226,7 +226,7 @@ describe('Usage of disabled = true', () => {

render() {
return cloneElement(this.props.children, {
...omit(this.props, ['children']),
...omit(['children'], this.props),
disabled: this.state.disabled,
setProps: this.setProps,
});
Expand Down

0 comments on commit 2b54284

Please sign in to comment.