From 4b56fc78ec6f1e6423236e35c72b50411aac08c5 Mon Sep 17 00:00:00 2001 From: fred Date: Thu, 30 Oct 2025 14:48:00 -0700 Subject: [PATCH] build script for ci --- .forgejo/workflows/ci.yml | 10 +++++----- backend/package.json | 10 +++++----- frontend/package.json | 17 ++++++++--------- 3 files changed, 18 insertions(+), 19 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index e187173..d39bc96 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -6,7 +6,7 @@ jobs: build: runs-on: ubuntu-latest env: - NODE_ENV: production + NODE_ENV: dev container: image: node:22-bullseye steps: @@ -16,11 +16,11 @@ jobs: - name: Build Frontend working-directory: frontend run: | - npm install - npm run production + npm ci + npm run ci - name: Build Backend working-directory: backend run: | - npm install - npm run production + npm ci + npm run ci diff --git a/backend/package.json b/backend/package.json index 2cd9d5c..ba7527d 100644 --- a/backend/package.json +++ b/backend/package.json @@ -5,7 +5,7 @@ "scripts": { "dev": "nodemon ./src/index.ts", "production": "npx tsc && node ./dist/index.js", - "demo": "tsc && node ./dist/index.js" + "ci": "tsc" }, "keywords": [], "author": "", @@ -18,14 +18,14 @@ "express": "^5.1.0", "knex": "^3.1.0", "pg": "^8.16.3", - "prisma": "^6.14.0", + "prisma": "^6.14.0" + }, + "devDependencies": { "typescript": "^5.9.2", "ts-node": "^10.9.2", "@types/node": "^24.2.1", "@types/cors": "^2.8.19", - "@types/express": "^5.0.3" - }, - "devDependencies": { + "@types/express": "^5.0.3", "nodemon": "^3.1.10" } } diff --git a/frontend/package.json b/frontend/package.json index db1934e..6c0d8e6 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -6,17 +6,15 @@ "scripts": { "dev": "vite --host 0.0.0.0 --port 80", "production": "npx tsc -b && vite build", - "demo": "tsc -b && vite build", - "build": "tsc -b && vite build", - "lint": "eslint .", - "preview": "vite preview" + "ci": "tsc -b && vite build", + "lint": "eslint ." }, "dependencies": { "react": "^19.1.0", "react-dom": "^19.1.0", - "react-router-dom": "^7.6.3", - "typescript": "~5.8.3", - "typescript-eslint": "^8.34.1", + "react-router-dom": "^7.6.3" + }, + "devDependencies": { "@types/node": "^24.2.0", "@eslint/js": "^9.29.0", "@types/react": "^19.1.8", @@ -28,7 +26,8 @@ "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" - }, - "devDependencies": {} + } }