Skip to content

Commit

Permalink
feat: update build process to automatically skip over the check for a…
Browse files Browse the repository at this point in the history
…ll available Bolt versions — speeds up initial boot up process when doing local dev work
  • Loading branch information
bolt-bot committed Nov 9, 2018
1 parent 799ce4f commit d32bc2e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/build-tools/utils/bolt-versions.js
Expand Up @@ -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 = [];
Expand Down

0 comments on commit d32bc2e

Please sign in to comment.