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 backend
|
|
|
|
command: |
|
|
|
|
gp sync-await setup
|
2023-02-28 08:30:43 -07: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 09:15:14 -07:00
|
|
|
export TAGS="sqlite sqlite_unlock_notify"
|
|
|
|
make watch-backend
|
2023-01-20 12:46:33 -07:00
|
|
|
- name: Run frontend
|
|
|
|
command: |
|
|
|
|
gp sync-await setup
|
|
|
|
make watch-frontend
|
|
|
|
openMode: split-right
|
2022-10-11 09:15:14 -07:00
|
|
|
|
|
|
|
vscode:
|
|
|
|
extensions:
|
|
|
|
- editorconfig.editorconfig
|
|
|
|
- dbaeumer.vscode-eslint
|
|
|
|
- golang.go
|
|
|
|
- stylelint.vscode-stylelint
|
|
|
|
- DavidAnson.vscode-markdownlint
|
2023-05-09 11:03:50 -07:00
|
|
|
- Vue.volar
|
2022-10-12 09:17:04 -07:00
|
|
|
- ms-azuretools.vscode-docker
|
2022-10-14 08:22:57 -07:00
|
|
|
- zixuanchen.vitest-explorer
|
2023-06-20 12:06:42 -07:00
|
|
|
- qwtel.sqlite-viewer
|
2023-07-14 00:58:02 -07:00
|
|
|
- GitHub.vscode-pull-request-github
|
2022-10-11 09:15:14 -07:00
|
|
|
|
|
|
|
ports:
|
|
|
|
- name: Gitea
|
|
|
|
port: 3000
|