test ci
Some checks failed
/ build (push) Has been cancelled

This commit is contained in:
fred 2025-10-30 14:27:53 -07:00
parent bc926b9bba
commit ed6cf7e3d8
4 changed files with 38 additions and 12 deletions

26
.forgejo/workflows/ci.yml Normal file
View file

@ -0,0 +1,26 @@
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
NODE_ENV: production
container:
image: node:22-bullseye
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build Frontend
working-directory: frontend
run: |
npm install
npm run production
- name: Build Backend
working-directory: backend
run: |
npm install
npm run production

1
.gitignore vendored
View file

@ -2,6 +2,7 @@ db/
*/.env */.env
.env* .env*
todo todo
.forgejo/workflows/env
sqldumps/ sqldumps/
logs/ logs/
dist/ dist/

View file

@ -4,7 +4,7 @@
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"dev": "nodemon ./src/index.ts", "dev": "nodemon ./src/index.ts",
"production": "tsc && node ./dist/index.js", "production": "npx tsc && node ./dist/index.js",
"demo": "tsc && node ./dist/index.js" "demo": "tsc && node ./dist/index.js"
}, },
"keywords": [], "keywords": [],
@ -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

@ -5,7 +5,7 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite --host 0.0.0.0 --port 80", "dev": "vite --host 0.0.0.0 --port 80",
"production": "tsc -b && vite build", "production": "npx tsc -b && vite build",
"demo": "tsc -b && vite build", "demo": "tsc -b && vite build",
"build": "tsc -b && vite build", "build": "tsc -b && vite build",
"lint": "eslint .", "lint": "eslint .",
@ -14,9 +14,9 @@
"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",
"devDependencies": { "typescript-eslint": "^8.34.1",
"@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,8 +28,7 @@
"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": {}
} }