From 15d0e274b39340f19c3c5dde8cfdec451fa044c0 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Wed, 15 Jan 2025 17:26:45 +0100 Subject: [fix] build workflows of the themes Signed-off-by: Markus Heiser --- searx/static/themes/simple/gruntfile.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'searx/static/themes/simple/gruntfile.js') diff --git a/searx/static/themes/simple/gruntfile.js b/searx/static/themes/simple/gruntfile.js index bd04b2468..a40e48120 100644 --- a/searx/static/themes/simple/gruntfile.js +++ b/searx/static/themes/simple/gruntfile.js @@ -21,9 +21,10 @@ module.exports = function (grunt) { pkg: grunt.file.readJSON('package.json'), watch: { scripts: { - files: ['gruntfile.js', 'src/**'], + files: ['gruntfile.js', 'eslint.config.mjs', '.stylelintrc.json', 'src/**'], tasks: [ 'eslint', + 'stylelint', 'copy', 'uglify', 'less', @@ -49,6 +50,7 @@ module.exports = function (grunt) { stylelint: { options: { formatter: 'unix', + fix: grunt.option('fix') }, src: [ 'src/less/**/*.less', @@ -298,7 +300,7 @@ module.exports = function (grunt) { grunt.loadNpmTasks('grunt-stylelint'); grunt.loadNpmTasks('grunt-eslint'); - grunt.registerTask('test', ['eslint']); + grunt.registerTask('test', ['eslint', 'stylelint']); grunt.registerTask('default', [ 'eslint', -- cgit v1.2.3