How to use the kyt-utils/logger.end function in kyt-utils

To help you get started, weā€™ve selected a few kyt-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nytimes / kyt / packages / kyt-core / cli / actions / build.js View on Github external
serverCompiler = webpackCompiler(serverConfig, stats => {
      if (stats.hasErrors()) process.exit(1);
      logger.end('Done building');
    });
    serverCompiler.run(() => undefined);
github nytimes / kyt / packages / kyt-core / cli / actions / lintStyle.js View on Github external
.then(result => {
      if (result.output) {
        handleError(`\n${result.output}`);
      } else {
        logger.end('Your styles look good! āœØ');
        process.exit(0);
      }
    })
    .catch(error => {
github nytimes / kyt / packages / kyt-cli / cli / actions / list.js View on Github external
module.exports = () => {
  logger.start('Listing starter-kyts');
  logger.task('kyt supported starter-kyts: \n');
  Object.keys(starterKyts.supported).forEach((starterName, index) => {
    const li = index + 1;
    printStarter(li, starterKyts.supported[starterName]);
  });
  logger.task('Recommended starter-kyts:\n');
  Object.keys(starterKyts.recommended).forEach((starterName, index) => {
    const li = index + 1;
    printStarter(li, starterKyts.recommended[starterName]);
  });
  logger.end('List complete');
};
github olymp / olymp / kyt / kyt-cli-dev.js View on Github external
      .on('restart', () => logger.end('Development server restarted'))
      .on('quit', process.exit);
github nytimes / kyt / packages / kyt-cli / cli / actions / setup.js View on Github external
const existingProjectSetup = () => {
    logger.start('Setting up kyt');
    updateUserPackageJSON(true);
    createEditorconfigLink();
    createESLintFile();
    createStylelintFile();
    createKytConfig();
    createGitignore();
    logger.end('Done setting up kyt');
  };
github olymp / olymp / kyt / kyt-cli-dev.js View on Github external
clientCompiler = webpackCompiler(clientConfig, (stats) => {
    if (stats.hasErrors()) return;
    afterClientCompile();
    if (hasServer) {
      compileServer();
    } else {
      logger.end('Client started');
    }
  });
github olymp / olymp / kyt / kyt-cli-dev.js View on Github external
.once('start', () => {
        logger.task(`Server running at: ${serverURL.href}`);
        logger.end('Development started');
      })
      .on('restart', () => logger.end('Development server restarted'))
github nytimes / kyt / packages / kyt-core / cli / actions / dev.js View on Github external
.once('start', () => {
        logger.task(`Server running at: ${serverURL.href}`);
        logger.end('Development started');
      })
      .on('restart', () => logger.end('Development server restarted'))
github nytimes / kyt / packages / kyt-core / cli / actions / dev.js View on Github external
clientCompiler = webpackCompiler(clientConfig, stats => {
    if (stats.hasErrors()) return;
    afterClientCompile();
    if (hasServer) {
      compileServer();
    } else {
      logger.end('Client started');
    }
  });
github nytimes / kyt / packages / kyt-core / cli / actions / dev.js View on Github external
      .on('restart', () => logger.end('Development server restarted'))
      .on('quit', process.exit);

kyt-utils

A shared kyt utility library.

Apache-2.0
Latest version published 12 months ago

Package Health Score

75 / 100
Full package analysis

Similar packages