Merge "build: Adding configuration for jsonlint"

This commit is contained in:
jenkins-bot 2015-06-12 15:55:28 +00:00 committed by Gerrit Code Review
commit 6ce978c04c
2 changed files with 10 additions and 2 deletions

View file

@ -6,13 +6,20 @@
/*jshint node:true */
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.initConfig( {
banana: {
all: ['i18n/']
},
jsonlint: {
all: [
'**/*.json',
'!node_modules/**'
]
}
} );
grunt.registerTask( 'test', [ 'banana' ] );
grunt.registerTask( 'test', [ 'jsonlint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};

View file

@ -9,6 +9,7 @@
"devDependencies": {
"grunt": "0.4.5",
"grunt-cli": "0.1.13",
"grunt-banana-checker": "0.2.2"
"grunt-banana-checker": "0.2.2",
"grunt-jsonlint": "1.0.4"
}
}