using TypeScript

This commit is contained in:
2021-05-25 19:33:39 +02:00
parent 968ede6f58
commit 0d7cd28ca9
8 changed files with 230 additions and 79 deletions

12
Makefile Normal file
View File

@ -0,0 +1,12 @@
.DEFAULT_GOAL := build
OUT=www/res/scripts
${OUT}/locutus.js ${OUT}/usimp.js: src/locutus.ts src/usimp.ts
tsc
build: ${OUT}/locutus.js ${OUT}/usimp.js
perl -i -pE 's/(\?v=[0-9]+\.[0-9]+\.[0-9]+\+)([0-9]+)/($$1).($$2+1)/eg' www/index.html
clean:
rm -rf "${OUT}"