Porting ace to teleport + requirejs
This commit is contained in:
parent
26053fc0af
commit
b133fa0874
3 changed files with 25 additions and 13 deletions
14
demo/boot.js
14
demo/boot.js
|
|
@ -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",
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
18
package.json
18
package.json
|
|
@ -1,17 +1,29 @@
|
||||||
{
|
{
|
||||||
"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"}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue