Laravel 5 - Recommended by Mercurial.hgignore

Using Laravel 5.x. or 5.1.x
What would be the main recommended configuration for the .hgignore file?

Pulling from .gitignore is what I have:

syntax: glob .env .gitignore .gitattributes .idea vendor/ node_modules/ Homestead.yaml Homestead.json 

On the net, I see something about /bootstrap/compiled.php for version 4
Should I include / bootstrap / cache?

+5
source share
1 answer

I use a negative lookahead to include an empty folder structure:

 ## Laravel specific ^\.env$ ^vendor ## General \.DS_Store$ [Tt]humbs\.db$ ## Keep these folders, but ignore their content ^bootstrap/cache/(?!\.gitignore).+$ ^storage/logs/(?!\.gitignore).+$ ^storage/app/(?!\.gitignore).+$ ^storage/framework/views/(?!\.gitignore).+$ ^storage/framework/sessions/(?!\.gitignore).+$ ^storage/framework/cache/(?!\.gitignore).+$ 
+3
source

Source: https://habr.com/ru/post/1235265/


All Articles