b90b253785
Add GitHub Actions workflow for automatic deployment to GitHub Pages. Includes build and deploy jobs with pnpm setup and caching. Also update package.json with deploy scripts and vite.config.ts with base URL configuration for production.
51 lines
1.2 KiB
JSON
51 lines
1.2 KiB
JSON
{
|
|
"name": "react-template",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"lint": "eslint .",
|
|
"preview": "vite preview",
|
|
"deploy": "pnpm build && gh-pages -d dist",
|
|
"predeploy": "pnpm build"
|
|
},
|
|
"dependencies": {
|
|
"@reduxjs/toolkit": "^2.9.0",
|
|
"@tailwindcss/vite": "^4.1.13",
|
|
"axios": "^1.12.2",
|
|
"moment": "^2.30.1",
|
|
"react": "^19.1.1",
|
|
"react-dom": "^19.1.1",
|
|
"react-redux": "^9.2.0",
|
|
"react-router": "^7.9.1",
|
|
"react-router-dom": "^7.9.1",
|
|
"tailwindcss": "^4.1.13"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.35.0",
|
|
"@types/node": "^20.19.14",
|
|
"@types/react": "^19.1.13",
|
|
"@types/react-dom": "^19.1.9",
|
|
"@vitejs/plugin-react": "^4.7.0",
|
|
"eslint": "^9.35.0",
|
|
"eslint-plugin-react": "^7.37.5",
|
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
"globals": "^16.4.0",
|
|
"prettier": "^3.6.2",
|
|
"typescript": "~5.8.3",
|
|
"typescript-eslint": "^8.43.0",
|
|
"vite": "^6.3.6"
|
|
},
|
|
"pnpm": {
|
|
"ignoredBuiltDependencies": [
|
|
"esbuild"
|
|
],
|
|
"onlyBuiltDependencies": [
|
|
"@tailwindcss/oxide"
|
|
]
|
|
}
|
|
}
|