mirror of
https://github.com/imjasonh/gots
synced 2026-07-08 09:05:45 +00:00
initial commit
Signed-off-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
commit
0c84c06bb7
12 changed files with 2209 additions and 0 deletions
21
Makefile
Normal file
21
Makefile
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
.PHONY: generate build run dev clean
|
||||
|
||||
# Generate frontend assets
|
||||
generate:
|
||||
go generate ./...
|
||||
|
||||
# Build the Go binary
|
||||
build: generate
|
||||
go build -o gojs .
|
||||
|
||||
# Run the server (regenerates assets first)
|
||||
run: generate
|
||||
go run . -port=8080
|
||||
|
||||
# Development mode - watch for changes
|
||||
dev: generate
|
||||
go run . -port=8080
|
||||
|
||||
# Clean generated files
|
||||
clean:
|
||||
rm -rf assets/ frontend/node_modules/ frontend/package-lock.json gojs
|
||||
Loading…
Add table
Add a link
Reference in a new issue