How to use the just-task-logger.logger.info function in just-task-logger

To help you get started, we’ve selected a few just-task-logger 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 microsoft / just / packages / create-just / src / plop.ts View on Github external
export async function runGenerator(generator: any, args: any) {
  const results = await generator.runActions(args, {
    onComment: (comment: string) => {
      logger.info(comment);
    }
  });

  if (results.failures && results.failures.length > 0) {
    throw new Error('Error: ' + results.failures[0].error);
  }

  // do something after the actions have run
  for (let change of results.changes) {
    if (change.path) {
      logger.info(change.path);
    }
  }
}
github microsoft / just / packages / just-task / src / task.ts View on Github external
handler(_argvParam: any) {
      if (isCached(taskName)) {
        logger.info(`Skipped ${taskName} since it was cached`);
        return;
      }

      return undertaker.parallel(taskName)(() => {
        saveCache(taskName);
      });
    }
  };
github microsoft / just / packages / create-just / src / plop.ts View on Github external
onComment: (comment: string) => {
      logger.info(comment);
    }
  });

just-task-logger

Logger for Just scripts and tasks

MIT
Latest version published 1 year ago

Package Health Score

73 / 100
Full package analysis

Similar packages