This commit is contained in:
Pierre Rudloff 2016-08-20 13:07:31 +02:00
parent b4a8ed3f77
commit 5cfe237dd4
6 changed files with 131 additions and 109 deletions

View file

@ -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']);