-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
37 lines (29 loc) · 980 Bytes
/
Makefile
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
.PHONY: install
install:
cd desktopexporter/internal/app; npm install
.PHONY: build-go
build-go:
cd desktopcollector; go build -o ../otel-desktop-viewer
.PHONY: test-go
test-go:
cd desktopexporter; go test ./...
.PHONY: run-go
run-go:
SERVE_FROM_FS=true cd desktopcollector; go run ./...
.PHONY: run-db-go
run-db-go:
SERVE_FROM_FS=true cd desktopcollector; go run ./... --db ../duck.db
.PHONY: build-js
build-js:
cd desktopexporter/internal/app; npx esbuild --bundle main.tsx main.css --outdir=../server/static
.PHONY: watch-js
watch-js:
cd desktopexporter/internal/app; npx esbuild --watch --bundle main.tsx main.css --outdir=../server/static
.PHONY: format-js
format-js:
cd desktopexporter/internal/app; npx prettier -w app
# esbuild will compile typescript files but will not typecheck them. This runs the
# typescript typechecker but does not build the files.
.PHONY: validate-typescript
validate-typescript:
cd desktopexporter/internal/app; npx tsc --noEmit