Преглед изворни кода

Remove src from the import path

sebastien пре 6 година
родитељ
комит
1d3ea78c42
70 измењених фајлова са 267 додато и 317 уклоњено
  1. 2 2
      gui/legacy/legacy.ts
  2. 1 1
      gui/tsconfig.json
  3. 2 7
      gui/webpack.config.js
  4. 2 2
      inspector/legacy/legacy.ts
  5. 1 1
      inspector/tsconfig.json
  6. 1 6
      inspector/webpack.config.js
  7. 2 2
      loaders/legacy/legacy-glTF.ts
  8. 1 1
      loaders/legacy/legacy-glTF1.ts
  9. 0 0
      loaders/src/legacy/legacy-glTF1FileLoader.ts
  10. 3 3
      loaders/legacy/legacy-glTF2.ts
  11. 0 0
      loaders/src/legacy/legacy-glTF2FileLoader.ts
  12. 0 0
      loaders/src/legacy/legacy-glTFFileLoader.ts
  13. 2 2
      loaders/legacy/legacy-objFileLoader.ts
  14. 2 2
      loaders/legacy/legacy-stlFileLoader.ts
  15. 1 1
      loaders/legacy/legacy.ts
  16. 2 5
      loaders/tsconfig.json
  17. 1 6
      loaders/webpack.config.js
  18. 0 14
      materialsLibrary/legacy/legacy-cell.ts
  19. 0 14
      materialsLibrary/legacy/legacy-fire.ts
  20. 0 14
      materialsLibrary/legacy/legacy-fur.ts
  21. 0 14
      materialsLibrary/legacy/legacy-gradient.ts
  22. 0 14
      materialsLibrary/legacy/legacy-lava.ts
  23. 0 14
      materialsLibrary/legacy/legacy-mix.ts
  24. 0 14
      materialsLibrary/legacy/legacy-normal.ts
  25. 0 14
      materialsLibrary/legacy/legacy-shadowOnly.ts
  26. 0 14
      materialsLibrary/legacy/legacy-triPlanar.ts
  27. 14 0
      materialsLibrary/src/legacy/legacy-cell.ts
  28. 14 0
      materialsLibrary/src/legacy/legacy-custom.ts
  29. 14 0
      materialsLibrary/src/legacy/legacy-fire.ts
  30. 14 0
      materialsLibrary/src/legacy/legacy-fur.ts
  31. 2 2
      materialsLibrary/legacy/legacy-grid.ts
  32. 14 0
      materialsLibrary/src/legacy/legacy-grid.ts
  33. 14 0
      materialsLibrary/src/legacy/legacy-lava.ts
  34. 14 0
      materialsLibrary/src/legacy/legacy-mix.ts
  35. 14 0
      materialsLibrary/src/legacy/legacy-normal.ts
  36. 2 2
      materialsLibrary/legacy/legacy-custom.ts
  37. 2 2
      materialsLibrary/legacy/legacy-simple.ts
  38. 2 2
      materialsLibrary/legacy/legacy-sky.ts
  39. 2 2
      materialsLibrary/legacy/legacy-terrain.ts
  40. 14 0
      materialsLibrary/src/legacy/legacy-triPlanar.ts
  41. 2 2
      materialsLibrary/legacy/legacy-water.ts
  42. 2 2
      materialsLibrary/legacy/legacy.ts
  43. 2 5
      materialsLibrary/tsconfig.json
  44. 1 6
      materialsLibrary/webpack.config.js
  45. 1 4
      postProcessLibrary/tsconfig.json
  46. 0 5
      postProcessLibrary/webpack.config.js
  47. 0 14
      proceduralTexturesLibrary/legacy/legacy-brick.ts
  48. 0 14
      proceduralTexturesLibrary/legacy/legacy-cloud.ts
  49. 0 14
      proceduralTexturesLibrary/legacy/legacy-normalMap.ts
  50. 0 14
      proceduralTexturesLibrary/legacy/legacy-perlinNoise.ts
  51. 0 14
      proceduralTexturesLibrary/legacy/legacy-starfield.ts
  52. 2 2
      proceduralTexturesLibrary/legacy/legacy-marble.ts
  53. 14 0
      proceduralTexturesLibrary/src/legacy/legacy-cloud.ts
  54. 2 2
      proceduralTexturesLibrary/legacy/legacy-fire.ts
  55. 2 2
      proceduralTexturesLibrary/legacy/legacy-grass.ts
  56. 14 0
      proceduralTexturesLibrary/src/legacy/legacy-marble.ts
  57. 14 0
      proceduralTexturesLibrary/src/legacy/legacy-normalMap.ts
  58. 14 0
      proceduralTexturesLibrary/src/legacy/legacy-perlinNoise.ts
  59. 2 2
      proceduralTexturesLibrary/legacy/legacy-road.ts
  60. 14 0
      proceduralTexturesLibrary/src/legacy/legacy-starfield.ts
  61. 2 2
      proceduralTexturesLibrary/legacy/legacy-wood.ts
  62. 2 2
      proceduralTexturesLibrary/legacy/legacy.ts
  63. 2 5
      proceduralTexturesLibrary/tsconfig.json
  64. 1 6
      proceduralTexturesLibrary/webpack.config.js
  65. 0 3
      serializers/legacy/legacy.ts
  66. 7 7
      serializers/legacy/legacy-glTF2Serializer.ts
  67. 2 2
      serializers/legacy/legacy-objSerializer.ts
  68. 3 0
      serializers/src/legacy/legacy.ts
  69. 2 5
      serializers/tsconfig.json
  70. 1 6
      serializers/webpack.config.js

