|
1 | 1 | {
|
2 | 2 | "name": "vite-typescript-ssr-react",
|
3 | 3 | "version": "1.0.1",
|
| 4 | + "type": "module", |
4 | 5 | "description": "Boilerplate for a modern web stack",
|
5 | 6 | "repository": {
|
6 | 7 | "type": "git",
|
|
9 | 10 | "author": "JonLuca DeCaro",
|
10 | 11 | "license": "MIT",
|
11 | 12 | "scripts": {
|
12 |
| - "dev:server": "nodemon --watch server.ts --watch src/server --exec 'ts-node server.ts'", |
| 13 | + "dev:server": "tsx server.ts", |
13 | 14 | "dev:client": "yarn build:client && vite --config vite.config.ts dev",
|
14 |
| - "build": "rimraf dist && tsc -p tsconfig.prod.json && yarn build:client && yarn build:server && yarn copy-files", |
| 15 | + "build": "rimraf dist && tsc -p tsconfig.json && yarn build:client && yarn build:server && yarn copy-files", |
15 | 16 | "build:client": "vite build --outDir dist/client --ssrManifest",
|
16 | 17 | "build:server": "vite build --ssr src/client/entry-server.tsx --outDir dist/server",
|
17 | 18 | "test": "vitest",
|
18 | 19 | "test:watch": "vitest --watch",
|
19 | 20 | "coverage": "vitest --coverage",
|
20 | 21 | "typecheck": "tsc --noEmit",
|
21 |
| - "serve": "yarn build && cross-env NODE_ENV=production yarn ts-node ./server", |
| 22 | + "serve": "yarn build && cross-env NODE_ENV=production node ./dist/server", |
22 | 23 | "serve:local": "vite serve",
|
23 | 24 | "clean": "rimraf dist/",
|
24 |
| - "copy-files": "copyfiles static/* dist/assets && copyfiles index.html dist && copyfiles -f dist/client/assets/* dist/assets", |
| 25 | + "copy-files": "copyfiles \"public/**/*\" dist && copyfiles -u 2 \"dist/client/**/*\" dist && copyfiles -u 2 \"dist/client/assets/**/*\" dist/public", |
25 | 26 | "format": "prettier --write ."
|
26 | 27 | },
|
27 | 28 | "dependencies": {
|
28 |
| - "autoprefixer": "^10.4.14", |
| 29 | + "autoprefixer": "^10.4.16", |
29 | 30 | "compression": "1.7.4",
|
30 | 31 | "cross-env": "^7.0.3",
|
31 | 32 | "express": "4.18.2",
|
32 |
| - "nodemon": "^2.0.22", |
33 | 33 | "react": "^18.2.0",
|
34 | 34 | "react-dom": "^18.2.0",
|
35 |
| - "react-router-dom": "^6.10.0", |
| 35 | + "react-router-dom": "^6.16.0", |
36 | 36 | "serve-static": "^1.15.0",
|
37 |
| - "ts-node": "^10.9.1" |
| 37 | + "tsx": "^3.13.0" |
38 | 38 | },
|
39 | 39 | "devDependencies": {
|
40 |
| - "@testing-library/jest-dom": "^5.16.5", |
| 40 | + "@testing-library/jest-dom": "^6.1.3", |
41 | 41 | "@testing-library/react": "^14.0.0",
|
42 |
| - "@types/compression": "1.7.2", |
| 42 | + "@types/compression": "1.7.3", |
43 | 43 | "@types/concurrently": "6.4.0",
|
44 |
| - "@types/eslint": "8.37.0", |
45 |
| - "@types/express": "^4.17.17", |
46 |
| - "@types/node": "18.15.12", |
47 |
| - "@types/react": "^18.0.37", |
48 |
| - "@types/react-dom": "^18.0.11", |
| 44 | + "@types/eslint": "8.44.3", |
| 45 | + "@types/express": "^4.17.18", |
| 46 | + "@types/node": "20.8.2", |
| 47 | + "@types/react": "^18.2.24", |
| 48 | + "@types/react-dom": "^18.2.8", |
49 | 49 | "@types/react-router-dom": "^5.3.3",
|
50 |
| - "@typescript-eslint/eslint-plugin": "^5.59.0", |
51 |
| - "@typescript-eslint/parser": "^5.59.0", |
52 |
| - "@vitejs/plugin-react": "^4.0.0", |
53 |
| - "concurrently": "8.0.1", |
| 50 | + "@typescript-eslint/eslint-plugin": "^6.7.4", |
| 51 | + "@typescript-eslint/parser": "^6.7.4", |
| 52 | + "@vitejs/plugin-react": "^4.1.0", |
| 53 | + "concurrently": "8.2.1", |
54 | 54 | "copyfiles": "^2.4.1",
|
55 |
| - "eslint": "^8.38.0", |
56 |
| - "eslint-config-prettier": "^8.8.0", |
57 |
| - "eslint-config-standard": "^17.0.0", |
58 |
| - "eslint-plugin-react": "^7.32.2", |
| 55 | + "eslint": "^8.50.0", |
| 56 | + "eslint-config-prettier": "^9.0.0", |
| 57 | + "eslint-config-standard": "^17.1.0", |
| 58 | + "eslint-plugin-react": "^7.33.2", |
59 | 59 | "eslint-plugin-react-hooks": "^4.6.0",
|
60 |
| - "jsdom": "^21.1.1", |
61 |
| - "postcss": "8.4.23", |
62 |
| - "prettier": "^2.8.7", |
63 |
| - "rimraf": "^5.0.0", |
64 |
| - "tailwindcss": "3.3.1", |
65 |
| - "typescript": "5.0.4", |
66 |
| - "vite": "4.3.0", |
67 |
| - "vitest": "^0.30.1" |
| 60 | + "jsdom": "^22.1.0", |
| 61 | + "postcss": "8.4.31", |
| 62 | + "prettier": "^3.0.3", |
| 63 | + "rimraf": "^5.0.5", |
| 64 | + "tailwindcss": "3.3.3", |
| 65 | + "typescript": "5.2.2", |
| 66 | + "vite": "4.4.10", |
| 67 | + "vitest": "^0.34.6" |
68 | 68 | }
|
69 | 69 | }
|
0 commit comments