<commit_before>var _ = require('underscore');

module.exports = function (grunt) {
    "use strict";

    var {{ bundle.getName() }};

    {{ bundle.getName() }} = {
        'js':   ['src/{{ bundle.namespace|replace({'\\':'/'}) }}/Resources/public/**/*.js', '!src/{{ bundle.namespace|replace({'\\':'/'}) }}/Resources/public/vendor/**/*.js', 'Gruntfile.js'],
        'scss': ['src/{{ bundle.namespace|replace({'\\':'/'}) }}/Resources/public/scss/**/*.scss'],
        'twig': ['src/{{ bundle.namespace|replace({'\\':'/'}) }}/Resources/views/**/*.html.twig'],
        'img':  ['src/{{ bundle.namespace|replace({'\\':'/'}) }}/Resources/public/img/**/*.{png,jpg,jpeg,gif,webp}'],
        'svg':  ['src/{{ bundle.namespace|replace({'\\':'/'}) }}/Resources/public/img/**/*.svg']
    };

    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),

        watch: {
            // {{ bundle.getName() }}
                {{ bundle.getName() }}_js: {
                files: {{ bundle.getName() }}.js,
                tasks: ['modernizr:{{ bundle.getName() }}', 'jshint:{{ bundle.getName() }}'],
                options: {
                    nospawn: true
                }
            },
            {{ bundle.getName() }}_scss: {
                files: {{ bundle.getName() }}.scss,
                tasks: ['modernizr:{{ bundle.getName() }}']
            },
            {{ bundle.getName() }}_twig: {
                files: {{ bundle.getName() }}.twig,
                tasks: ['modernizr:{{ bundle.getName() }}']
            },
            {{ bundle.getName() }}_images: {
                files: {{ bundle.getName() }}.img,
                tasks: ['imagemin:{{ bundle.getName() }}'],
                options: {
                    event: ['added', 'changed']
                }
            },
            {{ bundle.getName() }}_svg: {
                files: {{ bundle.getName() }}.svg,
                tasks: ['svg2png:{{ bundle.getName() }}'],
                options: {
                    event: ['added', 'changed']
                }
            },
        },

        jshint: {
            options: {
                camelcase: true,
                curly: true,
                eqeqeq: true,
                eqnull: true,
                forin: true,
                indent: 4,
                trailing: true,
                undef: true,
                browser: true,<commit_msg>Add livereload to the default Gruntfile.<commit_after>var _ = require('underscore');

module.exports = function (grunt) {
    "use strict";

    var {{ bundle.getName() }};

    {{ bundle.getName() }} = {
        'js':   ['src/{{ bundle.namespace|replace({'\\':'/'}) }}/Resources/public/**/*.js', '!src/{{ bundle.namespace|replace({'\\':'/'}) }}/Resources/public/vendor/**/*.js', 'Gruntfile.js'],
        'scss': ['src/{{ bundle.namespace|replace({'\\':'/'}) }}/Resources/public/scss/**/*.scss'],
        'twig': ['src/{{ bundle.namespace|replace({'\\':'/'}) }}/Resources/views/**/*.html.twig'],
        'img':  ['src/{{ bundle.namespace|replace({'\\':'/'}) }}/Resources/public/img/**/*.{png,jpg,jpeg,gif,webp}'],
        'svg':  ['src/{{ bundle.namespace|replace({'\\':'/'}) }}/Resources/public/img/**/*.svg']
    };

    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),

        watch: {
            // {{ bundle.getName() }}
                {{ bundle.getName() }}_js: {
                files: {{ bundle.getName() }}.js,
                tasks: ['modernizr:{{ bundle.getName() }}', 'jshint:{{ bundle.getName() }}'],
                options: {
                    nospawn: true,
                    livereload: true
                }
            },
            {{ bundle.getName() }}_scss: {
                files: {{ bundle.getName() }}.scss,
                tasks: ['modernizr:{{ bundle.getName() }}'],
                options: {
                    livereload: true
                }
            },
            {{ bundle.getName() }}_twig: {
                files: {{ bundle.getName() }}.twig,
                tasks: ['modernizr:{{ bundle.getName() }}'],
                options: {
                    livereload: true
                }
            },
            {{ bundle.getName() }}_images: {
                files: {{ bundle.getName() }}.img,
                tasks: ['imagemin:{{ bundle.getName() }}'],
                options: {
                    event: ['added', 'changed'],
                    livereload: true
                }
            },
            {{ bundle.getName() }}_svg: {
                files: {{ bundle.getName() }}.svg,
                tasks: ['svg2png:{{ bundle.getName() }}'],
                options: {
                    event: ['added', 'changed'],
                    livereload: true
                }
            },
        },

        jshint: {
            options: {
                camelcase: true,
                curly: true,
                eqeqeq: true,
                eqnull: true,
                forin: true,
                indent: 4,
                trailing: true,
                undef: true,
                browser: true,
{'fraction_non_alphanumeric': 0.20503243562020837, 'fraction_numerical': 0.0007863180656575585, 'mean_word_length': 1.3966085727743758, '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': '5109541', 'n_tokens_mistral': 1507, 'n_tokens_neox': 1403, 'n_words': 240}