module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), karma: { unit: { configFile: 'karma.conf.js' } }, coveralls: { options: { coverageDir: 'tests/coverage/', force: true } } }); grunt.loadNpmTasks('grunt-karma'); grunt.loadNpmTasks('grunt-karma-coveralls'); grunt.registerTask('test', ['karma', 'coveralls']); };