+ 2 - 2
gui/legacy/legacy.ts

@@ -1,4 +1,4 @@
-import * as GUI from "../src/index";
+import * as GUI from "../index";
 
 /**
  * Legacy support, defining window.BABYLON.GUI (global variable).
@@ -12,4 +12,4 @@ if (typeof globalObject !== "undefined") {
     (<any>globalObject).BABYLON.GUI = GUI;
 }
 
-export * from "../src/index";
+export * from "../index";

+ 1 - 1
gui/tsconfig.json

@@ -21,7 +21,7 @@
         "skipDefaultLibCheck": true,
         "skipLibCheck": true,
         "baseUrl": "./src/",
-        "rootDir": "./",
+        "rootDir": "./src/",
         "paths": {
             "babylonjs": [
                 "../../dist/preview release/babylon.module.d.ts"

+ 2 - 7
gui/webpack.config.js

@@ -1,10 +1,9 @@
 const path = require('path');
 const webpack = require('webpack');
-const CleanWebpackPlugin = require('clean-webpack-plugin');
 const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
 
 module.exports = {
-    context: __dirname,
+    context: path.resolve(__dirname, './src'),
     entry: {
         'babylonjs-gui': path.resolve(__dirname, './legacy/legacy.ts'),
     },
@@ -20,7 +19,7 @@ module.exports = {
         umdNamedDefine: true
     },
     resolve: {
-        extensions: [".js", '.ts']
+        extensions: [".ts"]
     },
     externals: [
         {
@@ -53,10 +52,6 @@ module.exports = {
     },
     plugins: [
         new HardSourceWebpackPlugin(),
-        new CleanWebpackPlugin([
-            path.resolve(__dirname, './src/**/*.js'),
-            path.resolve(__dirname, './src/**/*.map')
-        ]),
         new webpack.WatchIgnorePlugin([
             /\.js$/,
             /\.d\.ts$/,

+ 2 - 2
inspector/legacy/legacy.ts

@@ -1,4 +1,4 @@
-import { Inspector } from "../src/index";
+import { Inspector } from "../index";
 
 var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
 if (typeof globalObject !== "undefined") {
@@ -6,4 +6,4 @@ if (typeof globalObject !== "undefined") {
     (<any>globalObject).BABYLON.Inspector = Inspector;
 }
 
-export * from "../src/index";
+export * from "../index";

+ 1 - 1
inspector/tsconfig.json

@@ -22,7 +22,7 @@
         "skipDefaultLibCheck": true,
         "skipLibCheck": true,
         "baseUrl": "./src/",
-        "rootDir": "./",
+        "rootDir": "./src/",
         "paths": {
             "babylonjs": [
                 "../../dist/preview release/babylon.module.d.ts"

+ 1 - 6
inspector/webpack.config.js

@@ -1,11 +1,10 @@
 const path = require('path');
 const webpack = require('webpack');
 const MiniCssExtractPlugin = require("mini-css-extract-plugin");
-const CleanWebpackPlugin = require('clean-webpack-plugin');
 const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
 
 module.exports = {
-    context: __dirname,
+    context: path.resolve(__dirname, './src'),
     entry: {
         'babylonjs-inspector': path.resolve(__dirname, './legacy/legacy.ts'),
     },
@@ -87,10 +86,6 @@ module.exports = {
     },
     plugins: [
         new HardSourceWebpackPlugin(),
-        new CleanWebpackPlugin([
-            path.resolve(__dirname, './src/**/*.js'),
-            path.resolve(__dirname, './src/**/*.map')
-        ]),
         new webpack.WatchIgnorePlugin([
             /\.js$/,
             /\.d\.ts$/

+ 2 - 2
loaders/legacy/legacy-glTF.ts

@@ -1,4 +1,4 @@
-import * as FileLoader from "../src/glTF/glTFFileLoader";
+import * as FileLoader from "../glTF/glTFFileLoader";
 
 /**
  * This is the entry point for the UMD module.
@@ -12,4 +12,4 @@ if (typeof globalObject !== "undefined") {
     }
 }
 
-export * from "../src/glTF/glTFFileLoader";
+export * from "../glTF/glTFFileLoader";

+ 1 - 1
loaders/legacy/legacy-glTF1.ts

@@ -1,4 +1,4 @@
-import * as GLTF1 from "../src/glTF/1.0";
+import * as GLTF1 from "../glTF/1.0";
 
 /**
  * This is the entry point for the UMD module.

loaders/legacy/legacy-glTF1FileLoader.ts → loaders/src/legacy/legacy-glTF1FileLoader.ts


+ 3 - 3
loaders/legacy/legacy-glTF2.ts

@@ -1,6 +1,6 @@
-import * as Extensions from "../src/glTF/2.0/Extensions";
-import * as Interfaces from "../src/glTF/2.0/glTFLoaderInterfaces";
-import * as GLTF2 from "../src/glTF/2.0";
+import * as Extensions from "../glTF/2.0/Extensions";
+import * as Interfaces from "../glTF/2.0/glTFLoaderInterfaces";
+import * as GLTF2 from "../glTF/2.0";
 
 /**
  * This is the entry point for the UMD module.

loaders/legacy/legacy-glTF2FileLoader.ts → loaders/src/legacy/legacy-glTF2FileLoader.ts


loaders/legacy/legacy-glTFFileLoader.ts → loaders/src/legacy/legacy-glTFFileLoader.ts


+ 2 - 2
loaders/legacy/legacy-objFileLoader.ts

@@ -1,4 +1,4 @@
-import * as Loaders from "../src/OBJ";
+import * as Loaders from "../OBJ";
 
 /**
  * This is the entry point for the UMD module.
@@ -11,4 +11,4 @@ if (typeof globalObject !== "undefined") {
     }
 }
 
-export * from "../src/OBJ";
+export * from "../OBJ";

+ 2 - 2
loaders/legacy/legacy-stlFileLoader.ts

@@ -1,4 +1,4 @@
-import * as Loaders from "../src/STL";
+import * as Loaders from "../STL";
 
 /**
  * This is the entry point for the UMD module.
@@ -11,4 +11,4 @@ if (typeof globalObject !== "undefined") {
     }
 }
 
-export * from "../src/STL";
+export * from "../STL";

+ 1 - 1
loaders/legacy/legacy.ts

@@ -1,4 +1,4 @@
-import "../src";
+import "../index";
 export * from "./legacy-glTF";
 export * from "./legacy-glTF1";
 export * from "./legacy-glTF2";

+ 2 - 5
loaders/tsconfig.json

@@ -21,7 +21,7 @@
       "skipDefaultLibCheck": true,
       "skipLibCheck": true,
       "baseUrl": "./src/",
-      "rootDir": "./",
+      "rootDir": "./src/",
       "paths": {
           "babylonjs": [
             "../../dist/preview release/babylon.module.d.ts",
@@ -31,8 +31,5 @@
           ],
       },
       "outDir": "./build"
-  },
-  "include": [
-      "src/**/*"
-  ]
+  }
 }

+ 1 - 6
loaders/webpack.config.js

@@ -1,10 +1,9 @@
 const path = require('path');
 const webpack = require('webpack');
-const CleanWebpackPlugin = require('clean-webpack-plugin');
 const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
 
 module.exports = {
-    context: __dirname,
+    context: path.resolve(__dirname, './src'),
     entry: {
         'babylonjs-loaders': path.resolve(__dirname, './legacy/legacy.ts'),
     },
@@ -57,10 +56,6 @@ module.exports = {
     },
     plugins: [
         new HardSourceWebpackPlugin(),
-        new CleanWebpackPlugin([
-            path.resolve(__dirname, './src/**/*.js'),
-            path.resolve(__dirname, './src/**/*.map')
-        ]),
         new webpack.WatchIgnorePlugin([
             /\.js$/,
             /\.d\.ts$/

+ 0 - 14
materialsLibrary/legacy/legacy-cell.ts

@@ -1,14 +0,0 @@
-import * as MatLib from "../src/cell/index";
-
-/**
- * This is the entry point for the UMD module.
- * The entry point for a future ESM package should be index.ts
- */
-var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
-if (typeof globalObject !== "undefined") {
-    for (var key in MatLib) {
-        (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];
-    }
-}
-
-export * from "../src/cell/index";

+ 0 - 14
materialsLibrary/legacy/legacy-fire.ts

@@ -1,14 +0,0 @@
-import * as MatLib from "../src/fire/index";
-
-/**
- * This is the entry point for the UMD module.
- * The entry point for a future ESM package should be index.ts
- */
-var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
-if (typeof globalObject !== "undefined") {
-    for (var key in MatLib) {
-        (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];
-    }
-}
-
-export * from "../src/fire/index";

+ 0 - 14
materialsLibrary/legacy/legacy-fur.ts

@@ -1,14 +0,0 @@
-import * as MatLib from "../src/fur/index";
-
-/**
- * This is the entry point for the UMD module.
- * The entry point for a future ESM package should be index.ts
- */
-var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
-if (typeof globalObject !== "undefined") {
-    for (var key in MatLib) {
-        (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];
-    }
-}
-
-export * from "../src/fur/index";

+ 0 - 14
materialsLibrary/legacy/legacy-gradient.ts

@@ -1,14 +0,0 @@
-import * as MatLib from "../src/gradient/index";
-
-/**
- * This is the entry point for the UMD module.
- * The entry point for a future ESM package should be index.ts
- */
-var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
-if (typeof globalObject !== "undefined") {
-    for (var key in MatLib) {
-        (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];
-    }
-}
-
-export * from "../src/gradient/index";

+ 0 - 14
materialsLibrary/legacy/legacy-lava.ts

@@ -1,14 +0,0 @@
-import * as MatLib from "../src/lava/index";
-
-/**
- * This is the entry point for the UMD module.
- * The entry point for a future ESM package should be index.ts
- */
-var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
-if (typeof globalObject !== "undefined") {
-    for (var key in MatLib) {
-        (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];
-    }
-}
-
-export * from "../src/lava/index";

+ 0 - 14
materialsLibrary/legacy/legacy-mix.ts

@@ -1,14 +0,0 @@
-import * as MatLib from "../src/mix/index";
-
-/**
- * This is the entry point for the UMD module.
- * The entry point for a future ESM package should be index.ts
- */
-var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
-if (typeof globalObject !== "undefined") {
-    for (var key in MatLib) {
-        (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];
-    }
-}
-
-export * from "../src/mix/index";

+ 0 - 14
materialsLibrary/legacy/legacy-normal.ts

@@ -1,14 +0,0 @@
-import * as MatLib from "../src/normal/index";
-
-/**
- * This is the entry point for the UMD module.
- * The entry point for a future ESM package should be index.ts
- */
-var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
-if (typeof globalObject !== "undefined") {
-    for (var key in MatLib) {
-        (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];
-    }
-}
-
-export * from "../src/normal/index";

+ 0 - 14
materialsLibrary/legacy/legacy-shadowOnly.ts

@@ -1,14 +0,0 @@
-import * as MatLib from "../src/shadowOnly/index";
-
-/**
- * This is the entry point for the UMD module.
- * The entry point for a future ESM package should be index.ts
- */
-var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
-if (typeof globalObject !== "undefined") {
-    for (var key in MatLib) {
-        (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];
-    }
-}
-
-export * from "../src/shadowOnly/index";

+ 0 - 14
materialsLibrary/legacy/legacy-triPlanar.ts

@@ -1,14 +0,0 @@
-import * as MatLib from "../src/triPlanar";
-
-/**
- * This is the entry point for the UMD module.
- * The entry point for a future ESM package should be index.ts
- */
-var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
-if (typeof globalObject !== "undefined") {
-    for (var key in MatLib) {
-        (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];
-    }
-}
-
-export * from "../src/triPlanar";

+ 14 - 0
materialsLibrary/src/legacy/legacy-cell.ts

@@ -0,0 +1,14 @@
+import * as MatLib from "../cell/index";
+
+/**
+ * This is the entry point for the UMD module.
+ * The entry point for a future ESM package should be index.ts
+ */
+var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
+if (typeof globalObject !== "undefined") {
+    for (var key in MatLib) {
+        (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];
+    }
+}
+
+export * from "../cell/index";

+ 14 - 0
materialsLibrary/src/legacy/legacy-custom.ts

@@ -0,0 +1,14 @@
+import * as MatLib from "../custom/index";
+
+/**
+ * This is the entry point for the UMD module.
+ * The entry point for a future ESM package should be index.ts
+ */
+var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
+if (typeof globalObject !== "undefined") {
+    for (var key in MatLib) {
+        (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];
+    }
+}
+
+export * from "../custom/index";

+ 14 - 0
materialsLibrary/src/legacy/legacy-fire.ts

@@ -0,0 +1,14 @@
+import * as MatLib from "../fire/index";
+
+/**
+ * This is the entry point for the UMD module.
+ * The entry point for a future ESM package should be index.ts
+ */
+var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
+if (typeof globalObject !== "undefined") {
+    for (var key in MatLib) {
+        (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];
+    }
+}
+
+export * from "../fire/index";

+ 14 - 0
materialsLibrary/src/legacy/legacy-fur.ts

@@ -0,0 +1,14 @@
+import * as MatLib from "../fur/index";
+
+/**
+ * This is the entry point for the UMD module.
+ * The entry point for a future ESM package should be index.ts
+ */
+var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
+if (typeof globalObject !== "undefined") {
+    for (var key in MatLib) {
+        (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];
+    }
+}
+
+export * from "../fur/index";

+ 2 - 2
materialsLibrary/legacy/legacy-grid.ts

@@ -1,4 +1,4 @@
-import * as MatLib from "../src/grid/index";
+import * as MatLib from "../gradient/index";
 
 /**
  * This is the entry point for the UMD module.
@@ -11,4 +11,4 @@ if (typeof globalObject !== "undefined") {
     }
 }
 
-export * from "../src/grid/index";
+export * from "../gradient/index";

+ 14 - 0
materialsLibrary/src/legacy/legacy-grid.ts

@@ -0,0 +1,14 @@
+import * as MatLib from "../grid/index";
+
+/**
+ * This is the entry point for the UMD module.
+ * The entry point for a future ESM package should be index.ts
+ */
+var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
+if (typeof globalObject !== "undefined") {
+    for (var key in MatLib) {
+        (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];
+    }
+}
+
+export * from "../grid/index";

+ 14 - 0
materialsLibrary/src/legacy/legacy-lava.ts

@@ -0,0 +1,14 @@
+import * as MatLib from "../lava/index";
+
+/**
+ * This is the entry point for the UMD module.
+ * The entry point for a future ESM package should be index.ts
+ */
+var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
+if (typeof globalObject !== "undefined") {
+    for (var key in MatLib) {
+        (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];
+    }
+}
+
+export * from "../lava/index";

+ 14 - 0
materialsLibrary/src/legacy/legacy-mix.ts

@@ -0,0 +1,14 @@
+import * as MatLib from "../mix/index";
+
+/**
+ * This is the entry point for the UMD module.
+ * The entry point for a future ESM package should be index.ts
+ */
+var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
+if (typeof globalObject !== "undefined") {
+    for (var key in MatLib) {
+        (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];
+    }
+}
+
+export * from "../mix/index";

+ 14 - 0
materialsLibrary/src/legacy/legacy-normal.ts

@@ -0,0 +1,14 @@
+import * as MatLib from "../normal/index";
+
+/**
+ * This is the entry point for the UMD module.
+ * The entry point for a future ESM package should be index.ts
+ */
+var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
+if (typeof globalObject !== "undefined") {
+    for (var key in MatLib) {
+        (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];
+    }
+}
+
+export * from "../normal/index";

+ 2 - 2
materialsLibrary/legacy/legacy-custom.ts

@@ -1,4 +1,4 @@
-import * as MatLib from "../src/custom/index";
+import * as MatLib from "../shadowOnly/index";
 
 /**
  * This is the entry point for the UMD module.
@@ -11,4 +11,4 @@ if (typeof globalObject !== "undefined") {
     }
 }
 
-export * from "../src/custom/index";
+export * from "../shadowOnly/index";

+ 2 - 2
materialsLibrary/legacy/legacy-simple.ts

@@ -1,4 +1,4 @@
-import * as MatLib from "../src/simple";
+import * as MatLib from "../simple";
 
 /**
  * This is the entry point for the UMD module.
@@ -11,4 +11,4 @@ if (typeof globalObject !== "undefined") {
     }
 }
 
-export * from "../src/simple";
+export * from "../simple";

+ 2 - 2
materialsLibrary/legacy/legacy-sky.ts

@@ -1,4 +1,4 @@
-import * as MatLib from "../src/sky";
+import * as MatLib from "../sky";
 
 /**
  * This is the entry point for the UMD module.
@@ -11,4 +11,4 @@ if (typeof globalObject !== "undefined") {
     }
 }
 
-export * from "../src/sky";
+export * from "../sky";

+ 2 - 2
materialsLibrary/legacy/legacy-terrain.ts

@@ -1,4 +1,4 @@
-import * as MatLib from "../src/terrain";
+import * as MatLib from "../terrain";
 
 /**
  * This is the entry point for the UMD module.
@@ -11,4 +11,4 @@ if (typeof globalObject !== "undefined") {
     }
 }
 
-export * from "../src/terrain";
+export * from "../terrain";

+ 14 - 0
materialsLibrary/src/legacy/legacy-triPlanar.ts

@@ -0,0 +1,14 @@
+import * as MatLib from "../triPlanar";
+
+/**
+ * This is the entry point for the UMD module.
+ * The entry point for a future ESM package should be index.ts
+ */
+var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
+if (typeof globalObject !== "undefined") {
+    for (var key in MatLib) {
+        (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];
+    }
+}
+
+export * from "../triPlanar";

+ 2 - 2
materialsLibrary/legacy/legacy-water.ts

@@ -1,4 +1,4 @@
-import * as MatLib from "../src/water";
+import * as MatLib from "../water";
 
 /**
  * This is the entry point for the UMD module.
@@ -11,4 +11,4 @@ if (typeof globalObject !== "undefined") {
     }
 }
 
-export * from "../src/water";
+export * from "../water";

+ 2 - 2
materialsLibrary/legacy/legacy.ts

@@ -1,4 +1,4 @@
-import * as MatLib from "../src/index";
+import * as MatLib from "../index";
 
 /**
  * Legacy support, defining window.BABYLON.GridMaterial... (global variable).
@@ -16,4 +16,4 @@ if (typeof globalObject !== "undefined") {
     }
 }
 
-export * from "../src/index";
+export * from "../index";

+ 2 - 5
materialsLibrary/tsconfig.json

@@ -21,15 +21,12 @@
         "skipDefaultLibCheck": true,
         "skipLibCheck": true,
         "baseUrl": "./src/",
-        "rootDir": "./",
+        "rootDir": "./src/",
         "paths": {
             "babylonjs": [
                 "../../dist/preview release/babylon.module.d.ts"
             ]
         },
         "outDir": "./build"
-    },
-    "include": [
-        "src/**/*"
-    ]
+    }
 }

+ 1 - 6
materialsLibrary/webpack.config.js

@@ -1,10 +1,9 @@
 const path = require('path');
 const webpack = require('webpack');
-const CleanWebpackPlugin = require('clean-webpack-plugin');
 const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
 
 module.exports = {
-    context: __dirname,
+    context: path.resolve(__dirname, './src'),
     entry: {
         'babylonjs-materials': path.resolve(__dirname, './legacy/legacy.ts'),
     },
@@ -57,10 +56,6 @@ module.exports = {
     },
     plugins: [
         new HardSourceWebpackPlugin(),
-        new CleanWebpackPlugin([
-            path.resolve(__dirname, './src/**/*.js'),
-            path.resolve(__dirname, './src/**/*.map')
-        ]),
         new webpack.WatchIgnorePlugin([
             /\.js$/,
             /\.d\.ts$/,

+ 1 - 4
postProcessLibrary/tsconfig.json

@@ -28,8 +28,5 @@
             ]
         },
         "outDir": "./build"
-    },
-    "include": [
-        "src/**/*"
-    ]
+    }
 }

+ 0 - 5
postProcessLibrary/webpack.config.js

@@ -1,6 +1,5 @@
 const path = require('path');
 const webpack = require('webpack');
-const CleanWebpackPlugin = require('clean-webpack-plugin');
 const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
 
 module.exports = {
@@ -53,10 +52,6 @@ module.exports = {
     },
     plugins: [
         new HardSourceWebpackPlugin(),
-        new CleanWebpackPlugin([
-            path.resolve(__dirname, './src/**/*.js'),
-            path.resolve(__dirname, './src/**/*.map')
-        ]),
         new webpack.WatchIgnorePlugin([
             /\.js$/,
             /\.d\.ts$/,

+ 0 - 14
proceduralTexturesLibrary/legacy/legacy-brick.ts

@@ -1,14 +0,0 @@
-import * as proceduralTexture from "../src/brick/index";
-
-/**
- * This is the entry point for the UMD module.
- * The entry point for a future ESM package should be index.ts
- */
-var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
-if (typeof globalObject !== "undefined") {
-    for (var key in proceduralTexture) {
-        (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
-    }
-}
-
-export * from "../src/brick/index";

+ 0 - 14
proceduralTexturesLibrary/legacy/legacy-cloud.ts

@@ -1,14 +0,0 @@
-import * as proceduralTexture from "../src/cloud/index";
-
-/**
- * This is the entry point for the UMD module.
- * The entry point for a future ESM package should be index.ts
- */
-var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
-if (typeof globalObject !== "undefined") {
-    for (var key in proceduralTexture) {
-        (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
-    }
-}
-
-export * from "../src/cloud/index";

+ 0 - 14
proceduralTexturesLibrary/legacy/legacy-normalMap.ts

@@ -1,14 +0,0 @@
-import * as proceduralTexture from "../src/normalMap";
-
-/**
- * This is the entry point for the UMD module.
- * The entry point for a future ESM package should be index.ts
- */
-var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
-if (typeof globalObject !== "undefined") {
-    for (var key in proceduralTexture) {
-        (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
-    }
-}
-
-export * from "../src/normalMap";

+ 0 - 14
proceduralTexturesLibrary/legacy/legacy-perlinNoise.ts

@@ -1,14 +0,0 @@
-import * as proceduralTexture from "../src/perlinNoise";
-
-/**
- * This is the entry point for the UMD module.
- * The entry point for a future ESM package should be index.ts
- */
-var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
-if (typeof globalObject !== "undefined") {
-    for (var key in proceduralTexture) {
-        (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
-    }
-}
-
-export * from "../src/perlinNoise";

+ 0 - 14
proceduralTexturesLibrary/legacy/legacy-starfield.ts

@@ -1,14 +0,0 @@
-import * as proceduralTexture from "../src/starfield";
-
-/**
- * This is the entry point for the UMD module.
- * The entry point for a future ESM package should be index.ts
- */
-var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
-if (typeof globalObject !== "undefined") {
-    for (var key in proceduralTexture) {
-        (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
-    }
-}
-
-export * from "../src/starfield";

+ 2 - 2
proceduralTexturesLibrary/legacy/legacy-marble.ts

@@ -1,4 +1,4 @@
-import * as proceduralTexture from "../src/marble";
+import * as proceduralTexture from "../brick/index";
 
 /**
  * This is the entry point for the UMD module.
@@ -11,4 +11,4 @@ if (typeof globalObject !== "undefined") {
     }
 }
 
-export * from "../src/marble";
+export * from "../brick/index";

+ 14 - 0
proceduralTexturesLibrary/src/legacy/legacy-cloud.ts

@@ -0,0 +1,14 @@
+import * as proceduralTexture from "../cloud/index";
+
+/**
+ * This is the entry point for the UMD module.
+ * The entry point for a future ESM package should be index.ts
+ */
+var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
+if (typeof globalObject !== "undefined") {
+    for (var key in proceduralTexture) {
+        (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
+    }
+}
+
+export * from "../cloud/index";

+ 2 - 2
proceduralTexturesLibrary/legacy/legacy-fire.ts

@@ -1,4 +1,4 @@
-import * as proceduralTexture from "../src/fire";
+import * as proceduralTexture from "../fire";
 
 /**
  * This is the entry point for the UMD module.
@@ -11,4 +11,4 @@ if (typeof globalObject !== "undefined") {
     }
 }
 
-export * from "../src/fire";
+export * from "../fire";

+ 2 - 2
proceduralTexturesLibrary/legacy/legacy-grass.ts

@@ -1,4 +1,4 @@
-import * as proceduralTexture from "../src/grass";
+import * as proceduralTexture from "../grass";
 
 /**
  * This is the entry point for the UMD module.
@@ -11,4 +11,4 @@ if (typeof globalObject !== "undefined") {
     }
 }
 
-export * from "../src/grass";
+export * from "../grass";

+ 14 - 0
proceduralTexturesLibrary/src/legacy/legacy-marble.ts

@@ -0,0 +1,14 @@
+import * as proceduralTexture from "../marble";
+
+/**
+ * This is the entry point for the UMD module.
+ * The entry point for a future ESM package should be index.ts
+ */
+var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
+if (typeof globalObject !== "undefined") {
+    for (var key in proceduralTexture) {
+        (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
+    }
+}
+
+export * from "../marble";

+ 14 - 0
proceduralTexturesLibrary/src/legacy/legacy-normalMap.ts

@@ -0,0 +1,14 @@
+import * as proceduralTexture from "../normalMap";
+
+/**
+ * This is the entry point for the UMD module.
+ * The entry point for a future ESM package should be index.ts
+ */
+var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
+if (typeof globalObject !== "undefined") {
+    for (var key in proceduralTexture) {
+        (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
+    }
+}
+
+export * from "../normalMap";

+ 14 - 0
proceduralTexturesLibrary/src/legacy/legacy-perlinNoise.ts

@@ -0,0 +1,14 @@
+import * as proceduralTexture from "../perlinNoise";
+
+/**
+ * This is the entry point for the UMD module.
+ * The entry point for a future ESM package should be index.ts
+ */
+var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
+if (typeof globalObject !== "undefined") {
+    for (var key in proceduralTexture) {
+        (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
+    }
+}
+
+export * from "../perlinNoise";

+ 2 - 2
proceduralTexturesLibrary/legacy/legacy-road.ts

@@ -1,4 +1,4 @@
-import * as proceduralTexture from "../src/road";
+import * as proceduralTexture from "../road";
 
 /**
  * This is the entry point for the UMD module.
@@ -11,4 +11,4 @@ if (typeof globalObject !== "undefined") {
     }
 }
 
-export * from "../src/road";
+export * from "../road";

+ 14 - 0
proceduralTexturesLibrary/src/legacy/legacy-starfield.ts

@@ -0,0 +1,14 @@
+import * as proceduralTexture from "../starfield";
+
+/**
+ * This is the entry point for the UMD module.
+ * The entry point for a future ESM package should be index.ts
+ */
+var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
+if (typeof globalObject !== "undefined") {
+    for (var key in proceduralTexture) {
+        (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
+    }
+}
+
+export * from "../starfield";

+ 2 - 2
proceduralTexturesLibrary/legacy/legacy-wood.ts

@@ -1,4 +1,4 @@
-import * as proceduralTexture from "../src/wood";
+import * as proceduralTexture from "../wood";
 
 /**
  * This is the entry point for the UMD module.
@@ -11,4 +11,4 @@ if (typeof globalObject !== "undefined") {
     }
 }
 
-export * from "../src/wood";
+export * from "../wood";

+ 2 - 2
proceduralTexturesLibrary/legacy/legacy.ts

@@ -1,4 +1,4 @@
-import * as ProceduralTexturesLib from "../src/index";
+import * as ProceduralTexturesLib from "../index";
 
 /**
  * Legacy support, defining window.BABYLON.GridMaterial... (global variable).
@@ -16,4 +16,4 @@ if (typeof globalObject !== "undefined") {
     }
 }
 
-export * from "../src/index";
+export * from "../index";

+ 2 - 5
proceduralTexturesLibrary/tsconfig.json

@@ -21,15 +21,12 @@
         "skipDefaultLibCheck": true,
         "skipLibCheck": true,
         "baseUrl": "./src/",
-        "rootDir": "./",
+        "rootDir": "./src/",
         "paths": {
             "babylonjs": [
                 "../../dist/preview release/babylon.module.d.ts"
             ]
         },
         "outDir": "./build"
-    },
-    "include": [
-        "src/**/*"
-    ]
+    }
 }

+ 1 - 6
proceduralTexturesLibrary/webpack.config.js

@@ -1,10 +1,9 @@
 const path = require('path');
 const webpack = require('webpack');
-const CleanWebpackPlugin = require('clean-webpack-plugin');
 const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
 
 module.exports = {
-    context: __dirname,
+    context: path.resolve(__dirname, './src'),
     entry: {
         'babylonjs-procedural-textures': path.resolve(__dirname, './legacy/legacy.ts'),
     },
@@ -54,10 +53,6 @@ module.exports = {
     },
     plugins: [
         new HardSourceWebpackPlugin(),
-        new CleanWebpackPlugin([
-            path.resolve(__dirname, './src/**/*.js'),
-            path.resolve(__dirname, './src/**/*.map')
-        ]),
         new webpack.WatchIgnorePlugin([
             /\.js$/,
             /\.d\.ts$/,

+ 0 - 3
serializers/legacy/legacy.ts

@@ -1,3 +0,0 @@
-import "../src";
-export * from "./legacy-glTF2Serializer";
-export * from "./legacy-objSerializer";

+ 7 - 7
serializers/legacy/legacy-glTF2Serializer.ts

@@ -1,8 +1,8 @@
-import * as Exporters from "../src/glTF/glTFFileExporter";
-import * as Datas from "../src/glTF/2.0/glTFData";
-import * as Serializers from "../src/glTF/2.0/glTFSerializer";
-import * as Extensions from "../src/glTF/2.0/Extensions";
-import * as GLTF2 from "../src/glTF/2.0";
+import * as Exporters from "../glTF/glTFFileExporter";
+import * as Datas from "../glTF/2.0/glTFData";
+import * as Serializers from "../glTF/2.0/glTFSerializer";
+import * as Extensions from "../glTF/2.0/Extensions";
+import * as GLTF2 from "../glTF/2.0";
 
 /**
  * This is the entry point for the UMD module.
@@ -45,5 +45,5 @@ if (typeof globalObject !== "undefined") {
     }
 }
 
-export * from "../src/glTF/glTFFileExporter";
-export * from "../src/glTF/2.0";
+export * from "../glTF/glTFFileExporter";
+export * from "../glTF/2.0";

+ 2 - 2
serializers/legacy/legacy-objSerializer.ts

@@ -1,4 +1,4 @@
-import * as Serializers from "../src/OBJ";
+import * as Serializers from "../OBJ";
 
 /**
  * This is the entry point for the UMD module.
@@ -11,4 +11,4 @@ if (typeof globalObject !== "undefined") {
     }
 }
 
-export * from "../src/OBJ";
+export * from "../OBJ";

+ 3 - 0
serializers/src/legacy/legacy.ts

@@ -0,0 +1,3 @@
+import "../index";
+export * from "./legacy-glTF2Serializer";
+export * from "./legacy-objSerializer";

+ 2 - 5
serializers/tsconfig.json

@@ -21,7 +21,7 @@
       "skipDefaultLibCheck": true,
       "skipLibCheck": true,
       "baseUrl": "./src/",
-      "rootDir": "./",
+      "rootDir": "./src/",
       "paths": {
           "babylonjs": [
             "../../dist/preview release/babylon.module.d.ts",
@@ -31,8 +31,5 @@
           ],
       },
       "outDir": "./build"
-  },
-  "include": [
-      "src/**/*"
-  ]
+  }
 }

+ 1 - 6
serializers/webpack.config.js

@@ -1,10 +1,9 @@
 const path = require('path');
 const webpack = require('webpack');
-const CleanWebpackPlugin = require('clean-webpack-plugin');
 const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
 
 module.exports = {
-    context: __dirname,
+    context: path.resolve(__dirname, './src'),
     entry: {
         'babylonjs-loaders': path.resolve(__dirname, './legacy/legacy.ts'),
     },
@@ -57,10 +56,6 @@ module.exports = {
     },
     plugins: [
         new HardSourceWebpackPlugin(),
-        new CleanWebpackPlugin([
-            path.resolve(__dirname, './src/**/*.js'),
-            path.resolve(__dirname, './src/**/*.map')
-        ]),
         new webpack.WatchIgnorePlugin([
             /\.js$/,
             /\.d\.ts$/,