Completed
Pull Request — master (#1276)
by Thomas
04:23
created

Gruntfile.js (1 issue)

Labels
Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
/* global module */
2
3
/**
4
 * ownCloud - Mail
5
 *
6
 * This file is licensed under the Affero General Public License version 3 or
7
 * later. See the COPYING file.
8
 *
9
 * @author Christoph Wurst <[email protected]>
10
 * @copyright Christoph Wurst 2015
11
 */
12
module.exports = function(grunt) {
13
	// Project configuration.
14
	grunt.initConfig({
15
		jshint: {
16
			options: {
17
				jshintrc: '.jshintrc'
18
			},
19
			all: ['Gruntfile.js', 'js/*.js', 'js/models/*.js', 'js/views/*.js', '!js/mail.min.js']
20
		},
21
		jscs: {
22
			src: '<%= jshint.all %>',
23
			options: {
24
				config: '.jscsrc',
25
				verbose: true
26
			}
27
		},
28
		karma: {
29
			unit: {
30
				configFile: 'karma.conf.js',
31
				autoWatch: true
32
			},
33
			continuous: {
34
				configFile: 'karma.conf.js',
35
				browsers: ['PhantomJS'],
36
				singleRun: true,
37
			}
38
		}
39
	});
40
	// jscs
41
	grunt.loadNpmTasks('grunt-jscs');
42
43
	// jshint
0 ignored issues
show
Bad option: ''.
Loading history...
44
	grunt.loadNpmTasks('grunt-contrib-jshint');
45
46
	// Karma unit tests
47
	grunt.loadNpmTasks('grunt-karma');
48
49
	// Default task
50
	grunt.registerTask('default', ['jscs', 'jshint', 'karma:continuous']);
51
};
52