build: Adding configuration for jsonlint

Change-Id: I9a927b554a3489e71316622196eae417a5d2c1fa
This commit is contained in:
Kunal Mehta 2015-06-11 21:29:37 -07:00
parent 196c23f51c
commit 32d5d39ea8
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"
}
}