Browse Source

[ts] Added canvas backend stub

badlogic 9 years ago
parent
commit
3b90df58a5
2 changed files with 24 additions and 0 deletions
  1. 1 0
      spine-ts/build.sh
  2. 23 0
      spine-ts/tsconfig.canvas.json

+ 1 - 0
spine-ts/build.sh

@@ -3,4 +3,5 @@ set -e -x
 tsc -p tsconfig.json
 tsc -p tsconfig.core.json
 tsc -p tsconfig.webgl.json
+tsc -p tsconfig.canvas.json
 tsc -p tsconfig.widget.json

+ 23 - 0
spine-ts/tsconfig.canvas.json

@@ -0,0 +1,23 @@
+{
+	"compilerOptions": {
+		"module": "none",
+		"noImplicitAny": true,
+		"removeComments": false,
+		"preserveConstEnums": true,
+		"outFile": "build/spine-canvas.js",
+		"sourceMap": true,
+		"declaration": true
+	},
+	"include": [
+		"core/src/**/*",
+		"canvas/src/**/*"
+	],
+	"exclude": [
+		"webgl/src/*.ts",
+		"widget/src/*.ts",
+		"build",
+		"build/*.d.ts",
+		"build/*.js",
+		"build/*.js.map"	 
+	]
+}