build script for ci
Some checks failed
/ build (push) Failing after 8s

This commit is contained in:
fred 2025-10-30 14:39:02 -07:00
parent ed6cf7e3d8
commit e4a0161414
3 changed files with 37 additions and 14 deletions

View file

@ -17,10 +17,10 @@ jobs:
working-directory: frontend working-directory: frontend
run: | run: |
npm install npm install
npm run production npm run ci
- name: Build Backend - name: Build Backend
working-directory: backend working-directory: backend
run: | run: |
npm install npm install
npm run production npm run ci

View file

@ -5,7 +5,7 @@
"scripts": { "scripts": {
"dev": "nodemon ./src/index.ts", "dev": "nodemon ./src/index.ts",
"production": "npx tsc && node ./dist/index.js", "production": "npx tsc && node ./dist/index.js",
"demo": "tsc && node ./dist/index.js" "ci": "npx tsc"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",
@ -18,14 +18,22 @@
"express": "^5.1.0", "express": "^5.1.0",
"knex": "^3.1.0", "knex": "^3.1.0",
"pg": "^8.16.3", "pg": "^8.16.3",
"prisma": "^6.14.0", "prisma": "^6.14.0"
},
"devDependencies": {
"typescript": "^5.9.2", "typescript": "^5.9.2",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"@types/node": "^24.2.1", "@types/node": "^24.2.1",
"@types/cors": "^2.8.19", "@types/cors": "^2.8.19",
"@types/express": "^5.0.3" "@types/express": "^5.0.3",
"nodemon": "^3.1.10"
}, },
"devDependencies": { "ciDependencies": {
"typescript": "^5.9.2",
"ts-node": "^10.9.2",
"@types/node": "^24.2.1",
"@types/cors": "^2.8.19",
"@types/express": "^5.0.3",
"nodemon": "^3.1.10" "nodemon": "^3.1.10"
} }
} }

View file

@ -6,17 +6,15 @@
"scripts": { "scripts": {
"dev": "vite --host 0.0.0.0 --port 80", "dev": "vite --host 0.0.0.0 --port 80",
"production": "npx tsc -b && vite build", "production": "npx tsc -b && vite build",
"demo": "tsc -b && vite build", "ci": "npx tsc -b && vite build",
"build": "tsc -b && vite build", "lint": "eslint ."
"lint": "eslint .",
"preview": "vite preview"
}, },
"dependencies": { "dependencies": {
"react": "^19.1.0", "react": "^19.1.0",
"react-dom": "^19.1.0", "react-dom": "^19.1.0",
"react-router-dom": "^7.6.3", "react-router-dom": "^7.6.3"
"typescript": "~5.8.3", },
"typescript-eslint": "^8.34.1", "devDependencies": {
"@types/node": "^24.2.0", "@types/node": "^24.2.0",
"@eslint/js": "^9.29.0", "@eslint/js": "^9.29.0",
"@types/react": "^19.1.8", "@types/react": "^19.1.8",
@ -28,7 +26,24 @@
"eslint-plugin-react-refresh": "^0.4.20", "eslint-plugin-react-refresh": "^0.4.20",
"globals": "^16.2.0", "globals": "^16.2.0",
"tailwindcss": "^3.4.17", "tailwindcss": "^3.4.17",
"typescript": "~5.8.3",
"typescript-eslint": "^8.34.1",
"vite": "^7.0.0" "vite": "^7.0.0"
}, },
"devDependencies": {} "ciDependencies": {
"@types/node": "^24.2.0",
"@eslint/js": "^9.29.0",
"@types/react": "^19.1.8",
"@types/react-dom": "^19.1.6",
"@vitejs/plugin-react": "^4.5.2",
"autoprefixer": "^10.4.21",
"eslint": "^9.29.0",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.20",
"globals": "^16.2.0",
"tailwindcss": "^3.4.17",
"typescript": "~5.8.3",
"typescript-eslint": "^8.34.1",
"vite": "^7.0.0"
}
} }