madskristensen / PackageInstaller

A Visual Studio extension
Other
67 stars 15 forks source link

Bower arguments are not used on Restore of packages, only on create project. #25

Open sonnemaf opened 7 years ago

sonnemaf commented 7 years ago

Installed product versions

Description

The Bower 'Restore Packages' command ignores the 'Bower Arguments' from the Options.

Steps to recreate

I use the following option '--save -p' for the Bower Arguments (Menu Tools, Options, Web, Package Installer). the '-p' (or --production) can be used to download only the 'dist' version of the common packages (ex: jquery, bootstrap). When I create a project I only get the 'dist' folders for these packages. This is great!

Next I clear (delete all files) the 'wwwroot\lib' folder and restore the bower packages again. I use the richt click on Bower from the Dependencies node in my Solution explorer. There I choose 'Restore Packages'.

Current behavior

I get more than only the 'dist' folders. I get everything.

Expected behavior

I would have expexted to get only the 'dist' folder for Bootstrap and JQuery when I have the '-p' option.