| 
									
										
										
										
											2016-11-24 23:21:40 +01:00
										 |  |  | import * as plugins from './npmci.plugins' | 
					
						
							| 
									
										
										
										
											2017-03-07 18:07:03 +01:00
										 |  |  | import { bash } from './npmci.bash' | 
					
						
							| 
									
										
										
										
											2016-11-24 23:21:40 +01:00
										 |  |  | import * as env from './npmci.env' | 
					
						
							|  |  |  | 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 | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2017-03-07 18:07:03 +01:00
										 |  |  | export type TBuildService = 'docker' | 
					
						
							| 
									
										
										
										
											2016-09-04 16:05:47 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | /** | 
					
						
							|  |  |  |  * builds for a specific service | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2017-03-07 18:07:03 +01:00
										 |  |  | export let build = async (commandArg): Promise<void> => { | 
					
						
							|  |  |  |   switch (commandArg) { | 
					
						
							|  |  |  |     case 'docker': | 
					
						
							|  |  |  |       await buildDocker.build() | 
					
						
							|  |  |  |       break | 
					
						
							|  |  |  |     default: | 
					
						
							|  |  |  |       plugins.beautylog.log('build target ' + commandArg + ' not recognised!') | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  |   return | 
					
						
							| 
									
										
										
										
											2016-06-03 02:10:34 +02:00
										 |  |  | } |