Skip to content

Commit 2ecef49

Browse files
committed
move deps into node_modules and make better use
of npm
1 parent 253d162 commit 2ecef49

9 files changed

Lines changed: 35 additions & 198 deletions

File tree

.gitignore

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@
1313

1414
# A handy place to put stuff that git should ignore:
1515
/ignore/
16-
support/async/
17-
support/node-htmlparser/
18-
support/node-o3-xml/
19-
support/requirejs/
16+
node_modules/htmlparser/
17+
node_modules/amd-loader/
18+
node_modules/asyncjs/
19+
node_modules/jsdom/
20+
node_modules/libxml/
21+
node_modules/mime/
22+
node_modules/uglify-js/
23+
node_modules/.bin/
24+
2025

21-
/node_modules
22-
support/node-o3-xml-v4/
2326
.git-ref

.gitmodules

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
[submodule "node_modules/cockpit"]
2-
path = node_modules/cockpit
3-
url = git://github.com/ajaxorg/cockpit.git
4-
[submodule "node_modules/pilot"]
5-
path = node_modules/pilot
6-
url = git://github.com/ajaxorg/pilot.git
7-
[submodule "node_modules/dryice"]
8-
path = node_modules/dryice
9-
url = git://github.com/ajaxorg/dryice.git
101
[submodule "doc/wiki"]
112
path = doc/wiki
123
url = git://github.com/ajaxorg/ace.wiki.git
4+
[submodule "node_modules/dryice"]
5+
path = node_modules/dryice
6+
url = git://github.com/ajaxorg/dryice.git
7+
[submodule "node_modules/pilot"]
8+
path = node_modules/pilot
9+
url = git://github.com/ajaxorg/pilot.git
10+
[submodule "node_modules/cockpit"]
11+
path = node_modules/cockpit
12+
url = git://github.com/ajaxorg/cockpit.git

Makefile.dryice.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,14 @@ if (!target) {
8282

8383
console.log("using targetDir '", targetDir, "'");
8484

85-
var copy = require('./support/dryice/lib/dryice').copy;
85+
var copy = require('dryice').copy;
8686

8787
var aceHome = __dirname;
8888

8989
console.log('# ace ---------');
9090

9191
var aceProject = [
92-
aceHome + '/support/pilot/lib',
92+
aceHome + '/node_modules/pilot/lib',
9393
aceHome + '/lib',
9494
aceHome
9595
];
@@ -274,7 +274,7 @@ console.log('# ace worker ---------');
274274
console.log("worker for " + mode + " mode");
275275
var worker = copy.createDataObject();
276276
var workerProject = copy.createCommonJsProject([
277-
aceHome + '/support/pilot/lib',
277+
aceHome + '/node_modules/pilot/lib',
278278
aceHome + '/lib'
279279
]);
280280
copy({

kitchen-sink.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@
191191
paths: {
192192
demo: "..",
193193
ace: "../../lib/ace",
194-
cockpit: "../../support/cockpit/lib/cockpit",
195-
pilot: "../../support/pilot/lib/pilot"
194+
cockpit: "../../node_modules/cockpit/lib/cockpit",
195+
pilot: "../../node_modules/pilot/lib/pilot"
196196
}
197197
};
198198
</script>

lib/ace/test/all.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@
3838
require("../../../support/paths");
3939

4040
var test = require("asyncjs").test;
41-
test.walkTestCases(__dirname + "/..").exec()
41+
test.walkTestCases(__dirname + "/..").exec();

package.json

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,19 @@
1010
"type" : "git",
1111
"url" : "http://github.com/ajaxorg/ace.git"
1212
},
13-
"overlay": {
14-
"teleport": {
15-
"directories": {
16-
"lib": "lib/ace",
17-
"dependencies": {
18-
"cockpit": ">=0.1.1",
19-
"pilot": ">=0.1.1"
20-
}
21-
}
22-
}
23-
},
2413
"dependencies": {
25-
"asyncjs": ">=0.0.2",
26-
"jsdom": ">=0.1.23",
27-
"htmlparser": ">=1.7.2",
2814
"mime": ">=1.2.1"
2915
},
16+
"devDependencies": {
17+
"asyncjs": "0.0.x",
18+
"uglify-js": "1.1.x",
19+
"jsdom": "0.1.x",
20+
"htmlparser": "1.7.x",
21+
"mime": "1.2.x",
22+
"amd-loader": "0.0.x",
23+
"libxml": "0.0.x"
24+
},
25+
3026
"licenses": [{
3127
"type": "MPL",
3228
"url": "http://www.mozilla.org/MPL/"

support/paths.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

support/requireJS-node.js

Lines changed: 0 additions & 155 deletions
This file was deleted.

tool/tmtheme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var xml = require("../support/node-o3-xml-v4/lib/o3-xml");
1+
var xml = require("libxml");
22
var fs = require("fs");
33

44
function plistToJson(el) {

0 commit comments

Comments
 (0)