Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Add option to *only* include certain packages #58

Open
dixhuit opened this issue Feb 10, 2016 · 1 comment
Open

Add option to *only* include certain packages #58

dixhuit opened this issue Feb 10, 2016 · 1 comment

Comments

@dixhuit
Copy link

dixhuit commented Feb 10, 2016

I have a use case where one of my targets is only interested in 3 of 15 packages. What I could really do with here is an option that works like the opposite of ignorePackages so that I only have to add 3 packages to the Gruntfile as opposed to 12.

@kyledmoore
Copy link

kyledmoore commented May 11, 2017

I've run into a need for this myself, but in my case only due to attempting to workaround another issue I have, which is I'm at the mercy of some of my project's poorly organized dependencies. Because of some hard coded paths in them, I unfortunately need to both keepExpandedHierachy and not for some files in a single package (and also send them to different destinations).

E.g., I have a package foo that has a font-awesome/dist/fonts/* that need to go to .tmp/public/vendor/font-awesome, along w/ some other flattened assets that go to another location (which I do with dest and fonts_dest, which was convenient).

But within foo I also have some assets in fonts and images that I don't want flattened that need to go to .tmp/public/vendor/foo.

Since grunt-bower doesn't appear to support Grunt's files array format, I was unable to represent these separate destinations and properties within a single package, so I was attempting to work around it by creating a separate target to include just the latter portion of the copying for this problematic module and ignore all others, but can't due to the lack of this type of property (and lack of support for a wildcard in ignorePackages - I attempted ignorePackages: ['*']).

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

No branches or pull requests

2 participants