build: Configure banana-checker and jsonlint

Change-Id: Ie75e8b79e0b5b50d415c221e52fda73b6a2763f9
This commit is contained in:
Kunal Mehta
2015-06-19 22:39:47 -07:00
parent d02c37b624
commit ba2135f84e
3 changed files with 34 additions and 0 deletions

21
Gruntfile.js Normal file
View File

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