Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit 41c41a7

Browse files
committed
Use npm package manager instead of git submodles
1 parent bce611c commit 41c41a7

12 files changed

Lines changed: 33 additions & 48 deletions

File tree

.gitmodules

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

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,14 @@ Requirements
2525
* [node.js](http://nodejs.org/) & *npm*
2626
* Webserver with *PHP* support
2727
* [PHP 5.2+](http://php.net/) *cli* and *webserver* support
28-
* [Xdebug](http://www.xdebug.org/) (see [Xdebug Install](http://www.xdebug.org/docs/install))
28+
* [Xdebug 2.2.x](http://www.xdebug.org/) (see [Xdebug Install](http://www.xdebug.org/docs/install))
2929

3030
Install
3131
-------
3232

33-
npm install connect socket.io socket.io-client cli q xml2js
3433
git clone git://github.com/ajaxorg/lib-phpdebug.git
3534
cd lib-phpdebug
36-
git submodule init
37-
git submodule update
35+
npm install
3836

3937
Setup
4038
-----

example/server.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,6 @@
3131
* [connect](https://github.com/senchalabs/connect) +
3232
* [socket.io](https://github.com/learnboost/socket.io) based stack.
3333
*
34-
* External Dependencies:
35-
*
36-
* * `Q` <- `npm install q` -> [http://github.com/kriskowal/q](http://github.com/kriskowal/q)
37-
* * `CLI` <- `npm install cli` -> [https://github.com/chriso/cli](https://github.com/chriso/cli)
38-
* * `CONNECT` <- `npm install connect` -> [https://github.com/senchalabs/connect](https://github.com/senchalabs/connect)
39-
* * `CONNECT_DISPATCH` <- `../support/dispatch` -> [https://github.com/caolan/dispatch](https://github.com/caolan/dispatch)
40-
* * `SOCKET_IO` <- `npm install socket.io` -> [https://github.com/learnboost/socket.io](https://github.com/learnboost/socket.io)
41-
* * `XML2JS` <- `npm install xml2js` -> [https://github.com/Leonidas-from-XIV/node-xml2js/](https://github.com/Leonidas-from-XIV/node-xml2js/)
42-
*
4334
*/
4435

4536
const XDEBUG_PORT = 9000,
@@ -55,7 +46,7 @@ var SYS = require("sys"),
5546
PATH = require("path"),
5647
QS = require("querystring"),
5748
CONNECT = require("connect"),
58-
CONNECT_DISPATCH = require("../support/dispatch"),
49+
CONNECT_DISPATCH = require("dispatch"),
5950
SOCKET_IO = require("socket.io"),
6051
XDEBUG = require("../lib/xdebug"),
6152
XDEBUG_PROXY = require("../lib/proxy"),

package.json

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,35 @@
22
"name": "lib-phpdebug",
33
"description": "Xdebug (PHP Debugger) client written in JavaScript",
44
"version": "0.1.0",
5+
"engines": {"node": ">= 0.6.0"},
56
"main": "./index.js",
6-
7-
"author": {
8-
"name" : "Ajax.org B.V",
9-
"email" : "info@ajax.org"
7+
"homepage" : "http://github.com/ajaxorg/lib-phpdebug",
8+
"author": "Ajax.org B.V. <info@ajax.org>",
9+
"help": {
10+
"web": "https://github.com/ajaxorg/lib-phpdebug/blob/master/README.md"
1011
},
1112

12-
"keywords": [],
13-
14-
"licenses": {
15-
"type": "none"
13+
"pm": "sm",
14+
"dependencies": {
15+
"connect": "2.3.0",
16+
"asyncjs": "0.0.5",
17+
"cli": "0.4.4-1",
18+
"dispatch": "0.2.0",
19+
"q": "0.8.5",
20+
"requirejs": "2.1.1",
21+
"socket.io": "0.9.6",
22+
"socket.io-client": "0.9.6",
23+
"xml2js": "0.1.14"
1624
},
17-
25+
1826
"repository" : {
1927
"type" : "git",
2028
"url" : "git://github.com/ajaxorg/lib-phpdebug.git"
2129
},
30+
"licenses": [{
31+
"type": "GPLv3",
32+
"url": "http://www.gnu.org/licenses/gpl-3.0.txt"
33+
}],
2234
"bugs" : {
2335
"web" : "http://github.com/ajaxorg/lib-phpdebug/issues"
2436
}

support/asyncjs

Lines changed: 0 additions & 1 deletion
This file was deleted.

support/dispatch

Lines changed: 0 additions & 1 deletion
This file was deleted.

support/requirejs

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/all.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,9 @@
2929
*
3030
* Test helper to run all test suites.
3131
*
32-
* External Dependencies:
33-
*
34-
* * `asyncjs` <- `../support/asyncjs/index` -> [https://github.com/ajaxorg/async.js](https://github.com/ajaxorg/async.js)
35-
*
3632
*/
3733
var HELPER = require("./_helper"),
38-
ASYNC = require("../support/asyncjs/index");
34+
ASYNC = require("asyncjs");
3935

4036
HELPER.ready(function() {
4137
ASYNC.concat(

test/breakpoints.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*
2828
*/
2929
var HELPER = require("./_helper"),
30-
ASYNC = require("../support/asyncjs/index"),
30+
ASYNC = require("asyncjs"),
3131
ASSERT = require("assert"),
3232
XDEBUG = require("../lib/xdebug");
3333

@@ -152,7 +152,7 @@ var Test = {
152152
}
153153
};
154154

155-
module.exports = require("../support/asyncjs/lib/test").testcase(Test);
155+
module.exports = require("asyncjs/lib/test").testcase(Test);
156156

157157
if (module === require.main)
158158
HELPER.ready(function() {

test/connection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*
2828
*/
2929
var HELPER = require("./_helper"),
30-
ASYNC = require("../support/asyncjs/index"),
30+
ASYNC = require("asyncjs"),
3131
ASSERT = require("assert"),
3232
XDEBUG = require("../lib/xdebug");
3333

@@ -55,7 +55,7 @@ var Test = {
5555
}
5656
};
5757

58-
module.exports = require("../support/asyncjs/lib/test").testcase(Test);
58+
module.exports = require("asyncjs/lib/test").testcase(Test);
5959
if (module === require.main) {
6060
HELPER.ready(function() {
6161
module.exports.run().report().summary(function(err, passed)

0 commit comments

Comments
 (0)