UNPKG

react-stickynode

Version:

A performant and comprehensive React sticky component

105 lines (104 loc) 3.23 kB
{ "name": "react-stickynode", "version": "5.0.2", "description": "A performant and comprehensive React sticky component", "main": "./dist/cjs/Sticky.js", "module": "./dist/es/Sticky.js", "scripts": { "build": "npm run clean && npm run build:commonjs && npm run build:es", "build:commonjs": "babel --env-name commonjs src -d dist/cjs", "build:es": "babel --env-name es src -d dist/es", "build:babel": "babel tests/functional --out-dir tests/functional/dist/", "build:copy": "cp tests/functional/*.html tests/functional/dist/", "build:css": "atomizer -o tests/functional/dist/atomic.css ./tests/functional/dist/*-functional.js", "build:webpack": "webpack", "clean": "rm -rf dist", "format": "prettier --write .", "format:check": "prettier --check .", "func": "wdio", "func:build": "rm -rf tests/functional/dist && npm run build:babel && npm run build:css && npm run build:copy && npm run build:webpack", "func:local": "npm run func:build && wdio", "lint": "eslint . --fix && npm run format:check", "prepublish": "npm run build", "prestart": "npm run prefunc", "test": "jest --coverage tests/unit" }, "repository": { "type": "git", "url": "https://github.com/yahoo/react-stickynode" }, "keywords": [ "Sticky", "React" ], "author": { "name": "Hank Hsiao", "email": "hankxiao@yahoo-inc.com" }, "contributors": [ { "name": "Steve Carlson", "email": "yasteve@yahoo-inc.com" } ], "engines": { "node": ">=16", "npm": ">=8.4" }, "dependencies": { "classnames": "^2.0.0", "prop-types": "^15.6.0", "shallowequal": "^1.0.0", "subscribe-ui-event": "^3.0.0" }, "devDependencies": { "@babel/cli": "^7.8.4", "@babel/core": "^7.9.6", "@babel/preset-env": "^7.9.6", "@babel/preset-react": "^7.9.4", "@babel/register": "^7.9.0", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.1.0", "@wdio/cli": "^9.4.1", "@wdio/local-runner": "^9.4.1", "@wdio/mocha-framework": "^9.2.8", "@wdio/sauce-service": "^9.4.1", "@wdio/spec-reporter": "^9.2.14", "@wdio/static-server-service": "^9.2.2", "atomizer": "^3.9.1", "babel-jest": "^29.0.0", "babel-plugin-add-module-exports": "^1.0.4", "chromedriver": "^133.0.1", "core-js": "^3.39.0", "eslint": "^9.0.0", "eslint-plugin-react": "^7.37.1", "gh-pages": "^6.0.0", "globals": "^15.10.0", "jest": "^29.0.0", "jest-environment-jsdom": "^29.0.0", "mocha": "^11.0.1", "pre-commit": "^1.0.0", "prettier": "^3.4.2", "react": "^19.0.0", "react-dom": "^19.0.0", "react-test-renderer": "^19.0.0", "wdio-chromedriver-service": "^8.0.0", "webpack": "^5.41.1", "webpack-cli": "^6.0.1", "webpack-dev-server": "^5.0.4" }, "peerDependencies": { "react": "^0.14.2 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^0.14.2 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "precommit": [ "lint", "test" ], "license": "BSD-3-Clause", "browserslist": "> 0.25%, not dead", "prettier": { "singleQuote": true, "tabWidth": 4 } }