X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=Gruntfile.js;h=fec43f343ca534ef54bda04b527378a9f2dea6f2;hb=ce071ded5195b30b5ef750e667aa9b5e39dc8b10;hp=69a123cc9f443765702ab84676623a7b9b8ab6fa;hpb=8518006b9bf0857e35c07729d6263b63ac540989;p=lhc%2Fweb%2Fwiklou.git diff --git a/Gruntfile.js b/Gruntfile.js index 69a123cc9f..fec43f343c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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 () {