stickybits

v3.1.1
Stickybits is a lightweight alternative to `position: sticky` polyfills
stick fixed sticky position navigation nav dom simple javascript and 7 more...

build

npm run test:unit && npm run build:es && npm run build:jquery-dev && npm run build:jquery && npm run build:standard-dev && npm run build:standard && npm run build:umbrella

build:es

rollup --config configs/rollup.config.es.js

build:jquery-dev

rollup --config configs/rollup.config.jquery-dev.js

build:jquery

rollup --config configs/rollup.config.jquery.js

build:standard-dev

rollup --config configs/rollup.config.standard-dev.js

build:standard

rollup --config configs/rollup.config.standard.js

build:umbrella

rollup --config configs/rollup.config.umbrella.js

lint

eslint . --fix

chore:delete-branch

if git show-ref --quiet refs/heads/chore-changelog; then git branch -D chore-changelog; fi

chore:branch

git checkout -b chore-changelog

chore:changelog

conventional-changelog -p eslint -i CHANGELOG.md -s

chore:pr

git add . && git commit -m '[chore] updates changelog' --no-verify && git push origin chore-changelog -f

chore

npm run chore:delete-branch && npm run chore:branch && npm run chore:changelog && npm run chore:pr

pre-commit-msg

Echo 'Running pre-commit checks...' && exit 0

postpublish

git tag $npm_package_version && git push origin --tags && npm run chore

release

npm run lint && npm run build && npm test && npm run report:coverage

report:coverage

nyc report --reporter=lcov > coverage.lcov && codecov

test:es-check

es-check es5 dist/stickybits.min.js dist/stickybits.js dist/jquery.stickybits.js dist/jquery.stickybits.min.js dist/umbrella.stickybits.js dist/umbrella.stickybits.min.js

test:unit

nyc jest --coverage

test:acceptance

node ./scripts/acceptance.js --coverage

test

npm run test:unit && npm run test:acceptance

Metadata

  • MIT
  • Whatever
  • Jeff Wainwright
  • released 2/26/2018

Downloads

Maintainers