parent
bc926b9bba
commit
fe12ced963
4 changed files with 29 additions and 2 deletions
26
.forgejo/workflows/ci.yml
Normal file
26
.forgejo/workflows/ci.yml
Normal 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
1
.gitignore
vendored
|
|
@ -2,6 +2,7 @@ db/
|
|||
*/.env
|
||||
.env*
|
||||
todo
|
||||
.forgejo/workflows/env
|
||||
sqldumps/
|
||||
logs/
|
||||
dist/
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
"main": "index.js",
|
||||
"scripts": {
|
||||
"dev": "nodemon ./src/index.ts",
|
||||
"production": "tsc && node ./dist/index.js",
|
||||
"production": "npx tsc && node ./dist/index.js",
|
||||
"demo": "tsc && node ./dist/index.js"
|
||||
},
|
||||
"keywords": [],
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
"type": "module",
|
||||
"scripts": {
|
||||
"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",
|
||||
"build": "tsc -b && vite build",
|
||||
"lint": "eslint .",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue