INNER CODE UNIT · JavaScript

async

madlabsinc/mevn-cli · src/commands/deploy/index.js:19

export default async () => {
  await showBanner('MEVN CLI', 'Light speed setup for MEVN stack based apps.');
  checkIfConfigFileExists();

  // Choose between client/server
  let templateDir = 'client';
  if (fs.existsSync('./server')) {
    ({ dir: templateDir } = await dirOfChoice());
  }

  // List the various options for client side
  if (templateDir === 'client') {
    const { template } = fetchProjectConfig();

    // Choose platform based on deploy-target for Nuxt.js
    if (template === 'Nuxt.js') {
      const { deployTarget } = fetchProjectConfig();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…