From 70648560233bcd430c7f0146c38907a606c7c4c5 Mon Sep 17 00:00:00 2001 From: David Baird Date: Fri, 27 Sep 2013 14:25:29 -0600 Subject: [PATCH] Add "testserver" target to Makefile. --- Makefile | 6 +++++- package.json | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 package.json 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" + } +}