diff options
Diffstat (limited to 'searx/static/themes/simple/gruntfile.js')
-rw-r--r-- | searx/static/themes/simple/gruntfile.js | 49 |
1 files changed, 26 insertions, 23 deletions
diff --git a/searx/static/themes/simple/gruntfile.js b/searx/static/themes/simple/gruntfile.js index a0f9fd75a..c372ec730 100644 --- a/searx/static/themes/simple/gruntfile.js +++ b/searx/static/themes/simple/gruntfile.js @@ -10,21 +10,36 @@ module.exports = function(grunt) { tasks: ['jshint', 'concat', 'uglify', 'webfont', 'less:development', 'less:production'] } }, - concat: { + jshint: { + files: ['js/searx_src/*.js', 'js/searx_header/*.js'], options: { - separator: ';' - }, - dist: { - src: ['js/searx_src/*.js'], - dest: 'js/searx.js' + reporterOutput: "", + proto: true, + // options here to override JSHint defaults + globals: { + browser: true, + jQuery: false, + devel: true + } + } + }, + concat: { + head_and_body: { + options: { + separator: ';' + }, + files: { + 'js/searx.head.js': ['js/searx_head/*.js'], + 'js/searx.js': ['js/searx_src/*.js'] + } } }, uglify: { options: { banner: '/*! simple/searx.min.js | <%= grunt.template.today("dd-mm-yyyy") %> | https://github.com/asciimoo/searx */\n', - output: { - comments: 'some' - }, + output: { + comments: 'some' + }, ie8: false, warnings: true, compress: false, @@ -33,20 +48,8 @@ module.exports = function(grunt) { }, dist: { files: { - 'js/searx.min.js': ['<%= concat.dist.dest %>'] - } - } - }, - jshint: { - files: ['js/searx_src/*.js'], - options: { - reporterOutput: "", - proto: true, - // options here to override JSHint defaults - globals: { - browser: true, - jQuery: false, - devel: true + 'js/searx.head.min.js': ['js/searx.head.js'], + 'js/searx.min.js': ['js/searx.js'] } } }, |