X-Git-Url: https://git.cyclocoop.org/admin/?a=blobdiff_plain;f=Gruntfile.js;h=946b6522f42dd0b184029246793e7500be4436c0;hb=5cebfa42e7781c1f13a4f6935714120c56815e64;hp=4d713f2a584d52a08eb5bb8f354a46bb8b26d8fa;hpb=42fe11a2e6b40a6e2e8cfe4b58b31d5ed91821d5;p=lhc%2Fweb%2Fwiklou.git diff --git a/Gruntfile.js b/Gruntfile.js index 4d713f2a58..946b6522f4 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -12,7 +12,7 @@ module.exports = function ( grunt ) { wgScriptPath = process.env.MW_SCRIPT_PATH, karmaProxy = {}; - karmaProxy[wgScriptPath] = wgServer + wgScriptPath; + karmaProxy[ wgScriptPath ] = wgServer + wgScriptPath; grunt.initConfig( { jshint: { @@ -32,6 +32,9 @@ module.exports = function ( grunt ) { ] }, banana: { + options: { + disallowBlankTranslations: false + }, core: 'languages/i18n/', api: 'includes/api/i18n/', installer: 'includes/installer/i18n/' @@ -92,9 +95,9 @@ module.exports = function ( grunt ) { return !!( process.env.MW_SERVER && process.env.MW_SCRIPT_PATH ); } ); - grunt.registerTask( 'lint', ['jshint', 'jscs', 'jsonlint', 'banana'] ); + grunt.registerTask( 'lint', [ 'jshint', 'jscs', 'jsonlint', 'banana' ] ); grunt.registerTask( 'qunit', [ 'assert-mw-env', 'karma:main' ] ); - grunt.registerTask( 'test', ['lint'] ); + grunt.registerTask( 'test', [ 'lint' ] ); grunt.registerTask( 'default', 'test' ); };