grunt-bower-task icon indicating copy to clipboard operation
grunt-bower-task copied to clipboard

Keep file structure when using exportsOverride

Open eskimoblood opened this issue 13 years ago • 22 comments

I load a requireJs based lib. As all files that mentioned in the exportsOverride block are put at the main level of lib/js/myDependency/ I cant build the lib with requireJs as the require paths are broken now.

eskimoblood avatar Apr 08 '13 08:04 eskimoblood

I guess you can use layout option that could be a function, that responsible for strategy of files copying. See docs here https://github.com/yatskevich/grunt-bower-task#optionslayout

fantactuka avatar Apr 12 '13 12:04 fantactuka

Sure, but wouldn't it be the expected behavior that the file structure keeps the same as in the original repo instead of flatting all files in the same folder.

eskimoblood avatar Jun 08 '13 06:06 eskimoblood

Can you bring in an example of exportsOverride you have?

fantactuka avatar Jun 08 '13 06:06 fantactuka

Ok, I have problem with this repo: https://github.com/rsolomon/JSV. It has a nested file structure and us requirejs. So when I load this grunt-bower all files put in the same folder and I have to move them afterwards in the right folder again. This will be a problem for every requirejs based repo.

eskimoblood avatar Jun 08 '13 06:06 eskimoblood

Yes, now I see the problem. I guess this is something that was not considered in API. Good point for enhancement

fantactuka avatar Jun 08 '13 06:06 fantactuka

I would like to see this, too.

hamishtaplin avatar Jul 17 '13 14:07 hamishtaplin

+1

DoCode avatar Sep 12 '13 01:09 DoCode

+1

ghost avatar Nov 12 '13 09:11 ghost

+1

RishiRamraj avatar Dec 04 '13 01:12 RishiRamraj

+1

cvn avatar Feb 24 '14 22:02 cvn

+1

kenwarner avatar Apr 30 '14 05:04 kenwarner

+1

dr-potato avatar May 08 '14 15:05 dr-potato

Yes! Please stop messing with packages' layouts! AFAIK, there's basically no good way for packages to support having their directory structure reorganized by your tool. References to images+fonts within Less/CSS/Sass break, and then users often blame the package instead of grunt-bower-task.

cvrebert avatar May 08 '14 19:05 cvrebert

In the meantime, for people trying to make this work with their grunt setup: grunt-bower does seem to support keeping the folder structure intact. Only thing it doesn't do is install bower packages, but grunt-exec could take care of that.

At this point it might make more sense to just use grunt-contrib-copy.

dr-potato avatar May 09 '14 09:05 dr-potato

Any news on this one?

kevin-smets avatar Jun 20 '14 21:06 kevin-smets

+1

jeroenpelgrims avatar Sep 17 '14 20:09 jeroenpelgrims

+1 This is very important indeed

jcano avatar Oct 20 '14 13:10 jcano

+1

MikeMengell avatar Jan 15 '15 19:01 MikeMengell

+1

j3ffb avatar Jun 16 '15 15:06 j3ffb

+1

afloyd avatar Aug 25 '15 17:08 afloyd

Obnoxious comment but, +1

andreicek avatar Sep 16 '15 06:09 andreicek

+1 it need for copy boost less files structure. Please.

black78 avatar Nov 09 '15 18:11 black78