Merge branch 'master' of https://github.com/substack/Socket.IO into substack-master

This commit is contained in:
Guillermo Rauch
2011-03-05 23:46:11 -08:00
4 changed files with 25 additions and 8 deletions

View File

@@ -14,7 +14,6 @@
*/
var fs = require('fs'),
sys = require('sys'),
socket = require('../lib/io'),
files = [
'io.js',
@@ -34,17 +33,17 @@ var fs = require('fs'),
],
content = "/** Socket.IO "+ socket.io.version +" - Built with build.js */\n";
sys.log('Reading files…');
console.log('Reading files…');
files.forEach(function(file){
var path = __dirname + '/../lib/' + file;
sys.log (' + ' + path);
console.log (' + ' + path);
content += fs.readFileSync(path) + "\n";
});
sys.log('Generating…');
console.log('Generating…');
fs.write(fs.openSync(__dirname + '/../socket.io.js', 'w'), content, 0, 'utf8');
sys.log(' + ' + __dirname + '/../socket.io.js');
console.log(' + ' + __dirname + '/../socket.io.js');
sys.log('All done!');
console.log('All done!');

View File

@@ -6,7 +6,7 @@
* @copyright Copyright (c) 2010 LearnBoost <dev@learnboost.com>
*/
this.io = {
var io = this.io = {
version: '0.6.2',
setPath: function(path){

18
package.json Normal file
View File

@@ -0,0 +1,18 @@
{ "name": "socket.io-browser"
, "description": "Browser-side code for Socket.IO"
, "version": "0.6.2"
, "main" : "./socket.io.js"
, "homepage": "http://socket.io"
, "repository":
{ "type": "git"
, "url": "git://github.com/LearnBoost/Socket.IO.git"
}
, "author": "LearnBoost"
, "licenses" :
[ { "type" : "MIT"
, "url" : "http://github.com/learnboost/Socket.IO/raw/master/README.md"
} ]
, "engines": { "node": "*" }
, "scripts" :
{ "install" : "bin/build" }
}

View File

@@ -7,7 +7,7 @@
* @copyright Copyright (c) 2010 LearnBoost <dev@learnboost.com>
*/
this.io = {
var io = this.io = {
version: '0.6.2',
setPath: function(path){