How to use the hops-express.runServer function in hops-express

To help you get started, we’ve selected a few hops-express examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github xing / hops / packages / cli / mixin.core.js View on Github external
require('hops-build').runBuild(argv, (error, stats) => {
              if (error) {
                console.error(error.stack.toString());
                process.exit(1);
              } else {
                console.log(
                  stats.toString({
                    chunks: false,
                    modules: false,
                    entrypoints: false,
                  }),
                  '\n'
                );
                require('hops-express').runServer(argv);
              }
            });
          } else {
github xing / hops / packages / spec / serve.spec.js View on Github external
require('hops-build').runBuild({ clean: true }, function() {
      require('hops-express').runServer({}, function(error, _app) {
        app = _app;
        port = app.address().port;
        done(error);
      });
    });
  });