Ugh, thats kind of a crappy API. Could you add a quick comment saying that
is what this is doing and then we should be good?


On Thu, Dec 19, 2013 at 12:54 PM, patrick kettner
<notifications@github.com>wrote:

> In tasks/mock-server.js:
>
> > +    // Defaults to 8080
> > +    config.port = parseInt(options.port || process.env.PORT || 8080);
> > +
> > +    // The HTTP port for the server if you are behind a proxy.
> > +    // Defaults to 8080
> > +    config.forwardPort = parseInt(options.port || config.isStandalone ? 80 : config.port);
> > +
> > +    // The HTTPS port for the server
> > +    // Defaults to 8081
> > +    config.securePort = parseInt(options.securePort || config.isStandalone ? 443 : 8081);
> > +
> > +    if (!config.appDir) {
> > +      throw grunt.util.error('"appDir" option required for mock-server task');
> > +    }
> > +
> > +    require('../lib');
>
> yerp
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/walmartlabs/mock-server/pull/15/files#r8479347>
> .
>