<commit_before>'use strict';

// Watch Files For Changes & Reload
module.exports = function (gulp, config, browserSync) { return function () {
  var reload = browserSync.reload;

  browserSync({
    browser: config.browserSync.browser,
    https: config.browserSync.https,
    notify: config.browserSync.notify,
    port: config.browserSync.port,
    server: {
      baseDir: ['.tmp', 'app'],
      routes: {
        '/bower_components': 'bower_components'
      }
    }
  });

  // watch for changes
  gulp.watch([
    'app/**/*.html',
    '.tmp/**/*.html',
    '.tmp/{styles,elements}/**/*.css',
    'app/images/**/*',
    '.tmp/fonts/**/*'
  ]).on('change', reload);

  gulp.watch('app/**/*.{jade,md}', ['jade', reload]);
  gulp.watch('app/styles/**/*.scss', ['styles', reload]);
  gulp.watch('app/elements/**/*.scss', ['elements', reload]);
  gulp.watch('app/{scripts,elements}/**/*.js', ['jshint', reload]);
  gulp.watch('app/fonts/**/*', ['fonts']);
  gulp.watch('bower.json', ['wiredep', 'fonts']);
};};<commit_msg>Fix serve task for created views task<commit_after>'use strict';

// Watch Files For Changes & Reload
module.exports = function (gulp, config, browserSync) { return function () {
  var reload = browserSync.reload;

  browserSync({
    browser: config.browserSync.browser,
    https: config.browserSync.https,
    notify: config.browserSync.notify,
    port: config.browserSync.port,
    server: {
      baseDir: ['.tmp', 'app'],
      routes: {
        '/bower_components': 'bower_components'
      }
    }
  });

  // watch for changes
  gulp.watch([
    'app/**/*.html',
    '.tmp/**/*.html',
    '.tmp/{styles,elements}/**/*.css',
    'app/images/**/*',
    '.tmp/fonts/**/*'
  ]).on('change', reload);

  gulp.watch('app/**/*.{jade,md}', ['views', reload]);
  gulp.watch('app/styles/**/*.scss', ['styles', reload]);
  gulp.watch('app/elements/**/*.scss', ['elements', reload]);
  gulp.watch('app/{scripts,elements}/**/*.js', ['jshint', reload]);
  gulp.watch('app/fonts/**/*', ['fonts']);
  gulp.watch('bower.json', ['wiredep', 'fonts']);
};};
{'fraction_non_alphanumeric': 0.2387626872885452, 'fraction_numerical': 0.0, 'mean_word_length': 3.357894736842105, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '724452', 'n_tokens_mistral': 724, 'n_tokens_neox': 701, 'n_words': 128}