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']);
};
Written by Kenny Meyers
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#