Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Folders don't appear to be mirrored #4

Open
alexblack opened this issue Jan 22, 2018 · 3 comments · May be fixed by #5
Open

Folders don't appear to be mirrored #4

alexblack opened this issue Jan 22, 2018 · 3 comments · May be fixed by #5

Comments

@alexblack
Copy link

I'm running this command:

copy-and-watch src/public/**/*.{html,css,jpg,png} build

with this result:

[COPY] src/public/panel.html to build/panel.html
[COPY] src/public/panel.css to build/panel.css
[COPY] src/public/icons/icon128.png to build/icon128.png
[COPY] src/public/icons/icon16.png to build/icon16.png
[COPY] src/public/icons/icon19.png to build/icon19.png
[COPY] src/public/icons/icon48.png to build/icon48.png

I expected the png files to end up in build/icon not build

@alexblack
Copy link
Author

Ah, changing it to this solved the issue:

copy-and-watch src/**/*.{html,css} src/**/*.{jpg,png} build --clean

@builder-main
Copy link

What's the difference between the two ? I'm having a similar issue with hierarchy beeing flatten

@jorbar
Copy link

jorbar commented Nov 13, 2018

The solution is to surround the paths with quotation marks like this:
copy-and-watch "src/public/**/*.{html,css,jpg,png}" "build"

Solution is simple:
Update documentation that quote marks are required to surround the path.

Explanation:
Without quote marks all paths are expanded before the script is called.
The input to the script is all the individual files and not the pattern and globParent doesn't work as expected...

HoldYourWaffle added a commit to HoldYourWaffle2/copy-and-watch that referenced this issue Feb 25, 2019
Fixes zont#4 by mentioning the quote requirement in the readme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants