X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=Gruntfile.js;h=4cc9721857c37fdfcc9afad2d93db6d05870c015;hp=b38bc9adfcd81eadf64232a364c6fcc570f5a7f0;hb=a9c0d737184c594658c69eb691b0e505fcac969f;hpb=c0fb8a883633f110a8083a164672e8334714d450 diff --git a/Gruntfile.js b/Gruntfile.js index b38bc9adfc..4cc9721857 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -14,7 +14,10 @@ module.exports = function ( grunt ) { grunt.loadNpmTasks( 'grunt-karma' ); grunt.loadNpmTasks( 'grunt-stylelint' ); - karmaProxy[ wgScriptPath ] = wgServer + wgScriptPath; + karmaProxy[ wgScriptPath ] = { + target: wgServer + wgScriptPath, + changeOrigin: true + }; grunt.initConfig( { eslint: { @@ -22,18 +25,18 @@ module.exports = function ( grunt ) { '**/*.js', '!docs/**', '!tests/**', - '!extensions/**', '!node_modules/**', '!resources/lib/**', '!resources/src/jquery.tipsy/**', '!resources/src/jquery/jquery.farbtastic.js', '!resources/src/mediawiki.libs/**', - '!skins/**', '!vendor/**', + // Explicitly say "**/*.js" here in case of symlinks + '!extensions/**/*.js', + '!skins/**/*.js', // Skip functions aren't even parseable '!resources/src/dom-level2-skip.js', '!resources/src/es5-skip.js', - '!resources/src/json-skip.js', '!resources/src/mediawiki.hidpi-skip.js' ] }, @@ -85,6 +88,9 @@ module.exports = function ( grunt ) { main: { browsers: [ 'Chrome' ] }, + chromium: { + browsers: [ 'Chromium' ] + }, more: { browsers: [ 'Chrome', 'Firefox' ] }