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
|
||||||
.env*
|
.env*
|
||||||
todo
|
todo
|
||||||
|
.forgejo/workflows/env
|
||||||
sqldumps/
|
sqldumps/
|
||||||
logs/
|
logs/
|
||||||
dist/
|
dist/
|
||||||
|
|
|
||||||
|
|
@ -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": [],
|
||||||
|
|
|
||||||
|
|
@ -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 .",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue