Skip to content
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

-www option ignored #134

Open
3 tasks done
alekop opened this issue Sep 17, 2021 · 2 comments
Open
3 tasks done

-www option ignored #134

alekop opened this issue Sep 17, 2021 · 2 comments

Comments

@alekop
Copy link

alekop commented Sep 17, 2021

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

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@erisu
Copy link
Member

erisu commented Sep 17, 2021

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
Copy link
Author

alekop commented Sep 17, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants