diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2021-06-22 13:33:05 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-06-24 13:27:21 +0200 |
| commit | dfc5c3bc1520d8b4e48d972099c80198fa312847 (patch) | |
| tree | fabbb39e86ff8d34f2d3086cadb85a1ac8a80ed6 /searx/static/themes/simple/gruntfile.js | |
| parent | e73a96b5f9c55e3b6eb6b95515b18d46308ee1c1 (diff) | |
[mod] add stylelint process to target themes.simple
Before build, do lint the LESS files using stylelint [1]. The configuration
'stylelint-config-standard' [2] is added to the root of the simple theme [3].
[1] https://stylelint.io/
[2] https://github.com/stylelint/stylelint-config-standard
[3] https://stylelint.io/user-guide/configure
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/static/themes/simple/gruntfile.js')
| -rw-r--r-- | searx/static/themes/simple/gruntfile.js | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/searx/static/themes/simple/gruntfile.js b/searx/static/themes/simple/gruntfile.js index e34d4ee4f..956626148 100644 --- a/searx/static/themes/simple/gruntfile.js +++ b/searx/static/themes/simple/gruntfile.js @@ -23,6 +23,14 @@ module.exports = function(grunt) { } } }, + stylelint: { + options: { + formatter: 'unix', + }, + src: [ + 'src/less/**/*.less', + ] + }, copy: { js: { expand: true, @@ -191,8 +199,17 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-less'); grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.loadNpmTasks('grunt-webfont'); + grunt.loadNpmTasks('grunt-stylelint'); grunt.registerTask('test', ['jshint']); - grunt.registerTask('default', ['jshint', 'copy', 'concat', 'uglify', 'less:development', 'less:production']); + grunt.registerTask('default', [ + 'jshint', + 'stylelint', + 'copy', + 'concat', + 'uglify', + 'less:development', + 'less:production' + ]); }; |