Add some typescript files and move dungeon.js code to them

This commit is contained in:
Eryn Wells 2023-12-26 21:41:39 -07:00
parent 778416a43a
commit 209070ac02
4 changed files with 244 additions and 111 deletions

View file

@ -25,8 +25,8 @@
<script defer src="{{ .Secure.RelPermalink }}"></script>
{{- end -}}
{{- with partial "secure_asset.html" "scripts/nethack/dungeon.js" -}}
<script defer src="{{ .Secure.RelPermalink }}"></script>
{{- with resources.Get "scripts/nethack/dungeon.js" -}}
<script defer type=module src="{{ (. | js.Build).RelPermalink }}"></script>
{{- end -}}
{{- range $script := .Resources.Match "*.js" -}}