Why does the mecha-cms/composer plugin delete git files? #291
-
I do understand on a general level that it might be because on a production environment one might not want to have those files around... but why is deleting files like README.md the default? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It was defined in the Mecha does not use the If you want to develop an extension 1 or a layout 2 that includes README.md export-ignore Of course, in the source code there is a list of file and folder names to remove (including Footnotes |
Beta Was this translation helpful? Give feedback.
It was defined in the
.gitattributes
file to exclude those files when downloading GitHub files usinggit archive
command. Composer uses that command internally to store the GitHub files in its server, I guess.Mecha does not use the
README.md
file as its project documentation (to be displayed in the control panel). But instead, it usesabout.page
file, so it can have custom fields.If you want to develop an extension 1 or a layout 2 that includes
README.md
file by default, just remove this line from the.gitattributes
file in your extension/layout repository:Of course, in the source code there is a list of file and folder names to remove (including
README.md
file)…