rename startup to demo
This commit is contained in:
parent
b9200e7a84
commit
db5569499a
2 changed files with 4 additions and 6 deletions
|
|
@ -35,27 +35,25 @@
|
||||||
*
|
*
|
||||||
* ***** END LICENSE BLOCK ***** */
|
* ***** END LICENSE BLOCK ***** */
|
||||||
|
|
||||||
var config = {
|
require({
|
||||||
paths: {
|
paths: {
|
||||||
demo: "../demo",
|
demo: "../demo",
|
||||||
ace: "../lib/ace",
|
ace: "../lib/ace",
|
||||||
cockpit: "../support/cockpit/lib/cockpit",
|
cockpit: "../support/cockpit/lib/cockpit",
|
||||||
pilot: "../support/pilot/lib/pilot"
|
pilot: "../support/pilot/lib/pilot"
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
|
|
||||||
var deps = [ "pilot/fixoldbrowsers", "pilot/plugin_manager", "pilot/settings",
|
var deps = [ "pilot/fixoldbrowsers", "pilot/plugin_manager", "pilot/settings",
|
||||||
"pilot/environment", "demo/startup" ];
|
"pilot/environment", "demo/startup" ];
|
||||||
|
|
||||||
var plugins = [ "pilot/index", "cockpit/index", "ace/defaults" ];
|
var plugins = [ "pilot/index", "cockpit/index", "ace/defaults" ];
|
||||||
|
|
||||||
require(config);
|
|
||||||
require(deps, function() {
|
require(deps, function() {
|
||||||
var catalog = require("pilot/plugin_manager").catalog;
|
var catalog = require("pilot/plugin_manager").catalog;
|
||||||
catalog.registerPlugins(plugins).then(function() {
|
catalog.registerPlugins(plugins).then(function() {
|
||||||
var env = require("pilot/environment").create();
|
var env = require("pilot/environment").create();
|
||||||
catalog.startupPlugins({ env: env }).then(function() {
|
catalog.startupPlugins({ env: env }).then(function() {
|
||||||
require("demo/startup").launch(env);
|
require("demo/demo").launch(env);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
Loading…
Add table
Add a link
Reference in a new issue