<commit_before>var path = require('path');
var gulp = require('gulp');
var rename = require('gulp-rename');
var less = require('gulp-less');
var ts = require('gulp-typescript');
var uglify = require('gulp-uglify');
var uglifycss = require('gulp-uglifycss');

gulp.task('default', ['compile-ts', 'compile-less']);

gulp.task('compile-ts', function()
{
    var tsProject = ts.createProject('tsconfig.json', {out: 'SexyTable.js'});

    return tsProject.src()

        // Compile the typescript to javascript
        .pipe(ts(tsProject)).js

        // For some stupid reason we get a dot prefixing
        // the out filename if we don't do this.
        .pipe(rename({ basename: 'SexyTable' }))

        // Output the compiled unminified javascript
        .pipe(gulp.dest('./dist'))

        // Minify the js, rename it and save the minfied version
        .pipe(uglify())
        .pipe(rename({ extname: '.min.js' }))
        .pipe(gulp.dest('./dist'))
<commit_msg>Setup basic gulp watch.<commit_after>var path = require('path');
var gulp = require('gulp');
var rename = require('gulp-rename');
var less = require('gulp-less');
var ts = require('gulp-typescript');
var uglify = require('gulp-uglify');
var uglifycss = require('gulp-uglifycss');

gulp.task('default', function()
{
    gulp.watch('./src/**/*.ts', ['compile-ts']);
    gulp.watch('./src/**/*.less', ['compile-less']);
});

gulp.task('compile-ts', function()
{
    var tsProject = ts.createProject('tsconfig.json', {out: 'SexyTable.js'});

    return tsProject.src()

        // Compile the typescript to javascript
        .pipe(ts(tsProject)).js

        // For some stupid reason we get a dot prefixing
        // the out filename if we don't do this.
        .pipe(rename({ basename: 'SexyTable' }))

        // Output the compiled unminified javascript
        .pipe(gulp.dest('./dist'))

        // Minify the js, rename it and save the minfied version
        .pipe(uglify())
        .pipe(rename({ extname: '.min.js' }))
        .pipe(gulp.dest('./dist'))

{'fraction_non_alphanumeric': 0.17455621301775148, 'fraction_numerical': 0.0, 'mean_word_length': 2.9940944881889764, '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': '1485704', 'n_tokens_mistral': 669, 'n_tokens_neox': 646, 'n_words': 166}