feat: setup server
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Settel 2022-11-04 21:51:14 +01:00
parent 0376e89f19
commit 533bb922f2
3 changed files with 5 additions and 1 deletions

View File

@ -8,4 +8,5 @@ pipeline:
backend: backend:
image: golang image: golang
commands: commands:
- make -C server setup
- make -C server build - make -C server build

View File

@ -19,7 +19,7 @@ setup:
@echo "I installing client dependencies" @echo "I installing client dependencies"
( cd client && yarn install ) ( cd client && yarn install )
@echo "I installing server dependencies" @echo "I installing server dependencies"
( cd server/src/ && go mod tidy ) $(MAKE) -C server setup
@echo "I create client output directory" @echo "I create client output directory"
mkdir -p client/.output/public/ mkdir -p client/.output/public/

View File

@ -2,6 +2,9 @@ info:
@echo available targets: @echo available targets:
@perl -ne 'm/^([a-zA-Z0-9\-]+):/ && print(" $$1\n");' Makefile @perl -ne 'm/^([a-zA-Z0-9\-]+):/ && print(" $$1\n");' Makefile
setup:
cd src/ && go mod tidy
build: build:
-mkdir -p ../client/.output/public/ -mkdir -p ../client/.output/public/
$(MAKE) generate $(MAKE) generate