aboutsummaryrefslogtreecommitdiffstats
path: root/Laravel.gitignore
diff options
context:
space:
mode:
authorLake Robin <42895793+lakerobin@users.noreply.github.com>2018-09-12 15:16:16 +0530
committerGitHub <noreply@github.com>2018-09-12 15:16:16 +0530
commit67aa0dca06ecfda4aa760003c92d551231d0fcb8 (patch)
tree5fb9fce94290588c99cc467c98875b6488832ee6 /Laravel.gitignore
parent35441e97b4587b18284ce76d19a0133319c3c320 (diff)
downloadgitignore-67aa0dca06ecfda4aa760003c92d551231d0fcb8.tar.gz
gitignore-67aa0dca06ecfda4aa760003c92d551231d0fcb8.zip
Only ignore root vendor directory
In Laravel, we often use `artisan vendor:publish` to copy views, notifications etc from dependencies so that they can be customized. These views are created in <type>/vendor/<dependency> directory. When using the current gitignore for Laravel, vendor is inserted like vendor/ which ignores all the directories named vendor anywhere in the source tree, including the customized views. The proposed file change tries to fix this problem by ensuring only the root vendor directory is ignored by git.
Diffstat (limited to 'Laravel.gitignore')
-rw-r--r--Laravel.gitignore2
1 files changed, 1 insertions, 1 deletions
diff --git a/Laravel.gitignore b/Laravel.gitignore
index 67e2146f..6552ddf8 100644
--- a/Laravel.gitignore
+++ b/Laravel.gitignore
@@ -1,4 +1,4 @@
-vendor/
+/vendor/
node_modules/
npm-debug.log
yarn-error.log