mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 18:05:55 +01:00 
			
		
		
		
	build(copy-dist): consolidate folder copying
the "srcDirsToCopy" block is useless now, we can just use the previous dirsToCopy to achieve the exact same thing
This commit is contained in:
		
				
					committed by
					
						 Panagiotis Papadopoulos
						Panagiotis Papadopoulos
					
				
			
			
				
	
			
			
			
						parent
						
							24382d8176
						
					
				
				
					commit
					dbc2df0820
				
			| @@ -49,19 +49,14 @@ const copy = async () => { | |||||||
|         "db", |         "db", | ||||||
|         "src/public/fonts", |         "src/public/fonts", | ||||||
|         "src/public/stylesheets", |         "src/public/stylesheets", | ||||||
|         "src/public/translations" |         "src/public/translations", | ||||||
|  |         "src/views/" | ||||||
|     ]; |     ]; | ||||||
|     for (const dir of dirsToCopy) { |     for (const dir of dirsToCopy) { | ||||||
|         log(`Copying ${dir}`); |         log(`Copying ${dir}`); | ||||||
|         await fs.copy(dir, path.join(DEST_DIR, dir)); |         await fs.copy(dir, path.join(DEST_DIR, dir)); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     const srcDirsToCopy = ["./src/views"]; |  | ||||||
|     for (const dir of srcDirsToCopy) { |  | ||||||
|         log(`Copying ${dir}`); |  | ||||||
|         await fs.copy(dir, path.join(DEST_DIR_SRC, path.basename(dir))); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Directories to be copied relative to the project root into <resource_dir>/src/public/app-dist. |      * Directories to be copied relative to the project root into <resource_dir>/src/public/app-dist. | ||||||
|      */ |      */ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user