-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
97 lines (97 loc) · 3.17 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
{
"name": "vitesse",
"version": "0.0.0",
"description": "Boilerplate for a modern web stack",
"repository": {
"type": "git",
"url": "https://github.com/jonluca/vitesse-reactssr"
},
"bugs": {
"url": "https://github.com/Simon-He95/vitesse-reactssr/issues"
},
"keywords": [
"vitesse",
"vite",
"react"
],
"author": "Simon He",
"license": "MIT",
"scripts": {
"preinstall": "npx only-allow pnpm",
"postinstall": "simple-git-hooks",
"dev:server": "nodemon --watch server.ts --watch src/server --exec 'ts-node server.ts'",
"dev:client": "pnpm build:client && vite --config vite.config.ts dev",
"build": "rimraf dist && tsc -p tsconfig.prod.json && pnpm build:client && pnpm build:server && pnpm copy-files",
"build:client": "vite build --outDir dist/client --ssrManifest",
"build:server": "vite build --ssr src/client/entry-server.tsx --outDir dist/server",
"test": "vitest",
"test:watch": "vitest --watch",
"coverage": "vitest --coverage",
"typecheck": "tsc --noEmit",
"serve": "pnpm build && cross-env NODE_ENV=production pnpm ts-node ./server",
"serve:local": "vite serve",
"clean": "rimraf dist/",
"copy-files": "copyfiles static/* dist/assets && copyfiles index.html dist && copyfiles -f dist/client/assets/* dist/assets",
"format": "prettier --write --cache .",
"lint": "eslint . --ext .vue,.js,.ts,.jsx,.tsx,.md,.json --max-warnings 0 --cache",
"lint:fix": "pnpm run lint --fix"
},
"dependencies": {
"autoprefixer": "^10.4.8",
"compression": "1.7.4",
"cross-env": "^7.0.3",
"express": "4.18.2",
"nodemon": "^2.0.19",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.3.0",
"serve-static": "^1.15.0",
"ts-node": "^10.9.1"
},
"devDependencies": {
"@iconify-json/carbon": "^1.1.2",
"@unocss/reset": "^0.48.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@types/compression": "1.7.2",
"@types/concurrently": "6.4.0",
"@types/eslint": "8.4.10",
"@types/express": "^4.17.13",
"@types/node": "18.11.18",
"@types/react": "^18.0.18",
"@types/react-dom": "^18.0.6",
"@types/react-router-dom": "^5.3.3",
"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
"@vitejs/plugin-react": "^3.0.0",
"concurrently": "7.3.0",
"copyfiles": "^2.4.1",
"eslint": "^8.23.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-react": "^7.31.6",
"eslint-plugin-react-hooks": "^4.6.0",
"jsdom": "^21.0.0",
"lint-staged": "^13.1.0",
"postcss": "8.4.21",
"prettier": "^2.8.1",
"rimraf": "^3.0.2",
"simple-git-hooks": "^2.8.1",
"tailwindcss": "3.2.4",
"tsx": "^3.12.1",
"typescript": "4.8.2",
"unocss": "^0.47.6",
"vite": "4.0.4",
"vitest": "^0.28.0"
},
"simple-git-hooks": {
"pre-commit": "pnpm exec lint-staged --concurrent false",
"commit-msg": "pnpm exec tsx scripts/verifyCommit.ts $1"
},
"lint-staged": {
"*": [
"prettier --write --cache --ignore-unknown"
],
"*.{vue,js,ts,jsx,tsx,md,json}": "eslint --fix"
}
}