<commit_before>require('coffee-script/register');

const gulp = require('gulp'),
  path = require('path'),
  concat = require('gulp-concat'),
  insert = require('gulp-insert'),
  mocha = require('gulp-mocha'),
  babel = require('gulp-babel'),
  replace = require('gulp-replace'),
  uglify = require('gulp-uglify'),
  runSequence = require('run-sequence');


const SQUEL_VERSION = require('./package.json').version;


gulp.task('build-basic', function() {

  return gulp.src([
      './src/umd-header.js',
      './src/core.js',
      './src/umd-footer.js',
    ])
    .pipe( concat('squel-basic.js') )
    .pipe( replace(/<<VERSION_STRING>>/i, SQUEL_VERSION) )
    .pipe( babel({
      presets: ['es2015']
    }) )
    .pipe( gulp.dest('./') )
    .pipe( uglify() )
    .pipe( insert.prepend('/*! squel | https://github.com/hiddentao/squel | BSD license */') )
    .pipe( concat('squel-basic.min.js') )
    .pipe( gulp.dest('./') )
});


gulp.task('build-full', function() {
  return gulp.src([
      './src/umd-header.js',
      './src/core.js',
      './src/mssql.js',
      './src/mysql.js',
      './src/postgres.js',
      './src/umd-footer.js',
    ])
    .pipe( concat('squel.js') )
    .pipe( replace(/<<VERSION_STRING>>/i, SQUEL_VERSION) )
    .pipe( babel({
      presets: ['es2015']
    }) )
    .pipe( gulp.dest('./') )
    .pipe( uglify() )
    .pipe( insert.prepend('/*! squel | https://github.com/hiddentao/squel | BSD license */') )
    .pipe( concat('squel.min.js') )
    .pipe( gulp.dest('./') )
});



gulp.task('test', function () {
  return gulp.src([
      // './test/baseclasses.test.coffee',
      // './test/blocks.test.coffee',
      // './test/case.test.coffee',
      // './test/custom.test.coffee',
      // './test/delete.test.coffee',
      // './test/expressions.test.coffee',
      // './test/insert.test.coffee',
      // './test/select.test.coffee',
      // './test/update.test.coffee',
      './test/mssql.test.coffee',
      // './test/mysql.test.coffee',
      // './test/postgres.test.coffee',
    ], { read: false })
      .pipe(mocha({
        ui: 'exports',
        reporter: 'spec',
      }))<commit_msg>re-enable all tests<commit_after>require('coffee-script/register');

const gulp = require('gulp'),
  path = require('path'),
  concat = require('gulp-concat'),
  insert = require('gulp-insert'),
  mocha = require('gulp-mocha'),
  babel = require('gulp-babel'),
  replace = require('gulp-replace'),
  uglify = require('gulp-uglify'),
  runSequence = require('run-sequence');


const SQUEL_VERSION = require('./package.json').version;


gulp.task('build-basic', function() {

  return gulp.src([
      './src/umd-header.js',
      './src/core.js',
      './src/umd-footer.js',
    ])
    .pipe( concat('squel-basic.js') )
    .pipe( replace(/<<VERSION_STRING>>/i, SQUEL_VERSION) )
    .pipe( babel({
      presets: ['es2015']
    }) )
    .pipe( gulp.dest('./') )
    .pipe( uglify() )
    .pipe( insert.prepend('/*! squel | https://github.com/hiddentao/squel | BSD license */') )
    .pipe( concat('squel-basic.min.js') )
    .pipe( gulp.dest('./') )
});


gulp.task('build-full', function() {
  return gulp.src([
      './src/umd-header.js',
      './src/core.js',
      './src/mssql.js',
      './src/mysql.js',
      './src/postgres.js',
      './src/umd-footer.js',
    ])
    .pipe( concat('squel.js') )
    .pipe( replace(/<<VERSION_STRING>>/i, SQUEL_VERSION) )
    .pipe( babel({
      presets: ['es2015']
    }) )
    .pipe( gulp.dest('./') )
    .pipe( uglify() )
    .pipe( insert.prepend('/*! squel | https://github.com/hiddentao/squel | BSD license */') )
    .pipe( concat('squel.min.js') )
    .pipe( gulp.dest('./') )
});



gulp.task('test', function () {
  return gulp.src([
      './test/baseclasses.test.coffee',
      './test/blocks.test.coffee',
      './test/case.test.coffee',
      './test/custom.test.coffee',
      './test/delete.test.coffee',
      './test/expressions.test.coffee',
      './test/insert.test.coffee',
      './test/select.test.coffee',
      './test/update.test.coffee',
      './test/mssql.test.coffee',
      './test/mysql.test.coffee',
      './test/postgres.test.coffee',
    ], { read: false })
      .pipe(mocha({
        ui: 'exports',
        reporter: 'spec',
      }))
{'fraction_non_alphanumeric': 0.23307566174748184, 'fraction_numerical': 0.0037479503396579995, 'mean_word_length': 2.3701657458563536, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 4, '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': '2424566', 'n_tokens_mistral': 1622, 'n_tokens_neox': 1592, 'n_words': 220}