87 lines
2.1 KiB
JSON
87 lines
2.1 KiB
JSON
{
|
|
"name": "tinykeys",
|
|
"version": "3.0.0",
|
|
"description": "A tiny (~650 B) & modern library for keybindings.",
|
|
"author": "Jamie Kyle <me@thejameskyle.com>",
|
|
"license": "MIT",
|
|
"repository": "jamiebuilds/tinykeys",
|
|
"source": "src/tinykeys.ts",
|
|
"main": "dist/tinykeys.js",
|
|
"module": "dist/tinykeys.module.js",
|
|
"unpkg": "dist/tinykeys.umd.js",
|
|
"types": "dist/tinykeys.d.ts",
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/tinykeys.module.js",
|
|
"require": "./dist/tinykeys.js"
|
|
}
|
|
},
|
|
"keywords": [
|
|
"key",
|
|
"keys",
|
|
"bindings",
|
|
"hot",
|
|
"hotkeys",
|
|
"a11y",
|
|
"accessibility",
|
|
"keyboard",
|
|
"navigation",
|
|
"event",
|
|
"handler",
|
|
"react",
|
|
"vue",
|
|
"angular",
|
|
"ember",
|
|
"mousetrap",
|
|
"shortcuts"
|
|
],
|
|
"scripts": {
|
|
"check": "npm run -s typecheck && npm run -s lint && npm run -s check:format",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "TS_NODE_PROJECT=./tsconfig.test.json nyc --reporter=lcov --reporter=text-summary ava",
|
|
"lint": "eslint '**'",
|
|
"format": "prettier --write '**'",
|
|
"check:format": "prettier --check '**'",
|
|
"build": "rm -rf dist && microbundle --inline none",
|
|
"build:example": "rm -rf example-dist && parcel build example/index.html -d example-dist --public-url ./",
|
|
"start": "rm -rf example-dist && parcel example/index.html -d example-dist",
|
|
"precommit": "lint-staged",
|
|
"prepublishOnly": "npm run -s build"
|
|
},
|
|
"devDependencies": {
|
|
"@types/canvas-confetti": "^1.6.4",
|
|
"@typescript-eslint/eslint-plugin": "^4.0.0",
|
|
"@typescript-eslint/parser": "^3.7.1",
|
|
"ava": "^3.11.0",
|
|
"canvas-confetti": "^1.9.3",
|
|
"eslint": "^7.5.0",
|
|
"eslint-plugin-ava": "^12.0.0",
|
|
"husky": "^6.0.0",
|
|
"lint-staged": "^11.0.0",
|
|
"microbundle": "^0.13.0",
|
|
"nyc": "^15.1.0",
|
|
"parcel": "^1.12.4",
|
|
"prettier": "^2.0.5",
|
|
"ts-node": "^9.0.0",
|
|
"typescript": "^4.0.2"
|
|
},
|
|
"lint-staged": {
|
|
"*": [
|
|
"prettier --write",
|
|
"git add"
|
|
]
|
|
},
|
|
"ava": {
|
|
"extensions": [
|
|
"ts",
|
|
"tsx"
|
|
],
|
|
"require": [
|
|
"ts-node/register"
|
|
]
|
|
}
|
|
}
|