Porting ace to teleport + requirejs

This commit is contained in:
Irakli Gozalishvili 2011-01-11 13:35:42 +01:00
commit b133fa0874
3 changed files with 25 additions and 13 deletions

View file

@ -36,12 +36,14 @@
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
var config = { var config = {
paths: { baseUrl: "../../packages/",
demo: "../demo", packages: [
ace: "../lib/ace", { name: "ace", lib: "lib/ace" },
cockpit: "../support/cockpit/lib/cockpit", { name: "cockpit", lib: "lib/cockpit" },
pilot: "../support/cockpit/support/pilot/lib/pilot" { name: "pilot", lib: "lib/pilot" },
} { name: "demo", location: "ace/demo", lib: "." },
{ name: "require", location: "requirejs/require", lib: "." }
]
}; };
require(config, ["pilot/fixoldbrowsers", "pilot/plugin_manager", "pilot/settings", require(config, ["pilot/fixoldbrowsers", "pilot/plugin_manager", "pilot/settings",

View file

@ -196,9 +196,7 @@ echo $output;
?></script> ?></script>
<input id="cockpitInput" type="text"/> <input id="cockpitInput" type="text"/>
<script type="text/javascript" src="packages/requirejs/require.js"></script>
<script src="demo/require.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript" src="demo/boot.js"></script>
<script src="demo/boot.js" type="text/javascript"></script>
</body> </body>
</html> </html>

View file

@ -1,15 +1,27 @@
{ {
"name": "ace", "name": "ace",
"description": "Ajax.org Code Editor is a full featured source code highlighting editor that powers the Cloud9 IDE", "description": "Ajax.org Code Editor is a full featured source code highlighting editor that powers the Cloud9 IDE",
"version": "0.1", "version": "0.1.0",
"homepage" : "http://github.com/ajaxorg/ace", "homepage" : "http://github.com/ajaxorg/ace",
"engines": {"node": ">= 0.1.102"}, "engines": {"node": ">= 0.1.102"},
"author": "Fabian Jakobs <fabian@ajax.org>", "author": "Fabian Jakobs <fabian@ajax.org>",
"main": "src/ace/ace",
"repository" : { "repository" : {
"type" : "git", "type" : "git",
"url" : "http://github.com/ajaxorg/ace.git" "url" : "http://github.com/ajaxorg/ace.git"
}, },
"overlay": {
"teleport": {
"directories": {
"lib": "lib/ace"
}
}
},
"dependencies": {
"pilot": ">=0.1.0",
"cockpit": ">=0.1.0",
"teleport": ">=0.2.4",
"requirejs": ">=0.22.0"
},
"licenses": [{ "licenses": [{
"type": "LGPLv3", "type": "LGPLv3",
"url": "http://www.gnu.org/licenses/lgpl-3.0.txt"} "url": "http://www.gnu.org/licenses/lgpl-3.0.txt"}