Merge pull request #459 from cweider/fix-common-code
Account for more spaces and Windows paths. This fixes #456.
This commit is contained in:
commit
2bc07204f8
|
@ -15,8 +15,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var RequireKernel = require('require-kernel/');
|
var RequireKernel = require('require-kernel/');
|
||||||
|
var path = require('path');
|
||||||
|
|
||||||
var CLIENT_JS_SRC = __dirname + '/../../static/js/';
|
var CLIENT_JS_SRC = path.normalize(__dirname + '/../../static/js/');
|
||||||
var client_require = RequireKernel.requireForPaths('file://' + CLIENT_JS_SRC);
|
var client_require = RequireKernel.requireForPaths(
|
||||||
|
'file://' + (CLIENT_JS_SRC.charAt(0) == '/' ? '' : '/') + encodeURI(CLIENT_JS_SRC));
|
||||||
|
|
||||||
exports.require = client_require;
|
exports.require = client_require;
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
"name": "Robin Buse" }
|
"name": "Robin Buse" }
|
||||||
],
|
],
|
||||||
"dependencies" : {
|
"dependencies" : {
|
||||||
"require-kernel" : "1.0.2",
|
"require-kernel" : "1.0.3",
|
||||||
"socket.io" : "0.8.7",
|
"socket.io" : "0.8.7",
|
||||||
"ueberDB" : "0.1.7",
|
"ueberDB" : "0.1.7",
|
||||||
"async" : "0.1.15",
|
"async" : "0.1.15",
|
||||||
|
|
Loading…
Reference in New Issue