Skip to content

Instantly share code, notes, and snippets.

@seanpmaxwell
Last active May 18, 2019 14:41
Show Gist options
  • Save seanpmaxwell/18e78c63e8d2f57cc4b0e5f80bba27d2 to your computer and use it in GitHub Desktop.
Save seanpmaxwell/18e78c63e8d2f57cc4b0e5f80bba27d2 to your computer and use it in GitHub Desktop.
TypeScriptFullStackShell/start.ts
if (process.argv[2] === 'dev') {
process.env.NODE_ENV = 'development';
require('./src/DemoServer');
} else if (process.argv[2] === 'prod') {
process.env.NODE_ENV = 'production';
require('./build/demo.bundle');
} else if (process.argv[2] === 'test') {
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment