| 
									
										
										
										
											2017-11-01 04:53:36 +03:00
										 |  |  | /********************************************************************** | 
					
						
							|  |  |  | *  | 
					
						
							|  |  |  | * | 
					
						
							|  |  |  | * | 
					
						
							|  |  |  | **********************************************************************/ | 
					
						
							| 
									
										
										
										
											2020-08-31 00:02:33 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-11-02 21:18:30 +03:00
										 |  |  | var requirejs_cfg = { | 
					
						
							| 
									
										
										
										
											2020-09-02 01:40:26 +03:00
										 |  |  | 	baseUrl:  | 
					
						
							|  |  |  | 		// electron...
 | 
					
						
							|  |  |  | 		// NOTE: on electron v7+ the default seems to be '../', a bug?
 | 
					
						
							|  |  |  | 		typeof(process) != 'undefined' && 'electron' in process.versions ? | 
					
						
							| 
									
										
										
										
											2020-08-31 00:02:33 +03:00
										 |  |  | 			document.baseURI | 
					
						
							|  |  |  | 				.replace(/^[a-zA-Z]+:\/\/\/?/, '') | 
					
						
							|  |  |  | 				.split(/[#&]/)[0].split(/[\\\/]/g).slice(0, -1).join('/') | 
					
						
							|  |  |  | 		: './', | 
					
						
							| 
									
										
										
										
											2020-08-30 19:55:01 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											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', | 
					
						
							| 
									
										
										
										
											2020-10-05 03:58:03 +03:00
										 |  |  | 		'lib/types': 'node_modules/ig-types/', | 
					
						
							| 
									
										
										
										
											2017-11-01 04:53:36 +03:00
										 |  |  | 		'lib/actions': 'node_modules/ig-actions/actions', | 
					
						
							|  |  |  | 		'lib/features': 'node_modules/ig-features/features', | 
					
						
							|  |  |  | 		//'lib/keyboard': './node_modules/ig-keyboard/keyboard',
 | 
					
						
							| 
									
										
										
										
											2020-07-03 00:26:43 +03:00
										 |  |  | 		'object-run': 'node_modules/object-run/run', | 
					
						
							| 
									
										
										
										
											2019-05-03 19:43:22 +03:00
										 |  |  | 		 | 
					
						
							| 
									
										
										
										
											2020-12-08 18:35:50 +03:00
										 |  |  | 		'lib/argv': 'node_modules/ig-argv/argv', | 
					
						
							| 
									
										
										
										
											2019-05-03 19:43:22 +03:00
										 |  |  | 		'lib/walk': 'node_modules/generic-walk/walk', | 
					
						
							| 
									
										
										
										
											2017-11-01 04:53:36 +03:00
										 |  |  | 	},	 | 
					
						
							|  |  |  | 	map: { | 
					
						
							|  |  |  | 		'*': { | 
					
						
							|  |  |  | 			// back-refs
 | 
					
						
							|  |  |  | 			// ...these enable the npm modules reference each other in 
 | 
					
						
							|  |  |  | 			// a cross-platform manner....
 | 
					
						
							|  |  |  | 			'ig-object': 'lib/object', | 
					
						
							| 
									
										
										
										
											2020-10-05 03:58:03 +03:00
										 |  |  | 			'ig-types': 'lib/types', | 
					
						
							| 
									
										
										
										
											2017-11-01 04:53:36 +03:00
										 |  |  | 			'ig-actions': 'lib/actions', | 
					
						
							|  |  |  | 			'ig-features': 'lib/features', | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			//'ig-keyboard': 'lib/keyboard',
 | 
					
						
							| 
									
										
										
										
											2019-05-03 19:43:22 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-12-08 18:35:50 +03:00
										 |  |  | 			'ig-argv': 'lib/argv', | 
					
						
							| 
									
										
										
										
											2019-05-03 19:43:22 +03:00
										 |  |  | 			'generic-walk': 'lib/walk', | 
					
						
							| 
									
										
										
										
											2017-11-01 04:53:36 +03:00
										 |  |  | 		}, | 
					
						
							|  |  |  | 	}, | 
					
						
							| 
									
										
										
										
											2020-10-05 03:58:03 +03:00
										 |  |  | 	packages: [ | 
					
						
							|  |  |  | 		'lib/types', | 
					
						
							|  |  |  | 	], | 
					
						
							| 
									
										
										
										
											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 :                                                */ |