build: Configure banana-checker and jsonlint
Change-Id: Ie75e8b79e0b5b50d415c221e52fda73b6a2763f9
This commit is contained in:
21
Gruntfile.js
Normal file
21
Gruntfile.js
Normal 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' );
|
||||
};
|
||||
Reference in New Issue
Block a user