@clip-sub/react-waypoint

v11.1.0
A React component to execute a function whenever you scroll to an element.
react component react-component scroll onscroll scrollspy

build

npm run clean && rollup -c

check-changelog

expr $(git status --porcelain 2>/dev/null| grep "^\s*M.*CHANGELOG.md" | wc -l) >/dev/null || (echo 'Please edit CHANGELOG.md' && exit 1)

check-only-changelog-changed

(expr $(git status --porcelain 2>/dev/null| grep -v "CHANGELOG.md" | wc -l) >/dev/null && echo 'Only CHANGELOG.md may have uncommitted changes' && exit 1) || exit 0

clean

rimraf es cjs

lint

eslint . --ext .js,.jsx

lint:fix

eslint . --ext .js,.jsx --fix

postversion

git commit package.json CHANGELOG.md -m "Version $npm_package_version" && npm run tag && git push && git push --tags && npm publish

prepublish

in-publish && safe-publish-latest && npm run build || not-in-publish

pretest

npm run --silent lint

preversion

npm run check-changelog && npm run check-only-changelog-changed

tag

git tag v$npm_package_version

test

npm run test:browser && npm run test:node

test:node

jest 'test/node/.*.js'

test:browser

karma start --single-run

test:browser:watch

karma start --no-single-run

performance-test:watch

webpack --watch --config webpack.config.performance-test.js
npm i @clip-sub/react-waypoint

Metadata

  • MIT
  • Whatever
  • Brigade Engineering
  • released 5/16/2022

Downloads

Maintainers