apache / cordova-plugman

Apache Cordova Plugman
https://cordova.apache.org/
Apache License 2.0
400 stars 151 forks source link

-www option ignored #134

Open alekop opened 2 years ago

alekop commented 2 years ago

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

erisu commented 2 years ago

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.

alekop commented 2 years ago

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.