Grunt task for phpcs
This commit is contained in:
parent
7e0638815d
commit
eb782a6277
2 changed files with 15 additions and 1 deletions
13
Gruntfile.js
13
Gruntfile.js
|
@ -25,12 +25,25 @@ module.exports = function (grunt) {
|
|||
files: ['css/*.css'],
|
||||
tasks: ['cssmin']
|
||||
}
|
||||
},
|
||||
phpcs: {
|
||||
php: {
|
||||
src: ['*.php']
|
||||
},
|
||||
js: {
|
||||
src: ['js/*.js']
|
||||
},
|
||||
Gruntfile: {
|
||||
src: ['Gruntfile.js']
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
grunt.loadNpmTasks('grunt-phpcs');
|
||||
|
||||
grunt.registerTask('default', ['uglify', 'cssmin']);
|
||||
grunt.registerTask('lint', ['phpcs']);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue