| 
									
										
										
										
											2016-06-02 13:39:03 +02:00
										 |  |  | import "typings-global"; | 
					
						
							|  |  |  | import * as plugins from "./npmci.plugins"; | 
					
						
							|  |  |  | import {bash} from "./npmci.bash"; | 
					
						
							| 
									
										
										
										
											2016-06-03 02:56:20 +02:00
										 |  |  | import * as env from "./npmci.env"; | 
					
						
							| 
									
										
										
										
											2016-06-04 18:41:35 +02:00
										 |  |  | import * as buildDocker from "./npmci.build.docker" | 
					
						
							| 
									
										
										
										
											2016-06-02 13:39:03 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-09-04 16:05:47 +02:00
										 |  |  | /** | 
					
						
							|  |  |  |  * defines possible build services | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | export type TBuildService = "docker"; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** | 
					
						
							|  |  |  |  * builds for a specific service | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | export let build = function(commandArg):plugins.q.Promise<any> { | 
					
						
							| 
									
										
										
										
											2016-06-03 02:10:34 +02:00
										 |  |  |     switch(commandArg){ | 
					
						
							|  |  |  |         case "docker": | 
					
						
							| 
									
										
										
										
											2016-06-04 18:41:35 +02:00
										 |  |  |             return buildDocker.build();    | 
					
						
							| 
									
										
										
										
											2016-06-05 06:26:05 +02:00
										 |  |  |         default: | 
					
						
							|  |  |  |             plugins.beautylog.log("build target " + commandArg + " not recognised!"); | 
					
						
							| 
									
										
										
										
											2016-09-04 16:05:47 +02:00
										 |  |  |     }; | 
					
						
							|  |  |  |     return; | 
					
						
							| 
									
										
										
										
											2016-06-03 02:10:34 +02:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-04 18:41:35 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-03 02:10:34 +02:00
										 |  |  | 
 |