|
|
@ -31,11 +31,13 @@ DEBUG ?= off
|
|
|
|
ifeq ($(DEBUG), on)
|
|
|
|
ifeq ($(DEBUG), on)
|
|
|
|
LDFLAGS := -s -w $(LDFLAGS)
|
|
|
|
LDFLAGS := -s -w $(LDFLAGS)
|
|
|
|
SOURCEMAP := --sourcemap
|
|
|
|
SOURCEMAP := --sourcemap
|
|
|
|
|
|
|
|
TYPECHECK := tsc -noEmit --project ts/tsconfig.json
|
|
|
|
# jank
|
|
|
|
# jank
|
|
|
|
COPYTS := rm -r $(DATA)/web/js/ts; cp -r ts $(DATA)/web/js
|
|
|
|
COPYTS := rm -r $(DATA)/web/js/ts; cp -r ts $(DATA)/web/js
|
|
|
|
else
|
|
|
|
else
|
|
|
|
SOURCEMAP :=
|
|
|
|
SOURCEMAP :=
|
|
|
|
COPYTS :=
|
|
|
|
COPYTS :=
|
|
|
|
|
|
|
|
TYPECHECK :=
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
npm:
|
|
|
|
npm:
|
|
|
@ -59,6 +61,7 @@ email:
|
|
|
|
python3 scripts/compile_mjml.py -o $(DATA)/
|
|
|
|
python3 scripts/compile_mjml.py -o $(DATA)/
|
|
|
|
|
|
|
|
|
|
|
|
typescript:
|
|
|
|
typescript:
|
|
|
|
|
|
|
|
$(TYPECHECK)
|
|
|
|
$(info compiling typescript)
|
|
|
|
$(info compiling typescript)
|
|
|
|
-mkdir -p $(DATA)/web/js
|
|
|
|
-mkdir -p $(DATA)/web/js
|
|
|
|
-$(ESBUILD) --bundle ts/admin.ts $(SOURCEMAP) --outfile=./$(DATA)/web/js/admin.js --minify
|
|
|
|
-$(ESBUILD) --bundle ts/admin.ts $(SOURCEMAP) --outfile=./$(DATA)/web/js/admin.js --minify
|
|
|
|