| 
									
										
										
										
											2025-09-01 19:36:14 +03:00
										 |  |  | import BuildHelper from "../../../scripts/build-utils"; | 
					
						
							| 
									
										
										
										
											2025-08-31 22:30:07 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-09-01 19:36:14 +03:00
										 |  |  | const build = new BuildHelper("apps/server"); | 
					
						
							| 
									
										
										
										
											2025-08-31 22:30:07 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-09-01 20:29:34 +03:00
										 |  |  | async function main() { | 
					
						
							| 
									
										
										
										
											2025-09-01 20:50:22 +03:00
										 |  |  |     await build.buildBackend([ "src/main.ts", "src/docker_healthcheck.ts" ]) | 
					
						
							| 
									
										
										
										
											2025-08-31 22:30:07 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-09-01 20:29:34 +03:00
										 |  |  |     // Copy assets
 | 
					
						
							| 
									
										
										
										
											2025-09-01 19:36:14 +03:00
										 |  |  |     build.copy("src/assets", "assets/"); | 
					
						
							| 
									
										
										
										
											2025-09-01 20:50:22 +03:00
										 |  |  |     build.copy("/packages/share-theme/src/templates", "share-theme/templates/"); | 
					
						
							| 
									
										
										
										
											2025-08-31 23:03:21 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-09-01 20:29:34 +03:00
										 |  |  |     // Copy node modules dependencies
 | 
					
						
							|  |  |  |     build.copyNodeModules([ "better-sqlite3", "bindings", "file-uri-to-path" ]); | 
					
						
							| 
									
										
										
										
											2025-09-03 21:09:56 +03:00
										 |  |  |     build.copy("/node_modules/ckeditor5/dist/ckeditor5-content.css", "ckeditor5-content.css"); | 
					
						
							| 
									
										
										
										
											2025-08-31 23:03:21 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-09-01 20:29:34 +03:00
										 |  |  |     // Integrate the client.
 | 
					
						
							|  |  |  |     build.triggerBuildAndCopyTo("apps/client", "public/"); | 
					
						
							| 
									
										
										
										
											2025-09-01 19:36:14 +03:00
										 |  |  |     build.deleteFromOutput("public/webpack-stats.json"); | 
					
						
							| 
									
										
										
										
											2025-08-31 23:03:21 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-31 22:30:07 +03:00
										 |  |  | main(); |