mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Merge branch 'master' of https://github.com/substack/Socket.IO into substack-master
This commit is contained in:
11
bin/build
11
bin/build
@@ -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!');
|
||||
|
||||
@@ -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
18
package.json
Normal 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" }
|
||||
}
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user