diff --git a/.gitignore b/.gitignore index e6ed734..5b9e087 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,12 @@ .venv coverage /node_modules -/out/vendor /out/assets -/out/build.* +/out/app.* +/out/tests.* +/out/dependencies.js /graphics/**/*.blend?* /graphics/**/output.png /typings/ *.log +*.tsbuildinfo diff --git a/.vscode/settings.json b/.vscode/settings.json index 7ffc6fe..54d9b44 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -10,7 +10,7 @@ "**/CVS": true, "**/.DS_Store": true, "node_modules": true, - ".env": true, - "out": true + ".venv": true, + "**/*.tsbuildinfo": true, } } \ No newline at end of file diff --git a/config/app.json b/config/app.json new file mode 100644 index 0000000..3e10b58 --- /dev/null +++ b/config/app.json @@ -0,0 +1,13 @@ +{ + "extends": "./common.json", + "compilerOptions": { + "outFile": "../out/app.js", + "rootDir": ".." + }, + "include": [ + "../src/**/*.ts" + ], + "exclude": [ + "../src/**/*.spec.ts" + ] +} \ No newline at end of file diff --git a/config/common.json b/config/common.json new file mode 100644 index 0000000..cca877e --- /dev/null +++ b/config/common.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "module": "system", + "composite": true, + "declaration": true, + "declarationMap": true, + "forceConsistentCasingInFileNames": true, + "noFallthroughCasesInSwitch": true, + "noImplicitReturns": true, + "removeComments": false, + "preserveConstEnums": true, + "strict": true, + "sourceMap": true, + "lib": [ + "dom", + "es6", + "scripthost" + ], + "target": "es6" + } +} \ No newline at end of file diff --git a/config/tests.json b/config/tests.json new file mode 100644 index 0000000..29ec127 --- /dev/null +++ b/config/tests.json @@ -0,0 +1,15 @@ +{ + "extends": "./common.json", + "compilerOptions": { + "outFile": "../out/tests.js", + "rootDir": ".." + }, + "include": [ + "../src/**/*.spec.ts" + ], + "references": [ + { + "path": "./app.json" + } + ] +} \ No newline at end of file diff --git a/out/aiworker.js b/out/aiworker.js index 386d119..9e96720 100644 --- a/out/aiworker.js +++ b/out/aiworker.js @@ -8,7 +8,7 @@ var Phaser = new Proxy(function () { }, handler); //var debug = console.log; var debug = function () { }; -importScripts("build.js"); +importScripts("app.js"); onmessage = function (e) { debug("[AI Worker] Received", e.data.length); diff --git a/out/index.html b/out/index.html index 4249445..3993e1f 100644 --- a/out/index.html +++ b/out/index.html @@ -41,9 +41,8 @@