<commit_before>'use strict';

module.exports = function(grunt) {
    require('superdesk-core/Gruntfile')(grunt);

    grunt.loadNpmTasks('grunt-connect-proxy');

    var middlewareConfig = grunt.config('connect.test.options.middleware');
    grunt.config('connect.test.options.middleware', function(connect, options, middlewares) {
        middlewares.push(require('grunt-connect-proxy/lib/utils').proxyRequest);
        middlewareConfig(connect, options, middlewares);
        return middlewares;
    });

    grunt.config('connect.proxies', [
        {
            context: '/tansaclient',
            host: 'd02.tansademo.net',
            changeOrigin: true,
            port: 8080
        }
    ]);

    grunt.registerTask('server', [
        'clean',
        'style',
        'template:test',
        'configureProxies:test',
        'connect:test',
        'watch'
    ]);
};<commit_msg>fix grunt server task to use webpack<commit_after>'use strict';

module.exports = function(grunt) {
    require('superdesk-core/Gruntfile')(grunt);

    grunt.loadNpmTasks('grunt-connect-proxy');

    var middlewareConfig = grunt.config('connect.test.options.middleware');
    grunt.config('connect.test.options.middleware', function(connect, options, middlewares) {
        middlewares.push(require('grunt-connect-proxy/lib/utils').proxyRequest);
        middlewareConfig(connect, options, middlewares);
        return middlewares;
    });

    grunt.config('connect.proxies', [
        {
            context: '/tansaclient',
            host: 'd02.tansademo.net',
            changeOrigin: true,
            port: 8080
        }
    ]);

    grunt.registerTask('server', [
        'clean',
        'template:dev',
        'configureProxies:test',
        'ngtemplates:dev',
        'webpack-dev-server:start'
    ]);
};
{'fraction_non_alphanumeric': 0.14325068870523416, 'fraction_numerical': 0.006611570247933884, 'mean_word_length': 2.646586345381526, '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': '3993999', 'n_tokens_mistral': 567, 'n_tokens_neox': 552, 'n_words': 75}