build script for ci
All checks were successful
/ build (push) Successful in 29s

This commit is contained in:
fred 2025-10-30 14:48:00 -07:00
parent ed6cf7e3d8
commit 4b56fc78ec
3 changed files with 18 additions and 19 deletions

View file

@ -6,7 +6,7 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
NODE_ENV: production NODE_ENV: dev
container: container:
image: node:22-bullseye image: node:22-bullseye
steps: steps:
@ -16,11 +16,11 @@ jobs:
- name: Build Frontend - name: Build Frontend
working-directory: frontend working-directory: frontend
run: | run: |
npm install npm ci
npm run production npm run ci
- name: Build Backend - name: Build Backend
working-directory: backend working-directory: backend
run: | run: |
npm install npm ci
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": "tsc"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",
@ -18,14 +18,14 @@
"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",
},
"devDependencies": {
"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": "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,8 @@
"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": {}
} }