Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

Commit

Permalink
Removed the node build... using npm all the way
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Remeika committed May 11, 2011
1 parent 7a2f800 commit 141fd49
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
14 changes: 7 additions & 7 deletions Jakefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ namespace('build', function (params) {
fs.writeFileSync('dist/foounit.js', concated);
});

desc('Builds the core and the node adapter');
task('node', ['build:core'], function (params){
console.log('--> Building foounit-node.js');
var concated = pacman.concat('foounit-node.js');
fs.writeFileSync('dist/foounit-node.js', concated);
});
//desc('Builds the core and the node adapter');
//task('node', ['build:core'], function (params){
// console.log('--> Building foounit-node.js');
// var concated = pacman.concat('foounit-node.js');
// fs.writeFileSync('dist/foounit-node.js', concated);
//});

desc('Builds the browser adapter');
task('browser', ['build:core'], function (params){
Expand All @@ -111,7 +111,7 @@ namespace('build', function (params) {
});

desc('Builds all adapter environments');
task('all', ['build:core', 'build:node', 'build:browser', 'build:server'], function (){
task('all', ['build:core', 'build:browser', 'build:server'], function (){
console.log('--> Built all adapters');
});

Expand Down
6 changes: 4 additions & 2 deletions src/adapters/browser/xhr_loader_strategy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
if (typeof foounit.browser === 'undefined'){
foounit.browser = {};
// Save off eval in global scope for proper global loading
foounit.geval = eval;
}

foounit.browser.XhrLoaderStrategy = function (){
Expand Down Expand Up @@ -48,7 +50,7 @@ foounit.browser.XhrLoaderStrategy = function (){
var code = get(path)
, module = { exports: {} }
, funcString = '(function (foounit, module, exports, __dirname, __filename){' + code + '});';

var func;
try {
// IE sucks shit.
Expand All @@ -70,7 +72,7 @@ foounit.browser.XhrLoaderStrategy = function (){
*/
this.load = function (path){
var code = get(path);
eval(code);
foounit.geval.call(window, code);
return true;
};
};

0 comments on commit 141fd49

Please sign in to comment.