<commit_before>const watchAll = (bs, generator, data) => {
  const sources = data.paths.sources;
  // Styles watcher
  bs.watch(sources.styles).on(
    'change', () => generator.compileStyles(data.compilers.sass, data.themeConfig)
  );
  // Views watcher
  bs.watch(sources.views).on(
    'change', () => generator.compileViews(data)
  );
  // Javascript watcher
  bs.watch(sources.javascript).on(
    'change', () => generator.compileJavascript()
  );
  // Images watcher
  bs.watch(sources.images).on(
    'change', () => generator.copyImages()
  );
  // Fonts watcher
  bs.watch(sources.fonts).on(
    'change', () => generator.copyFonts()
  );
};
export default watchAll;
<commit_msg>Adds logger error on assets watchers<commit_after>import * as logger from './logger';
const watchAll = (bs, generator, data) => {
  const sources = data.paths.sources;
  // Styles watcher
  // TODO: add error handler on each generator function
  bs.watch(sources.styles).on(
    'change', () => generator.compileStyles(data.compilers.sass, data.themeConfig).catch(error => logger.error(error))
  );
  // Views watcher
  bs.watch(sources.views).on(
    'change', () => generator.compileViews(data).catch(error => logger.error(error))
  );
  // Javascript watcher
  bs.watch(sources.javascript).on(
    'change', () => generator.compileJavascript().catch(error => logger.error(error))
  );
  // Images watcher
  bs.watch(sources.images).on(
    'change', () => generator.copyImages().catch(error => logger.error(error))
  );
  // Fonts watcher
  bs.watch(sources.fonts).on(
    'change', () => generator.copyFonts().catch(error => logger.error(error))
  );
};
export default watchAll;

{'fraction_non_alphanumeric': 0.175344105326152, 'fraction_numerical': 0.0, 'mean_word_length': 3.8463768115942027, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6400942', 'n_tokens_mistral': 549, 'n_tokens_neox': 530, 'n_words': 97}