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

File Input or SymLinks #81

Open
Shikakka opened this issue Mar 23, 2024 · 1 comment
Open

File Input or SymLinks #81

Shikakka opened this issue Mar 23, 2024 · 1 comment

Comments

@Shikakka
Copy link

Thanks for making this library!
I previously used Spritezero in Javascript. Not the Spritezero-CLI version.

Here I could input a list of files instead of pointing to a folder.
Would it be possible to implement something like this?

I probably have a weird use case, where I can upload to 3 different folders, for example:
/sprites/public
/sprites/version-a
/sprites/version-a/part-b

where I want to generate a spritesheet for part-b, but including the sprites in public and version-a.
But not including /sprites/version-a/part-a.

I tried to use Symbolic Links to create a new directory first /sprites/temp then create symbolic links to all .svgs.
They work in other programs correctly.

But this gives me the error:

Error: cannot make a valid sprite name from "/sprites/temp/new-sprite.svg"

When i copy the files to the same folder, so no symlinks, they work correctly.

@Shikakka
Copy link
Author

It would very much be a "nice to have" for now I just copy the files.
What another option would be is input multiple folders.

Something like a comma seperation:

spreet --retina /sprites/public,/sprites/version-a,/sprites/version-a/part-b my_style@2x

But again it is a "nice to have" but probably not in scope of this project because of this very uncommon usecase.

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

No branches or pull requests

1 participant