From 58160fccfeeedabee89be8bcb748317fde18731e Mon Sep 17 00:00:00 2001 From: metonym Date: Wed, 1 Sep 2021 13:07:28 -0700 Subject: [PATCH] chore: delete publish-examples.js --- scripts/publish-examples.js | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 scripts/publish-examples.js diff --git a/scripts/publish-examples.js b/scripts/publish-examples.js deleted file mode 100644 index 14078117..00000000 --- a/scripts/publish-examples.js +++ /dev/null @@ -1,31 +0,0 @@ -const ghpages = require("gh-pages"); -const fs = require("fs"); -const path = require("path"); -const { promisify } = require("util"); - -const ghPublish = promisify(ghpages.publish); - -async function publishExample(name) { - ghpages.clean(); - - try { - const folder_path = path.join("examples", name); - await ghPublish(folder_path, { - branch: name, - dotfiles: true, - history: false, - }); - console.log("Published example:", name); - } catch (error) { - console.error(error); - } -} - -(async () => { - await publishExample("rollup"); - await publishExample("rollup-typescript"); - await publishExample("routify"); - await publishExample("sapper"); - await publishExample("svite"); - await publishExample("webpack"); -})();