<commit_before>module.exports = function(grunt) {
    var webpack = require("webpack");
	var webpackConfig = require("./webpack.config.js");

    grunt.initConfig({
        webpack: {
            options: webpackConfig,
            build: {
                plugins: webpackConfig.plugins.concat(
                    new webpack.DefinePlugin({
                        "process.env": {
                            // This has effect on the react lib size
                            "NODE_ENV": JSON.stringify("production")
                        }
                    }),
                    new webpack.optimize.DedupePlugin(),
                    new webpack.optimize.UglifyJsPlugin()
                )
            },
            "build-dev": {
                devtool: "sourcemap",
                debug: true
            }
        },
        sass: {
            options: {
                includePaths: [
                    'node_modules/font-awesome/scss',
                    'node_modules/bootstrap-sass/assets/stylesheets'
                ]
            },
            dest: {
                options: {
                    outputStyle: 'compressed'
                },
                files: {
                    '/tmp/styles.css': 'client/scss/styles.scss'
                }
            }
        },
        concat: {
            css: {
                src: [
                    'client/vendor/css/**/*.css',
                    '/tmp/styles.css'
                ],
                dest: 'public/css/site.css'
            }
        },
        copy: {
            font: {
                expand: true,
                flatten: true,
                filter: 'isFile',
                src: [
                    'node_modules/font-awesome/fonts/*',
                    'node_modules/bootstrap-sass/assets/fonts/bootstrap/*',
                    'client/fonts/*'
                ],
                dest: 'public/fonts/'
            },
            img: {
                expand: true,
                cwd: 'client/images',
                src: ['**'],
                dest: 'public/images'
            }
        },
        watch: {
            clientjs: {
                files: ['react/**/*.jsx'],
                tasks: ['webpack:build-dev'],
                options: {
                    spawn: false
                }
            },
            server: {
                files: ['Gruntfile.js', 'cluster.js', 'server/**/*.js', 'test/**/*.js'],
                tasks: ['jshint:server']
            },
            scss: {
                files: ['client/scss/**/*.scss'],
                tasks: ['sass', 'concat:css']
            }
        },
        abideExtract: {
            js: {
                src: 'server/**/*.js',
                dest: 'server/locale/templates/LC_MESSAGES/messages.pot',
                options: {
                    keyword: '__'
                }
            },
            client: {
                src: 'public/js/*.js',
                dest: 'server/locale/templates/LC_MESSAGES/messages.pot',
                options: {
                    keyword: '__'
                }<commit_msg>Do something to trigger restart on watch<commit_after>module.exports = function(grunt) {
    var webpack = require("webpack");
	var webpackConfig = require("./webpack.config.js");

    grunt.initConfig({
        webpack: {
            options: webpackConfig,
            build: {
                plugins: webpackConfig.plugins.concat(
                    new webpack.DefinePlugin({
                        "process.env": {
                            // This has effect on the react lib size
                            "NODE_ENV": JSON.stringify("production")
                        }
                    }),
                    new webpack.optimize.DedupePlugin(),
                    new webpack.optimize.UglifyJsPlugin()
                )
            },
            "build-dev": {
                devtool: "sourcemap",
                debug: true
            }
        },
        sass: {
            options: {
                includePaths: [
                    'node_modules/font-awesome/scss',
                    'node_modules/bootstrap-sass/assets/stylesheets'
                ]
            },
            dest: {
                options: {
                    outputStyle: 'compressed'
                },
                files: {
                    '/tmp/styles.css': 'client/scss/styles.scss'
                }
            }
        },
        concat: {
            css: {
                src: [
                    'client/vendor/css/**/*.css',
                    '/tmp/styles.css'
                ],
                dest: 'public/css/site.css'
            }
        },
        copy: {
            font: {
                expand: true,
                flatten: true,
                filter: 'isFile',
                src: [
                    'node_modules/font-awesome/fonts/*',
                    'node_modules/bootstrap-sass/assets/fonts/bootstrap/*',
                    'client/fonts/*'
                ],
                dest: 'public/fonts/'
            },
            img: {
                expand: true,
                cwd: 'client/images',
                src: ['**'],
                dest: 'public/images'
            }
        },
        watch: {
            clientjs: {
                files: ['react/**/*.jsx'],
                tasks: ['webpack:build-dev'],
                options: {
                    spawn: false
                }
            },
            server: {
                files: ['Gruntfile.js', 'cluster.js', 'server/**/*.js', 'test/**/*.js'],
                tasks: ['webpack:build-dev']
            },
            scss: {
                files: ['client/scss/**/*.scss'],
                tasks: ['sass', 'concat:css']
            }
        },
        abideExtract: {
            js: {
                src: 'server/**/*.js',
                dest: 'server/locale/templates/LC_MESSAGES/messages.pot',
                options: {
                    keyword: '__'
                }
            },
            client: {
                src: 'public/js/*.js',
                dest: 'server/locale/templates/LC_MESSAGES/messages.pot',
                options: {
                    keyword: '__'
                }
{'fraction_non_alphanumeric': 0.12303039949068915, 'fraction_numerical': 0.0, 'mean_word_length': 0.8428152492668621, 'pattern_counts': {'":': 6, '<': 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': '4685398', 'n_tokens_mistral': 1647, 'n_tokens_neox': 1513, 'n_words': 238}