Skip to content

Commit

Permalink
added dev env
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanGRomano committed Jun 10, 2014
1 parent d6c0562 commit e5e65f6
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ build/Release
# Deployed apps should consider commenting this line out:
# see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git
node_modules

# vim
*.swo
*.swp
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
examples
.travis.yml
.gitignore
spec
9 changes: 9 additions & 0 deletions .travis.yml
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'
16 changes: 16 additions & 0 deletions Gruntfile.coffee
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']
34 changes: 31 additions & 3 deletions README.md
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
30 changes: 30 additions & 0 deletions package.json
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"
}
}

0 comments on commit e5e65f6

Please sign in to comment.