-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
126 lines (126 loc) · 3.7 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
"name": "@native-router/react",
"version": "1.0.2",
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./dist/types/index.d.ts"
},
"./server": {
"import": "./dist/server.js",
"require": "./dist/server.cjs",
"types": "./dist/types/server.d.ts"
}
},
"keywords": [
"react",
"router",
"react router",
"react-router",
"async",
"tiny",
"data-fetching",
"prefetch",
"preview"
],
"description": "A route close to the native experience for react.",
"files": [
"dist"
],
"scripts": {
"start": "vite",
"start:ssr": "cross-env SSR=true vite",
"build": "vite build && tsc -p tsconfig.production.json && tsc-alias -p tsconfig.production.json",
"commit": "lint-staged && git-cz -n",
"coverage": "c8 report --reporter=text-lcov > ./coverage/coverage.txt",
"lint": "eslint --fix src test demos *.cjs --ext .mjs,.cjs,.js,.jsx,.ts,.tsx",
"doc:gen": "typedoc",
"build:demo": "cross-env BABEL_ENV=development BUILD_DEMO=true vite build",
"deploy": "npm run doc:gen && npm run build:demo && gh-pages -d dist",
"test": "cross-env NODE_ENV=test c8 mocha",
"test:watch": "npm test -- --watch",
"preversion": "npm run build",
"postversion": "npm publish",
"postpublish": "git push --follow-tags && npm run deploy",
"serve": "vite preview"
},
"repository": {
"type": "git",
"url": "https://github.com/native-router/react"
},
"sideEffects": false,
"author": "wmzy",
"license": "MIT",
"bugs": {
"url": "https://github.com/native-router/react/issues"
},
"homepage": "https://github.com/native-router/react",
"engines": {
"node": ">=14"
},
"peerDependencies": {
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
},
"dependencies": {
"@native-router/core": "^1.0.3",
"history": "^5.3.0"
},
"devDependencies": {
"@babel/core": "^7.22.20",
"@babel/preset-env": "^7.22.20",
"@babel/preset-react": "^7.22.15",
"@babel/preset-typescript": "^7.22.15",
"@linaria/babel-preset": "^5.0.2",
"@linaria/core": "^5.0.1",
"@linaria/vite": "^5.0.2",
"@testing-library/react": "^14.0.0",
"@types/mocha": "^10.0.1",
"@types/node": "^20.6.5",
"@types/react": "^18.2.22",
"@types/react-dom": "^18.2.7",
"@types/sinon": "^10.0.16",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"@vitejs/plugin-react": "^4.1.0",
"babel-plugin-module-resolver": "^5.0.0",
"c8": "^8.0.1",
"commitizen": "^4.3.0",
"core-js": "^3.32.2",
"coveralls": "^3.1.1",
"cross-env": "^7.0.3",
"eslint": "^8.50.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-compat": "^4.2.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-mocha": "^10.1.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"gh-pages": "^6.0.0",
"global-jsdom": "^9.1.0",
"husky": "^8.0.3",
"jsdom": "^22.1.0",
"lint-staged": "^14.0.1",
"mocha": "^10.2.0",
"prettier": "^3.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"should": "^13.2.3",
"should-sinon": "0.0.6",
"sinon": "^16.0.0",
"terser": "^5.20.0",
"tsc-alias": "^1.8.8",
"typedoc": "^0.25.1",
"typedoc-plugin-mark-react-functional-components": "^0.2.2",
"typedoc-plugin-missing-exports": "^2.1.0",
"typescript": "^5.2.2",
"vite": "^4.4.9"
}
}