INNER CODE UNIT · JavaScript

async

madlabsinc/mevn-cli · src/commands/codesplit/index.js:22

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

  // Exit for the case of Nuxt.js boilerplate template
  const { packageManager, template } = fetchProjectConfig();
  if (template === 'Nuxt.js') {
    logger.error(`\n You're having the Nuxt.js boilerplate template`);
    process.exit(1);
  }

  const routesConfigPath = path.join('client', 'src', 'router.js');
  const routesConfig = readFileContent(routesConfigPath);

  // Keep hold of regular imported components
  const availableComponents = [];

  // Populate the array with regular imported components

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…