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-ignoreOf 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
.gitattributesfile to exclude those files when downloading GitHub files usinggit archivecommand. Composer uses that command internally to store the GitHub files in its server, I guess.Mecha does not use the
README.mdfile as its project documentation (to be displayed in the control panel). But instead, it usesabout.pagefile, so it can have custom fields.If you want to develop an extension 1 or a layout 2 that includes
README.mdfile by default, just remove this line from the.gitattributesfile in your extension/layout repository:Of course, in the source code there is a list of file and folder names to remove (including
README.mdfile)…