[TASK] Cleanup .gitignore 13/54113/3
authorPhilipp Gampe <philipp.gampe@typo3.org>
Mon, 11 Sep 2017 11:14:27 +0000 (13:14 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 11 Sep 2017 12:15:53 +0000 (14:15 +0200)
Make sure root level excludes are prefix with
a forward slash (/).

Sort the .gitignore into logical groups.

Releases: 7.6, 8.7, master
Resolves: #81992
Change-Id: If1cb4105e57fb7ab3c28448abc3eaeb898da60e3
Reviewed-on: https://review.typo3.org/54113
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
.gitignore

index fdd4d3d..72df8cc 100644 (file)
@@ -5,44 +5,58 @@
 #
 # Don't ignore .rej and .orig as we want to see/clean files after conflict resolution.
 #
-# If you feel this file needs adaption please report on http://forge.typo3.org/issues/13627.
-#
 # For local exclude patterns please edit .git/info/exclude.
 #
 ########################
 #
-# Ignore temporary files (left by editors)
+# Ignore temporary files (left by editors and OS)
 *~
 *.bak
 *.swp
+.DS_Store
 #
 # Ignore by common IDEs used directories/files
 nbproject
 *.idea
 *.project
 .buildpath
-.project
 .settings
 .TemporaryItems
 .webprj
-.php_cs.cache
 #
-# Ignore build stuff
-Build/bower_components/*
-Build/node_modules/*
+# Temporary files and folders
 .cache
+.php_cs.cache
 .sass-cache
 .session
+phantomjsdriver.log
+#
+# Ignore build stuff
+/Build/bower_components/*
+/Build/node_modules/*
+/Build/JavaScript
+/Build/typings/*
+!/Build/typings/no-def*
+/typo3/sysext/*/Resources/Private/TypeScript/*.js
+/typo3/sysext/*/Resources/Public/JavaScript/*.js.map
+#
+# TypeScript stuff
+.baseDir.ts
+.tscache
+#
+# Test folders
 typo3/sysext/core/Build/Configuration/Acceptance/Support/_generated/*
 typo3/sysext/core/Build/Configuration/Acceptance/Support/AcceptanceTester.php
 #
 # Ignore composer stuff
-bin/*
-vendor/*
-#
-# Ignore common TYPO3 CMS directories
-typo3temp/*
-typo3conf/*
-fileadmin/*
-uploads/*
+/bin/*
+/vendor/*
+#
+# Ignore common TYPO3 CMS files/directories
+/typo3temp/*
+/typo3conf/*
+/fileadmin/*
+/uploads/*
+#
+# root .htaccess file
 /.htaccess