-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d6c0562
commit e5e65f6
Showing
6 changed files
with
94 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
examples | ||
.travis.yml | ||
.gitignore | ||
spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
language: node_js | ||
node_js: "0.10" | ||
services: | ||
- redis | ||
install: | ||
- 'npm install grunt-cli -g' | ||
- 'npm install' | ||
script: | ||
- 'grunt' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module.exports = (g) -> | ||
|
||
g.loadNpmTasks 'grunt-jasmine-bundle' | ||
|
||
g.initConfig | ||
spec: | ||
unit: | ||
options: | ||
helpers: 'spec/helpers/**/*.{js,coffee}' | ||
specs: 'spec/**/*.{js,coffee}' | ||
e2e: | ||
options: | ||
helpers: 'spec-e2e/helpers/**/*.{js,coffee}' | ||
specs: 'spec-e2e/**/*.{js,coffee}' | ||
|
||
g.registerTask 'default', ['spec:unit', 'spec:e2e'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,32 @@ | ||
socket.io-sessions | ||
================== | ||
|
||
session middleware for socket.io | ||
|
||
# Installation and Environment Setup | ||
|
||
Install node.js (See download and install instructions here: http://nodejs.org/). | ||
|
||
Clone this repository | ||
|
||
> git clone [email protected]:eiriklv/socket.io-sessions.git | ||
|
||
cd into the directory and install the dependencies | ||
|
||
> cd socket.io-event-router | ||
> npm install && npm shrinkwrap --dev | ||
|
||
# Running Tests | ||
|
||
Install coffee-script | ||
|
||
> npm install coffee-script -g | ||
|
||
Tests are run using grunt. You must first globally install the grunt-cli with npm. | ||
|
||
> sudo npm install -g grunt-cli | ||
|
||
## Unit Tests | ||
|
||
To run the tests, just run grunt | ||
|
||
> grunt spec | ||
|
||
## TODO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"name": "socket.io-sessions", | ||
"version": "0.0.0", | ||
"description": "socket.io sessions", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "grunt" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/eiriklv/socket.io-sessions.git" | ||
}, | ||
"keywords": [ | ||
"socket.io", | ||
"sessions" | ||
], | ||
"author": "", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/eiriklv/socket.io-sessions/issues" | ||
}, | ||
"homepage": "https://github.com/eiriklv/socket.io-sessions", | ||
"devDependencies": { | ||
"sandboxed-module": "^0.3.0", | ||
"grunt-jasmine-bundle": "^0.2.0", | ||
"coffee-script": "^1.7.1", | ||
"grunt-cli": "^0.1.13", | ||
"grunt": "^0.4.5" | ||
} | ||
} |