瀏覽代碼

Revert Fix

sebavan 5 年之前
父節點
當前提交
595eff8645
共有 3 個文件被更改,包括 6 次插入6 次删除
  1. 1 1
      Tools/Gulp/package.json
  2. 3 3
      Tools/Gulp/tasks/gulpTasks-localRun.js
  3. 2 2
      azure-pipelines-cd.yml

+ 1 - 1
Tools/Gulp/package.json

@@ -9,7 +9,7 @@
     "readme": "https://github.com/BabylonJS/Babylon.js/edit/master/readme.md",
     "license": "(Apache-2.0)",
     "scripts": {
-        "install": "cd ../../ && npm install && cd playground/ && npm install && cd ../Viewer && npm install && cd ../Tools/Gulp/",
+        "install": "cd ../../ && npm install && cd Playground/ && npm install && cd ../Viewer && npm install && cd ../Tools/Gulp/",
         "build": "gulp --max-old-space-size=8192 --tsLintFix",
         "start": "gulp run --max-old-space-size=8192",
         "start-public-ssl": "gulp run --max-old-space-size=8192 --public --ssl"

+ 3 - 3
Tools/Gulp/tasks/gulpTasks-localRun.js

@@ -31,8 +31,8 @@ gulp.task("webserver", function () {
                 let referer = req.headers['referer'];
                 if (!baseUrl && referer) {
                     referer = referer.toLowerCase();
-                    if (referer.indexOf('/playground/') !== -1 && req.url.toLowerCase().indexOf('/playground/') === -1) {
-                        req.url = "/playground/" + req.url;
+                    if (referer.indexOf('/playground/') !== -1 && req.url.indexOf('/Playground/') === -1) {
+                        req.url = "/Playground/" + req.url;
                         res.writeHead(301, {
                             'Location': req.url
                         });
@@ -40,7 +40,7 @@ gulp.task("webserver", function () {
                     }
                     if (referer.indexOf('/localdev/') !== -1 && referer.indexOf(req.originalUrl) === -1) {
                         if (!fs.existsSync(rootRelativePath + req.originalUrl)) {
-                            req.url = "/playground/" + req.url.replace(/localDev/ig, "");
+                            req.url = "/Playground/" + req.url.replace(/localDev/ig, "");
                         }
                     }
                 }

+ 2 - 2
azure-pipelines-cd.yml

@@ -10,8 +10,8 @@ jobs:
   steps:
   - script: 'npm install netlify-cli'
     displayName: 'npm install netlify'
-  - script: 'npm install --prefix playground/'
-    displayName: 'npm install playground'
+  - script: 'npm install --prefix Playground/'
+    displayName: 'npm install Playground'
   - script: 'npm install typescript'
     displayName: 'npm install typescript'
 # Controllers