This commit is contained in:
Radek Stepan 2014-12-24 12:43:47 -07:00
parent 78d8960562
commit 1e8fb9a8d8
4 changed files with 32 additions and 5 deletions

24
bin/run.js Executable file
View File

@ -0,0 +1,24 @@
#!/usr/bin/env node
var stat = require('node-static'),
path = require('path'),
http = require('http'),
pakg = require('../package.json');
var opts = {
'serverInfo': 'burnchart/' + pakg.version
};
var dir = path.resolve(__dirname, '../public');
var file = new stat.Server(dir, opts);
var server = http.createServer(function(req, res) {
req.addListener('end', function() {
file.serve(req, res);
}).resume();
}).listen(process.argv[2]);
server.on('listening', function() {
var addr = server.address();
console.log('burnchart/' + pakg.version + ' started on http://' + addr.address + ':' + addr.port);
});

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "burnchart",
"version": "2.0.4",
"version": "2.0.5",
"description": "GitHub Burndown Chart as a Service",
"author": "Radek Stepan <dev@radekstepan.com> (http://radekstepan.com)",
"license": "AGPL-3.0",
@ -19,6 +19,9 @@
"start": "rake serve",
"test": "rake test"
},
"bin": {
"burnchart": "./bin/run.js"
},
"dependencies": {
"async": "~0.9.0",
"brain": "^0.7.0",
@ -31,6 +34,7 @@
"lscache": "~1.0.2",
"marked": "~0.3.2",
"moment": "~2.8.3",
"node-static": "~0.7.6",
"normalize.less": "^1.0.0",
"ractive": "~0.6.1",
"ractive-ractive": "~0.4.4",
@ -57,7 +61,6 @@
"lesshat": "~3.0.2",
"mocha": "~2.0.1",
"mocha-lcov-reporter": "0.0.1",
"node-static": "~0.7.6",
"proxyquire": "^1.3.0",
"ractivate": "~0.2.0",
"watch": "^0.13.0",

View File

@ -20,7 +20,7 @@ module.exports = ->
# Need to deal with multiple teardown handlers
do this._super
do view.render()
do view.render
view.publish '!event'
assert ctx.called, 1