1 | {
|
2 | "name": "react-use-control",
|
3 | "version": "0.1.0",
|
4 | "description": "react-use-control",
|
5 | "main": "dist/react-use-control.cjs.js",
|
6 | "module": "dist/react-use-control.esm.js",
|
7 | "browser": "dist/react-use-control.esm.js",
|
8 | "unpkg": "dist/react-use-control.umd.min.js",
|
9 | "jsdelivr": "dist/react-use-control.umd.min.js",
|
10 | "files": [
|
11 | "dist"
|
12 | ],
|
13 | "sideEffects": false,
|
14 | "scripts": {
|
15 | "storybook": "start-storybook",
|
16 | "storybook:publish": "build-storybook && npm run storybook:upload && npm run storybook:clean",
|
17 | "storybook:build": "build-storybook",
|
18 | "storybook:upload": "gh-pages -d storybook-static --git \"$(which git)\"",
|
19 | "storybook:clean": "rimraf storybook-static",
|
20 | "commit": "lint-staged && git-cz -n",
|
21 | "build": "rollup -c",
|
22 | "prepublishOnly": "rimraf dist && npm run build",
|
23 | "coverage": "nyc report --reporter=text-lcov | coveralls",
|
24 | "lint": "eslint --fix src test *.js",
|
25 | "test": "cross-env NODE_ENV=test nyc mocha -r @babel/register --recursive --exclude mock --exclude fixtures -r should -r should-sinon",
|
26 | "start": "npm test -- --watch"
|
27 | },
|
28 | "repository": {
|
29 | "type": "git",
|
30 | "url": "git+https://github.com/wmzy/react-use-control.git"
|
31 | },
|
32 | "keywords": [
|
33 | "react",
|
34 | "control",
|
35 | "hooks"
|
36 | ],
|
37 | "author": "wmzy",
|
38 | "license": "MIT",
|
39 | "bugs": {
|
40 | "url": "https://github.com/wmzy/react-use-control/issues"
|
41 | },
|
42 | "homepage": "https://github.com/wmzy/react-use-control",
|
43 | "engines": {
|
44 | "node": ">=8.3.0"
|
45 | },
|
46 | "devDependencies": {
|
47 | "@babel/core": "^7.10.5",
|
48 | "@babel/preset-env": "^7.10.4",
|
49 | "@babel/register": "^7.10.5",
|
50 | "@rollup/plugin-replace": "^2.3.3",
|
51 | "@storybook/addon-actions": "^5.3.19",
|
52 | "@storybook/addon-knobs": "^5.3.19",
|
53 | "@storybook/addon-notes": "^5.3.19",
|
54 | "@storybook/addon-options": "^5.3.19",
|
55 | "@storybook/addon-storysource": "^5.3.19",
|
56 | "@storybook/react": "^5.3.19",
|
57 | "@testing-library/react": "^10.4.8",
|
58 | "@testing-library/react-hooks": "^3.4.1",
|
59 | "babel-eslint": "^10.1.0",
|
60 | "babel-loader": "^8.1.0",
|
61 | "commitizen": "^4.1.2",
|
62 | "coveralls": "^3.1.0",
|
63 | "cross-env": "^7.0.2",
|
64 | "cz-conventional-changelog": "^3.2.0",
|
65 | "eslint": "^7.5.0",
|
66 | "eslint-config-airbnb-base": "^14.2.0",
|
67 | "eslint-config-prettier": "^6.11.0",
|
68 | "eslint-plugin-builtin-compat": "0.0.2",
|
69 | "eslint-plugin-import": "^2.22.0",
|
70 | "eslint-plugin-mocha": "^7.0.1",
|
71 | "eslint-plugin-prettier": "^3.1.4",
|
72 | "gh-pages": "^3.1.0",
|
73 | "husky": "^4.2.5",
|
74 | "lint-staged": "^10.2.11",
|
75 | "mocha": "^8.0.1",
|
76 | "nyc": "^15.1.0",
|
77 | "prettier": "^2.0.5",
|
78 | "react": "^16.13.1",
|
79 | "react-dom": "^16.13.1",
|
80 | "react-test-renderer": "^16.13.1",
|
81 | "rimraf": "^3.0.2",
|
82 | "rollup": "^2.23.0",
|
83 | "rollup-plugin-babel": "^4.4.0",
|
84 | "rollup-plugin-terser": "^6.1.0",
|
85 | "should": "^13.2.3",
|
86 | "should-sinon": "0.0.6",
|
87 | "sinon": "^9.0.2"
|
88 | },
|
89 | "lint-staged": {
|
90 | "*.js": [
|
91 | "cross-env NODE_ENV=production eslint --fix",
|
92 | "git add"
|
93 | ]
|
94 | },
|
95 | "config": {
|
96 | "commitizen": {
|
97 | "path": "./node_modules/cz-conventional-changelog"
|
98 | }
|
99 | },
|
100 | "husky": {
|
101 | "hooks": {
|
102 | "pre-commit": "lint-staged"
|
103 | }
|
104 | },
|
105 | "peerDependencies": {
|
106 | "react": ">=16.8.0",
|
107 | "react-dom": ">=16.8.0"
|
108 | }
|
109 | }
|