Wednesday, 2 October 2013

Grunt recursive copy

Grunt recursive copy

I'm setting up a Grunt script that needs to copy and reorganise
directories of images from A to B. Simple enough.
Directory structure:
components
componentA

js

img


imgfolderA


imgfolderB

css
componentB

js

img


imgfolderA
Each img directory could contain other directories and directories within
those directories to help organise the images.
I want to use Grunt to take all those images and put them under one
directory (assets/img):
assets
img

dirA


imgfolderA


imgfolderB

dirB


imgfolderA
Any ideas on how could I do this in grunt without specifying each
component directory (it needs to be fully automated)?

No comments:

Post a Comment