react-scroll-sensor
v1.0.2 react-scroll-sensor state-management finite-state-machine
build:commonjs
cross-env NODE_ENV=cjs rollup -c -o lib/index.js
build:es
cross-env BABEL_ENV=es NODE_ENV=es rollup -c -o es/index.js
build:umd
cross-env BABEL_ENV=es NODE_ENV=development rollup -c -o dist/react-scroll-sensor.js
build:umd:min
cross-env BABEL_ENV=es NODE_ENV=production rollup -c -o dist/react-scroll-sensor.min.js
build
npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min
clean
rimraf lib dist es
lint
eslint {__tests__,src}/*.js
watch
npm-watch
pretest
npm run build:commonjs
pretest:watch
npm run build:commonjs
test:watch
cross-env BABEL_ENV=test jest --watchAll
test:only
cross-env BABEL_ENV=test jest
test
cross-env BABEL_ENV=commonjs jest
pretty
prettier --write '{__tests__,src}/*.js'
prebuild
npm run clean
prepublish
npm run pretty && npm run lint && npm run test
postpublish
git push origin master --tags
predeploy
rimraf dist
deploy
parcel build demo/index.html --out-dir dist
npm i [email protected]
Metadata
- MIT
- Whatever
- Bhargav Ponnapalli
- released 2/28/2018