<commit_before>module.exports = (grunt) ->

    # Carrega todas as tarefas
    require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks)

    grunt.initConfig

        # Caminhos padrões para as pastas do seu projeto
        # Adeque-a para a estruturação que você utiliza

        paths:
            assets: 'assets/'
            coffee: 'coffee/'
            build:  'build/assets/'
            fonts:  'fonts/'
            sass:   'sass/'
            img:    'img/'
            css:    'css/'
            js:     'js/'

        # Tarefa Watch: dispara outras tarefas quando certos arquivos são alterados
        watch:
            options:
                nospawn: true
                livereload: false

            compass:
                files: ['<%= paths.assets %><%= paths.sass %>**/*.{scss,sass}']
                tasks: ['compass']

            coffee:
                files: '<%= paths.assets %><%= paths.coffee %>**/*.coffee'
                tasks: ['coffee']

        # Tarefa Browser-sync: sincroniza navegação e alterações em assets
        browser_sync:
            files: [
                '<%= paths.build %><%= paths.css %>**/*.css',
                '<%= paths.build %><%= paths.img %>**/*.{png,jpg,gif}',
                '<%= paths.build %><%= paths.js %>**/*.js',
                '**/*.ctp',
                '**/*.php'
            ]
            options:
                watchTask: true

                ghostMode:
                    scroll: true
                    links: true
                    forms: true
                    clicks: true

        # Tarefa Coffee: compila arquivos CoffeeScript
        coffee:
            options:
                bare: true

            all:
                expand: true
                cwd: '<%= paths.assets %><%= paths.coffee %>'
                src: '**/*.coffee'
                dest: '<%= paths.assets %><%= paths.js %>'
                ext: '.js'

        # Tarefa Compass: compila arquivos sass usando o plugin compass
        # Necessita ter o sass e o compass instalados na sua máquina
        compass:
            dist:
                options:
                    sassDir: '<%= paths.assets %><%= paths.sass %>'
                    cssDir: '<%= paths.assets %><%= paths.css %>'
                    imagesDir: '<%= paths.assets %><%= paths.img %>'
                    fontsDir: '<%= paths.assets %><%= paths.fonts %>'
                    relativeAssets: true
                    raw: 'preferred_syntax = :sass\n'

        # Tarefa Imageoptim: otimização avançada de imagens
        imageoptim:
            all:
                options:
                    jpegMini: true,
                    imageAlpha: true,
                    quitAfter: true
                src: ['<%= paths.assets %><%= paths.img %>']

        # Tarefa Imagemin: otimização simples de imagens
        imagemin:
            dist:
                options:
                    optimizationLevel: 7
                    progressive: true

                files: [
                    expand: true
                    cwd: '<%= paths.assets %><%= paths.img %>'
                    src: '**/*.{png,jpg,gif}'<commit_msg>Fix for build path of css<commit_after>module.exports = (grunt) ->

    # Carrega todas as tarefas
    require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks)

    grunt.initConfig

        # Caminhos padrões para as pastas do seu projeto
        # Adeque-a para a estruturação que você utiliza

        paths:
            assets: 'assets/'
            coffee: 'coffee/'
            build:  'build/assets/'
            fonts:  'fonts/'
            sass:   'sass/'
            img:    'img/'
            css:    'css/'
            js:     'js/'

        # Tarefa Watch: dispara outras tarefas quando certos arquivos são alterados
        watch:
            options:
                nospawn: true
                livereload: false

            compass:
                files: ['<%= paths.assets %><%= paths.sass %>**/*.{scss,sass}']
                tasks: ['compass']

            coffee:
                files: '<%= paths.assets %><%= paths.coffee %>**/*.coffee'
                tasks: ['coffee']

        # Tarefa Browser-sync: sincroniza navegação e alterações em assets
        browser_sync:
            files: [
                '<%= paths.build %><%= paths.css %>**/*.css',
                '<%= paths.build %><%= paths.img %>**/*.{png,jpg,gif}',
                '<%= paths.build %><%= paths.js %>**/*.js',
                '**/*.ctp',
                '**/*.php'
            ]
            options:
                watchTask: true

                ghostMode:
                    scroll: true
                    links: true
                    forms: true
                    clicks: true

        # Tarefa Coffee: compila arquivos CoffeeScript
        coffee:
            options:
                bare: true

            all:
                expand: true
                cwd: '<%= paths.assets %><%= paths.coffee %>'
                src: '**/*.coffee'
                dest: '<%= paths.assets %><%= paths.js %>'
                ext: '.js'

        # Tarefa Compass: compila arquivos sass usando o plugin compass
        # Necessita ter o sass e o compass instalados na sua máquina
        compass:
            dist:
                options:
                    sassDir: '<%= paths.assets %><%= paths.sass %>'
                    cssDir: '<%= paths.build %><%= paths.css %>'
                    imagesDir: '<%= paths.assets %><%= paths.img %>'
                    fontsDir: '<%= paths.assets %><%= paths.fonts %>'
                    relativeAssets: true
                    raw: 'preferred_syntax = :sass\n'

        # Tarefa Imageoptim: otimização avançada de imagens
        imageoptim:
            all:
                options:
                    jpegMini: true,
                    imageAlpha: true,
                    quitAfter: true
                src: ['<%= paths.assets %><%= paths.img %>']

        # Tarefa Imagemin: otimização simples de imagens
        imagemin:
            dist:
                options:
                    optimizationLevel: 7
                    progressive: true

                files: [
                    expand: true
                    cwd: '<%= paths.assets %><%= paths.img %>'
                    src: '**/*.{png,jpg,gif}'
{'fraction_non_alphanumeric': 0.12757914632225548, 'fraction_numerical': 0.00031501023783272954, 'mean_word_length': 1.1731690622861055, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 57, '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': '5140533', 'n_tokens_mistral': 1892, 'n_tokens_neox': 1697, 'n_words': 412}