<commit_before>// Copyright (C) 2007-2014, GoodData(R) Corporation. All rights reserved.
/*eslint no-var:0 func-names:0 */
var webpack = require('webpack');
var webpackConfig = require('./webpack.config.js');

module.exports = function(grunt) {
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),

        gitInfo: '',

        licence: grunt.file.read('tools/licence.tmpl'),

        eslint: {
            options: {
                config: '.eslintrc'
            },
            all: {
                src: [
                    'src/**/*.js',
                    'test/**/*.js'
                ]
            }
        },
        copy: {
            examples: {
                src: 'dist/gooddata.js',
                dest: 'examples/gooddata.js'
            }
        },
        karma: {
            unit: {
                configFile: 'tools/karma.conf.js',
                singleRun: grunt.option('ci')
            }
        },
        grizzly: {
            options: {
                root: 'examples/'
            }
        },
        watch: {
            options: {
                interval: 500
            },
            js: {
                files: ['src/*.js', 'examples/**/*.js', 'examples/**/*.html', '!examples/gooddata.js'],
                tasks: ['webpack:build-dev', 'copy:examples'],
                nospawn: true
            }
        },
        webpack: {
            options: webpackConfig,
            'build-dev': {},
            build: {
                output: {
                    filename: './dist/gooddata.min.js'
                },
                plugins: [<commit_msg>CODE: AutoWatch tests for karma to actually start the test<commit_after>// Copyright (C) 2007-2014, GoodData(R) Corporation. All rights reserved.
/*eslint no-var:0 func-names:0 */
var webpack = require('webpack');
var webpackConfig = require('./webpack.config.js');

module.exports = function(grunt) {
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),

        gitInfo: '',

        licence: grunt.file.read('tools/licence.tmpl'),

        eslint: {
            options: {
                config: '.eslintrc'
            },
            all: {
                src: [
                    'src/**/*.js',
                    'test/**/*.js'
                ]
            }
        },
        copy: {
            examples: {
                src: 'dist/gooddata.js',
                dest: 'examples/gooddata.js'
            }
        },
        karma: {
            unit: {
                configFile: 'tools/karma.conf.js',
                singleRun: grunt.option('ci'),
                autoWatch: !grunt.option('ci')
            }
        },
        grizzly: {
            options: {
                root: 'examples/'
            }
        },
        watch: {
            options: {
                interval: 500
            },
            js: {
                files: ['src/*.js', 'examples/**/*.js', 'examples/**/*.html', '!examples/gooddata.js'],
                tasks: ['webpack:build-dev', 'copy:examples'],
                nospawn: true
            }
        },
        webpack: {
            options: webpackConfig,
            'build-dev': {},
            build: {
                output: {
                    filename: './dist/gooddata.min.js'
                },
                plugins: [
{'fraction_non_alphanumeric': 0.1445674947620473, 'fraction_numerical': 0.007782101167315175, 'mean_word_length': 1.077066500932256, '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': '5722579', 'n_tokens_mistral': 977, 'n_tokens_neox': 896, 'n_words': 159}