require.config({
	baseUrl : '../bower_components',
    urlArgs: "bust=" + (new Date()).getTime(),
	paths : {
		app : '../javascripts/app',
		angular : 'angular/angular.min',
		angularBootstrap : 'angular-bootstrap/ui-bootstrap-tpls.min',
		angularRoute : 'angular-route/angular-route.min',
		easyCodeParser : '../javascripts/easyCodeLanguage/easyCodeParser',
		easyCodeRunner : '../javascripts/easyCodeLanguage/easyCodeRunner',
		terminalEmulator : '../javascripts/terminalEmulator/vtortola.ng-terminal'
	},
	shim : {
		'angularBootstrap' : {
			deps : [
				'angular'
			],
			exports: 'angular-ui-bootstrap'
		},
		'angular-ui-codemirror/ui-codemirror' : {
			deps : [
				'angular',
				'codemirror/lib/codemirror'
			],
			exports: 'codeMirrorAngular'
		},
		'angularRoute': {		
			deps : [
				'angular',
			],
			exports: 'angularRoute'
		},
		app : {
			deps: [
				'angular',
				'angularRoute',
				'angularBootstrap',
				'angular-ui-codemirror/ui-codemirror',
				'codemirror/mode/htmlmixed/htmlmixed',
				'codemirror/addon/hint/show-hint',
                '../javascripts/easyCodeLanguage/easyCodeSyntaxHighlighter',
				'easyCodeParser',
				'terminalEmulator'
			],
			exports: 'app'
		}
	}
});

require(['app'], function (app) {
  // create CodeMirror on window for correcte usage of ui.codemirror
  window.CodeMirror = require('codemirror/lib/codemirror');
  app.init();
});
@@ -841,16 +841,109 @@
 e'%0A%09%09%7D,%0A
+%09%09'terminalEmulator': %7B%0A%09%09%09deps : %5B%0A%09%09%09%09'angular'%0A%09%09%09%5D,%0A%09%09%09exports : 'terminalEmulator'%0A%09%09%7D,%0A
 %09%09app : 

add terminal emulator dependencies