X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=Gruntfile.js;h=b80ab56d554bca0d6c5b1efb24b15541560ec7ef;hb=17064d3c54a26b7ba9ecf2b7fb854a3cf4178915;hp=a19f294080139e248619c2141faf8340ecd994d7;hpb=ca8f9bdc1507e8a1f1d7500fb52a0dcb64de237a;p=github%2Fwallabag%2Fwallabag.git diff --git a/Gruntfile.js b/Gruntfile.js index a19f2940..b80ab56d 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -198,6 +198,13 @@ module.exports = function (grunt) { src: ['./<%= releaseDir %>/*'], } }, + eslint: { + target: ['<%= appDir %>/themes/material/js/init.js', '<%= appDir %>/themes/baggy/js/init.js'] + }, + stylelint: { + target: ['<%= appDir %>/themes/material/css/*.css', '<%= appDir %>/themes/baggy/css/*.css'] + } + }); grunt.registerTask( @@ -223,4 +230,10 @@ module.exports = function (grunt) { 'Compiles the stylesheets.', ['clean:css', 'concat:cssMaterial', 'concat:cssBaggy', 'postcss'] ); + + grunt.registerTask( + 'tests', + 'Test css and js style conformity', + ['eslint', 'stylelint', 'default'] + ) };