Started working on the frontend
- Added the new post frontend - Hooked up publishing of posts to the site publisher - Added an site exporter as a publishing target
This commit is contained in:
parent
a59008b3e8
commit
e77cac2fd5
40 changed files with 1427 additions and 84 deletions
19
Makefile
19
Makefile
|
|
@ -2,10 +2,27 @@ 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
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue