Lint markdown files
This commit is contained in:
parent
17df0b63cb
commit
b74a092700
6 changed files with 81 additions and 17 deletions
10
Gruntfile.js
10
Gruntfile.js
|
@ -111,7 +111,12 @@ module.exports = function (grunt) {
|
|||
css: {
|
||||
src: 'css/*'
|
||||
}
|
||||
}
|
||||
},
|
||||
markdownlint: {
|
||||
doc: {
|
||||
src: ['README.md', 'CONTRIBUTING.md', 'resources/*.md']
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -128,9 +133,10 @@ module.exports = function (grunt) {
|
|||
grunt.loadNpmTasks('grunt-fixpack');
|
||||
grunt.loadNpmTasks('grunt-potomo');
|
||||
grunt.loadNpmTasks('grunt-contrib-csslint');
|
||||
grunt.loadNpmTasks('grunt-markdownlint');
|
||||
|
||||
grunt.registerTask('default', ['cssmin', 'potomo']);
|
||||
grunt.registerTask('lint', ['csslint', 'fixpack', 'jsonlint', 'phpcs']);
|
||||
grunt.registerTask('lint', ['csslint', 'fixpack', 'jsonlint', 'markdownlint', 'phpcs']);
|
||||
grunt.registerTask('test', ['phpunit']);
|
||||
grunt.registerTask('doc', ['phpdocumentor']);
|
||||
grunt.registerTask('release', ['default', 'githash', 'compress']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue