<commit_before>var gulp = require('gulp');
var jshint = require('gulp-jshint');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var clean = require('gulp-clean');
var childProcess = require('child_process');
var concat = require('gulp-concat');

gulp.task('clean', function(){
  return gulp.src('dist', {read: false})
    .pipe(clean());
});

gulp.task('build-bower', ['clean'], function(){
  return gulp.src(['src/core/serilog.js', 'src/bower/serilog-console-sink.js'])
    .pipe(jshint('.jshintrc'))
    .pipe(jshint.reporter('default'))
    .pipe(jshint.reporter('fail'))
    .pipe(uglify({mangle: false}))
    .pipe(concat('serilog.min.js'))
    .pipe(gulp.dest('dist/bower'));
});

gulp.task('build-npm', ['clean'], function(){
  return gulp.src(['src/core/serilog.js', 'src/npm/*.js', 'src/npm/*.json'])<commit_msg>Updated build script to only delete 'dist/npm'. Can't delete the bower dist directory because it will be a git sub repo.<commit_after>var gulp = require('gulp');
var jshint = require('gulp-jshint');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var clean = require('gulp-clean');
var childProcess = require('child_process');
var concat = require('gulp-concat');

gulp.task('clean-npm', function(){
  return gulp.src('dist/npm', {read: false})
    .pipe(clean());
});

gulp.task('build-bower', [], function(){
  return gulp.src(['src/core/serilog.js', 'src/bower/serilog-console-sink.js'])
    .pipe(jshint('.jshintrc'))
    .pipe(jshint.reporter('default'))
    .pipe(jshint.reporter('fail'))
    .pipe(uglify({mangle: false}))
    .pipe(concat('serilog.min.js'))
    .pipe(gulp.dest('dist/bower'));
});

gulp.task('build-npm', ['clean-npm'], function(){
  return gulp.src(['src/core/serilog.js', 'src/npm/*.js', 'src/npm/*.json'])
{'fraction_non_alphanumeric': 0.22535991140642303, 'fraction_numerical': 0.0, 'mean_word_length': 5.003322259136213, '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': '5231682', 'n_tokens_mistral': 678, 'n_tokens_neox': 666, 'n_words': 114}