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 service; make deploy
|
||||||
cd ui; make deploy
|
cd ui; make deploy
|
||||||
cd infra; 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]
|
[build]
|
||||||
args_bin = []
|
args_bin = []
|
||||||
bin = "./tmp/main"
|
bin = "./tmp/main"
|
||||||
cmd = "rm **/*_templ.go; templ generate --path ./templates && GOEXPERIMENT=loopvar go build -o ./tmp/main ."
|
cmd = "make local-build"
|
||||||
delay = 1000
|
delay = 1000
|
||||||
exclude_dir = ["assets", "tmp", "vendor", "testdata", "dist", "docker"]
|
exclude_dir = ["assets", "tmp", "vendor", "testdata", "dist", "docker"]
|
||||||
exclude_file = []
|
exclude_file = []
|
||||||
|
@ -14,7 +14,7 @@ tmp_dir = "tmp"
|
||||||
follow_symlink = false
|
follow_symlink = false
|
||||||
full_bin = ""
|
full_bin = ""
|
||||||
include_dir = []
|
include_dir = []
|
||||||
include_ext = ["go", "tpl", "tmpl", "html", "templ"]
|
include_ext = ["go", "tpl", "tmpl", "html", "templ", "css"]
|
||||||
include_file = []
|
include_file = []
|
||||||
kill_delay = "0s"
|
kill_delay = "0s"
|
||||||
log = "build-errors.log"
|
log = "build-errors.log"
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
BASE_URL="us-central1-docker.pkg.dev/pbaxter-infra/capstone-repo"
|
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:
|
build:
|
||||||
docker build . -t frontend-service:latest
|
docker build . -t frontend-service:latest
|
||||||
|
|
Loading…
Reference in New Issue