Last active
May 18, 2019 14:41
-
-
Save seanpmaxwell/18e78c63e8d2f57cc4b0e5f80bba27d2 to your computer and use it in GitHub Desktop.
TypeScriptFullStackShell/start.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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