From 85206ea90b1502685976957baf48fbf79632c3f7 Mon Sep 17 00:00:00 2001 From: nateps Date: Fri, 24 Feb 2012 09:50:42 -0800 Subject: [PATCH] setup initial files --- .gitignore | 4 ++++ .npmignore | 3 +++ Makefile | 19 +++++++++++++++++++ README.md | 24 ++++++++++++++++++++++++ package.json | 14 ++++++++++++++ src/index.coffee | 0 6 files changed, 64 insertions(+) create mode 100644 .gitignore create mode 100644 .npmignore create mode 100644 Makefile create mode 100644 README.md create mode 100644 package.json create mode 100644 src/index.coffee diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..09d2ab2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.gz +test-output.tmp +node_modules/ +lib/ diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..f92888a --- /dev/null +++ b/.npmignore @@ -0,0 +1,3 @@ +*.gz +test-output.tmp +node_modules/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1727d39 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +compile: + ./node_modules/coffee-script/bin/coffee -bw -o ./lib -c ./src + +MOCHA_TESTS := $(shell find test/ -name '*.mocha.coffee') +MOCHA := $(shell which mocha) +OUT_FILE = "test-output.tmp" + +g = "." + +test-mocha: + @NODE_ENV=test $(MOCHA) \ + --colors \ + --reporter spec \ + --grep "$(g)" \ + $(MOCHA_TESTS) | tee $(OUT_FILE) + +test: test-mocha +test!: + @perl -n -e '/\[31m 0\) (.*?).\[0m/ && print "make test g=\"$$1\$$\""' $(OUT_FILE) | sh diff --git a/README.md b/README.md new file mode 100644 index 0000000..5ff7350 --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# Redis PubSub plugin for Racer + +See **http://racerjs.com/** + +## MIT License +Copyright (c) 2011 by Nate Smith and Brian Noguchi + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/package.json b/package.json new file mode 100644 index 0000000..a2ec357 --- /dev/null +++ b/package.json @@ -0,0 +1,14 @@ +{ + "name": "racer-pubsub-redis", + "description": "Redis PubSub plugin for Racer", + "version": "0.0.0", + "main": "./lib/index.js", + "devDependencies": { + "mocha": ">=0.9.0", + "expect.js": ">=0.1.2", + "coffee-script": ">=1.1.2" + }, + "engines": { + "node": ">=0.4.0" + } +} \ No newline at end of file diff --git a/src/index.coffee b/src/index.coffee new file mode 100644 index 0000000..e69de29