summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes 'josch' Schauer <josch@debian.org>2020-02-16 07:52:36 +0100
committerJohannes 'josch' Schauer <josch@debian.org>2020-02-16 07:52:36 +0100
commit7c6c9e6d3d7a8b0f28e37fd81b274fe1e7779c85 (patch)
tree7057f699d6e58a58142f8595008d6201a49111a3
parent8220f4d21b34e577bbec8d7121dc38f9ec21ee04 (diff)
clean-gruntfiles
Gbp-Pq: Name clean-gruntfiles
-rw-r--r--searx/static/themes/oscar/gruntfile.js13
-rw-r--r--searx/static/themes/simple/gruntfile.js19
2 files changed, 6 insertions, 26 deletions
diff --git a/searx/static/themes/oscar/gruntfile.js b/searx/static/themes/oscar/gruntfile.js
index def035d..935572d 100644
--- a/searx/static/themes/oscar/gruntfile.js
+++ b/searx/static/themes/oscar/gruntfile.js
@@ -81,16 +81,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 c372ec7..50e870f 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") %> | https://github.com/asciimoo/searx */\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']);
};