calvinmetcalf/copyfiles

Copy folder from folder

Disane87 opened this issue · 3 comments

I actually have the following structure:
image

I want to copy the config.json and the folder assets from folder src to dist.
Now I use this command:

copyfiles src/config.json src/assets/** dist

But it always copies it itno dist like this: dist/src/asssets for example.
I've tried already parameter --up but it diesn't work. How can I achieve the following structure after copy?

  • dist
    -- assets
    -- config.json

I think you need to run:

copyfiles -u 1 src/assets/** dist

I don't know if it works with both files, but in worst case you could use a second script.

throw new Error('cant go up that far');

Getting this error
when I run this command
copyfiles -a true -u 1 build/** ./cordova/www