UNPKG

idle-tracker

Version:

Tiny pure Javascript library to track browser inactivity

79 lines (78 loc) 2.67 kB
{ "name": "idle-tracker", "version": "0.1.3", "description": "Tiny pure Javascript library to track browser inactivity", "author": "Roderick Hsiao <roderickhsiao@gmail.com>", "repository": { "type": "git", "url": "https://github.com/roderickhsiao/idle-tracker.git" }, "keywords": [ "browser idle", "browser inactive", "idle tracker", "idle", "inactive", "inactivity", "timer" ], "scripts": { "bundlesize": "bundlesize", "prebuild": "rm -rf dist", "build": "yarn build:cjs && yarn build:es && yarn build:umd && yarn build:next && yarn tsc --build tsconfig.publish.json", "build-gh-pages": "yarn build:cjs && yarn build:es && yarn build:umd && yarn build:next && yarn tsc --build tsconfig.json", "build:cjs": "NODE_ENV=production babel --extensions .ts src/* -d dist/cjs", "build:es": "cross-env NODE_ENV=production BABEL_ENV=es babel --extensions .ts src/* -d dist/es", "build:umd": "cross-env NODE_ENV=production BABEL_ENV=umd babel --extensions .ts src/* -d dist/umd", "build:next": "cross-env NODE_ENV=production BABEL_ENV=next babel --extensions .ts src/* -d dist/next", "lint": "eslint src/*", "postpublish": "bash .scripts/publish_example.sh", "prepublish": "yarn build", "start": "http-server . &", "pretest": "yarn start", "test": "yarn run build && mocha test/setup.js --recursive test --timeout 10000", "stop-test-server": "pkill -f http-server" }, "main": "dist/cjs/index.js", "module": "dist/es/index.js", "types": "dist/index.d.ts", "devDependencies": { "@babel/cli": "^7.2.3", "@babel/core": "^7.2.2", "@babel/preset-env": "^7.3.1", "@babel/preset-typescript": "^7.16.7", "@typescript-eslint/eslint-plugin": "^5.17.0", "@typescript-eslint/parser": "^5.17.0", "babel-eslint": "^10.0.0", "bundlesize": "^0.18.0", "chai": "^4.2.0", "cross-env": "^7.0.0", "eslint": "^8.0.0", "eslint-config-airbnb": "^19.0.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-airbnb-typescript": "^17.0.0", "eslint-config-airbnb-typescript-base": "^4.0.0", "eslint-plugin-babel": "^5.3.0", "eslint-plugin-import": "^2.16.0", "eslint-plugin-jsx-a11y": "^6.7.0", "eslint-plugin-react": "^7.31.11", "eslint-plugin-react-hooks": "^4.6.0", "http-server": "^14.0.0", "ip": "^1.1.5", "lodash": "^4.17.11", "mocha": "^10.0.0", "pre-commit": "^1.0.0", "puppeteer": "^19.0.0", "typescript": "^4.6.3" }, "license": "MIT", "precommit": [ "lint" ], "bundlesize": [ { "path": "./dist/*/*.js", "maxSize": "2 kB" } ] }