diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2015-01-15 18:26:00 +0100 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2015-01-15 18:26:00 +0100 |
| commit | a04fafd419bd465c533cc223e4036e1ca0997d5f (patch) | |
| tree | f739d7d4567fcc8b1691bbef24deb9cb13ce7e14 /searx/static/themes/oscar/gruntfile.js | |
| parent | c5599e3c7c790ac2674b68f99919c0ec284327a3 (diff) | |
| parent | 400b54191c590663f0cfe91045f70a5d9223aa19 (diff) | |
Merge branch 'code_results' of https://github.com/pointhi/searx into pointhi-code_results
Conflicts:
searx/static/themes/default/css/style.css
searx/static/themes/oscar/css/oscar.min.css
searx/templates/oscar/result_templates/torrent.html
Diffstat (limited to 'searx/static/themes/oscar/gruntfile.js')
| -rw-r--r-- | searx/static/themes/oscar/gruntfile.js | 43 |
1 files changed, 40 insertions, 3 deletions
diff --git a/searx/static/themes/oscar/gruntfile.js b/searx/static/themes/oscar/gruntfile.js index 79da491c4..c591e8505 100644 --- a/searx/static/themes/oscar/gruntfile.js +++ b/searx/static/themes/oscar/gruntfile.js @@ -33,9 +33,43 @@ module.exports = function(grunt) { } } }, + less: { + development: { + options: { + paths: ["less/oscar"] + //banner: '/*! less/oscar/oscar.css | <%= grunt.template.today("dd-mm-yyyy") %> | https://github.com/asciimoo/searx */\n' + }, + files: {"css/oscar.css": "less/oscar/oscar.less"} + }, + production: { + options: { + paths: ["less/oscar"], + //banner: '/*! less/oscar/oscar.css | <%= grunt.template.today("dd-mm-yyyy") %> | https://github.com/asciimoo/searx */\n', + cleancss: true + }, + files: {"css/oscar.min.css": "less/oscar/oscar.less"} + }, + bootstrap: { + options: { + paths: ["less/bootstrap"], + cleancss: true + }, + files: {"css/bootstrap.min.css": "less/bootstrap/bootstrap.less"} + }, + }, watch: { - files: ['<%= jshint.files %>'], - tasks: ['jshint'] + scripts: { + files: ['<%= jshint.files %>'], + tasks: ['jshint', 'concat', 'uglify'] + }, + oscar_styles: { + files: ['less/oscar/**/*.less'], + tasks: ['less:development', 'less:production'] + }, + bootstrap_styles: { + files: ['less/bootstrap/**/*.less'], + tasks: ['less:bootstrap'] + } } }); @@ -43,9 +77,12 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-concat'); + grunt.loadNpmTasks('grunt-contrib-less'); grunt.registerTask('test', ['jshint']); - grunt.registerTask('default', ['jshint', 'concat', 'uglify']); + grunt.registerTask('default', ['jshint', 'concat', 'uglify', 'less']); + + grunt.registerTask('styles', ['less']); }; |