- Added the new post frontend - Hooked up publishing of posts to the site publisher - Added an site exporter as a publishing target
28 lines
435 B
Makefile
28 lines
435 B
Makefile
BUILD_DIR=build
|
|
|
|
all: clean build
|
|
|
|
.Phony: init
|
|
init:
|
|
npm install --save-exact --save-dev esbuild
|
|
|
|
.Phony: clean
|
|
clean:
|
|
-rm -r $(BUILD_DIR)
|
|
|
|
.Phony: frontend
|
|
frontend:
|
|
npm install
|
|
npx esbuild --bundle ./assets/css/main.css --outfile=./static/assets/main.css
|
|
|
|
.Phony: gen
|
|
gen:
|
|
go run github.com/sqlc-dev/sqlc/cmd/sqlc@v1.30.0 generate
|
|
|
|
.Phony: build
|
|
build: frontend
|
|
go build -o ./build/weiro
|
|
|
|
.Phony: run
|
|
run: build
|
|
./build/weiro
|