-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpackage.json
105 lines (105 loc) · 3.73 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
"name": "react-shortcut",
"version": "2.0.9",
"description": "Convenient React component that detects if the given key combination is pressed, and triggers a callback",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"homepage": "https://github.com/devlato/react-shortcut",
"bugs": {
"url": "https://github.com/devlato/react-shortcut/issues"
},
"scripts": {
"format": "prettier --write src .jest",
"lint": "eslint --ext .ts,.tsx,.js,.jsx,.json -c .eslintrc.js .",
"test": "cross-env NODE_ENV=test jest",
"test:ci": "npm run clean:coverage && cross-env NODE_ENV=test jest --coverage",
"clean:build": "rimraf dist",
"clean:coverage": "rimraf coverage",
"clean:storybook": "rimraf docs",
"clean": "npm run clean:build & npm run clean:coverage & npm run clean:storybook && wait",
"build:code": "cross-env NODE_ENV=production rollup -c rollup.config.js",
"build": "npm run clean:build && npm run build:code",
"storybook": "cross-env NODE_ENV=development start-storybook -p 6006 -c .storybook",
"storybook:compile": "cross-env NODE_ENV=production build-storybook -c .storybook -o docs",
"storybook:build": "npm run clean:storybook && npm run storybook:compile",
"pre-push": "npm run lint && npm run test:coverage",
"prepublish": "npm run clean && npm run build"
},
"lint-staged": {
"src/**/*.{ts,tsx,js,jsx,json}": ["eslint -c ./.eslintrc.js --fix", "jest —-bail --color --findRelatedTests"],
"./*.{ts,tsx,js,jsx,json}": ["eslint -c ./.eslintrc.js --fix", "jest —-bail --color --findRelatedTests"]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "npm run lint && npm run test && npm run build"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/devlato/react-shortcut.git"
},
"keywords": ["react", "component", "library", "typescript", "hotkeys", "hotkey", "shortcut", "keyboard"],
"author": "devlato <[email protected]> (https://devlato.com/)",
"license": "MIT",
"files": ["package.json", "README.md", "LICENSE", "dist"],
"devDependencies": {
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.0",
"@babel/preset-react": "^7.9.4",
"@rollup/plugin-node-resolve": "^7.1.1",
"@storybook/addon-actions": "^5.3.17",
"@storybook/addon-knobs": "^5.3.17",
"@storybook/addons": "^5.3.17",
"@storybook/cli": "^5.3.17",
"@storybook/preset-typescript": "^3.0.0",
"@storybook/react": "^5.3.17",
"@types/enzyme": "^3.10.4",
"@types/jest": "^24.0.23",
"@types/mousetrap": "^1.6.3",
"@types/node": "^12.12.17",
"@types/prettier": "^1.19.1",
"@types/react": "^16.9.16",
"@types/react-dom": "^16.9.4",
"@typescript-eslint/eslint-plugin": "^2.12.0",
"@typescript-eslint/parser": "^2.12.0",
"babel-loader": "^8.1.0",
"brotli": "^1.3.2",
"coveralls": "^3.0.11",
"cross-env": "^7.0.2",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2",
"enzyme-to-json": "^3.4.4",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.19.0",
"husky": "^4.2.3",
"jest": "^25.2.3",
"lint-staged": "^10.0.9",
"prettier": "^2.0.2",
"react": "*",
"react-dom": "*",
"rimraf": "^3.0.2",
"rollup": "^2.2.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-gzip": "^2.3.0",
"rollup-plugin-terser": "^5.3.0",
"rollup-plugin-typescript2": "^0.27.0",
"ts-jest": "^25.2.1",
"ts-loader": "^6.2.2",
"ts-node": "^8.8.1",
"typescript": "^3.8.3"
},
"peerDependencies": {
"react": "*",
"react-dom": "*"
},
"engines": {
"node": ">= 8",
"npm": ">= 4"
},
"dependencies": {
"mousetrap": "^1.6.5"
}
}