-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from dwyl/update
Update
- Loading branch information
Showing
12 changed files
with
132 additions
and
98 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
language: node_js | ||
node_js: | ||
- 0.12 | ||
- 4 | ||
services: | ||
- redis-server | ||
env: | ||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
// connect to websocket server | ||
$( document ).ready(function() { | ||
console.log('Ready!', window.location.host); | ||
var socket = io(window.location.host); | ||
socket.on('news', function (data) { | ||
console.log(data); | ||
socket.emit('my other event', { my: 'data' }); | ||
}); | ||
}); |
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,20 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>Stats</title> | ||
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"> | ||
<meta content="utf-8" http-equiv="encoding"> | ||
<link rel="stylesheet" href="/style.css"> | ||
<link rel="icon" | ||
type="image/png" | ||
href="http://i.imgur.com/zBEQq4w.png"> | ||
</head> | ||
<body> | ||
<h2>Stats! </h2> | ||
<script src="https://code.jquery.com/jquery-1.11.3.js"></script> | ||
<script src="https://cdn.rawgit.com/ScottHamper/Cookies/1.2.1/dist/cookies.min.js"> | ||
</script> | ||
<script src="https://cdn.socket.io/socket.io-1.3.5.js"></script> | ||
<script src="/client.js"></script> | ||
</body> | ||
</html> |
Empty file.
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,46 +1,46 @@ | ||
{ | ||
"name": "hits", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "all the hits", | ||
"main": "lib/hits.js", | ||
"directories": { | ||
"test": "test" | ||
}, | ||
"scripts": { | ||
"quick": "./node_modules/tape/bin/tape ./test/*.js", | ||
"nocov": "./node_modules/tape/bin/tape ./test/*.js", | ||
"test": "./node_modules/.bin/istanbul cover ./node_modules/tape/bin/tape ./test/*.js", | ||
"coverage": "./node_modules/.bin/istanbul cover ./node_modules/tape/bin/tape ./test/*.js && ./node_modules/.bin/istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100", | ||
"jshint": "./node_modules/jshint/bin/jshint -c .jshintrc --exclude-path .gitignore .", | ||
"start": "node server.js" | ||
"start": "node server.js", | ||
"dev": "PORT=8000 ./node_modules/.bin/nodemon ./server.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/nelsonic/hits.git" | ||
"url": "git+https://github.com/dwyl/hits.git" | ||
}, | ||
"keywords": [ | ||
"hits" | ||
"hits", | ||
"hit counter" | ||
], | ||
"author": "this guy", | ||
"license": "GPL-2.0", | ||
"bugs": { | ||
"url": "https://github.com/nelsonic/hits/issues" | ||
"url": "https://github.com/dwyl/hits/issues" | ||
}, | ||
"homepage": "https://github.com/nelsonic/hits#readme", | ||
"homepage": "https://github.com/dwyl/hits#readme", | ||
"dependencies": { | ||
"env2": "^2.0.4", | ||
"redis-connection": "^4.0.1", | ||
"redis-connection": "^5.0.0", | ||
"socket.io": "^1.4.8", | ||
"uniki": "^1.0.3", | ||
"wreck": "^7.0.0" | ||
"wreck": "^8.0.0" | ||
}, | ||
"devDependencies": { | ||
"decache": "^3.0.3", | ||
"istanbul": "^0.4.2", | ||
"jshint": "^2.9.1", | ||
"pre-commit": "^1.1.2", | ||
"tape": "^4.4.0" | ||
"decache": "^4.0.0", | ||
"istanbul": "^0.4.4", | ||
"nodemon": "^1.9.2", | ||
"pre-commit": "^1.1.3", | ||
"tape": "^4.6.0" | ||
}, | ||
"pre-commit": [ | ||
"jshint", | ||
"coverage" | ||
] | ||
} |
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