From 573b57deb79ed8ff1a364822925235b04f4c8e7a Mon Sep 17 00:00:00 2001 From: Shulhan Date: Mon, 20 Sep 2021 22:40:10 +0700 Subject: 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. --- Makefile | 7 +++++-- 1 file 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 -- cgit v1.3