I'm trying to create a very simple copy task but it seems grunt-copy is not made for my usecase :-(.
All I needed is the following:
Source directory structure:
vendor
L subdir1
L assets
L subdir2
L subdir3
L file1.js
L file2.js
L subdir4
L subdir5
L subdir6
L file3.js
config:
src: [
'vendor/subdir1/assets/**/*',
'vendor/subdir4/**/*'
],
dest: 'build/assets/'
Destination file structure:
build
L assets
L subdir2
L subdir3
L file1.js
L file2.js
L subdir5
L subdir6
L file3.js
As you can see I want to preserve directory structure, but omit the basepath in src. Normally this can be done with cwd. But actually for this case I would need multiple cwds.
Sounds like a fair requirement to me. Is there really no easy solution?
Thanks for help,