UNPKG

2.53 kBJSONView Raw
1{
2 "name": "hotkeys-js",
3 "description": "A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.",
4 "version": "3.9.4",
5 "main": "index.js",
6 "types": "index.d.ts",
7 "module": "dist/hotkeys.esm.js",
8 "scripts": {
9 "prepare": "npm run build:lib && husky install",
10 "lint": "eslint --ext .js src website",
11 "build:lib": "node scripts/build.js",
12 "build": "npm run build:lib && npm run doc && npm run lint",
13 "watch": "node scripts/watch.js",
14 "pretest": "npm run build",
15 "test": "jest --coverage --detectOpenHandles",
16 "test:watch": "jest --watch",
17 "doc": "kkt build --app-src ./website",
18 "start": "kkt start --app-src ./website"
19 },
20 "files": [
21 "index.d.ts",
22 "dist",
23 "doc"
24 ],
25 "keywords": [
26 "hotkey",
27 "hotkeys",
28 "hotkeys-js",
29 "hotkeysjs",
30 "key",
31 "keys",
32 "keyboard",
33 "shortcuts",
34 "keypress"
35 ],
36 "author": "kenny wong <wowohoo@qq.com>",
37 "license": "MIT",
38 "homepage": "http://jaywcjlove.github.io/hotkeys",
39 "repository": {
40 "type": "git",
41 "url": "https://github.com/jaywcjlove/hotkeys.git"
42 },
43 "jest": {
44 "testURL": "http://localhost/"
45 },
46 "devDependencies": {
47 "@babel/eslint-parser": "~7.17.0",
48 "@kkt/less-modules": "~7.1.2",
49 "@kkt/raw-modules": "~7.1.2",
50 "@kkt/scope-plugin-options": "~7.1.2",
51 "@rollup/plugin-babel": "~5.3.1",
52 "@rollup/plugin-commonjs": "~21.0.3",
53 "@rollup/plugin-node-resolve": "~13.1.3",
54 "@uiw/react-github-corners": "~1.5.14",
55 "@uiw/react-mac-keyboard": "~1.1.4",
56 "@uiw/react-markdown-preview": "~4.0.5",
57 "@uiw/react-shields": "~1.1.2",
58 "@wcj/dark-mode": "~1.0.14",
59 "bannerjs": "~2.1.0",
60 "classnames": "~2.3.1",
61 "colors-cli": "~1.0.28",
62 "eslint": "~8.12.0",
63 "eslint-config-airbnb": "~19.0.4",
64 "eslint-plugin-import": "~2.26.0",
65 "eslint-plugin-jsx-a11y": "~6.5.1",
66 "eslint-plugin-react": "~7.29.4",
67 "husky": "^7.0.0",
68 "jest": "~27.5.1",
69 "kkt": "~7.1.6",
70 "lint-staged": "^12.3.7",
71 "puppeteer": "~13.5.2",
72 "react": "~18.0.0",
73 "react-dom": "~18.0.0",
74 "rimraf": "~3.0.2",
75 "rollup": "~2.70.1",
76 "uglify-js": "~3.15.3",
77 "zlib": "~1.0.5"
78 },
79 "browserslist": {
80 "production": [
81 ">0.2%",
82 "not dead",
83 "not op_mini all"
84 ],
85 "development": [
86 "last 1 chrome version",
87 "last 1 firefox version",
88 "last 1 safari version"
89 ]
90 },
91 "lint-staged": {
92 "*.js": "eslint --ext .js src website"
93 }
94}