Implementing CLI settings that are shown in the demo editor.

Conflicts:

	support/pilot
This commit is contained in:
Fabian Jakobs 2011-01-26 12:13:43 +01:00
commit ce9d9f2bf4
3 changed files with 152 additions and 2 deletions

View file

@ -36,7 +36,7 @@
* ***** END LICENSE BLOCK ***** */
var config = {
paths: {
paths: {
demo: "../demo",
ace: "../lib/ace",
cockpit: "../support/cockpit/lib/cockpit",
@ -47,10 +47,12 @@ var config = {
var deps = [ "pilot/fixoldbrowsers", "pilot/plugin_manager", "pilot/settings",
"pilot/environment", "demo/startup" ];
var plugins = [ "pilot/index", "cockpit/index", "ace/defaults" ];
require(config);
require(deps, function() {
var catalog = require("pilot/plugin_manager").catalog;
catalog.registerPlugins([ "pilot/index", "cockpit/index" ]).then(function() {
catalog.registerPlugins(plugins).then(function() {
var env = require("pilot/environment").create();
catalog.startupPlugins({ env: env }).then(function() {
require("demo/startup").launch(env);