aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-09-20 22:40:10 +0700
committerShulhan <ms@kilabit.info>2021-09-20 22:40:10 +0700
commit573b57deb79ed8ff1a364822925235b04f4c8e7a (patch)
treed7e0f4239121b72d97fbecd83f531764f3aa5d70
parent4888a97be323a1f389a284d0ea2a51936477e708 (diff)
downloadgorankusu-573b57deb79ed8ff1a364822925235b04f4c8e7a.tar.xz
Makefile: add task to re-compile the TypeScript files
The "tsc" task run the tsc program using the tsconfig.json inside the directory _www, which will recompile all TypeScript before generating the embeded file.
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6419268..dfc4b3b 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
## Use of this source code is governed by a BSD-style
## license that can be found in the LICENSE file.
-.PHONY: all run embed
+.PHONY: all run embed tsc
all: embed
go test -v -race ./...
@@ -10,5 +10,8 @@ all: embed
run:
DEBUG=3 go run ./cmd/trunks-example
-embed:
+embed: tsc
go run ./internal/generate-memfs
+
+tsc:
+ tsc -p _www/tsconfig.json