Skip to content

Instantly share code, notes, and snippets.

@seanpmaxwell
Last active May 18, 2019 14:43
Show Gist options
  • Select an option

  • Save seanpmaxwell/c7536a2b05f28aedfcd4074e436c1f29 to your computer and use it in GitHub Desktop.

Select an option

Save seanpmaxwell/c7536a2b05f28aedfcd4074e436c1f29 to your computer and use it in GitHub Desktop.
TypeScriptFullStackShell/start.js
import DemoServer from './DemoServer';
// Start the server or run tests
if (process.argv[2] !== 'test') {
let server = new DemoServer();
server.start();
} else {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment