diff --git a/bin/build b/bin/build index f6e3d2b88..6f37b319d 100755 --- a/bin/build +++ b/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!'); \ No newline at end of file +console.log('All done!'); diff --git a/package.json b/package.json new file mode 100644 index 000000000..61990620c --- /dev/null +++ b/package.json @@ -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" } +}