mirror of
https://github.com/TecharoHQ/anubis.git
synced 2025-08-03 17:59:24 -04:00

* make a half-baked tarball Closes #217 Signed-off-by: Xe Iaso <me@xeiaso.net> * make two tarballs: one with just the vendor, and one with vendor and npm Signed-off-by: Xe Iaso <me@xeiaso.net> --------- Signed-off-by: Xe Iaso <me@xeiaso.net>
27 lines
443 B
Makefile
27 lines
443 B
Makefile
NODE_MODULES = node_modules
|
|
VERSION := $(shell cat ./VERSION)
|
|
|
|
.PHONY: build assets deps lint prebaked-build test
|
|
|
|
assets:
|
|
npm run assets
|
|
|
|
deps:
|
|
npm ci
|
|
go mod download
|
|
|
|
build: deps
|
|
npm run build
|
|
@echo "Anubis is now built to ./var/anubis"
|
|
|
|
all: build
|
|
|
|
lint:
|
|
go vet ./...
|
|
go tool staticcheck ./...
|
|
|
|
prebaked-build:
|
|
go build -o ./var/anubis -ldflags "-X 'github.com/TecharoHQ/anubis.Version=$(VERSION)'" ./cmd/anubis
|
|
|
|
test:
|
|
npm run test
|