| 
									
										
										
										
											2017-11-01 04:53:36 +03:00
										 |  |  | /********************************************************************** | 
					
						
							|  |  |  | *  | 
					
						
							|  |  |  | * | 
					
						
							|  |  |  | * | 
					
						
							|  |  |  | **********************************************************************/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-11-02 21:18:30 +03:00
										 |  |  | var requirejs_cfg = { | 
					
						
							| 
									
										
										
										
											2017-11-01 04:53:36 +03:00
										 |  |  | 	// XXX this does not work on direct filesystem access...
 | 
					
						
							|  |  |  | 	//urlArgs: 'bust='+Date.now(),
 | 
					
						
							|  |  |  | 	 | 
					
						
							|  |  |  | 	paths: { | 
					
						
							| 
									
										
										
										
											2018-01-14 22:23:51 +03:00
										 |  |  | 		text: 'node_modules/requirejs-plugins/lib/text', | 
					
						
							|  |  |  | 		json: 'node_modules/requirejs-plugins/src/json', | 
					
						
							| 
									
										
										
										
											2017-11-01 04:53:36 +03:00
										 |  |  | 		 | 
					
						
							|  |  |  | 		//react: 'node_modules/react/dist/react-with-addons.min.js',
 | 
					
						
							|  |  |  | 		//'react-dom': 'node_modules/react-dom/dist/react-dom.min.js',
 | 
					
						
							|  |  |  | 		//'ext-lib/preact': './node_modules/preact/dist/preact.dev',
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		'lib/object': 'node_modules/ig-object/object', | 
					
						
							|  |  |  | 		'lib/actions': 'node_modules/ig-actions/actions', | 
					
						
							|  |  |  | 		'lib/features': 'node_modules/ig-features/features', | 
					
						
							|  |  |  | 		//'lib/keyboard': './node_modules/ig-keyboard/keyboard',
 | 
					
						
							|  |  |  | 	},	 | 
					
						
							|  |  |  | 	map: { | 
					
						
							|  |  |  | 		'*': { | 
					
						
							|  |  |  | 			// back-refs
 | 
					
						
							|  |  |  | 			// ...these enable the npm modules reference each other in 
 | 
					
						
							|  |  |  | 			// a cross-platform manner....
 | 
					
						
							|  |  |  | 			'ig-object': 'lib/object', | 
					
						
							|  |  |  | 			'ig-actions': 'lib/actions', | 
					
						
							|  |  |  | 			'ig-features': 'lib/features', | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			//'ig-keyboard': 'lib/keyboard',
 | 
					
						
							|  |  |  | 		}, | 
					
						
							|  |  |  | 	}, | 
					
						
							| 
									
										
										
										
											2017-11-01 05:46:39 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if(typeof(require) != 'undefined'){ | 
					
						
							| 
									
										
										
										
											2017-11-02 21:18:30 +03:00
										 |  |  | 	requirejs_cfg.nodeRequire = require | 
					
						
							|  |  |  | 	//requirejs_cfg.baseUrl = __dirname
 | 
					
						
							| 
									
										
										
										
											2017-11-01 05:46:39 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-11-02 21:18:30 +03:00
										 |  |  | // XXX revise...
 | 
					
						
							| 
									
										
										
										
											2017-11-01 05:46:39 +03:00
										 |  |  | if(typeof(require) != 'undefined' && typeof(global) != 'undefined'){ | 
					
						
							|  |  |  | 	global.requirejs = global.requirejs || require('requirejs') | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-11-02 21:18:30 +03:00
										 |  |  | requirejs.config(requirejs_cfg) | 
					
						
							| 
									
										
										
										
											2017-11-01 04:53:36 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /********************************************************************** | 
					
						
							|  |  |  | * vim:set ts=4 sw=4 :                                                */ |