UNPKG

@codingheads/sticky-header

Version:

A library that allows you to create sticky headers. It uses `position: sticky` and IntersectionObserver

89 lines (88 loc) 3.01 kB
{ "name": "@codingheads/sticky-header", "version": "1.0.2", "description": "A library that allows you to create sticky headers. It uses `position: sticky` and IntersectionObserver", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "module:src": "src/index.js", "umd:main": "dist/umd/index.js", "types": "dist/types/index.d.js", "authors": [ { "name": "Codingheads", "email": "dev@codingheads.com", "url": "https://codingheads.com" }, { "name": "Bogdan Barbu", "email": "bogdan.b@codingheads.com" } ], "license": "GPL-3", "keywords": [ "sticky", "header", "scroll", "intersectionObserver" ], "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "watch": "webpack --progress --watch --color", "format": "prettier --write \"src/**/**.{js,ts}\" \"**/*.md\"", "format:check": "prettier --list-different \"src/**/**.{js,ts}\" \"**/*.md\"", "pretest": "npm run build", "build": "npm run build:cjs && npm run build:esm && npm run build:umd && npm run build:types", "build:cjs": "node tools/cleanup cjs && tsc -p config/tsconfig.cjs.json && babel ./dist/cjs -d ./dist/cjs", "build:esm": "node tools/cleanup esm && tsc -p config/tsconfig.esm.json && babel ./dist/esm -d ./dist/esm --config-file ./config/babel.config.esm.js", "build:umd": "node tools/cleanup umd && webpack --config config/webpack.config.js", "build:types": "node tools/cleanup types && tsc -p config/tsconfig.types.json", "clean": "node tools/cleanup", "package": "npm run build && npm pack", "addscope": "node tools/packagejson name @codingheads/lazyload", "postversion": "git push --follow-tags" }, "publishConfig": { "access": "public" }, "directories": { "lib": "dist" }, "files": [ "dist", "src", "utils" ], "repository": { "type": "git", "url": "git+https://github.com/Codingheads-Developer/sticky-header.git" }, "dependencies": {}, "devDependencies": { "@babel/cli": "^7.14.5", "@babel/core": "^7.14.6", "@babel/helpers": "^7.14.5", "@babel/plugin-proposal-decorators": "^7.14.5", "@babel/plugin-syntax-dynamic-import": "^7.8.3", "@babel/plugin-transform-async-to-generator": "^7.14.5", "@babel/plugin-transform-react-jsx": "^7.14.5", "@babel/plugin-transform-runtime": "^7.14.5", "@babel/preset-env": "^7.14.5", "@babel/preset-typescript": "^7.14.5", "@babel/register": "^7.14.5", "autoprefixer": "^10.2.6", "babel-loader": "^8.2.2", "cross-env": "^7.0.3", "mini-css-extract-plugin": "^1.6.0", "postcss": "^8.3.5", "postcss-loader": "^6.1.1", "prettier": "^2.3.2", "typescript": "^4.3.5", "webpack": "^5.12.0", "webpack-cli": "^4.3.1", "webpack-notifier": "^1.13.0" }, "bugs": { "url": "https://github.com/Codingheads-Developer/sticky-header/issues" }, "homepage": "https://github.com/Codingheads-Developer/sticky-header" }