-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
package.json
98 lines (98 loc) · 3.04 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
{
"name": "react-cool-portal",
"version": "1.2.0",
"description": "React hook for Portals, which renders modals, dropdowns, tooltips etc. to <body> or else.",
"license": "MIT",
"homepage": "https://react-cool-portal.netlify.app",
"repository": "https://github.com/wellyshen/react-cool-portal",
"bugs": "https://github.com/wellyshen/react-cool-portal/issues",
"keywords": [
"react",
"hook",
"react-hook",
"portal-hook",
"use",
"use-portal",
"portal",
"modal",
"dialog",
"dropdown",
"tooltip",
"popover",
"loading-bar",
"status-bar",
"toast",
"notification",
"lightbox",
"typescript"
],
"author": "Welly Shen <[email protected]> (https://github.com/wellyshen)",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"link-pkg": "yarn build:dev && npm link app/node_modules/react && yarn link",
"start": "yarn clean:dist && yarn build:dev -w",
"lint": "run-s lint:*",
"lint:code": "eslint --fix . --ext .js,.ts,.tsx",
"lint:type": "tsc",
"lint:format": "prettier -w . -u --loglevel silent",
"test": "jest",
"test:watch": "yarn test --watch",
"test:cov": "yarn clean:cov && yarn test --coverage",
"build:dev": "yarn clean:dist && rollup -c",
"build:prod": "yarn clean:dist && yarn clean:size && rollup -c --environment BUILD:production",
"build:demo": "cd app && yarn && yarn build",
"preversion": "run-s lint test build:prod",
"postversion": "git push --follow-tags --no-verify && npm publish && yarn clean:dist && yarn clean:size",
"clean:dist": "rimraf dist",
"clean:size": "rimraf .size-snapshot.json",
"clean:cov": "rimraf coverage",
"clean": "run-p clean:*",
"prepare": "husky install"
},
"lint-staged": {
"*.{js,ts,tsx}": "eslint --fix",
"**/*": "prettier --write --ignore-unknown"
},
"devDependencies": {
"@babel/core": "^7.15.8",
"@babel/preset-env": "^7.15.8",
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.15.0",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-node-resolve": "^13.0.6",
"@rollup/plugin-replace": "^3.0.0",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^12.1.2",
"@testing-library/react-hooks": "^7.0.2",
"@types/jest": "^27.0.2",
"@types/react": "^17.0.31",
"@types/react-dom": "^17.0.10",
"eslint": "^7.2.0",
"eslint-config-welly": "^1.11.8",
"husky": "^7.0.4",
"jest": "^27.3.1",
"lint-staged": "^11.2.3",
"npm-run-all": "^4.1.5",
"prettier": "^2.4.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-test-renderer": "^17.0.2",
"rimraf": "^3.0.2",
"rollup": "^2.58.0",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-size-snapshot": "^0.12.0",
"rollup-plugin-terser": "^7.0.2",
"ts-jest": "^27.0.7",
"typescript": "^4.4.4"
},
"peerDependencies": {
"react": ">= 16.8.0",
"react-dom": ">= 16.8.0"
}
}