feat: added just format command
				
					
				
			This commit is contained in:
		
							parent
							
								
									384cfcbec6
								
							
						
					
					
						commit
						684fcbf3c9
					
				
							
								
								
									
										5
									
								
								justfile
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								justfile
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -2,7 +2,7 @@ set export
 | 
			
		|||
 | 
			
		||||
BUILD_NAME := "change_me"
 | 
			
		||||
 | 
			
		||||
build:
 | 
			
		||||
build: format
 | 
			
		||||
    cd engine/ && scons target=editor symbols=yes optimization=debug dev_build=yes linker=mold use_llvm=yes compiledb=yes custom_modules="../modules"
 | 
			
		||||
 | 
			
		||||
run: build
 | 
			
		||||
| 
						 | 
				
			
			@ -29,3 +29,6 @@ initialize-template projectname:
 | 
			
		|||
    sed "s/change_me/{{projectname}}/" ./justfile
 | 
			
		||||
    mv ./modules/PROJECT ./modules/{{projectname}}
 | 
			
		||||
 | 
			
		||||
format:
 | 
			
		||||
    # Formatting Custom Modules
 | 
			
		||||
    clang-format -i $(find modules/ -iname '*.h' -o -iname '*.c' -o -iname '*.hpp' -o -iname '*.cpp' -o -iname '*.hxx' -o -iname '*.cxx')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue