mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 19:12:38 +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"]) |     (removeAttrs spec ["package" "setupModule" "setupOpts" "keys"]) | ||||||
|     // { |     // { | ||||||
|       "@1" = name; |       "@1" = name; | ||||||
|  |       beforeAll = | ||||||
|  |         if spec.beforeAll != null | ||||||
|  |         then | ||||||
|  |           mkLuaInline '' | ||||||
|  |             function() | ||||||
|  |               ${spec.beforeAll} | ||||||
|  |             end | ||||||
|  |           '' | ||||||
|  |         else null; | ||||||
|       before = |       before = | ||||||
|         if spec.before != null |         if spec.before != null | ||||||
|         then |         then | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ching Pei Yang
				Ching Pei Yang