<commit_before>#!/usr/bin/env node

'use strict';

var lingon     = require('lingon');
var uglify     = require('gulp-uglify');
var ngAnnotate = require('gulp-ng-annotate');

lingon.config.buildPath = 'dist';

// add post-processors
lingon.postProcessors.push('js', /\.min\./, function(params) {
  return [
    ngAnnotate(),
    uglify({
      preserveComments : 'some'
    })
  ];
});<commit_msg>In server mode redirect to example page first<commit_after>#!/usr/bin/env node

'use strict';

var lingon     = require('lingon');
var uglify     = require('gulp-uglify');
var ngAnnotate = require('gulp-ng-annotate');

lingon.config.buildPath = 'dist';

// add post-processors
lingon.postProcessors.push('js', /\.min\./, function(params) {
  return [
    ngAnnotate(),
    uglify({
      preserveComments : 'some'
    })
  ];
});

// redirect user to the example page if not requesting a specific file
lingon.one('serverConfigure', function() {
  lingon.server.get('/', function(req, res) {
    res.redirect('/example/index.html');
  });
});
{'fraction_non_alphanumeric': 0.17533718689788053, 'fraction_numerical': 0.0, 'mean_word_length': 3.5973451327433628, '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': '6284896', 'n_tokens_mistral': 365, 'n_tokens_neox': 357, 'n_words': 75}