B: update makefile

This commit is contained in:
Preston Baxter 2023-11-05 11:02:39 -06:00
parent dff5fd149b
commit 7ab96371c4
3 changed files with 13 additions and 2 deletions

View File

@ -2,3 +2,6 @@ deploy:
cd service; make deploy
cd ui; make deploy
cd infra; make deploy
image:
codevis -i ./ --whitelist-extension go,hcl,tf,css,js,templ,

View File

@ -5,7 +5,7 @@ tmp_dir = "tmp"
[build]
args_bin = []
bin = "./tmp/main"
cmd = "rm **/*_templ.go; templ generate --path ./templates && GOEXPERIMENT=loopvar go build -o ./tmp/main ."
cmd = "make local-build"
delay = 1000
exclude_dir = ["assets", "tmp", "vendor", "testdata", "dist", "docker"]
exclude_file = []
@ -14,7 +14,7 @@ tmp_dir = "tmp"
follow_symlink = false
full_bin = ""
include_dir = []
include_ext = ["go", "tpl", "tmpl", "html", "templ"]
include_ext = ["go", "tpl", "tmpl", "html", "templ", "css"]
include_file = []
kill_delay = "0s"
log = "build-errors.log"

View File

@ -1,5 +1,13 @@
BASE_URL="us-central1-docker.pkg.dev/pbaxter-infra/capstone-repo"
local-build:
rm **/*_templ.go
templ generate --path ./templates
npx tailwindcss -i static/index.css -o dist/output.css
GOEXPERIMENT=loopvar go build -o ./tmp/main .
local-run: local-build
./tmp/main
build:
docker build . -t frontend-service:latest