build(grunt): Only lint changed PHP files
This commit is contained in:
parent
32ee7bd5bc
commit
295ae87cae
3 changed files with 35 additions and 1 deletions
14
Gruntfile.js
14
Gruntfile.js
|
@ -142,9 +142,21 @@ module.exports = function (grunt) {
|
|||
grunt.loadNpmTasks('grunt-markdownlint');
|
||||
grunt.loadNpmTasks('grunt-phpstan');
|
||||
grunt.loadNpmTasks('grunt-githooks');
|
||||
grunt.loadNpmTasks('grunt-changed');
|
||||
|
||||
grunt.registerTask('default', ['cssmin', 'potomo', 'phpdocumentor']);
|
||||
grunt.registerTask('lint', ['csslint', 'jslint', 'fixpack', 'jsonlint', 'markdownlint', 'phpcs', 'phpstan']);
|
||||
grunt.registerTask(
|
||||
'lint',
|
||||
[
|
||||
'csslint',
|
||||
'jslint',
|
||||
'fixpack',
|
||||
'jsonlint',
|
||||
'markdownlint',
|
||||
'changed:phpcs',
|
||||
'changed:phpstan'
|
||||
]
|
||||
);
|
||||
grunt.registerTask('test', ['phpunit']);
|
||||
grunt.registerTask('release', ['default', 'githash', 'compress']);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue