forked from pronamic/twinfield
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
53 lines (47 loc) · 975 Bytes
/
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
module.exports = function( grunt ) {
// Project configuration.
grunt.initConfig( {
pkg: grunt.file.readJSON( 'package.json' ),
// PHP Code Sniffer
phpcs: {
application: {
dir: ['src/**/*.php']
},
options: {
bin: 'vendor/bin/phpcs',
standard: 'psr2'
}
},
// PHPLint
phplint: {
options: {
phpArgs: {
'-lf': null
}
},
all: [ 'src/**/*.php' ]
},
// PHPUnit
phpunit: {
classes: {},
options: {
configuration: 'phpunit.xml'
}
},
// Shell
shell: {
securityChecker: {
command: 'php vendor/bin/security-checker security:check',
options: {
stdout: true
}
}
}
} );
grunt.loadNpmTasks( 'grunt-phpcs' );
grunt.loadNpmTasks( 'grunt-phplint' );
grunt.loadNpmTasks( 'grunt-phpunit' );
grunt.loadNpmTasks( 'grunt-shell' );
// Default task(s).
grunt.registerTask( 'default', [ 'phplint', 'phpcs', 'phpunit', 'shell' ] );
};