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

Contao 4: Copy files outside files-folder with composer #74

Closed
denniserdmann opened this issue Oct 13, 2017 · 8 comments
Closed

Contao 4: Copy files outside files-folder with composer #74

denniserdmann opened this issue Oct 13, 2017 · 8 comments

Comments

@denniserdmann
Copy link

In #68, we were talking about adding static files (not symlinks) to the files folder. Now i'm looking for a way to copy files to a folder outside of files, for example into templates or even to the root (for files like package.json, gulpfile.js).

In Contao 3.5 it doesn't matter, where you want to add your files, but in C4 this isn't working anymore. Is there a chance, that this function is coming back or is it forbidden because of security reasons? If it won't come back, do you have a recommendation how to solve this issue?

@aschempp
Copy link
Collaborator

aschempp commented Oct 13, 2017 via email

@denniserdmann
Copy link
Author

In Contao 3.5 i am able to copy a file to from a repository into root or /templates

@aschempp
Copy link
Collaborator

aschempp commented Oct 13, 2017 via email

@fritzmg
Copy link
Contributor

fritzmg commented Oct 13, 2017

In Contao 3.5 i am able to copy a file to from a repository into root or /templates

It probably does not make any sense to copy templates into the /templates folder. And in Contao 4 there shouldn't be any requirement to copy anything else anywhere anymore. What exactly do you want to achieve?

How do you copy instead of symlink in 3.5?

That's the default behavior.

@denniserdmann
Copy link
Author

denniserdmann commented Oct 13, 2017

I was using composer to install our nutshell framework kit, a boilerplate that, once installed, can be modified by the user (that's why i copy instead of symlink).

I liked the idea to install a boilerplate via composer, but it looks like downloading and copying files by hand is now the only way to install the kit.

For more details, check: erdmannfreunde/euf_nutshell_kit#2

@fritzmg
Copy link
Contributor

fritzmg commented Oct 13, 2017

I think your use case is better done with a project boiler plate. There you can pre-populate anything you want.

@aschempp
Copy link
Collaborator

aschempp commented Oct 16, 2017 via email

@denniserdmann
Copy link
Author

@aschempp sorry for the misunderstanding.
I don't want to copy templates to root. I want to copy templates to the templates-folder and files like a gulp file.js or package.json to the root-folder. But as @fritzmg said, maybe the better way is to create a project boiler plate.

@fritzmg Do you know good resources how to create a project boiler plate?

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

3 participants