Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

This plugin breaks ionic restore #11

Closed
ptarjan opened this issue Sep 29, 2015 · 10 comments
Closed

This plugin breaks ionic restore #11

ptarjan opened this issue Sep 29, 2015 · 10 comments
Labels

Comments

@ptarjan
Copy link
Contributor

ptarjan commented Sep 29, 2015

If I have cordova-hot-code-push-plugin in my cordovaPlugins section of my package.json and then run

ionic restore

it hangs during this plugin's step.

@nikDemyankov
Copy link
Member

Thanks, I'll check it.

@nikDemyankov
Copy link
Member

It hangs if cordova-hot-code-push-cli client is not yet installed. When you install the plugin - it asks you, if you would like to install the CLI client as well. But ionic state restore suppresses all output/input requests from the dependency modules. So, after plugin is installed - the question is asked and script waits for your answer, but it is not shown because of Ionic.

Probable solution would be to remove installation request from the plugin. It will also solve the issue #8. But it will be less convenient...

@ptarjan
Copy link
Contributor Author

ptarjan commented Sep 30, 2015

Well, your extra convenience is making me not use your plugin sadly, so I would recommend removing it.

@nikDemyankov
Copy link
Member

Whatever is best for you :) I think similar issue will acquire with any plugin, that requires input from the user.

Either way, because of that we, probably, will change installation process. Luckily, it's easy to do. So instead of asking user if he want to install CLI client as well - we will just post message about that and that's it. User will have to do it like so:

npm install cordova-hot-code-push-cli

@ptarjan
Copy link
Contributor Author

ptarjan commented Sep 30, 2015

would you need to have a -g on that npm command or will a locally installed cli be ok?

@nikDemyankov
Copy link
Member

Depends on what you want.

You can use it locally. In that case, if it's installed as local module in the project's root folder, then you'll have to call it like so:

node_modules/cordova-hot-code-push-cli/bin/cordova-hcp build

In the case of the -g it is easier:

cordova-hcp server

Plus, if plugin is used in several projects and CLI is installed globally - you don't have to install it again. So I would use -g. Probably, will update docs on CLI to recommend to use -g.

@ptarjan
Copy link
Contributor Author

ptarjan commented Oct 1, 2015

Your detection scripts currently require a -g install which is why I was asking.

@nikDemyankov
Copy link
Member

Updated installation hook - no more user input requests for CLI client. ionic state restore will not hang. Issue will be closed after the release.

@ptarjan
Copy link
Contributor Author

ptarjan commented Oct 1, 2015

yay, thanks! I'd be in favor of a release as soon as this round of my bugs are closed :)

@nikDemyankov
Copy link
Member

Fixed in version 1.0.3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants