cordova-plugman
cordova-plugman copied to clipboard
-www option ignored
Bug Report
Problem
What is expected to happen?
When the -www
option is used, plugins should be installed in the given directory instead of the default <project>/cordova/plugins
What does actually happen?
Plugins are still installed in the default directory.
Information
Command or Code
% ls www myproj
% plugman install --platform ios --proj myproj --plugin cordova-plugin-device --www ./www % plugman install --platform ios --proj myproj --plugin cordova-plugin-device --www . % plugman install --platform ios --proj myproj --plugin cordova-plugin-device --www www
Plugins are installed in myproj/cordova/plugins, instead of the local www directory
Environment, Platform, Device
Using platofrm-ios directly, no cordova CLI. Happens with every plugin.
Version information
plugman 3.0.1 cordova-ios 6.2.0 npm 7.20.3 node 16.7.0 macOS 11.6
Checklist
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
I dont use or know much about plugman but reading the README it says
--plugins_dir defaults to
/cordova/plugins , but can be any directory containing a subdirectory for each fetched plugin.--www defaults to the project's www folder location, but can be any directory that is to be used as cordova project application web assets.
What you are saying in the ticket description is contradicting what README said.
Maybe I phrased it wrong, but my understanding of "can be any directory..." is that files will be copied to whatever directory you specify with the --www option. That's not happening - the files are always copied to the project's directory, ignoring the value of the --www option.