react-window-decorators

v1.0.5
Two decorators (higher order components) that inject 'window' scroll position, dimensions, orientation and breakpoint to your component's props.
react

build-docs

rm -rf ./docs && NODE_ENV="production" webpack

build

rm -rf ./lib && NODE_ENV="production" babel ./src --out-dir ./lib

build-all

npm run build && npm run build-docs

lint

eslint ./src/js ./webpack.config.js -f table --ext .js --ext .jsx || true

preview

rm -rf ./dist && NODE_ENV="production" webpack-dev-server

publish-to-npm

npm run build && npm publish

postpublish

PACKAGE_VERSION=$(cat package.json | grep \"version\" | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]') && git tag v$PACKAGE_VERSION && git push --tags

start

webpack-dev-server

test

echo "Error: no test specified" && exit 1

Metadata

  • MIT
  • Whatever
  • Stanko
  • released 12/17/2018

Downloads

Maintainers