/
package.json
80 lines (80 loc) · 2.59 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
{
"name": "create-react-ssx",
"version": "0.0.0",
"private": true,
"scripts": {
"dev": "cross-env SERVER_DIR=scripts BUILD=ssr node scripts/build",
"build:ssr": "cross-env COPY_DIR=pages BUILD_DIR=dist/dog SERVER_DIR=scripts NODE_ENV=production BUILD=ssr node scripts/build",
"build:ssg": "cross-env SERVER_DIR=scripts NODE_ENV=production BUILD=ssg node scripts/build",
"build:server": "cross-env SERVER_DIR=scripts NODE_ENV=production BUILD=server node scripts/build",
"build:static": "cross-env SERVER_DIR=scripts NODE_ENV=production BUILD=static node scripts/build",
"serve": "node dist/server",
"test": "jest --watch",
"prepare": "husky install"
},
"dependencies": {
"dotenv": "^10.0.0",
"fast-glob": "^3.2.7",
"fastify": "^3.20.2",
"fastify-compress": "^3.6.0",
"fastify-static": "^4.2.3",
"fs-extra": "^10.0.0",
"history": "^5.1.0",
"middie": "^5.3.0",
"node-fetch": "^2.6.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-router-dom": "^5.2.0"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^12.0.0",
"@testing-library/react-hooks": "^7.0.2",
"@testing-library/user-event": "^13.2.1",
"@types/fs-extra": "^9.0.12",
"@types/jest": "^27.0.1",
"@types/node": "^16.7.1",
"@types/node-fetch": "^2.5.12",
"@types/react": "^17.0.19",
"@types/react-dom": "^17.0.9",
"@types/react-router-dom": "^5.1.8",
"@typescript-eslint/eslint-plugin": "^4.29.3",
"@typescript-eslint/parser": "^4.29.3",
"@vercel/ncc": "^0.32.0",
"@vitejs/plugin-legacy": "^1.5.1",
"@vitejs/plugin-react-refresh": "^1.3.1",
"autoprefixer": "^10.3.3",
"cross-env": "^7.0.3",
"esbuild": "^0.12.24",
"esbuild-jest": "^0.5.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-react": "^7.24.0",
"husky": "^7.0.2",
"jest": "^27.1.0",
"lint-staged": "^11.1.2",
"postcss": "^8.3.6",
"prettier": "^2.3.2",
"tailwindcss": "^3.0.23",
"tslib": "^2.3.1",
"typescript": "^4.6.3",
"vite": "^2.4.4",
"vite-plugin-imagemin": "^0.4.5",
"vite-react-jsx": "^1.1.2"
},
"prettier": {
"trailingComma": "all",
"tabWidth": 2,
"semi": true,
"printWidth": 120,
"singleQuote": false,
"jsxBracketSameLine": true,
"useTabs": false
},
"lint-staged": {
"pages/**/*": "prettier --write --ignore-unknown",
"scripts/**/*": "prettier --write --ignore-unknown",
"pages/**/*.{tsx,ts}": "eslint --cache --fix",
"scripts/**/*.{tsx,ts}": "eslint --cache --fix"
}
}