-
Notifications
You must be signed in to change notification settings - Fork 340
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
cordova plugin add --link ../plugin/ does not provide a cohesive local plugin workflow #497
Comments
with regard to #347 my symlinks seem to look and work fine so that's not what's at issue here. the main issue is that whatever happens in the plugin *.js does not reflect after a |
in addition to what i've described, java symlinks break Gradle. there's no (functioning) --force option so removing and adding a plugin is necessary |
doesn't seem to bother e.g. I update .java file in symlinked plugin dir, do a build but code in ./platform/android/etc is unchanged Using ionic so the following works for me as a workaround. $ rm -rf platforms/ && ionic cordova build android |
Still a problem using While it may just have been yarn & Cordova (npm) fighting it out, but I found it was even better to avoid Then every change I make (So tedious), follow @rustybox #497 (comment) |
Same issue where --link didn't work for me. I did it manually as described above and that helped. As I'm not using ionic, this is my current workflow for each change:
|
Bug Report
Problem
Currently to re-compile the *.js of a local plugin the following chain of commands needs to performed:
It seems that while the native files are symlinked properly, there is a compilation step to the plugin
*.js
code that doesn't occur with neitherbuild
orprepare
orcompile
. This requires repeatedly adding and removing plugins when changes are made to *.js code.What is expected to happen?
Symlinking plus compilation (build) should provide an all in one solution for local plugin development.
What does actually happen?
When .js files are changed the changes do not reflect in an *.xcworkspace project. To make the *.js changes reflect, the plugin needs to be
rm
and thenadd -link /plugin/
again.Information
My particular plugin uses Cordova-iOS 5, CocoaPods and xCode .xcworkspace workflow.
Environment, Platform, Device
CLI
xCode 11.2
iPhone X Emulator
Version information
"cordova-ios": "^5.1.1"
"cordova-lib":@9.0.1
xCode 11.2
iPhone X Emulator
Checklist
The text was updated successfully, but these errors were encountered: