More build config

This commit is contained in:
Ian Gulliver
2021-05-08 12:13:14 -07:00
parent 076d729c5d
commit 3e4769b3ef
8 changed files with 27 additions and 5 deletions

2
Makefile Normal file
View File

@@ -0,0 +1,2 @@
all: tsconfig.json $(wildcard src/*.ts)
tsc

6
js/tower.js Normal file
View File

@@ -0,0 +1,6 @@
import { TowerMap } from 'tower_map.js';
export function main() {
const map = new TowerMap();
}
;
//# sourceMappingURL=tower.js.map

1
js/tower.js.map Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"tower.js","sourceRoot":"","sources":["../src/tower.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,MAAM,UAAU,IAAI;IAClB,MAAM,GAAG,GAAG,IAAI,QAAQ,EAAE,CAAC;AAC7B,CAAC;AAAA,CAAC"}

3
js/tower_map.js Normal file
View File

@@ -0,0 +1,3 @@
export class TowerMap {
}
//# sourceMappingURL=tower_map.js.map

1
js/tower_map.js.map Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"tower_map.js","sourceRoot":"","sources":["../src/tower_map.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,QAAQ;CACpB"}

2
src/.gitignore vendored
View File

@@ -1,2 +0,0 @@
*.js
*.js.map

10
tower.html Normal file
View File

@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title>Tower</title>
</head>
<body>
<script src="js/tower.js"></script>
</body>

View File

@@ -3,10 +3,11 @@
"target": "ES2020", "target": "ES2020",
"module": "ES2020", "module": "ES2020",
"noImplicitAny": true, "noImplicitAny": true,
"sourceMap": true "sourceMap": true,
"outDir": "js"
}, },
"files": [ "files": [
"tower.ts", "src/tower.ts",
"tower_map.ts" "src/tower_map.ts"
] ]
} }