Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Build files for the browser in a separate directory and use that for …

…the static file server, so we don't expose server-side scripts for download.
  • Loading branch information...
commit 8994faf3e95fc6df56f0809e168a7b1a261dd71d 1 parent 3a02973
@jcoglan jcoglan authored
View
4 Jakefile
@@ -2,10 +2,10 @@ DIR = File.dirname(__FILE__)
require File.join(DIR, 'lib', 'faye')
jake_hook :build_complete do |build|
- browser_min = build.package('faye-browser').build_path(:min)
+ browser_min = build.package('browser/faye-browser').build_path(:min)
FileUtils.cp browser_min, DIR + '/lib/faye-browser-min.js'
- [[:'faye-node', :min], [:core, :src], [:core, :min]].each do |(pkg,typ)|
+ [['node/faye-node', :min], ['core', :src], [:core, :min]].each do |(pkg,typ)|
FileUtils.rm build.package(pkg).build_path(typ)
end
View
2  examples/node/benchmark.js
@@ -1,4 +1,4 @@
-var faye = require('../../build/faye-node'),
+var faye = require('../../build/node/faye-node'),
port = process.argv[2] || 8000,
path = process.argv[3] || 'bayeux',
View
2  examples/node/client.js
@@ -7,7 +7,7 @@
// The client connects to the chat server and logs all messages sent by all
// connected users.
-var faye = require('../../build/faye-node'),
+var faye = require('../../build/node/faye-node'),
port = process.argv[2] || 8000,
path = process.argv[3] || 'bayeux',
View
2  examples/node/cluster.js
@@ -1,4 +1,4 @@
-var faye = require('../../build/faye-node');
+var faye = require('../../build/node/faye-node');
// faye.Logging.logLevel = 'debug';
var servers = {
View
2  examples/node/pingpong.js
@@ -1,4 +1,4 @@
-var faye = require('../../build/faye-node');
+var faye = require('../../build/node/faye-node');
ENDPOINT = 'http://localhost:8000/bayeux';
console.log('Connecting to ' + ENDPOINT);
View
2  examples/node/server.js
@@ -2,7 +2,7 @@ var fs = require('fs'),
path = require('path'),
http = require('http'),
https = require('https'),
- faye = require('../../build/faye-node');
+ faye = require('../../build/node/faye-node');
// faye.Logging.logLevel = 'debug';
View
4 jake.yml
@@ -29,7 +29,7 @@ packages:
- protocol/client
- transport/transport
- faye-node:
+ node/faye-node:
extends: core
files:
- util/set
@@ -43,7 +43,7 @@ packages:
- adapters/node_adapter
- adapters/static_server
- faye-browser:
+ browser/faye-browser:
extends: core
files:
- util/browser/event
View
2  javascript/adapters/node_adapter.js
@@ -34,7 +34,7 @@ Faye.NodeAdapter = Faye.Class({
this._endpointRe = new RegExp('^' + this._endpoint + '(/[^/]+)*(\\.[^\\.]+)?$');
this._server = new Faye.Server(this._options);
- this._static = new Faye.StaticServer(path.dirname(__filename), /\.(?:js|map)$/);
+ this._static = new Faye.StaticServer(path.dirname(__filename) + '/../browser', /\.(?:js|map)$/);
this._static.map(path.basename(this._endpoint) + '.js', this.SCRIPT_PATH);
this._static.map('client.js', this.SCRIPT_PATH);
View
2  package.json
@@ -6,7 +6,7 @@
, "version" : "0.8.1"
, "engines" : {"node": ">=0.1.96"}
-, "main" : "./faye-node"
+, "main" : "./node/faye-node"
, "dependencies" : {"cookiejar": "", "faye-websocket": ">=0.4.0"}
, "devDependencies" : {"jsclass": ""}
View
2  spec/node.js
@@ -1,5 +1,5 @@
require('jsclass')
-Faye = require('../build/faye-node')
+Faye = require('../build/node/faye-node')
Faye.logger = function() {}
JS.Packages(function() { with(this) {
Please sign in to comment.
Something went wrong with that request. Please try again.