mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-05 10:56:28 +00:00
d0db9ee429
This change adds staging and production deployment configuration for the VPS setup, including `.env.deploy.example`, `.env.staging`, and updated production environment values. It also introduces a PowerShell deployment script that builds the app, packages the Next.js artifact, uploads it to the server, and reloads PM2. Package scripts were added for staging and production deploys, and the TypeScript config now excludes legacy `.old` files.
96 lines
3.2 KiB
JSON
96 lines
3.2 KiB
JSON
{
|
|
"name": "hats-app",
|
|
"description": "H.I.S Super Apps (smart absence, task management, work permit and leave mangement, etc).",
|
|
"version": "1.1.2",
|
|
"private": true,
|
|
"author": "ichsankurnia",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/ichsankurnia/hats-app.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/ichsankurnia/hats-app/issues"
|
|
},
|
|
"scripts": {
|
|
"dev": "next dev -p 1209",
|
|
"dev:save": "set NODE_TLS_REJECT_UNAUTHORIZED='0' && next dev -p 1209",
|
|
"build": "next build",
|
|
"start": "next start -p 7002",
|
|
"lint": "eslint",
|
|
"install:clean": "git pull origin master && rm -rf node_modules package-lock.json .next && npm install --legacy-peer-deps",
|
|
"build:prod": "git pull origin master && rm -rf .next/ package-lock.json && pm2 stop 6 && npm run build && pm2 restart 6",
|
|
"deploy:staging": "powershell -ExecutionPolicy Bypass -File ./deploy.ps1 -Target staging",
|
|
"deploy:prod": "powershell -ExecutionPolicy Bypass -File ./deploy.ps1 -Target production"
|
|
},
|
|
"dependencies": {
|
|
"@bprogress/next": "^3.2.12",
|
|
"@hookform/resolvers": "^5.2.2",
|
|
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
"@radix-ui/react-avatar": "^1.1.11",
|
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
"@radix-ui/react-icons": "^1.3.2",
|
|
"@radix-ui/react-label": "^2.1.8",
|
|
"@radix-ui/react-popover": "^1.1.15",
|
|
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
"@radix-ui/react-select": "^2.2.6",
|
|
"@radix-ui/react-separator": "^1.1.8",
|
|
"@radix-ui/react-slot": "^1.2.4",
|
|
"@radix-ui/react-switch": "^1.2.6",
|
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
"@tanstack/react-table": "^8.21.3",
|
|
"antd": "^6.1.0",
|
|
"apexcharts": "^5.3.6",
|
|
"axios": "^1.13.2",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"cmdk": "^1.1.1",
|
|
"date-fns": "^4.1.0",
|
|
"dayjs": "^1.11.19",
|
|
"exceljs": "^4.4.0",
|
|
"firebase": "^12.6.0",
|
|
"framer-motion": "^12.23.25",
|
|
"get-orientation": "^1.1.2",
|
|
"heic2any": "^0.0.4",
|
|
"lucide-react": "^1.49.0",
|
|
"motion": "^12.38.0",
|
|
"next": "^16.0.10",
|
|
"next-auth": "^4.24.13",
|
|
"next-themes": "^0.4.6",
|
|
"pdf-lib": "^1.17.1",
|
|
"radix-ui": "^1.4.3",
|
|
"react": "^19.2.3",
|
|
"react-apexcharts": "^1.9.0",
|
|
"react-day-picker": "^9.12.0",
|
|
"react-dom": "^19.2.3",
|
|
"react-dropzone": "^15.0.0",
|
|
"react-easy-crop": "^5.5.6",
|
|
"react-hook-form": "^7.68.0",
|
|
"react-lazy-load-image-component": "^1.6.3",
|
|
"react-range": "^1.10.0",
|
|
"react-signature-canvas": "^1.1.0-alpha.2",
|
|
"react-webcam": "^7.2.0",
|
|
"sonner": "^2.0.7",
|
|
"swr": "^2.3.7",
|
|
"tailwind-merge": "^3.4.0",
|
|
"tailwind-scrollbar-hide": "^4.0.0",
|
|
"virtua": "^0.49.1",
|
|
"yup": "^1.7.1",
|
|
"zod": "^4.1.13"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4",
|
|
"@types/node": "^20",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"@types/react-lazy-load-image-component": "^1.6.5",
|
|
"@types/react-signature-canvas": "^1.0.7",
|
|
"baseline-browser-mapping": "^2.10.0",
|
|
"eslint": "^9",
|
|
"eslint-config-next": "^16.0.10",
|
|
"tailwindcss": "^4",
|
|
"tw-animate-css": "^1.4.0",
|
|
"typescript": "^5"
|
|
}
|
|
}
|