Newer
Older
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
* @author Christoph Wurst <christoph@winzerhof-wurst.at>
// Project configuration.
grunt.initConfig({
all: ['Gruntfile.js', 'js/*.js', 'js/models/*.js', 'js/views/*.js',
karma: {
unit: {
configFile: 'karma.conf.js',
autoWatch: true
},
continuous: {
configFile: 'karma.conf.js',
browsers: ['PhantomJS'],
singleRun: true,
}
// jshint
grunt.loadNpmTasks('grunt-contrib-jshint');
// Karma unit tests
grunt.loadNpmTasks('grunt-karma');
grunt.registerTask('default', ['jshint', 'karma:continuous']);