build-system/tasks/serve.js
function serve() {
  util.log(util.colors.green('Serving unminified js'));

  nodemon({
    script: require.resolve('../server/server.js'),
    watch: [
      require.resolve('../server/server.js')
    ],
    env: {
      'NODE_ENV': 'development',
      'SERVE_PORT': port,
      'SERVE_HOST': host,
      'SERVE_USEHTTPS': useHttps,
      'SERVE_PROCESS_ID': process.pid,
      'SERVE_QUIET': quiet
    },
  })
  .once('quit', function () {
    util.log(util.colors.green('Shutting down server'));
  });
  if (!quiet) {
    util.log(util.colors.yellow('Run `gulp build` then go to ' + getHost()));
  }
}
function serve() {
  util.log(util.colors.green('Serving unminified js'));

  nodemon({
    script: require.resolve('../server/server.js'),
    watch: [
      require.resolve('../server/server.js')
    ],
    env: {
      'NODE_ENV': 'development',
      'SERVE_PORT': port,
      'SERVE_HOST': host,
      'SERVE_USEHTTPS': useHttps,
      'SERVE_PROCESS_ID': process.pid,
      'SERVE_QUIET': quiet
    },
  })
  .once('quit', function () {
    util.log(util.colors.green('Shutting down server'));
  });
  if (!quiet) {
    util.log(util.colors.yellow('Run `gulp build` then go to ' + getHost()));
  }
}
function serve ( ) { util . log ( util . colors . green ( 'Serving unminified js' ) ) ; nodemon ( { script : require . resolve ( '../server/server.js' ) , watch : [ require . resolve ( '../server/server.js' ) ] , env : { 'NODE_ENV' : 'development' , 'SERVE_PORT' : port , 'SERVE_HOST' : host , 'SERVE_USEHTTPS' : useHttps , 'SERVE_PROCESS_ID' : process . pid , 'SERVE_QUIET' : quiet } , } ) . once ( 'quit' , function ( ) { util . log ( util . colors . green ( 'Shutting down server' ) ) ; } ) ; if ( ! quiet ) { util . log ( util . colors . yellow ( 'Run `gulp build` then go to ' + getHost ( ) ) ) ; } }
Starts a simple http server at the repository root
Starts a simple http server at the repository root