Permalink
Browse files

Add a no-aggregate option

  • Loading branch information...
1 parent 4d26b59 commit eb64eb0da68a7be81d0b45878ff257afcc488361 @dsimard committed Apr 9, 2012
Showing with 23 additions and 0 deletions.
  1. +1 −0 lib/config.js
  2. +22 −0 test/test.js
View
@@ -57,6 +57,7 @@ var r = {
// Boolean inversion
r.config.keepCompiled = (argv["keep"] !== undefined) ? !def.keepCompiled : r.config.keepCompiled;
r.config.debug = (argv["debug"] !== undefined) ? !def.debug : r.config.debug;
+ r.config.aggregateTo = (argv["aggregate"] === false) ? "" : r.config.aggregateTo;
// Override old config with new
r.config.analyse = (argv["nojslint"] !== undefined) ? !def.runJslint : r.config.runJslint;
View
@@ -585,6 +585,28 @@ var tests = {
onEnd();
});
},
+ "no aggregation using aggregateTo" : function(onEnd) {
+ createTwoFiles();
+
+ exec(getConfig({aggregateTo:""}), function(error, stdout, stderr) {
+ fs.stat(DEST + ALL, function(err, stats) {
+ a.equal(err.code, "ENOENT");
+ });
+
+ onEnd()
+ });
+ },
+ "no aggregation" : function(onEnd) {
+ createTwoFiles();
+
+ execArgv(getConfig(), "--no-aggregate", function(error, stdout, stderr) {
+ // It is not dumped to all.js
+ fs.stat(DEST + ALL, function(err, stats) {
+ a.equal(err.code, "ENOENT");
+ onEnd();
+ });
+ });
+ },
};
if (process.argv[2]) {

0 comments on commit eb64eb0

Please sign in to comment.