diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2025-01-15 17:26:45 +0100 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2025-01-16 10:51:33 +0100 |
| commit | 15d0e274b39340f19c3c5dde8cfdec451fa044c0 (patch) | |
| tree | ff2235776b856d76249b6a3072633f78a1e071d4 /searx/static/themes | |
| parent | e4f8f0483f418da953724ddcbc3d67cfe6373ea9 (diff) | |
[fix] build workflows of the themes
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/static/themes')
| -rw-r--r-- | searx/static/themes/simple/gruntfile.js | 6 | ||||
| -rw-r--r-- | searx/static/themes/simple/package.json | 9 |
2 files changed, 9 insertions, 6 deletions
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', diff --git a/searx/static/themes/simple/package.json b/searx/static/themes/simple/package.json index 5ff49057a..e56adbaa7 100644 --- a/searx/static/themes/simple/package.json +++ b/searx/static/themes/simple/package.json @@ -29,12 +29,13 @@ "scripts": { "all": "npm install && grunt", "build": "grunt", - "test": "grunt test", + "clean": "rm -Rf node_modules", "eslint": "grunt eslint", "eslint-fix": "grunt eslint --fix", - "watch": "grunt watch", - "clean": "rm -Rf node_modules", + "fix": "grunt test --fix", "stylelint": "grunt stylelint", - "stylelint-fix": "grunt stylelint --fix" + "stylelint-fix": "grunt stylelint --fix", + "test": "grunt test", + "watch": "grunt watch --fix" } } |