Add support for slc loopback commands that delegate to yeoman

/to @bajtos 
/to @ritch 
/to @sam-github 

The PR adds the support for `slc loopback` commands, for example:

```
slc loopback (yo loopback)
slc loopback:model (yo loopback:model)
slc loopback myapp (yo loopback myapp)
```
The `generator-loopback` becomes a regular dependency to strong-cli.

Unfortunately, it's difficult to add tests here as yeoman needs to receive user inputs from command prompt.
and do we *have* to follow convention? not to make a fuss, but..


On Thu, Jul 31, 2014 at 10:50 AM, Ryan Graham <notifications@github.com>
wrote:

> In lib/commands/loopback.js:
>
> > +var debug = require('debug')('slc:loopback');
> > +module.exports = function loopback(argv, options, loader) {
> > +  var opts = {};
> > +  var args = process.argv.slice(2);
> > +  debug('invoking slc %s', args.join(' '));
> > +  var env = require('yeoman-generator')();
> > +
> > +  // alias any single namespace to `*:all` and `webapp` namespace specifically
> > +  // to webapp:app.
> > +  env.alias(/^([^:]+)$/, '$1:app');
> > +
> > +  // lookup for every namespaces, within the environments.paths and lookups
> > +  env.lookup();
> > +
> > +  env.on('end', function () {
> > +    console.log('Done running sir');
>
> I think it's a Yeoman convention to call the user sir.. in which case it
> should probably be "Done running, sir."
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/strongloop/strong-cli/pull/154/files#r15657755>.
>



-- 
Chanda Dharap
Director, Engineering
@StrongLoop Inc
(510) 304-3924
chanda@strongloop.com

*StrongLoop <http://strongloop.com/>** makes it easy to **develop APIs
<http://strongloop.com/mobile-application-development/loopback/>** in Node,
plus get DevOps capabilities
<http://strongloop.com/node-js-performance/strongops/> like monitoring,
debugging and clustering**.*