| 
									
										
										
										
											2019-08-29 20:26:23 +02:00
										 |  |  | import * as plugins from './npmci.plugins'; | 
					
						
							|  |  |  | import * as paths from './npmci.paths'; | 
					
						
							| 
									
										
										
										
											2019-08-29 20:38:44 +02:00
										 |  |  | import { logger } from './npmci.logging'; | 
					
						
							| 
									
										
										
										
											2019-08-29 20:26:23 +02:00
										 |  |  | import { Npmci } from './npmci.classes.npmci'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export class NpmciInfo { | 
					
						
							|  |  |  |   public npmciRef: Npmci; | 
					
						
							|  |  |  |   public projectInfo = new plugins.projectinfo.ProjectinfoNpm(paths.NpmciPackageRoot); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   constructor(npmciArg: Npmci) { | 
					
						
							|  |  |  |     this.npmciRef = npmciArg; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-29 20:38:44 +02:00
										 |  |  |   public printToConsole() { | 
					
						
							| 
									
										
										
										
											2019-08-29 20:26:23 +02:00
										 |  |  |     logger.log('info', `npmci version: ${this.projectInfo.version}`); | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2019-08-29 20:38:44 +02:00
										 |  |  | } |