grunt.loadNpmTasks( 'grunt-karma' );
grunt.loadNpmTasks( 'grunt-stylelint' );
- karmaProxy[ wgScriptPath ] = wgServer + wgScriptPath;
+ karmaProxy[ wgScriptPath ] = {
+ target: wgServer + wgScriptPath,
+ changeOrigin: true
+ };
grunt.initConfig( {
eslint: {
'**/*.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'
]
},
main: {
browsers: [ 'Chrome' ]
},
+ chromium: {
+ browsers: [ 'Chromium' ]
+ },
more: {
browsers: [ 'Chrome', 'Firefox' ]
}