make boot script packager friendly

This commit is contained in:
Fabian Jakobs 2011-01-10 13:57:54 +01:00
commit 83f3f81928
4 changed files with 22 additions and 18 deletions

View file

@ -36,24 +36,16 @@
* ***** END LICENSE BLOCK ***** */
var config = {
packagePaths: {
"../support/cockpit/lib": [
{ name: "cockpit", main: "index", lib: "." }
],
"../support/cockpit/support/pilot/lib": [
{ name: "pilot", main: "index", lib: "." }
]
},
paths: {
demo: "../demo",
ace: "../lib/ace"
ace: "../lib/ace",
cockpit: "../support/cockpit/lib/cockpit",
pilot: "../support/cockpit/support/pilot/lib/pilot"
}
};
var deps = [ "pilot/fixoldbrowsers", "pilot/plugin_manager", "pilot/settings",
"pilot/environment", "demo/startup" ];
require(config, deps, function() {
require(config, ["pilot/fixoldbrowsers", "pilot/plugin_manager", "pilot/settings",
"pilot/environment", "demo/startup"], function() {
var catalog = require("pilot/plugin_manager").catalog;
catalog.registerPlugins([ "pilot/index", "cockpit/index" ]).then(function() {
var env = require("pilot/environment").create();