| 
									
										
										
										
											2017-05-18 20:40:09 +00:00
										 |  |  | import * as plugins from './npmci.plugins' | 
					
						
							|  |  |  | import * as env from './npmci.env' | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-09-08 14:58:44 +02:00
										 |  |  | import { Analytics } from 'smartanalytics' | 
					
						
							| 
									
										
										
										
											2017-05-18 20:40:09 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-09-08 14:58:44 +02:00
										 |  |  | export let npmciAnalytics = new Analytics({ | 
					
						
							|  |  |  |   apiEndPoint: 'https://pubapi-1.lossless.one/analytics', | 
					
						
							|  |  |  |   projectId: 'gitzone', | 
					
						
							|  |  |  |   appName: 'npmci' | 
					
						
							|  |  |  | }) | 
					
						
							| 
									
										
										
										
											2017-05-18 20:40:09 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-09-08 14:58:44 +02:00
										 |  |  | npmciAnalytics.recordEvent('npmToolExecution', { | 
					
						
							|  |  |  |    | 
					
						
							|  |  |  | }).catch(err => { | 
					
						
							|  |  |  |   plugins.beautylog.warn('Lossless Analytics API not available...') | 
					
						
							|  |  |  | }) |