From d32bc2e4f18ce94823b8b9b4cc4297b9ac4072e4 Mon Sep 17 00:00:00 2001 From: Salem Ghoweri Date: Fri, 9 Nov 2018 14:07:47 -0500 Subject: [PATCH] =?UTF-8?q?feat:=20update=20build=20process=20to=20automat?= =?UTF-8?q?ically=20skip=20over=20the=20check=20for=20all=20available=20Bo?= =?UTF-8?q?lt=20versions=20=E2=80=94=20speeds=20up=20initial=20boot=20up?= =?UTF-8?q?=20process=20when=20doing=20local=20dev=20work?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/build-tools/utils/bolt-versions.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/packages/build-tools/utils/bolt-versions.js b/packages/build-tools/utils/bolt-versions.js index 8df8b4cc2b..656c9fe0c4 100644 --- a/packages/build-tools/utils/bolt-versions.js +++ b/packages/build-tools/utils/bolt-versions.js @@ -30,9 +30,26 @@ async function writeVersionDataToJson(versionData) { } async function gatherBoltVersions() { + const config = await getConfig(); + const versionSpinner = ora( chalk.blue('Gathering data on the latest Bolt Design System releases...'), ).start(); + + // Skip over checking for Bolt releases when not in prod mode to speed up the initial build + if (!config.prod) { + versionSpinner.succeed( + chalk.green('Skipped gathering data on every Bolt release -- dev build!'), + ); + return [ + { + label: 'Local Dev', + type: 'option', + value: `http://localhost:${config.port}/${config.startPath}`, + }, + ]; + } + const tags = await gitSemverTags(); const tagUrls = [];