36 lines
629 B
Makefile
36 lines
629 B
Makefile
build:
|
|
# Build client
|
|
deno task build
|
|
# Build plug-compile
|
|
deno task build-plug-compile
|
|
# Build server
|
|
go build
|
|
|
|
clean:
|
|
rm -rf client_bundle/{base_fs,client} dist public_version.ts
|
|
rm -f silverbullet
|
|
|
|
check:
|
|
# Frontend type check
|
|
deno task check
|
|
# Frontend lint
|
|
deno task lint
|
|
# Backend lint
|
|
go vet
|
|
|
|
fmt:
|
|
# Reformat frontend
|
|
deno task fmt
|
|
# Reformat backend
|
|
go fmt
|
|
|
|
test:
|
|
# Run frontend tests
|
|
deno task test
|
|
# Run backend tests
|
|
go test ./server/...
|
|
|
|
generate:
|
|
# Regenerate the Lua parser from the the grammar
|
|
deno run -A npm:@lezer/generator@1.5.1 lib/space_lua/lua.grammar -o lib/space_lua/parse-lua.js
|