<commit_before>var gulp = require('gulp')
    uglify = require('gulp-uglify');

// Minify javascript files and put the minified version in the dist folder
gulp.task('js-minify', function(){
    gulp.src('src/js/*.js')
        .pipe(uglify())
        .pipe(gulp.dest('dist/js'));
    gulp.src('src/js/foundation/*.js')
        .pipe(uglify())
        .pipe(gulp.dest('dist/js/foundation'));
    gulp.src('src/js/vendor/*.js')
        .pipe(uglify())
        .pipe(gulp.dest('dist/js/vendor'));
});

// Deafult task to run all of the above tasks
gulp.task('default', ['js-minify']);<commit_msg>Added image minification and moving to dist directory task, now it fully builds the website into the dist directory<commit_after>var gulp = require('gulp'),
    uglify = require('gulp-uglify'),
    imagemin = require('gulp-imagemin');

// Javascript minification task
// Minify javascript files and put the minified version in the dist folder
gulp.task('js-minify', function(){
    gulp.src('src/js/*.js')
        .pipe(uglify())
        .pipe(gulp.dest('dist/js'));
    gulp.src('src/js/foundation/*.js')
        .pipe(uglify())
        .pipe(gulp.dest('dist/js/foundation'));
    gulp.src('src/js/vendor/*.js')
        .pipe(uglify())
        .pipe(gulp.dest('dist/js/vendor'));
});

// Image task
// Compress images files
gulp.task('img-minify', function(){
    gulp.src('src/media/img/*')
        .pipe(imagemin())
        .pipe(gulp.dest('dist/media/img'));
});

// Copying task
// Simple copy content to dist
gulp.task('simple-move', function(){
    gulp.src('src/css/**')
        .pipe(gulp.dest('dist/css'));
    gulp.src('src/includes/**')
        .pipe(gulp.dest('dist/includes'));
    gulp.src('src/services/**')
        .pipe(gulp.dest('dist/services'));
    gulp.src('src/*.php')
        .pipe(gulp.dest('dist'));
    gulp.src('src/*.txt')
        .pipe(gulp.dest('dist'));
    gulp.src('src/*.ico')
        .pipe(gulp.dest('dist'));
});

// Deafult task to run all of the above tasks
gulp.task('default', ['js-minify', 'simple-move', 'img-minify']);
{'fraction_non_alphanumeric': 0.205352798053528, 'fraction_numerical': 0.0, 'mean_word_length': 3.0, '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': '1485695', 'n_tokens_mistral': 727, 'n_tokens_neox': 715, 'n_words': 133}