2022-10-11 09:15:14 -07:00
|
|
|
tasks:
|
|
|
|
- name: Setup
|
|
|
|
init: |
|
2022-10-23 18:24:33 -07:00
|
|
|
cp -r contrib/ide/vscode .vscode
|
2022-10-11 09:15:14 -07:00
|
|
|
make deps
|
|
|
|
make build
|
|
|
|
command: |
|
|
|
|
gp sync-done setup
|
|
|
|
exit 0
|
|
|
|
- name: Run frontend
|
|
|
|
command: |
|
|
|
|
gp sync-await setup
|
|
|
|
make watch-frontend
|
|
|
|
- name: Run backend
|
|
|
|
command: |
|
|
|
|
gp sync-await setup
|
|
|
|
mkdir -p custom/conf/
|
2022-10-12 09:17:04 -07:00
|
|
|
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
|
2022-10-11 09:15:14 -07:00
|
|
|
export TAGS="sqlite sqlite_unlock_notify"
|
|
|
|
make watch-backend
|
2022-10-12 09:17:04 -07:00
|
|
|
- name: Run docs
|
|
|
|
before: sudo bash -c "$(grep 'https://github.com/gohugoio/hugo/releases/download' Makefile | tr -d '\')" # install hugo
|
|
|
|
command: cd docs && make clean update && hugo server -D -F --baseUrl $(gp url 1313) --liveReloadPort=443 --appendPort=false --bind=0.0.0.0
|
2022-10-11 09:15:14 -07:00
|
|
|
|
|
|
|
vscode:
|
|
|
|
extensions:
|
|
|
|
- editorconfig.editorconfig
|
|
|
|
- dbaeumer.vscode-eslint
|
|
|
|
- golang.go
|
|
|
|
- stylelint.vscode-stylelint
|
|
|
|
- DavidAnson.vscode-markdownlint
|
2022-10-12 09:17:04 -07:00
|
|
|
- johnsoncodehk.volar
|
|
|
|
- ms-azuretools.vscode-docker
|
2022-10-14 08:22:57 -07:00
|
|
|
- zixuanchen.vitest-explorer
|
2022-10-24 13:55:59 -07:00
|
|
|
- alexcvzz.vscode-sqlite
|
2022-10-11 09:15:14 -07:00
|
|
|
|
|
|
|
ports:
|
|
|
|
- name: Gitea
|
|
|
|
port: 3000
|
2022-10-12 09:17:04 -07:00
|
|
|
- name: Docs
|
|
|
|
port: 1313
|