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

temporarily disable parcel-2

Naguumo пре 4 година
родитељ
комит
6bd18147f2
3 измењених фајлова са 431 додато и 640 уклоњено
  1. 1 1
      example-projects
  2. 14 5
      scripts/example-run.js
  3. 416 634
      yarn.lock

+ 1 - 1
example-projects

@@ -1 +1 @@
-Subproject commit f6690f91334d6a9e751cdfefe13a072560fab69a
+Subproject commit cfee6b644187e69af383d08c4eb2cb53b74bab95

+ 14 - 5
scripts/example-run.js

@@ -10,7 +10,14 @@ const runCmd = process.argv[3];
 ///////////////////////////////////////////////////////
 // Project Settings
 const redirectProjects = [["parcel", "parcel-2"]];
-const disabledProjects = ["next", "next-scheduler"];
+const disabledProjects = [
+  ["next", "This example is disabled till the next major release"],
+  ["next-scheduler", "This example is disabled till the next major release"],
+  [
+    "parcel-2",
+    "There is currently a bug in parcel bundler which prevents this from working",
+  ],
+];
 const pnpSimulatedProjects = ["angular"];
 ///////////////////////////////////////////////////////
 
@@ -38,15 +45,16 @@ projNames.forEach((projName) => {
   }
 
   // Don't run disabled projects
-  if (disabledProjects.includes(projName)) {
-    console.info("This example is disabled till the next major release");
+  const disabled = disabledProjects.find(([val]) => val === projName);
+  if (disabled) {
+    console.info(disabled[1]);
     return;
   }
 
   const projDir = path.join(examplesDir, projName);
 
-  console.log("");
-  console.log("PROJECT:", projName);
+  console.log();
+  console.info("PROJECT:", projName);
   console.log(projDir);
 
   // Decide whether to simulate pnp or run normal yarn
@@ -58,6 +66,7 @@ projNames.forEach((projName) => {
     console.log("Normal Yarn execution");
   }
 
+  // Execute
   console.log();
   exec.sync(["yarn", "run", ...execCmd], {
     cwd: projDir,

Разлика између датотеке није приказан због своје велике величине
+ 416 - 634
yarn.lock


Неке датотеке нису приказане због велике количине промена