Skip to content

Commit

Permalink
ui: add tsx support
Browse files Browse the repository at this point in the history
 - use tsc to transform jsx, and 'tsx-vanilla' to polyfill the element functions

Signed-off-by: jarves <[email protected]>
  • Loading branch information
jarveson committed Sep 12, 2023
1 parent e16583f commit fcd0e9f
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 508 deletions.
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ASSETS := $(patsubst assets/%,$(OUT_DIR)/assets/%,$(ASSETS_INPUT))
# Recursive wildcard function. Needs to be '=' instead of ':=' because of recursion.
rwildcard = $(foreach d,$(wildcard $(1:=/*)),$(call rwildcard,$d,$2) $(filter $(subst *,%,$2),$d))
GOROOT := $(shell go env GOROOT)
UI_SRC := $(shell find ui -name '*.ts' -o -name '*.scss' -o -name '*.html')
UI_SRC := $(shell find ui -name '*.ts' -o -name '*.tsx' -o -name '*.scss' -o -name '*.html')
HTML_INDECIES := ui/balance_druid/index.html \
ui/feral_druid/index.html \
ui/feral_tank_druid/index.html \
Expand Down
Loading

0 comments on commit fcd0e9f

Please sign in to comment.