mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 02:52:37 +00:00 
			
		
		
		
	lazy: wrap beforeAll in lua function
This commit is contained in:
		
					parent
					
						
							
								b6785f8218
							
						
					
				
			
			
				commit
				
					
						1d2d4cd088
					
				
			
		
					 1 changed files with 9 additions and 0 deletions
				
			
		|  | @ -25,6 +25,15 @@ | |||
|     (removeAttrs spec ["package" "setupModule" "setupOpts" "keys"]) | ||||
|     // { | ||||
|       "@1" = name; | ||||
|       beforeAll = | ||||
|         if spec.beforeAll != null | ||||
|         then | ||||
|           mkLuaInline '' | ||||
|             function() | ||||
|               ${spec.beforeAll} | ||||
|             end | ||||
|           '' | ||||
|         else null; | ||||
|       before = | ||||
|         if spec.before != null | ||||
|         then | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ching Pei Yang
				Ching Pei Yang