mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 03:21:58 +00:00
ability to squash and embed static files
This commit is contained in:
17
Makefile
17
Makefile
@@ -1,9 +1,10 @@
|
||||
SHA := $(shell git rev-parse --short HEAD)
|
||||
VERSION := 0.4.0-alpha
|
||||
|
||||
all: build
|
||||
all: concat bindata build
|
||||
|
||||
deps:
|
||||
go get -u github.com/jteeuwen/go-bindata/...
|
||||
go get -t -v ./...
|
||||
|
||||
test:
|
||||
@@ -16,3 +17,17 @@ build:
|
||||
clean:
|
||||
find . -name "*.out" -delete
|
||||
rm -f drone
|
||||
rm -f bindata.go
|
||||
|
||||
concat:
|
||||
cat server/static/scripts/drone.js \
|
||||
server/static/scripts/services/*.js \
|
||||
server/static/scripts/filters/*.js \
|
||||
server/static/scripts/controllers/*.js \
|
||||
server/static/scripts/term.js > server/static/drone.js
|
||||
|
||||
bindata_debug:
|
||||
go-bindata --debug server/static/...
|
||||
|
||||
bindata:
|
||||
go-bindata server/static/...
|
Reference in New Issue
Block a user