2016-05-13 19 views

答えて

1

あなたはasync task patternsの1に従う必要があります。

  1. 戻るに
  2. あなたの例では、ストリーム
  3. 戻る約束

をコールバックを受け入れ、コールバックは次のようになります。 :

gulp.task('init',['clean'],function(cb){ 
    hg.clone('https://myrepo','./deploy',{args:'--insecure'},function(error,stout){ 
     util.log(error); 
     cb(error); 
    }); 
}); 
関連する問題