From 008ae69f58cf4e9ad4d751b1069715a3a1e8aebe Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Fri, 11 Oct 2019 16:01:13 +0100 Subject: [PATCH] Added Spine Runtime build configs --- .gitignore | 2 ++ .npmignore | 1 + plugins/spine/tsconfig.both.json | 23 +++++++++++++++++++++++ plugins/spine/tsconfig.canvas.json | 22 ++++++++++++++++++++++ plugins/spine/tsconfig.webgl.json | 23 +++++++++++++++++++++++ 5 files changed, 71 insertions(+) create mode 100644 plugins/spine/tsconfig.both.json create mode 100644 plugins/spine/tsconfig.canvas.json create mode 100644 plugins/spine/tsconfig.webgl.json diff --git a/.gitignore b/.gitignore index d202b07e3..3afe179fc 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,5 @@ build/ out/ scripts/tsgen/test/bin/ scripts/tsgen/test/output.txt + +plugins/spine/spine-runtimes/ \ No newline at end of file diff --git a/.npmignore b/.npmignore index 4313cf297..bc22a199e 100644 --- a/.npmignore +++ b/.npmignore @@ -1,2 +1,3 @@ **/.* build/ +plugins/spine/spine-runtimes/ diff --git a/plugins/spine/tsconfig.both.json b/plugins/spine/tsconfig.both.json new file mode 100644 index 000000000..57142d4a7 --- /dev/null +++ b/plugins/spine/tsconfig.both.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "none", + "noImplicitAny": true, + "removeComments": true, + "preserveConstEnums": true, + "outFile": "src/runtimes/spine-both.js", + "sourceMap": true, + "declaration": true + }, + "include": [ + "spine-runtimes/spine-ts/core/src/**/*", + "spine-runtimes/spine-ts/canvas/src/**/*", + "spine-runtimes/spine-ts/webgl/src/**/*" + ], + "exclude": [ + "spine-runtimes/spine-ts/build", + "spine-runtimes/spine-ts/player", + "spine-runtimes/spine-ts/threejs", + "spine-runtimes/spine-ts/webgl/src/Input.ts", + "spine-runtimes/spine-ts/webgl/src/LoadingScreen.ts" + ] +} \ No newline at end of file diff --git a/plugins/spine/tsconfig.canvas.json b/plugins/spine/tsconfig.canvas.json new file mode 100644 index 000000000..f73ce7912 --- /dev/null +++ b/plugins/spine/tsconfig.canvas.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "none", + "noImplicitAny": true, + "removeComments": true, + "preserveConstEnums": true, + "outFile": "src/runtimes/spine-canvas.js", + "sourceMap": true, + "declaration": true + }, + "include": [ + "spine-runtimes/spine-ts/core/src/**/*", + "spine-runtimes/spine-ts/canvas/src/**/*" + ], + "exclude": [ + "spine-runtimes/spine-ts/webgl", + "spine-runtimes/spine-ts/widget", + "spine-runtimes/spine-ts/threejs", + "spine-runtimes/spine-ts/build", + "spine-runtimes/spine-ts/player" + ] +} \ No newline at end of file diff --git a/plugins/spine/tsconfig.webgl.json b/plugins/spine/tsconfig.webgl.json new file mode 100644 index 000000000..ff4520f71 --- /dev/null +++ b/plugins/spine/tsconfig.webgl.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "none", + "noImplicitAny": true, + "removeComments": true, + "preserveConstEnums": true, + "outFile": "src/runtimes/spine-webgl.js", + "sourceMap": true, + "declaration": true + }, + "include": [ + "spine-runtimes/spine-ts/core/src/**/*", + "spine-runtimes/spine-ts/webgl/src/**/*" + ], + "exclude": [ + "spine-runtimes/spine-ts/canvas", + "spine-runtimes/spine-ts/widget", + "spine-runtimes/spine-ts/threejs", + "spine-runtimes/spine-ts/build", + "spine-runtimes/spine-ts/webgl/src/Input.ts", + "spine-runtimes/spine-ts/webgl/src/LoadingScreen.ts" + ] +} \ No newline at end of file