From 15c6d0cad5223fcfe2fc9c9cfae3c5a67c40cca0 Mon Sep 17 00:00:00 2001 From: fred Date: Thu, 30 Oct 2025 14:42:29 -0700 Subject: [PATCH] build script for ci --- .forgejo/workflows/ci.yml | 8 ++++---- backend/package.json | 10 +++++----- frontend/package.json | 17 ++++++++--------- 3 files changed, 17 insertions(+), 18 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index e187173..c7c2564 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -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..0855d3a 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": "npx 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..0605c7d 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": "npx 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": {} + } }