Display translatable images in wiki language on image pages
[lhc/web/wiklou.git] / Gruntfile.js
index 69a123c..fec43f3 100644 (file)
@@ -13,7 +13,6 @@ module.exports = function ( grunt ) {
        grunt.loadNpmTasks( 'grunt-jsonlint' );
        grunt.loadNpmTasks( 'grunt-karma' );
        grunt.loadNpmTasks( 'grunt-stylelint' );
-       grunt.loadNpmTasks( 'grunt-webdriver' );
 
        karmaProxy[ wgScriptPath ] = {
                target: wgServer + wgScriptPath,
@@ -22,22 +21,22 @@ module.exports = function ( grunt ) {
 
        grunt.initConfig( {
                eslint: {
+                       options: {
+                               reportUnusedDisableDirectives: true
+                       },
                        all: [
                                '**/*.js',
                                '!docs/**',
                                '!node_modules/**',
                                '!resources/lib/**',
                                '!resources/src/jquery.tipsy/**',
-                               '!resources/src/jquery/jquery.farbtastic.js',
-                               '!resources/src/mediawiki.libs/**',
+                               '!resources/src/mediawiki.libs.jpegmeta/**',
                                // Third-party code of PHPUnit coverage report
                                '!tests/coverage/**',
                                '!vendor/**',
                                // Explicitly say "**/*.js" here in case of symlinks
                                '!extensions/**/*.js',
-                               '!skins/**/*.js',
-                               // Skip functions aren't even parseable
-                               '!resources/src/mediawiki.hidpi-skip.js'
+                               '!skins/**/*.js'
                        ]
                },
                jsonlint: {
@@ -51,6 +50,7 @@ module.exports = function ( grunt ) {
                                disallowBlankTranslations: false
                        },
                        core: 'languages/i18n/',
+                       exif: 'languages/i18n/exif/',
                        api: 'includes/api/i18n/',
                        installer: 'includes/installer/i18n/'
                },
@@ -104,15 +104,7 @@ module.exports = function ( grunt ) {
                                        return require( 'path' ).join( dest, src.replace( 'resources/', '' ) );
                                }
                        }
-               },
-
-               // Configure WebdriverIO task
-               webdriver: {
-                       test: {
-                               configFile: './tests/selenium/wdio.conf.js'
-                       }
                }
-
        } );
 
        grunt.registerTask( 'assert-mw-env', function () {