Created
August 1, 2018 21:42
-
-
Save gmcdev/6c795094325245bc93827c77db0e8453 to your computer and use it in GitHub Desktop.
This file contains 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
let cmd = '' | |
// windows | |
if (process.platform === 'win32') { | |
cmd += `cd "${global.servePath}" && npm install ` | |
} | |
// mac & other platforms | |
else { | |
cmd = `cd ${unixPathLiteral(global.servePath)} && npm install ` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment