UNPKG

huntjs

Version:

Minimal library to observe nodes entering and leaving the viewport

77 lines (76 loc) 1.77 kB
{ "name": "huntjs", "version": "5.0.0", "description": "Minimal library to observe nodes entering and leaving the viewport", "main": "dist/hunt.js", "browser": "dist/hunt.umd.js", "module": "dist/hunt.esm.js", "scripts": { "format": "prettier ./**/*.js --write", "test": "ava --verbose", "prebuild": "npm test", "start": "microbundle watch -i ./src/index.js --name=Hunt", "build": "microbundle -i ./src/index.js --name=Hunt --external none", "release": "travis-deploy-once 'semantic-release'" }, "files": [ "dist", "README.md", "LICENSE" ], "repository": { "type": "git", "url": "git+https://github.com/jeremenichelli/hunt.git" }, "keywords": [ "hunt", "scroll", "intersection", "observer", "viewport", "dom", "element" ], "author": "Jeremias Menichelli", "license": "MIT", "bugs": { "url": "https://github.com/jeremenichelli/hunt/issues" }, "homepage": "https://github.com/jeremenichelli/hunt#readme", "devDependencies": { "@commitlint/cli": "^7.6.1", "@commitlint/config-conventional": "^7.6.0", "ava": "^2.0.0", "esm": "^3.2.25", "husky": "^2.3.0", "lint-staged": "^8.1.7", "lodash.clone": "^4.5.0", "microbundle": "^0.11.0", "prettier": "^1.17.1", "semantic-release": "^15.9.9", "sinon": "^7.3.2", "travis-deploy-once": "^5.0.3" }, "ava": { "require": [ "esm" ] }, "lint-staged": { "./**/*.js": [ "prettier --write", "git add" ] }, "commitlint": { "extends": [ "@commitlint/config-conventional" ] }, "husky": { "hooks": { "pre-commit": "lint-staged && yarn test", "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" } } }