var exec = require('child_process').exec;

exports['read.js:compress'] = function (srcPath, callback) {
  console.error('js read compress');
  // uitl.isMinified
  exec('uglifyjs ' + srcPath, function (err, stdout, stderr) {
    callback(err, stdout);
  });
};

exports['each.js'] = function (content, callback) {
  console.error('js each');
  callback(null, content);
  // TODO return false to stop chane
};

exports['join.js'] = function (files, callback) {
  console.error('js join');
  callback(null, files.join(';\n\n\n'));
};

//exports['join'] = function (files, callback) {
  
//};
@@ -101,45 +101,8 @@
 ) %7B%0A
-  console.error('js read compress');%0A
   //
@@ -118,16 +118,16 @@
 inified%0A
+
   exec('
@@ -214,24 +214,27 @@
 ;%0A  %7D);%0A%7D;%0A%0A
+// 
 exports%5B'eac
@@ -277,36 +277,11 @@
 ) %7B%0A
-  console.error('js each');%0A
+// 
   ca
@@ -307,45 +307,97 @@
 t);%0A
+// 
   // 
-TODO return false to stop chane%0A
+third argument stop: true to stop chain%0A//   // callback(null, content, true)%0A// 
 %7D;%0A%0A
@@ -450,36 +450,8 @@
 ) %7B%0A
-  console.error('js join');%0A
   ca
@@ -493,62 +493,4 @@
 ;%0A%7D;
-%0A%0A//exports%5B'join'%5D = function (files, callback) %7B%0A  %0A//%7D;

comment out each