forked from molefrog/wouter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
101 lines (101 loc) · 2.61 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
{
"name": "wouter",
"version": "2.4.0",
"description": "A minimalistic routing for React and Preact. Nothing extra, just HOOKS.",
"keywords": [
"react",
"preact",
"router",
"tiny",
"routing",
"hooks",
"useLocation"
],
"files": [
"*.js",
"*.d.ts",
"preact",
"cjs"
],
"module": "index.js",
"main": "cjs/index.js",
"types": "index.d.ts",
"scripts": {
"test": "jest --verbose --coverage",
"size": "size-limit",
"lint-types": "dtslint types --onlyTestTsNext && dtslint types/preact --onlyTestTsNext",
"pack-react": "copyfiles -f types/*.d.ts .",
"pack-preact": "copyfiles -f {index,matcher,use-location,static-location}.js types/{matcher,use-location,static-location}.d.ts types/preact/index.d.ts preact/",
"bundle-cjs": "rollup -e react,preact,preact/hooks -f cjs --exports named --preserveModules -d cjs *.js preact/*.js",
"bundle-cjs-preact": "rollup -e preact,preact/hooks -f cjs --exports named --preserveModules -d preact/cjs preact/*.js",
"prepublishOnly": "npm run pack-react && npm run pack-preact && npm run bundle-cjs && npm run bundle-cjs-preact"
},
"author": "Alexey Taktarov <[email protected]>",
"license": "ISC",
"peerDependencies": {
"react": "^16.8.0"
},
"repository": "molefrog/wouter",
"size-limit": [
{
"path": "index.js",
"limit": "1273 B"
},
{
"path": "use-location.js",
"limit": "336 B"
}
],
"eslintConfig": {
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"node": true,
"jest": true
},
"rules": {
"no-unused-vars": [
"error",
{
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_"
}
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
},
"plugins": [
"react-hooks"
]
},
"jest": {
"transform": {
"\\.js$": "jest-esm-jsx-transform"
}
},
"devDependencies": {
"@size-limit/preset-small-lib": "^2.1.1",
"@testing-library/react": "^9.1.3",
"@testing-library/react-hooks": "^2.0.1",
"@types/react": "^16.8.23",
"copyfiles": "^2.1.0",
"dtslint": "^0.9.0",
"eslint": "^6.2.1",
"eslint-plugin-react-hooks": "^1.7.0",
"jest": "^24.9.0",
"jest-esm-jsx-transform": "^1.0.0",
"preact": "^10.0.0",
"react": "^16.9.0",
"react-dom": "^16.9.0",
"react-test-renderer": "^16.9.0",
"rollup": "^1.19.4",
"size-limit": "^2.1.1"
}
}