2022-10-11 21:45:14 +05:30
|
|
|
tasks:
|
|
|
|
- name: Setup
|
|
|
|
init: |
|
2022-10-24 06:54:33 +05:30
|
|
|
cp -r contrib/ide/vscode .vscode
|
2022-10-11 21:45:14 +05:30
|
|
|
make deps
|
|
|
|
make build
|
|
|
|
command: |
|
|
|
|
gp sync-done setup
|
|
|
|
exit 0
|
|
|
|
- name: Run backend
|
|
|
|
command: |
|
|
|
|
gp sync-await setup
|
2023-02-28 21:00:43 +05:30
|
|
|
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 21:45:14 +05:30
|
|
|
export TAGS="sqlite sqlite_unlock_notify"
|
|
|
|
make watch-backend
|
2023-01-21 01:16:33 +05:30
|
|
|
- name: Run frontend
|
|
|
|
command: |
|
|
|
|
gp sync-await setup
|
|
|
|
make watch-frontend
|
|
|
|
openMode: split-right
|
2022-10-11 21:45:14 +05:30
|
|
|
|
|
|
|
vscode:
|
|
|
|
extensions:
|
|
|
|
- editorconfig.editorconfig
|
|
|
|
- dbaeumer.vscode-eslint
|
|
|
|
- golang.go
|
|
|
|
- stylelint.vscode-stylelint
|
|
|
|
- DavidAnson.vscode-markdownlint
|
2022-10-12 21:47:04 +05:30
|
|
|
- johnsoncodehk.volar
|
|
|
|
- ms-azuretools.vscode-docker
|
2022-10-14 20:52:57 +05:30
|
|
|
- zixuanchen.vitest-explorer
|
2022-10-25 02:25:59 +05:30
|
|
|
- alexcvzz.vscode-sqlite
|
2022-10-11 21:45:14 +05:30
|
|
|
|
|
|
|
ports:
|
|
|
|
- name: Gitea
|
|
|
|
port: 3000
|