diff --git a/Makefile b/Makefile index 42c83be..359c18a 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,13 @@ CXXFLAGS = -std=gnu++0x -Wall LDLIBS = -lstdc++ .PHONY: all clean -all: example-client example-client-cpp11 +all: example-client example-client-cpp11 testserver clean: -rm example-client example-client-cpp11 *.o +testserver: node_modules + node example-server.js +node_modules: + npm install example-client-cpp11: example-client-cpp11.o easywsclient.o example-client-cpp11.o: example-client-cpp11.cpp easywsclient.hpp example-client: example-client.o easywsclient.o diff --git a/package.json b/package.json new file mode 100644 index 0000000..df45636 --- /dev/null +++ b/package.json @@ -0,0 +1,21 @@ +{ + "name": "easywsclient", + "version": "0.0.0", + "description": "", + "main": "", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git://github.com/dhbaird/easywsclient.git" + }, + "author": "David Baird ", + "license": "MIT", + "bugs": { + "url": "https://github.com/dhbaird/easywsclient/issues" + }, + "dependencies": { + "ws": "~0.4.31" + } +}