X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=Gruntfile.js;h=9615330e8ca22b58e4cf7960bd14118b510b3ddd;hb=1b32592d9c64226226bf77baff4b1be944db2697;hp=765fe55a07acd7b34b8988cec738fd8a5440a533;hpb=27ede06954363fde8abe765b95c4e70143f3afce;p=lhc%2Fweb%2Fwiklou.git diff --git a/Gruntfile.js b/Gruntfile.js index 765fe55a07..9615330e8c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -9,7 +9,6 @@ module.exports = function ( grunt ) { grunt.loadNpmTasks( 'grunt-banana-checker' ); grunt.loadNpmTasks( 'grunt-contrib-copy' ); grunt.loadNpmTasks( 'grunt-eslint' ); - grunt.loadNpmTasks( 'grunt-jsonlint' ); grunt.loadNpmTasks( 'grunt-karma' ); grunt.loadNpmTasks( 'grunt-stylelint' ); grunt.loadNpmTasks( 'grunt-svgmin' ); @@ -23,10 +22,11 @@ module.exports = function ( grunt ) { eslint: { options: { reportUnusedDisableDirectives: true, + extensions: [ '.js', '.json' ], cache: true }, all: [ - '**/*.js', + '**/*.{js,json}', '!docs/**', '!node_modules/**', '!resources/lib/**', @@ -36,14 +36,8 @@ module.exports = function ( grunt ) { '!tests/coverage/**', '!vendor/**', // Explicitly say "**/*.js" here in case of symlinks - '!extensions/**/*.js', - '!skins/**/*.js' - ] - }, - jsonlint: { - all: [ - '**/*.json', - '!{docs/js,extensions,node_modules,skins,vendor}/**' + '!extensions/**/*.js{,on}', + '!skins/**/*.js{,on}' ] }, banana: { @@ -123,7 +117,7 @@ module.exports = function ( grunt ) { included: true, served: false } ], - logLevel: 'DEBUG', + logLevel: ( process.env.ZUUL_PROJECT ? 'DEBUG' : 'INFO' ), frameworks: [ 'qunit' ], reporters: [ 'mocha' ], singleRun: true,