UNPKG

react-sticky-state

Version:

React StickyState Component makes native position:sticky statefull and polyfills the missing sticky browser feature

74 lines (73 loc) 2.97 kB
{ "name": "react-sticky-state", "version": "2.1.9", "description": "React StickyState Component makes native position:sticky statefull and polyfills the missing sticky browser feature", "main": "lib/react-sticky-state.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build": "cp src/sticky-state.css dist/ && npm run dist:js && npm run dist:js:min && npm run build:lib", "build:js": "browserify --fast -e src/react-sticky-state.js -d --standalone ReactStickyState -t babelify -t browserify-shim | derequire | exorcist dist/react-sticky-state.min.js.map > dist/react-sticky-state.min.js", "dist:js": "BABEL_ENV=production NODE_ENV=production browserify -e src/react-sticky-state.js --standalone ReactStickyState -t babelify -t browserify-shim | derequire > dist/react-sticky-state.min.js", "dist:js:min": "uglifyjs -cmv dist/react-sticky-state.min.js -o dist/react-sticky-state.min.js", "dist": "cp src/sticky-state.css dist/ && npm run dist:js && npm run dist:js:min && npm run build:lib", "start": "run-p watch:js server", "build:lib": "BABEL_ENV=production babel src -d lib", "watch:js": "watchify -d --poll=100 --fast --standalone ReactStickyState -e src/react-sticky-state.js -t babelify -t browserify-shim -o 'exorcist dist/react-sticky-state.min.js.map > dist/react-sticky-state.min.js' -v", "server": "browser-sync start --no-ghost-mode --server --directory --files 'examples/**/**, dist/*.js' --startPath examples/index.html" }, "repository": { "type": "git", "url": "git+https://github.com/soenkekluth/react-sticky-state.git" }, "keywords": [ "react", "component", "sticky", "position:sticky", "position", "state" ], "browserify-shim": { "react": "global:React" }, "author": "Sönke Kluth <soenke.kluth@gmail.com> (http://soenkekluth.com/)", "license": "MIT", "bugs": { "url": "https://github.com/soenkekluth/react-sticky-state/issues" }, "files": [ "src", "lib", "dist" ], "homepage": "https://github.com/soenkekluth/react-sticky-state#readme", "devDependencies": { "babel-cli": "^6.18.0", "babel-core": "^6.21.0", "babel-plugin-add-module-exports": "^0.2.1", "babel-plugin-transform-class-properties": "^6.19.0", "babel-plugin-transform-runtime": "^6.15.0", "babel-preset-es2015": "^6.18.0", "babel-preset-react": "^6.16.0", "babel-preset-stage-0": "^6.16.0", "babel-runtime": "^6.20.0", "babelify": "^7.3.0", "browser-sync": "^2.18.5", "browserify": "^14.3.0", "browserify-shim": "^3.8.12", "cross-env": "^5.0.0", "derequire": "^2.0.6", "exorcist": "^0.4.0", "npm-run-all": "^4.0.2", "react": "^15.4.1", "react-dom": "^15.4.1", "uglifyjs": "^2.4.10", "watchify": "^3.8.0" }, "dependencies": { "classnames": "2.2.5", "object-assign": "^4.1.1", "prop-types": "^15.5.8", "scrollfeatures": "^1.8.4" } }