build: Adding configuration for jsonlint

Change-Id: I71675f504ec9b72a1cb8794fef01424fb716a2fb
This commit is contained in:
Kunal Mehta 2015-06-11 21:30:57 -07:00
parent 82d5392f23
commit f5e8bf0800
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"
}
}