[enh] improve grunt-file for oscar_template
This commit is contained in:
		
							parent
							
								
									7adb17452d
								
							
						
					
					
						commit
						7b44fd47a7
					
				
							
								
								
									
										
											BIN
										
									
								
								searx/static/oscar/css/bootstrap.min.css
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								searx/static/oscar/css/bootstrap.min.css
									
									
									
									
										vendored
									
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								searx/static/oscar/css/oscar.min.css
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								searx/static/oscar/css/oscar.min.css
									
									
									
									
										vendored
									
									
								
							
										
											Binary file not shown.
										
									
								
							| @ -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: { |     watch: { | ||||||
|       files: ['<%= jshint.files %>'], |         scripts: { | ||||||
|       tasks: ['jshint'] |             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-jshint'); | ||||||
|   grunt.loadNpmTasks('grunt-contrib-watch'); |   grunt.loadNpmTasks('grunt-contrib-watch'); | ||||||
|   grunt.loadNpmTasks('grunt-contrib-concat'); |   grunt.loadNpmTasks('grunt-contrib-concat'); | ||||||
|  |   grunt.loadNpmTasks('grunt-contrib-less'); | ||||||
| 
 | 
 | ||||||
|   grunt.registerTask('test', ['jshint']); |   grunt.registerTask('test', ['jshint']); | ||||||
| 
 | 
 | ||||||
|   grunt.registerTask('default', ['jshint', 'concat', 'uglify']); |   grunt.registerTask('default', ['jshint', 'concat', 'uglify', 'less']); | ||||||
|  |    | ||||||
|  |   grunt.registerTask('styles', ['less']); | ||||||
| 
 | 
 | ||||||
| }; | }; | ||||||
|  | |||||||
							
								
								
									
										
											BIN
										
									
								
								searx/static/oscar/js/searx.min.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								searx/static/oscar/js/searx.min.js
									
									
									
									
										vendored
									
									
								
							
										
											Binary file not shown.
										
									
								
							| @ -4,7 +4,8 @@ | |||||||
|         "grunt-contrib-uglify": "~0.6.0", |         "grunt-contrib-uglify": "~0.6.0", | ||||||
|         "grunt-contrib-watch" : "~0.6.1", |         "grunt-contrib-watch" : "~0.6.1", | ||||||
|         "grunt-contrib-concat" : "~0.5.0", |         "grunt-contrib-concat" : "~0.5.0", | ||||||
|         "grunt-contrib-jshint" : "~0.10.0" |         "grunt-contrib-jshint" : "~0.10.0", | ||||||
|  |         "grunt-contrib-less" : "~0.11.0" | ||||||
|     }, |     }, | ||||||
|      |      | ||||||
|     "scripts": { |     "scripts": { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user