<commit_before>'use strict';

module.exports = function (nitro) {

  var canClear = ['dist', '.tmp', 'public'];

  nitro.task('clear', function (target) {
    if( target === 'build' ) {
      canClear.forEach(function (dir) {
        nitro.dir.remove(dir);
      });
      return;
    }

    if( canClear.indexOf(target) !== -1 ) {
      nitro.dir.remove(target);
    }
  });

  // main tasks

  nitro.task('build', ['clear:build', 'widgets', 'js', 'demo']);
<commit_msg>showing current branch in build<commit_after>'use strict';

module.exports = function (nitro) {

  console.log('[[ current branch ]]', require('git-rev-sync').branch() );

  var canClear = ['dist', '.tmp', 'public'];

  nitro.task('clear', function (target) {
    if( target === 'build' ) {
      canClear.forEach(function (dir) {
        nitro.dir.remove(dir);
      });
      return;
    }

    if( canClear.indexOf(target) !== -1 ) {
      nitro.dir.remove(target);
    }
  });

  // main tasks

  nitro.task('build', ['clear:build', 'widgets', 'js', 'demo']);

{'fraction_non_alphanumeric': 0.20676328502415459, 'fraction_numerical': 0.001932367149758454, 'mean_word_length': 2.8947368421052633, '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': '3164262', 'n_tokens_mistral': 358, 'n_tokens_neox': 344, 'n_words': 70}