-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add an option to copy non-php files (/folders) #31
Comments
You can use Adding the
tecnickcom/tcpdf's
TBH, most of the classmap they have defined is unnecessary here. Once the directory is specified, everything inside it will be copied. I'll leave this open until I update the README with a few lines about this. |
Thanks for working that out! I think we'll stick to copying afterwards in that case, for simplicity sake. Configuring the autoloader part feels like an unnecessary extra step if all you want is the files to be copied. |
Excellent. This worked well for copying directories I need. Thank you @BrianHenryIE. Stripped down version: "extra": {
"strauss": {
"override_autoload": {
"composer/ca-bundle": {
"files": [
"res"
]
}
}
}
} |
I'm considering this functionality, maybe like:
It would really just be merged back into the What's the best name? |
@BrianHenryIE |
@BrianHenryIE I had need for something like this due to how Dompdf works. By default strauss does not copy some of the root files. The See this line: https://github.com/dompdf/dompdf/blob/v2.0.3/src/Dompdf.php#L261 I had to the following to get all the files into the prefixed directory:
|
When utilizing libraries that contain files like fonts (
tecnickcom/tcpdf
) or other non-php assets (composer/ca-bundle
is a library built around acacert.pem
file), these assets are not copied over by Strauss. We currently resolve this with a bash script that runs after Strauss, but it would be nice to be able to tell Strauss which folders to copy over, or even to let it copy all the files/folders for a specific library?The text was updated successfully, but these errors were encountered: