Today you can also use cli hooks to delete the "examples" directory if present
--Carlos On Wed, Oct 23, 2013 at 2:39 PM, Axel Nennker <[email protected]> wrote: > Yes, a copy is simpler but I think that copying only the needed files > specified in plugin.xml makes a lot of sense. > Am 23.10.2013 16:42 schrieb "Braden Shepherdson" <[email protected]>: > > > The common places to fetch the plugin are over the network, from the > plugin > > registry or from git. Therefore the tools are expecting to download > exactly > > the files that are needed by the plugin, plus or minus a README or > > whatever. They expect local plugins to be self-contained, in a directory > by > > themselves. > > > > If this is from an example plugin that is being published, maybe we > should > > pull the plugin's parts into a "src" or "plugin" directory, that's a > > sibling of "examples"? This flow is not supported, and I don't think it's > > worth the work involved to go from a dumb copy to a careful copying of > > exactly the member files of the plugin. > > > > Braden > > > > > > On Wed, Oct 23, 2013 at 9:24 AM, Don Coleman <[email protected]> > > wrote: > > > > > I've seen this problem with cordova. My instructions for the examples > > have > > > people copy the example folder out of the project before installing the > > > plugin as a work around. > > > > > > > > > > > > > On Oct 23, 2013, at 7:57 AM, Axel Nennker <[email protected]> > > wrote: > > > > > > > > Hi, > > > > > > > > the above phonegap command fails (name to long) and I think it > applies > > to > > > > cordova as well. > > > > > > > > plugin add seems to copy the whole directory into the app's plugins > > > > directory. Which is wrong. > > > > > > > > > > > > I am developing a phonegap plugin and inside the plugin's > developement > > > > folder I have a subfolder named examples. In this folder I created a > > > > phonegap example project to show how the plugin might be used. I want > > to > > > > add the my plugin into this example app but "plugin add" dies because > > it > > > > tries to copy the whole plugin's folder into itself. > > > > > > > > Why isn't "plugin add" just copying the plugin.xml and all the files > > > > (assets, js-modules etc) into the plugins folder? This would prevent > > the > > > > endless recursion and would just copy exactly those files that are > > > needed. > > > > > > > > Am I missing something? > > > > > > > > cheers > > > > Axel > > > > > > -- Carlos Santana <[email protected]>
