e2e/shared/common.js
function prepareServe() {

  if (webpackServer) {
    return bindServe();
  } else {
    return new Promise((resolve, reject) => {
      portfinder.getPortPromise()
        .then(writeConfigServe)
        .then(bindServe)
        .then(resolve)
        .catch(err => reject(err));
    });
  }
}
function prepareServe() {

  if (webpackServer) {
    return bindServe();
  } else {
    return new Promise((resolve, reject) => {
      portfinder.getPortPromise()
        .then(writeConfigServe)
        .then(bindServe)
        .then(resolve)
        .catch(err => reject(err));
    });
  }
}
function prepareServe ( ) { if ( webpackServer ) { return bindServe ( ) ; } else { return new Promise ( ( resolve , reject ) => { portfinder . getPortPromise ( ) . then ( writeConfigServe ) . then ( bindServe ) . then ( resolve ) . catch ( err => reject ( err ) ) ; } ) ; } }
Spawns `skyux serve` and resolves once webpack is ready.
Spawns skyux serve and resolves once webpack is ready .