mirror of
				https://github.com/searxng/searxng.git
				synced 2025-10-31 18:47:07 -04:00 
			
		
		
		
	Set minor versioning for most of the packages that iterate fast or we know won't cause problems, and fixed versioning for the rest. Packages going into bundles should be placed in "dependencies". The inspection of prod bundles is necessary. Although it does not make a lot of sense right now, it will be useful in later PR and will give us a reference to start with.
		
			
				
	
	
		
			68 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			68 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env bash
 | |
| # SPDX-License-Identifier: AGPL-3.0-or-later
 | |
| 
 | |
| themes.help() {
 | |
|     cat <<EOF
 | |
| themes.:
 | |
|   all       : test & build all themes
 | |
|   simple    : test & build simple theme
 | |
|   lint      : lint JS & CSS (LESS) files
 | |
|   fix       : fix JS & CSS (LESS) files
 | |
|   test      : test all themes
 | |
| EOF
 | |
| }
 | |
| 
 | |
| themes.all() {
 | |
|     (
 | |
|         set -e
 | |
|         vite.simple.build
 | |
|     )
 | |
|     dump_return $?
 | |
| }
 | |
| 
 | |
| themes.simple() {
 | |
|     (
 | |
|         set -e
 | |
|         build_msg SIMPLE "theme: run build (simple)"
 | |
|         vite.simple.build
 | |
|     )
 | |
|     dump_return $?
 | |
| }
 | |
| 
 | |
| themes.simple.analyze() {
 | |
|     (
 | |
|         set -e
 | |
|         build_msg SIMPLE "theme: run analyze (simple)"
 | |
|         vite.simple.analyze
 | |
|     )
 | |
|     dump_return $?
 | |
| }
 | |
| 
 | |
| themes.fix() {
 | |
|     (
 | |
|         set -e
 | |
|         build_msg SIMPLE "theme: fix (all themes)"
 | |
|         vite.simple.fix
 | |
|     )
 | |
|     dump_return $?
 | |
| }
 | |
| 
 | |
| themes.lint() {
 | |
|     (
 | |
|         set -e
 | |
|         build_msg SIMPLE "theme: lint (all themes)"
 | |
|         vite.simple.lint
 | |
|     )
 | |
|     dump_return $?
 | |
| }
 | |
| 
 | |
| themes.test() {
 | |
|     (
 | |
|         set -e
 | |
|         # we run a build to test (in CI)
 | |
|         build_msg SIMPLE "theme: run build (to test)"
 | |
|         vite.simple.build
 | |
|     )
 | |
|     dump_return $?
 | |
| }
 |