-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix various issues with CLI and creating .pem and .crx files #34
Conversation
// If a private key file exists, read in the contents | ||
var keyData; | ||
if (fs.existsSync(key) ) { | ||
keyData = fs.readFileSync(key); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer fs. readFile
to be used – use es6-promises
– on reject (because `e.code === 'ENOENT'), generate a key.
Thanks for your contribution @lepoltj :-) you will need to rebase your PR first. Let me know what you think about my review comments. |
@@ -3,3 +3,4 @@ test/*.zip | |||
test/*.xml | |||
node_modules | |||
tmp | |||
.idea |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use a global .gitignore setting.
https://help.github.com/articles/ignoring-files/#create-a-global-gitignore
Oops, bad rebase. Fixing now. |
…me current working directory for all options. If .pem file is not specified, we will create one automatically (like the docs say) and will continue operation. Added a little more error handling. Refactored some of the read key and generate key code to be more async w/ Promises.
All clear. Addressed all comments. Refactored the read/write key code to use Promises. |
+1. Bump. Anything holding this up? |
👍 @workmanw. Anybody? |
Fix various issues with CLI and creating .pem and .crx files
Sorry for the delay guys! Winter break + loads of other things to do. Thanks for having pushed this up :-) |
Published as |
If directory is not specified, we'll assume current working directory for all options. If .pem file is not specified, we will create one automatically (like the docs say) and will continue operation. Added a little more error handling.
Fixes
#33
#31