X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=Gruntfile.js;h=72a407f921c9346421a98a219bcce8285103a4c3;hb=22ef6f96e26e8678399e2a53a7e45407ce5a1b1b;hp=a19f294080139e248619c2141faf8340ecd994d7;hpb=ca8f9bdc1507e8a1f1d7500fb52a0dcb64de237a;p=github%2Fwallabag%2Fwallabag.git diff --git a/Gruntfile.js b/Gruntfile.js index a19f2940..72a407f9 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -10,10 +10,6 @@ module.exports = function (grunt) { postcss: { material: { options: { - map: { - inline: false, - }, - processors: [ require('pixrem')(), require('autoprefixer')({ browsers: 'last 2 versions' }), @@ -25,10 +21,6 @@ module.exports = function (grunt) { }, baggy: { options: { - map: { - inline: false, - }, - processors: [ require('pixrem')(), require('autoprefixer')({ browsers: 'last 2 versions' }), @@ -95,19 +87,13 @@ module.exports = function (grunt) { files: { '<%= releaseDir %>/themes/material/js/material.min.js': ['<%= buildDir %>/material.browser.js'], - }, - options: { - sourceMap: true, - }, + } }, baggy: { files: { '<%= releaseDir %>/themes/baggy/js/baggy.min.js': ['<%= buildDir %>/baggy.browser.js'], - }, - options: { - sourceMap: true, - }, + } }, }, copy: { @@ -198,6 +184,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 +216,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'] + ) };