Makefile updates
* add 'npm run build' as a build step * add dev as PHONY target * switch order of targets
This commit is contained in:
parent
ecee2f2a46
commit
cb5132f2c1
7
Makefile
7
Makefile
|
@ -1,15 +1,18 @@
|
||||||
.PHONY: build run test
|
.PHONY: build run test dev
|
||||||
|
|
||||||
SOURCE := $(shell find db env lib lnd public server -type f) main.go
|
SOURCE := $(shell find db env lib lnd public server -type f) main.go
|
||||||
|
|
||||||
build: delphi.market
|
|
||||||
|
|
||||||
delphi.market: $(SOURCE)
|
delphi.market: $(SOURCE)
|
||||||
|
npm run build
|
||||||
tailwindcss -i public/css/_tw-input.css -o public/css/tailwind.css
|
tailwindcss -i public/css/_tw-input.css -o public/css/tailwind.css
|
||||||
templ generate -path server/router/pages
|
templ generate -path server/router/pages
|
||||||
go build -o delphi.market .
|
go build -o delphi.market .
|
||||||
|
|
||||||
|
build: delphi.market
|
||||||
|
|
||||||
run:
|
run:
|
||||||
|
npm run build
|
||||||
tailwindcss -i public/css/_tw-input.css -o public/css/tailwind.css
|
tailwindcss -i public/css/_tw-input.css -o public/css/tailwind.css
|
||||||
templ generate -path server/router/pages
|
templ generate -path server/router/pages
|
||||||
go run .
|
go run .
|
||||||
|
|
Loading…
Reference in New Issue