2022-10-11 18:15:14 +02:00
|
|
|
tasks:
|
|
|
|
- name: Setup
|
|
|
|
init: |
|
2022-10-24 03:24:33 +02:00
|
|
|
cp -r contrib/ide/vscode .vscode
|
2022-10-11 18:15:14 +02:00
|
|
|
make deps
|
|
|
|
make build
|
|
|
|
command: |
|
|
|
|
gp sync-done setup
|
|
|
|
exit 0
|
|
|
|
- name: Run backend
|
|
|
|
command: |
|
|
|
|
gp sync-await setup
|
2023-02-28 16:30:43 +01:00
|
|
|
if [ ! -f custom/conf/app.ini ]
|
|
|
|
then
|
|
|
|
mkdir -p custom/conf/
|
|
|
|
echo -e "[server]\nROOT_URL=$(gp url 3000)/" > custom/conf/app.ini
|
|
|
|
echo -e "\n[database]\nDB_TYPE = sqlite3\nPATH = $GITPOD_REPO_ROOT/data/gitea.db" >> custom/conf/app.ini
|
|
|
|
fi
|
2022-10-11 18:15:14 +02:00
|
|
|
export TAGS="sqlite sqlite_unlock_notify"
|
|
|
|
make watch-backend
|
2023-01-20 20:46:33 +01:00
|
|
|
- name: Run frontend
|
|
|
|
command: |
|
|
|
|
gp sync-await setup
|
|
|
|
make watch-frontend
|
|
|
|
openMode: split-right
|
2022-10-12 18:17:04 +02:00
|
|
|
- name: Run docs
|
2023-03-24 19:42:31 +01:00
|
|
|
command: |
|
|
|
|
gp sync-await setup
|
|
|
|
cd docs
|
|
|
|
make clean update
|
|
|
|
hugo server -D -F --baseUrl $(gp url 1313) --liveReloadPort=443 --appendPort=false --bind=0.0.0.0
|
2023-01-20 20:46:33 +01:00
|
|
|
openMode: split-right
|
2022-10-11 18:15:14 +02:00
|
|
|
|
|
|
|
vscode:
|
|
|
|
extensions:
|
|
|
|
- editorconfig.editorconfig
|
|
|
|
- dbaeumer.vscode-eslint
|
|
|
|
- golang.go
|
|
|
|
- stylelint.vscode-stylelint
|
|
|
|
- DavidAnson.vscode-markdownlint
|
2022-10-12 18:17:04 +02:00
|
|
|
- johnsoncodehk.volar
|
|
|
|
- ms-azuretools.vscode-docker
|
2022-10-14 17:22:57 +02:00
|
|
|
- zixuanchen.vitest-explorer
|
2022-10-24 22:55:59 +02:00
|
|
|
- alexcvzz.vscode-sqlite
|
2022-10-11 18:15:14 +02:00
|
|
|
|
|
|
|
ports:
|
|
|
|
- name: Gitea
|
|
|
|
port: 3000
|
2022-10-12 18:17:04 +02:00
|
|
|
- name: Docs
|
|
|
|
port: 1313
|