generated from fabien-ml/react-ts-vite-template
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpackage.json
147 lines (147 loc) · 7.32 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"name": "invokation",
"version": "0.1.0",
"author": {
"name": "xieQin",
"url": "https://github.com/xieQin/invokation"
},
"types": "index.d.ts",
"scripts": {
"build": "cross-env DEBUG=vite-plugin-pwa:* BASE_URL=/ SOURCE_MAP=true RELOAD_SW=true SW=true vite build",
"commit": "git-cz",
"data": "node --loader ts-node/esm ./src/data/handle.ts",
"data:assets": "node --loader ts-node/esm ./src/data/assets.ts",
"dev": "rimraf dev-dist && cross-env DEBUG=vite-plugin-pwa:* SW_DEV=true RELOAD_SW=true vite --force",
"dev-claims": "rimraf dev-dist && cross-env DEBUG=vite-plugin-pwa:* SW_DEV=true CLAIMS=true SW=true vite --force",
"dev-claims-destroy": "rimraf dev-dist && cross-env DEBUG=vite-plugin-pwa:* SW_DESTROY=true SW_DEV=true CLAIMS=true SW=true vite --force",
"dev-destroy": "rimraf dev-dist && cross-env DEBUG=vite-plugin-pwa:* SW_DESTROY=true SW_DEV=true vite --force",
"format": "prettier . --write --ignore-path .gitignore && git update-index --again",
"lint": "eslint . --ext .ts,.tsx --fix --ignore-path .gitignore",
"prepare": "husky install",
"run-build": "cross-env DEBUG=vite-plugin-pwa:* BASE_URL=/ SOURCE_MAP=true vite build",
"run-build-claims": "cross-env DEBUG=vite-plugin-pwa:* BASE_URL=/ SOURCE_MAP=true CLAIMS=true vite build",
"run-build-claims-destroy": "cross-env DEBUG=vite-plugin-pwa:* BASE_URL=/ SOURCE_MAP=true SW_DESTROY=true CLAIMS=true vite build",
"run-build-destroy": "cross-env DEBUG=vite-plugin-pwa:* BASE_URL=/ SOURCE_MAP=true SW_DESTROY=true vite build",
"run-build-reloadsw": "cross-env DEBUG=vite-plugin-pwa:* BASE_URL=/ SOURCE_MAP=true RELOAD_SW=true vite build",
"run-build-reloadsw-claims": "cross-env DEBUG=vite-plugin-pwa:* BASE_URL=/ SOURCE_MAP=true CLAIMS=true RELOAD_SW=true vite build",
"run-build-reloadsw-claims-destroy": "cross-env DEBUG=vite-plugin-pwa:* BASE_URL=/ SOURCE_MAP=true SW_DESTROY=true CLAIMS=true RELOAD_SW=true vite build",
"run-build-reloadsw-destroy": "cross-env DEBUG=vite-plugin-pwa:* BASE_URL=/ SOURCE_MAP=true SW_DESTROY=true RELOAD_SW=true vite build",
"run-build-sw": "rimraf dist && cross-env DEBUG=vite-plugin-pwa:* BASE_URL=/ SOURCE_MAP=true SW=true vite build",
"run-build-sw-claims": "cross-env DEBUG=vite-plugin-pwa:* BASE_URL=/ SOURCE_MAP=true CLAIMS=true SW=true vite build",
"run-build-sw-claims-destroy": "cross-env DEBUG=vite-plugin-pwa:* BASE_URL=/ SOURCE_MAP=true SW_DESTROY=true CLAIMS=true SW=true vite build",
"run-build-sw-claims-reloadsw": "cross-env DEBUG=vite-plugin-pwa:* BASE_URL=/ SOURCE_MAP=true CLAIMS=true RELOAD_SW=true SW=true vite build",
"run-build-sw-destroy": "rimraf dist && cross-env DEBUG=vite-plugin-pwa:* BASE_URL=/ SOURCE_MAP=true SW_DESTROY=true SW=true vite build",
"run-build-sw-reloadsw": "cross-env DEBUG=vite-plugin-pwa:* BASE_URL=/ SOURCE_MAP=true RELOAD_SW=true SW=true vite build",
"run-build-sw-reloadsw-claims-destroy": "cross-env DEBUG=vite-plugin-pwa:* BASE_URL=/ SOURCE_MAP=true SW_DESTROY=true CLAIMS=true RELOAD_SW=true SW=true vite build",
"run-build-sw-reloadsw-destroy": "cross-env DEBUG=vite-plugin-pwa:* BASE_URL=/ SOURCE_MAP=true SW_DESTROY=true RELOAD_SW=true SW=true vite build",
"serve": "serve dist",
"start": "npm run run-build && npm run serve",
"start-claims": "npm run run-build-claims && npm run serve",
"start-claims-destroy": "npm run run-build-claims-destroy && npm run serve",
"start-claims-reloadsw": "npm run run-build-reloadsw-claims && npm run serve",
"start-claims-reloadsw-destroy": "npm run run-build-reloadsw-claims-destroy && npm run serve",
"start-destroy": "npm run run-build-destroy && npm run serve",
"start-reloadsw": "npm run run-build-reloadsw && npm run serve",
"start-reloadsw-destroy": "npm run run-build-reloadsw-destroy && npm run serve",
"start-sw": "npm run run-build-sw && npm run serve",
"start-sw-claims": "npm run run-build-sw-claims && npm run serve",
"start-sw-claims-destroy": "npm run run-build-sw-claims-destroy && npm run serve",
"start-sw-claims-reloadsw": "npm run run-build-sw-claims-reloadsw && npm run serve",
"start-sw-claims-reloadsw-destroy": "npm run run-build-sw-reloadsw-claims-destroy && npm run serve",
"start-sw-destroy": "npm run run-build-sw-destroy && npm run serve",
"start-sw-reloadsw": "npm run run-build-sw-reloadsw && npm run serve",
"start-sw-reloadsw-destroy": "npm run run-build-sw-reloadsw-destroy && npm run serve",
"test:e2e": "start-server-and-test serve http://127.0.0.1:3000/ 'cypress open'",
"test:e2e:ci": "start-server-and-test serve http://127.0.0.1:3000/ 'cypress run'",
"test:unit": "jest --watch",
"test:unit:ci": "jest",
"test:unit:coverage": "jest --silent --watchAll=false --coverage",
"typecheck": "tsc --noEmit"
},
"lint-staged": {
"*.{css,md,json}": [
"prettier --write"
],
"*.ts?(x)": [
"eslint",
"prettier --write"
],
"package.json": "npx sort-package-json"
},
"config": {
"commitizen": {
"path": "@commitlint/cz-commitlint"
}
},
"dependencies": {
"i18next": "^22.4.9",
"i18next-browser-languagedetector": "^7.0.1",
"is-mobile": "^3.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^12.1.4",
"react-query": "^3.39.3",
"react-router-dom": "^6.6.2",
"use-indexeddb": "^2.0.1",
"vconsole": "^3.15.0",
"zustand": "^4.3.1"
},
"devDependencies": {
"@commitlint/cli": "^17.0.2",
"@commitlint/config-conventional": "^17.0.2",
"@commitlint/cz-commitlint": "^17.0.0",
"@cypress/vite-dev-server": "^3.0.0",
"@rollup/plugin-replace": "^5.0.1",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^14.2.1",
"@types/jest": "^28.1.3",
"@types/node": "^18.11.18",
"@types/react": "^18.0.14",
"@types/react-dom": "^18.0.5",
"@types/testing-library__user-event": "^4.2.0",
"@typescript-eslint/eslint-plugin": "^5.29.0",
"@typescript-eslint/parser": "^5.29.0",
"@vitejs/plugin-legacy": "^1.8.2",
"@vitejs/plugin-react": "^1.3.2",
"@vitejs/plugin-react-refresh": "^1.3.6",
"commitizen": "^4.2.4",
"cross-env": "^7.0.3",
"cypress": "^10.2.0",
"eslint": "^8.18.0",
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-typescript": "^2.7.1",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.5.3",
"eslint-plugin-jest-dom": "^4.0.2",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"eslint-plugin-testing-library": "^5.5.1",
"https-localhost": "^4.7.1",
"husky": "^8.0.1",
"identity-obj-proxy": "^3.0.0",
"jest": "^28.1.1",
"jest-environment-jsdom": "^28.1.1",
"lint-staged": "^13.0.2",
"prettier": "^2.7.1",
"rimraf": "^3.0.2",
"sort-package-json": "^1.57.0",
"start-server-and-test": "^1.14.0",
"ts-jest": "^28.0.5",
"typescript": "^4.7.4",
"vite": "^2.9.12",
"vite-plugin-pwa": "^0.12.8",
"workbox-core": "^6.5.4",
"workbox-precaching": "^6.5.4",
"workbox-routing": "^6.5.4",
"workbox-window": "^6.5.4"
},
"engines": {
"node": ">=14.18.1",
"npm": ">=6.14.15"
}
}