forked from silverbulletmd/silverbullet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (42 loc) · 1.03 KB
/
Makefile
File metadata and controls
51 lines (42 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
build:
# Build client
deno task build
# Build plug-compile
deno task build-plug-compile
# Build server
go build
build-for-docker: build
GOOS=linux GOARCH=arm64 go build -o silverbullet-arm64 .
GOOS=linux GOARCH=amd64 go build -o silverbullet-amd64 .
docker: build-for-docker
docker buildx build --platform linux/arm64,linux/amd64 --push .
clean:
rm -rf client_bundle/{base_fs,client} dist public_version.ts
rm -f silverbullet silverbullet-arm64 silverbullet-amd64
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/...
.PHONY: bench
bench:
# Run frontend tests
deno task bench
generate:
# Regenerate the Lua parser from the the grammar
deno run -A npm:@lezer/generator@1.5.1 client/space_lua/lua.grammar -o client/space_lua/parse-lua.js
.PHONY: website
website: build
SB_INDEX_PAGE=SilverBullet ./silverbullet -p 3001 website