helpscout / proxypack

🎭ProxyPack: Proxy Local Webpack Assets to your Production Domain
MIT License
6 stars 1 forks source link

Adds Install Function #9

Closed tjbo closed 5 years ago

tjbo commented 5 years ago

This PR adds an install function to ProxyPack:

tjbo commented 5 years ago

@knicklabs , I couldn't find a way to check if openssl is installed.

I think I will just add a note to install instructions that openssl is a dependency.

I'm not giving up on it, but maybe run it like this for a bit and see if it's a solvable problem.

knicklabs commented 5 years ago

I couldn't find a way to check if openssl is installed.

@tjbo you could do:

if (!shell.which('openssl')) {
  shell.echo('This script requires OpenSSL. Please install it and try again.')
  shell.exit(1)
}

You can also check the OpenSSL version with openssl version if you require some specific version.

tjbo commented 5 years ago

Perfecto!