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

Commit 0d636f8

Browse files
committed
Merge branch 'npm-package'
2 parents c12804b + 41c41a7 commit 0d636f8

13 files changed

Lines changed: 50 additions & 39 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules

.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,
@@ -57,7 +48,7 @@ var SYS = require("sys"),
5748
QS = require("querystring"),
5849
HTTP = require('http'),
5950
CONNECT = require("connect"),
60-
CONNECT_DISPATCH = require("../support/dispatch"),
51+
CONNECT_DISPATCH = require("dispatch"),
6152
SOCKET_IO = require("socket.io"),
6253
XDEBUG = require("../lib/xdebug"),
6354
XDEBUG_PROXY = require("../lib/proxy"),

package.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "lib-phpdebug",
3+
"description": "Xdebug (PHP Debugger) client written in JavaScript",
4+
"version": "0.1.0",
5+
"engines": {"node": ">= 0.6.0"},
6+
"main": "./index.js",
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"
11+
},
12+
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"
24+
},
25+
26+
"repository" : {
27+
"type" : "git",
28+
"url" : "git://github.com/ajaxorg/lib-phpdebug.git"
29+
},
30+
"licenses": [{
31+
"type": "GPLv3",
32+
"url": "http://www.gnu.org/licenses/gpl-3.0.txt"
33+
}],
34+
"bugs" : {
35+
"web" : "http://github.com/ajaxorg/lib-phpdebug/issues"
36+
}
37+
}

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() {

0 commit comments

Comments
 (0)