With [shipitjs](https://github.com/shipitjs/shipit) I'm trying to "build all the things" locally before shippitjs syncs them up to the server. However I can't work out how to have it wait until my bower and composer tasks have completed before it deploys.

```
require('shipit-deploy')(shipit);
require('shipit-shared')(shipit);

/* config ... */

shipit.task('composer:install', function() {
    return shipit.local('composer --install --optimize --prefer-dist ', {cwd:shipit.config.workspace});
});

shipit.task('bower:install', function() {
    return shipit.local('bower install', {cwd:shipit.config.workspace});
});

shipit.on('fetched',function(){
    shipit.start('composer:install','bower:install');
});

```

I end up having the code deployed before bower is done.