dpa99c / cordova-check-plugins

A CLI tool to check for / manage plugin updates in Cordova/Phonegap projects.
217 stars 25 forks source link

Remove only specific plugin completely from project directory #39

Closed ziyaddin closed 5 years ago

ziyaddin commented 5 years ago

Is it possible to completely remove only specific plugin from project directory? Completely means removing from package.json file, config.xml file, plugins directory, www directory, fetch.json file and etc so that all inconsistent states of the plugin resolves in next cordova build.

dpa99c commented 5 years ago

You don't need this tool to do that because the Cordova CLI will remove a single plugin:

cordova plugin rm cordova-plugin-something
ziyaddin commented 5 years ago

The fact is that cordova does not always remove plugin "completely". Sometimes after removal, it re-adds the plugin by finding its remainders inside files like fetch.json.

dpa99c commented 5 years ago

While it's true that Cordova sometimes corrupts its config files, this tool simply provides a wrapper around the Cordova CLI in order to remove plugins. To have it implement its own mechanism for plugin removal would not be worth it since any internal changes in how Cordova internally manages its plugins would break it.