Last Updated: February 25, 2016
·
2.32K
· kennymeyers

My current Gruntfile.js for a Laravel 4 project

module.exports = function(grunt) {
    grunt.initConfig({
        phpunit: {
            classes: {
                dir: 'app/tests/'
            },
            options: {
                bin: 'vendor/bin/phpunit'
            }
        },
        compass: {
            dist: {
                options: {
                    config: 'config.rb'
                }
            }
        },
        watch: {
            js: {
                files: ['public/assets/js/*.js'],
                tasks: ['jshint', 'uglify']
            },
            sass: {
                files: ['sass/*.scss'],
                tasks: ['compass']
            },
            coffee: {
                files: ['coffee/*.coffee'],
                tasks: ['coffee']
            },
            tests: {
                files: ['app/tests/*.php'],
                tasks: ['phpunit']
            }
        }
    });
    grunt.loadNpmTasks('grunt-contrib');
    grunt.loadNpmTasks('grunt-phpunit');
    grunt.loadNpmTasks('grunt-notify');
    grunt.registerTask('default', ['watch']);
};