Explorar o código

passing tests to the new architecture

Raanan Weber %!s(int64=7) %!d(string=hai) anos
pai
achega
5d6afcfe16

+ 1 - 1
Viewer/src/configuration/types/default.ts

@@ -1,4 +1,4 @@
-import { ViewerConfiguration } from 'configuration';
+import { ViewerConfiguration } from '../configuration';
 import { defaultTemplate, fillContainer, loadingScreen, defaultViewer, navbar, overlay, help, share, error } from 'babylonjs-viewer-assets';
 import { babylonFont } from 'babylonjs-viewer-assets';
 import * as images from 'babylonjs-viewer-assets';

+ 16 - 12
Viewer/tests/unit/tsconfig.json

@@ -2,24 +2,25 @@
     "compilerOptions": {
         "target": "es5",
         "module": "commonjs",
-        "noResolve": false,
-        "noImplicitAny": false,
-        "strictNullChecks": true,
-        "removeComments": true,
-        "preserveConstEnums": true,
-        "sourceMap": true,
+        "declaration": true,
         "experimentalDecorators": true,
-        "isolatedModules": false,
-        "declaration": false,
+        "emitDecoratorMetadata": true,
+        "moduleResolution": "node",
+        "strictNullChecks": true,
+        "noImplicitAny": false,
+        "noFallthroughCasesInSwitch": true,
+        "inlineSourceMap": true,
         "lib": [
+            "es5",
             "dom",
             "es2015.promise",
-            "es5"
-        ],
-        "types": [
-            "node"
+            "es2015.collection",
+            "es2015.iterable"
         ],
+        "skipDefaultLibCheck": true,
+        "skipLibCheck": true,
         "baseUrl": "./src/",
+        "rootDir": "./",
         "paths": {
             "babylonjs": [
                 "../../../../dist/preview release/babylon.d.ts"
@@ -29,6 +30,9 @@
             ],
             "babylonjs-gltf2interface": [
                 "../../../../dist/babylon.glTF2Interface.d.ts"
+            ],
+            "babylonjs-viewer-assets": [
+                "../../src/assets/"
             ]
         },
     },

+ 1 - 2
Viewer/tests/unit/webpack.config.js

@@ -15,14 +15,13 @@ module.exports = {
             "babylonjs": __dirname + '/../../../dist/preview release/babylon.max.js',
             "babylonjs-materials": __dirname + '/../../../dist/preview release/materialsLibrary/babylonjs.materials.js',
             "babylonjs-loaders": __dirname + '/../../../dist/preview release/loaders/babylonjs.loaders.js',
-            "pep": __dirname + '/../../assets/pep.min.js'
+            "babylonjs-viewer-assets": __dirname + '/../../src/assets/index.ts'
         }
     },
     externals: {
         // until physics will be integrated in the viewer, ignore cannon
         cannon: 'CANNON',
         oimo: 'OIMO',
-        './Oimo': 'OIMO',
         "earcut": true
     },
     devtool: 'source-map',