1
0
Fork 0
mirror of https://bitbucket.org/vertlach/iusethis.git synced 2024-06-17 07:30:50 +03:00
mediawiki-iusethis/Gruntfile.js
Umherirrender bfd067c9fd Add grunt-jsonlint and grunt-banana-checker
jsonlint and banana-checker will test for valid i18n files

Bug: T94547
Change-Id: I20d48d27cbca48627a8009f68c5c293da4651b9c
2017-01-17 21:30:24 +01:00

22 lines
403 B
JavaScript

/*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/**',
'!vendor/**'
]
}
} );
grunt.registerTask( 'test', [ 'jsonlint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};