1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2026-06-03 16:35:37 +02:00

Use go embed for web files and remove httptreemux (#382)

- replace togo with go embed
- replace httptreemux with gin

closes #308
This commit is contained in:
Anbraten
2021-09-29 17:34:56 +02:00
committed by GitHub
parent a82d569bd1
commit ed6d3f3cea
26 changed files with 62 additions and 12984 deletions
+2 -2
View File
@@ -46,7 +46,7 @@ test-server:
$(DOCKER_RUN) go test -race -timeout 30s github.com/woodpecker-ci/woodpecker/cmd/server
test-frontend:
(cd web/; yarn run test)
(cd web/; yarn; yarn run test)
test-lib:
$(DOCKER_RUN) go test -race -timeout 30s $(shell go list ./... | grep -v '/cmd/')
@@ -60,7 +60,7 @@ build-server:
$(DOCKER_RUN) go build -o build/woodpecker-server github.com/woodpecker-ci/woodpecker/cmd/server
build-frontend:
(cd web/; yarn run build)
(cd web/; yarn; yarn run build)
build: build-agent build-server