<commit_before>;(function() {
  'use strict';

  /*  Dependencies  */
  var lib    = require('./lib')
  var gulp   = require('gulp');
  var $      = require('gulp-load-plugins')({lazy:true});
  var del    = require('del');

  /* Tasks */

var tasks = lib.tasks

// ================= DEFAULT

gulp
  .task('default', $.sequence('dev'));

//================== DEV
gulp
  .task( 'dev',
    $.sequence( 'clean'
              , 'build:dev'
              , 'start:dev'
              ));

// ====== BUILD
gulp
  .task( 'js:dev'    , tasks.js.dev     )
  .task( 'css:dev'   , tasks.css.dev    )
  .task( 'styl:dev'  , tasks.styl.dev   )
  .task( 'html:dev'  , tasks.html.dev   )
  .task( 'jade:dev'  , tasks.jade.dev   )
  .task( 'images:dev', tasks.images.dev )
  .task( 'build:dev' ,
    $.sequence( 'js:dev'
              , 'css:dev'
              , 'styl:dev'
              , 'html:dev'
              , 'jade:dev'
              , 'images:dev'
              ));

// ====== START
gulp
  .task( 'vendor:dev' , tasks.vendor.dev )
  .task( 'inject:dev' , tasks.inject.dev )
  .task( 'server:dev' , tasks.server.dev )
  .task( 'watch:dev'  , tasks.watch.dev  )
  .task( 'start:dev'  ,
    $.sequence(
                'vendor:dev'
              , 'inject:dev'
              , 'server:dev'
              , 'watch:dev'
              ));


// //================== STAGE

gulp
  .task('stage',
    $.sequence('clean',
               'build:stage',
               'start:stage'));

// ====== BUILD

gulp
  .task('js:stage', tasks.js.stage)
  .task('css:stage', tasks.css.stage)
  .task('styl:stage', tasks.styl.stage)
  .task('html:stage', tasks.html.stage)
  .task('jade:stage', tasks.jade.stage)
  .task('images:stage', tasks.images.stage)
  .task('build:stage',
    $.sequence('js:stage',
               'css:stage',
               'styl:stage',
               'html:stage',
               'jade:stage',
               'images:stage'));




// ====== START

gulp
  .task('vendor:stage', tasks.vendor.stage)
  .task('inject:stage', tasks.inject.stage)
  .task('server:stage', tasks.server.stage)
  .task('watch:stage', tasks.watch.stage)
  .task('start:stage',
    $.sequence(
      'vendor:stage',
      'inject:stage',
      'server:stage',
      'watch:stage'
    ));


//================== PROD

gulp
  .task('prod',
    $.sequence(
      'clean',
      'build:stage',
      'vendor:stage',
      'inject:stage'
    )
  );

//================== DEPLOY

gulp
  .task('deploy', function() {
    if (process.env.NODE_ENV === 'production') gulp.start('prod');
  });


//================== CLEAN
gulp
  .task('clean', del.bind(null, ['build']));

/******************************************************************************
 * GitHub commands
 *****************************************************************************/

gulp
  .task('git:rebase', tasks.git.rebase)
  .task('git:push', tasks.git.push)
  .task('git:pr', $.sequence('lint', 'git:rebase', 'git:push'));

/******************************************************************************
 * Testing suite
 *****************************************************************************/

gulp
  .task('lint', tasks.lint)
  .task('karma', tasks.karma)
  .task('nightwatch', tasks.nightwatch)
  .task('mocha', tasks.mocha)
  .task('test',
    $.sequence('lint',
               'karma',
               'mocha')
  );

/**
 * coveralls<commit_msg>update gulpfile to build html/jade templates on test<commit_after>;(function() {
  'use strict';

  /*  Dependencies  */
  var lib    = require('./lib')
  var gulp   = require('gulp');
  var $      = require('gulp-load-plugins')({lazy:true});
  var del    = require('del');

  /* Tasks */

var tasks = lib.tasks

// ================= DEFAULT

gulp
  .task('default', $.sequence('dev'));

//================== DEV
gulp
  .task( 'dev',
    $.sequence( 'clean'
              , 'build:dev'
              , 'start:dev'
              ));

// ====== BUILD
gulp
  .task( 'js:dev'    , tasks.js.dev     )
  .task( 'css:dev'   , tasks.css.dev    )
  .task( 'styl:dev'  , tasks.styl.dev   )
  .task( 'html:dev'  , tasks.html.dev   )
  .task( 'jade:dev'  , tasks.jade.dev   )
  .task( 'images:dev', tasks.images.dev )
  .task( 'build:dev' ,
    $.sequence( 'js:dev'
              , 'css:dev'
              , 'styl:dev'
              , 'html:dev'
              , 'jade:dev'
              , 'images:dev'
              ));

// ====== START
gulp
  .task( 'vendor:dev' , tasks.vendor.dev )
  .task( 'inject:dev' , tasks.inject.dev )
  .task( 'server:dev' , tasks.server.dev )
  .task( 'watch:dev'  , tasks.watch.dev  )
  .task( 'start:dev'  ,
    $.sequence(
                'vendor:dev'
              , 'inject:dev'
              , 'server:dev'
              , 'watch:dev'
              ));


// //================== STAGE

gulp
  .task('stage',
    $.sequence('clean',
               'build:stage',
               'start:stage'));

// ====== BUILD

gulp
  .task('js:stage', tasks.js.stage)
  .task('css:stage', tasks.css.stage)
  .task('styl:stage', tasks.styl.stage)
  .task('html:stage', tasks.html.stage)
  .task('jade:stage', tasks.jade.stage)
  .task('images:stage', tasks.images.stage)
  .task('build:stage',
    $.sequence('js:stage',
               'css:stage',
               'styl:stage',
               'html:stage',
               'jade:stage',
               'images:stage'));




// ====== START

gulp
  .task('vendor:stage', tasks.vendor.stage)
  .task('inject:stage', tasks.inject.stage)
  .task('server:stage', tasks.server.stage)
  .task('watch:stage', tasks.watch.stage)
  .task('start:stage',
    $.sequence(
      'vendor:stage',
      'inject:stage',
      'server:stage',
      'watch:stage'
    ));


//================== PROD

gulp
  .task('prod',
    $.sequence(
      'clean',
      'build:stage',
      'vendor:stage',
      'inject:stage'
    )
  );

//================== DEPLOY

gulp
  .task('deploy', function() {
    if (process.env.NODE_ENV === 'production') gulp.start('prod');
  });


//================== CLEAN
gulp
  .task('clean', del.bind(null, ['build']));

/******************************************************************************
 * GitHub commands
 *****************************************************************************/

gulp
  .task('git:rebase', tasks.git.rebase)
  .task('git:push', tasks.git.push)
  .task('git:pr', $.sequence('lint', 'git:rebase', 'git:push'));

/******************************************************************************
 * Testing suite
 *****************************************************************************/

gulp
  .task('lint', tasks.lint)
  .task('karma', tasks.karma)
  .task('nightwatch', tasks.nightwatch)
  .task('mocha', tasks.mocha)
  .task('test',
    $.sequence('clean',
               'lint',
               // Build Jade templates for Karma tests
               'jade:dev',
               // Build HTML templates for Karma tests
               'html:dev',
               'karma',
               'mocha')
  );

/**
 * coveralls
{'fraction_non_alphanumeric': 0.2987587387644457, 'fraction_numerical': 0.0, 'mean_word_length': 2.401261523532266, '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': '2516496', 'n_tokens_mistral': 2332, 'n_tokens_neox': 2251, 'n_words': 365}