aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2023-01-22 10:39:31 +0100
committerMatěj Cepl <mcepl@cepl.eu>2023-01-22 10:39:31 +0100
commit9e8931a65545595fea87132e77e70005556997d1 (patch)
treea619a1bdb3acf65a0e898a6e398ac7d9b6553e56 /Makefile
parent10516625853177b2b1ed01d054aca63ced9042d0 (diff)
downloadhesla-9e8931a65545595fea87132e77e70005556997d1.tar.gz
Basics of rewrite to TypeScript
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c174cb7..538b991 100644
--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,12 @@ FILES=hesla.js hesla.js.map require.js config.js config.js.map \
index_de.html index.html screen.css site.webmanifest favicon.ico \
google9815148f4ac1407f.html config.es hesla.es activePage.es
-%.js: %.es
- $(BABEL) --source-maps true -o $@ $<
+# %.js: %.es
+# $(BABEL) --source-maps true -o $@ $<
+
+%.js: %.ts
+ # or -m amd
+ tsc --sourceMap --allowJs true --checkJs false --module es2015 --target ES5 $<
all: index.html index_de.html config.js activePage.js hesla.js