docs: function(next){
  				var time = process.hrtime();
  				b.bundle(function (err, buf) {
  					if (err) return done(err);
  					done(null, beautifyTime( process.hrtime(time) ), type);
  				})
  				.on("end", function() {
  					next(); // End waterfall
  
  					if ( !debug ) {
  						setTimeout(function() {
  
  							waterfall([
  								// Minify commons components
  								function (next) {
  
  									minify(
  										outputCommonsJsFile,
  										_.extend({optimize: true},uglifyOptions),
  										function(err){
  											if ( err ){
  												return next(err);
  											}
  											return next();
  										}
  									);
  
  								},
  								// Minify bundle app
  								function (next) {
  
  									minify(
  										outputJsFile,
  										_.extend({optimize: true},uglifyOptions),
  										function(err){
  											if ( err ){
  												return next(err);
  											}
  
  											if ( isForPublish ){
  												publisher(
  													outputJsFile,
  													function (err) {
  														return next(err);
  													},
  													options.forceminified
  												);
  											}else {
  												return next();
  											}
  
  										}
  									);
  
  								},
  								// Remove source map files
  								function (next) {
  									for (var i = 0; i < mapFiles.length; i++) {
  										fs.unlinkSync(mapFiles[i]);
  										// console.log( path.resolve(mapFiles[i]) );
  									}
  									return next();
  								}
  
  							], function (err) {
  								if ( err ){
  									if ( _.isObject(err) && err.message ){
  										notify.error('JS error build', err.message);
  										console.log(err.message.red);
  									}else {
  										notify.error('JS error build', err.toString());
  										console.log(err.toString().red);
  									}
  									return false;
  								}
  								console.log('Application builded!'.green);
  							});
  
  						}, 2000);
  
  					}
  				})
  				.pipe(exorcist(outputCommonsJsFile+'.map'))
  				.pipe(fs.createWriteStream( outputCommonsJsFile , 'utf8'));
  				// .pipe(fs.createWriteStream(outputJsFile, 'utf8'));
  			}