When building an Hybrid iOS Cordova application (relying on Cordova CLI) I stumbled the need to build a custom plugin.
My workflow was the following:
- I scaffolded my Cordova plugin outside my Hybrid Application directory.
- Code it blindly (in Vim) and push to GitHub.
- Use
cordova plugin rmandcordova plugin addto reinstall the plugin. - Test.
- Repeat from step 2.
I deployed the plugin successfully in the product, however this process of coding Objective C blindly with Vim and doing a whole push to GitHub just to test it in my project feels awkward, however I couldn't find any information on the internet about a better workflow.
Ideally, this is the workflow I'd expect:
- Scaffold my plugin inside my application directory (maybe in plugins/ or in my custom src/) and publish when I'm ready to do so (or not publish closed-source plugins at all).
- Code the plugin using XCode.
- Reinstall the plugin from the local filesystem, this totally avoiding a separate repo/push.
- Test and iterate from step 2.
Is this workflow achievable?