<commit_before>gulp = require 'gulp'
coffee = require 'gulp-coffee'
gutil = require 'gulp-util'
concat = require 'gulp-concat'
uglify = require 'gulp-uglify'
espruino = require './gulp-espruino/src/gulp-espruino'
miniTest = require './src/deploy/gulp-mini-test'

gulp.task 'default', ->
  gulp.src('./src/main/**/*.coffee')
    .pipe(coffee(bare: true).on('error', gutil.log))
    .pipe(concat('app.js'))
    .pipe(uglify())
    .pipe(espruino.deploy(serialNumber: '48DF67773330').on('error', gutil.log))

gulp.task 'test', ->
  gulp.src(['./src/main/**/*.coffee', './src/test/**/*.coffee'])
    .pipe(coffee(bare: true).on('error', gutil.log))
    .pipe(concat('tests.js'))
    .pipe(uglify())
    .pipe(espruino.deploy(serialNumber: '48DF67773330').on('error', gutil.log))
    .pipe(miniTest.checkResults())<commit_msg>the default gulp task should be to test<commit_after>gulp = require 'gulp'
coffee = require 'gulp-coffee'
gutil = require 'gulp-util'
concat = require 'gulp-concat'
uglify = require 'gulp-uglify'
espruino = require './gulp-espruino/src/gulp-espruino'
miniTest = require './src/deploy/gulp-mini-test'

gulp.task 'default', ['test']

gulp.task 'deploy', ->
  gulp.src('./src/main/**/*.coffee')
    .pipe(coffee(bare: true).on('error', gutil.log))
    .pipe(concat('app.js'))
    .pipe(uglify())
    .pipe(espruino.deploy(serialNumber: '48DF67773330').on('error', gutil.log))

gulp.task 'test', ->
  gulp.src(['./src/main/**/*.coffee', './src/test/**/*.coffee'])
    .pipe(coffee(bare: true).on('error', gutil.log))
    .pipe(concat('tests.js'))
    .pipe(uglify())
    .pipe(espruino.deploy(serialNumber: '48DF67773330').on('error', gutil.log))
    .pipe(miniTest.checkResults())
{'fraction_non_alphanumeric': 0.22143698468786807, 'fraction_numerical': 0.023557126030624265, 'mean_word_length': 4.195718654434251, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3342122', 'n_tokens_mistral': 714, 'n_tokens_neox': 662, 'n_words': 99}