Zend Framework 2 homepage is http://framework.zend.com/
I decided to include Zend Framework 2 gitignore because Zend Framework 1 file was already in this project.
Files included in gitignore are those meant to be excluded from version control, like local config files, dynamic binary folders like temp folders or binary gettext files, readmes, third party libraries and such.
None of this files are usually included to version control.
Created Zend Framework 2 gitignore file
Included missing new line
Does this need to be a separate file, or can we just combine it with the existing ZendFramework.gitignore?
Directory structure is completly different in Zend Framework 1 projects and Zend Framework 2 projects, so I think is better to keep them separate.
I think it's a bit of a stretch to call them completely different when ZendFramework.gitignore contains only five rules, and three of them are essentially duplicated here 😜 I think that they can go in the same template -- and is the first version even relevant any more?
I have a few objections/questions:
Composer.lock and READMEs are no longer ignored
@arcresu you are right, documentation files and composer.lock shouldn't be ignored. I have updated it.
Logs and temporary folders do not really have standardized names, but I have only seen them with those two names.
Configuration files with the local keyword are considered development specific configuration files in ZF2 and are suposed to be ignored and never deployed to production.
Thanks for updating this! If you're in agreement about not ignoring documentation, then that should probably also apply to the existing ZendFramework.gitignore; once you take the doc rules out of that, all that's left is demos/. I think at this point it's safe to say that the old template isn't very useful. So I think you can delete the old template and drop the 2 from the name of this one. If you do that, I'd be happy to merge.
Removed old ZendFramework.gitignore
Documentation rules have been removed and the rest of the rules are going to be included in the ZendFramework2.gitignore.
Included Zend Framework 1 rules
ZendFramework2.gitignore renamed to ZendFramework.gitignore
I have already included the demos/ rules in the new file
Thanks, looks good!