B: update makefile
This commit is contained in:
parent
dff5fd149b
commit
7ab96371c4
3
Makefile
3
Makefile
|
@ -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,
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue