jsonlint
This commit is contained in:
parent
b4a8ed3f77
commit
5cfe237dd4
6 changed files with 131 additions and 109 deletions
11
Gruntfile.js
11
Gruntfile.js
|
@ -77,6 +77,14 @@ module.exports = function (grunt) {
|
|||
directory: 'classes/,controllers/,tests/'
|
||||
}
|
||||
}
|
||||
},
|
||||
jsonlint: {
|
||||
manifests: {
|
||||
src: '*.json',
|
||||
options: {
|
||||
format: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
|
@ -90,9 +98,10 @@ module.exports = function (grunt) {
|
|||
grunt.loadNpmTasks('grunt-contrib-compress');
|
||||
grunt.loadNpmTasks('grunt-jslint');
|
||||
grunt.loadNpmTasks('grunt-phpdocumentor');
|
||||
grunt.loadNpmTasks('grunt-jsonlint');
|
||||
|
||||
grunt.registerTask('default', ['uglify', 'cssmin']);
|
||||
grunt.registerTask('lint', ['phpcs', 'jslint']);
|
||||
grunt.registerTask('lint', ['phpcs', 'jslint', 'jsonlint']);
|
||||
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