Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!lib/**
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "A React higher order component that will debounce the rendering of your React components",
"main": "lib/index.js",
"scripts": {
"prepublish": "webpack",
"prepublishOnly": "rm -rf lib && babel src -d lib --copy-files",
"test": "cd e2e; CI=true npm test; cd .."
},
"keywords": [
Expand All @@ -17,15 +17,17 @@
],
"author": "Olivier Scherrer <[email protected]>",
"license": "MIT",
"dependencies": {},
"dependencies": {
"lodash": "^4.17.4",
"react": "^15.6.1"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-core": "^6.25.0",
"babel-loader": "^7.0.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"lodash.debounce": "^4.0.8",
"webpack": "^2.6.1"
"babel-preset-stage-0": "^6.24.1"
},
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component } from 'react';
import debounce from 'lodash.debounce';
import { debounce } from 'lodash';

module.exports = function debounceRender(ComponentToDebounce, ...debounceArgs) {
return class DebouncedContainer extends Component {
Expand Down Expand Up @@ -28,4 +28,4 @@ module.exports = function debounceRender(ComponentToDebounce, ...debounceArgs) {
return <ComponentToDebounce { ...this.state } />;
}
}
};
};
24 changes: 0 additions & 24 deletions webpack.config.js

This file was deleted.