From 83f3f819281cdaa514c1be81f346c5a75d0958b5 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Mon, 10 Jan 2011 13:57:54 +0100 Subject: [PATCH] make boot script packager friendly --- build.js | 15 ++++++++++++++- demo/boot.js | 18 +++++------------- editor-build.html | 5 ++--- support/cockpit | 2 +- 4 files changed, 22 insertions(+), 18 deletions(-) diff --git a/build.js b/build.js index f3ac5124..f36f6851 100644 --- a/build.js +++ b/build.js @@ -15,6 +15,7 @@ //in the minified files. //- "none": no minification will be done. optimize: "closure.keepLines", + //optimize: "none", inlineText: true, useStrict: false, @@ -31,6 +32,18 @@ modules: [ { + name: "demo/boot", + include: [ + "pilot/fixoldbrowsers", + "pilot/plugin_manager", + "pilot/settings", + "pilot/environment", + "pilot/index", + "cockpit/index", + "demo/startup" + ] + }, + /*{ name: "demo/startup", includeRequire: false, include: [ @@ -48,7 +61,7 @@ "ace/theme/textmate" ], includeRequire: false - }, + },*/ { name: "ace/theme/eclipse", exclude: [ diff --git a/demo/boot.js b/demo/boot.js index c8de55ae..36bcb00f 100644 --- a/demo/boot.js +++ b/demo/boot.js @@ -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(); diff --git a/editor-build.html b/editor-build.html index a66fe3f2..e6008471 100644 --- a/editor-build.html +++ b/editor-build.html @@ -197,11 +197,10 @@ echo $output; - - + diff --git a/support/cockpit b/support/cockpit index fe358473..ecdb8b3a 160000 --- a/support/cockpit +++ b/support/cockpit @@ -1 +1 @@ -Subproject commit fe35847349bb96f5c5d9d559a2ff72cef0d9ae83 +Subproject commit ecdb8b3a122a1f0d2aa3f6c507bc6d0d60461943