From f9b3359577e6447bef861501ddfa1ca2b1f2fa0d Mon Sep 17 00:00:00 2001 From: Will Franzen Date: Wed, 25 Mar 2015 14:05:07 -0500 Subject: [PATCH 1/2] Give each example its own package.json to resolve #122 --- examples/{ => client_chat}/client_chat.js | 0 examples/client_chat/package.json | 10 ++++++++++ examples/{ => client_echo}/client_echo.js | 0 examples/client_echo/package.json | 9 +++++++++ examples/proxy/package.json | 9 +++++++++ examples/{ => proxy}/proxy.js | 0 examples/server/package.json | 9 +++++++++ examples/{ => server}/server.js | 0 examples/server_helloworld/package.json | 9 +++++++++ examples/{ => server_helloworld}/server_helloworld.js | 0 10 files changed, 46 insertions(+) rename examples/{ => client_chat}/client_chat.js (100%) create mode 100644 examples/client_chat/package.json rename examples/{ => client_echo}/client_echo.js (100%) create mode 100644 examples/client_echo/package.json create mode 100644 examples/proxy/package.json rename examples/{ => proxy}/proxy.js (100%) create mode 100644 examples/server/package.json rename examples/{ => server}/server.js (100%) create mode 100644 examples/server_helloworld/package.json rename examples/{ => server_helloworld}/server_helloworld.js (100%) diff --git a/examples/client_chat.js b/examples/client_chat/client_chat.js similarity index 100% rename from examples/client_chat.js rename to examples/client_chat/client_chat.js diff --git a/examples/client_chat/package.json b/examples/client_chat/package.json new file mode 100644 index 0000000..2a98b5b --- /dev/null +++ b/examples/client_chat/package.json @@ -0,0 +1,10 @@ +{ + "name": "node-minecraft-protocol-example", + "version": "0.0.0", + "private": true, + "dependencies": { + "ansi-color": "^0.2.1", + "readline": "0.0.7" + }, + "description": "A node-minecraft-protocol example" +} diff --git a/examples/client_echo.js b/examples/client_echo/client_echo.js similarity index 100% rename from examples/client_echo.js rename to examples/client_echo/client_echo.js diff --git a/examples/client_echo/package.json b/examples/client_echo/package.json new file mode 100644 index 0000000..2fb09c2 --- /dev/null +++ b/examples/client_echo/package.json @@ -0,0 +1,9 @@ +{ + "name": "node-minecraft-protocol-example", + "version": "0.0.0", + "private": true, + "dependencies": { + + }, + "description": "A node-minecraft-protocol example" +} diff --git a/examples/proxy/package.json b/examples/proxy/package.json new file mode 100644 index 0000000..9e9949b --- /dev/null +++ b/examples/proxy/package.json @@ -0,0 +1,9 @@ +{ + "name": "node-minecraft-protocol-example", + "version": "0.0.0", + "private": true, + "dependencies": { + "buffertools": "^2.1.2" + }, + "description": "A node-minecraft-protocol example" +} diff --git a/examples/proxy.js b/examples/proxy/proxy.js similarity index 100% rename from examples/proxy.js rename to examples/proxy/proxy.js diff --git a/examples/server/package.json b/examples/server/package.json new file mode 100644 index 0000000..2fb09c2 --- /dev/null +++ b/examples/server/package.json @@ -0,0 +1,9 @@ +{ + "name": "node-minecraft-protocol-example", + "version": "0.0.0", + "private": true, + "dependencies": { + + }, + "description": "A node-minecraft-protocol example" +} diff --git a/examples/server.js b/examples/server/server.js similarity index 100% rename from examples/server.js rename to examples/server/server.js diff --git a/examples/server_helloworld/package.json b/examples/server_helloworld/package.json new file mode 100644 index 0000000..67f9f83 --- /dev/null +++ b/examples/server_helloworld/package.json @@ -0,0 +1,9 @@ +{ + "name": "node-minecraft-protocol-example", + "version": "0.0.0", + "private": true, + "dependencies": { + + }, + "description": "A node-minecraft-protocol example" +} diff --git a/examples/server_helloworld.js b/examples/server_helloworld/server_helloworld.js similarity index 100% rename from examples/server_helloworld.js rename to examples/server_helloworld/server_helloworld.js From d6b493e5654cb19eb21c9a2019c79c3a5db6a590 Mon Sep 17 00:00:00 2001 From: Will Franzen Date: Wed, 25 Mar 2015 14:10:49 -0500 Subject: [PATCH 2/2] Remove unneeded deps --- package.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/package.json b/package.json index f630ea3..1e8a494 100644 --- a/package.json +++ b/package.json @@ -36,11 +36,9 @@ "mocha": "~1.8.2", "rimraf": "~2.1.1", "zfill": "0.0.1", - "batch": "~0.3.1", - "buffertools": "^2.1.2" + "batch": "~0.3.1" }, "dependencies": { - "ansi-color": "0.2.1", "buffer-equal": "0.0.0", "node-uuid": "~1.4.1", "prismarine-nbt": "0.0.1",