diff options
author | Johannes 'josch' Schauer <josch@debian.org> | 2021-01-19 14:16:36 +0100 |
---|---|---|
committer | Johannes 'josch' Schauer <josch@debian.org> | 2021-01-19 14:16:36 +0100 |
commit | 84e805cd0d184c7eac0c9757e629cec7e6d5d1b3 (patch) | |
tree | c7bb641cea6266d36b7f4904ff28c78d7cb8289c | |
parent | 44dcbf66d6613c2f7711e7bfa6157f6ef843c830 (diff) |
clean-gruntfiles
Gbp-Pq: Name clean-gruntfiles
-rw-r--r-- | searx/static/themes/oscar/gruntfile.js | 13 | ||||
-rw-r--r-- | searx/static/themes/simple/gruntfile.js | 19 |
2 files changed, 6 insertions, 26 deletions
diff --git a/searx/static/themes/oscar/gruntfile.js b/searx/static/themes/oscar/gruntfile.js index b18c0bc..2de9d7a 100644 --- a/searx/static/themes/oscar/gruntfile.js +++ b/searx/static/themes/oscar/gruntfile.js @@ -80,16 +80,9 @@ module.exports = function(grunt) { } }); - grunt.loadNpmTasks('grunt-contrib-uglify'); - grunt.loadNpmTasks('grunt-contrib-jshint'); - grunt.loadNpmTasks('grunt-contrib-watch'); - grunt.loadNpmTasks('grunt-contrib-concat'); - grunt.loadNpmTasks('grunt-contrib-less'); + grunt.loadNpmTasks('grunt-contrib-uglify', '/usr/lib/nodejs'); + grunt.loadNpmTasks('grunt-contrib-concat', '/usr/lib/nodejs'); - grunt.registerTask('test', ['jshint']); - - grunt.registerTask('default', ['jshint', 'concat', 'uglify', 'less']); - - grunt.registerTask('styles', ['less']); + grunt.registerTask('default', ['concat', 'uglify']); }; diff --git a/searx/static/themes/simple/gruntfile.js b/searx/static/themes/simple/gruntfile.js index c8f2ed3..ecc8c40 100644 --- a/searx/static/themes/simple/gruntfile.js +++ b/searx/static/themes/simple/gruntfile.js @@ -67,12 +67,6 @@ module.exports = function(grunt) { production: { options: { paths: ["less"], - plugins: [ - new (require('less-plugin-clean-css'))({ - advanced: true, - compatibility: '*' - }) - ], banner: '/*! searx | <%= grunt.template.today("dd-mm-yyyy") %> | <%= process.env.GIT_URL %> */\n' }, files: { @@ -147,15 +141,8 @@ module.exports = function(grunt) { } }); - grunt.loadNpmTasks('grunt-contrib-watch'); - grunt.loadNpmTasks('grunt-contrib-uglify'); - grunt.loadNpmTasks('grunt-contrib-jshint'); - grunt.loadNpmTasks('grunt-contrib-concat'); - grunt.loadNpmTasks('grunt-contrib-less'); - grunt.loadNpmTasks('grunt-contrib-cssmin'); - grunt.loadNpmTasks('grunt-webfont'); + grunt.loadNpmTasks('grunt-contrib-uglify', '/usr/lib/nodejs'); + grunt.loadNpmTasks('grunt-contrib-concat', '/usr/lib/nodejs'); - grunt.registerTask('test', ['jshint']); - - grunt.registerTask('default', ['jshint', 'concat', 'uglify', 'less:development', 'less:production']); + grunt.registerTask('default', ['concat', 'uglify']); }; |