forked from StrasWeb/events-manager-osm
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
58 lines (56 loc) · 1.6 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*jslint node: true */
module.exports = function (grunt) {
'use strict';
grunt.initConfig(
{
phpcs: {
options: {
standard: 'PSR2',
bin: 'vendor/bin/phpcs'
},
php: {
src: ['*.php', 'classes/*.php', 'controllers/*.php']
},
tests: {
src: ['tests/']
}
},
jslint: {
Gruntfile: {
src: ['Gruntfile.js']
}
},
phpunit: {
options: {
bin: 'php -dzend_extension=xdebug.so ./vendor/bin/phpunit',
stopOnError: true,
stopOnFailure: true,
followOutput: true
},
classes: {
dir: 'tests/'
}
},
jsonlint: {
manifests: {
src: '*.json',
options: {
format: true
}
}
},
fixpack: {
package: {
src: 'package.json'
}
}
}
);
grunt.loadNpmTasks('grunt-phpcs');
grunt.loadNpmTasks('grunt-phpunit');
grunt.loadNpmTasks('grunt-jslint');
grunt.loadNpmTasks('grunt-jsonlint');
grunt.loadNpmTasks('grunt-fixpack');
grunt.registerTask('lint', ['jslint', 'fixpack', 'jsonlint', 'phpcs']);
grunt.registerTask('test', ['phpunit']);
};