Repository: symfony/ux
Pull request #2243 (2024-10-05 22:24:56)

[UX] Clean .gitignore / .gitattributes (rebase + merge #1969)
Finalize #1969 (thak you @Kocal !! 💐 )




Patch:
diff --git a/.gitignore b/.gitignore
index 328530a6..509b663c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,5 +12,7 @@ yarn-error.log
 
 .doctor-rst.cache
 .php-cs-fixer.cache
+.phpunit.result.cache
+
 /composer.lock
 /vendor
diff --git a/src/Autocomplete/.gitattributes b/src/Autocomplete/.gitattributes
index 2b1d42ea..61e8a87a 100644
--- a/src/Autocomplete/.gitattributes
+++ b/src/Autocomplete/.gitattributes
@@ -3,5 +3,6 @@
 /.symfony.bundle.yaml export-ignore
 /assets/src export-ignore
 /assets/test export-ignore
+/doc export-ignore
 /phpunit.xml.dist export-ignore
 /tests export-ignore
diff --git a/src/Autocomplete/.gitignore b/src/Autocomplete/.gitignore
index 85421784..1784dd65 100644
--- a/src/Autocomplete/.gitignore
+++ b/src/Autocomplete/.gitignore
@@ -1,5 +1,7 @@
+/assets/node_modules/
+/vendor/
 /composer.lock
 /phpunit.xml
-/vendor/
-/var/
 /.phpunit.result.cache
+
+/var
diff --git a/src/Chartjs/.gitattributes b/src/Chartjs/.gitattributes
index 1ba1a889..d49b3ecd 100644
--- a/src/Chartjs/.gitattributes
+++ b/src/Chartjs/.gitattributes
@@ -4,5 +4,6 @@
 /assets/src export-ignore
 /assets/test export-ignore
 /assets/vitest.config.js export-ignore
+/doc export-ignore
 /phpunit.xml.dist export-ignore
 /tests export-ignore
diff --git a/src/Chartjs/.gitignore b/src/Chartjs/.gitignore
index bb17c3e1..2cc9f023 100644
--- a/src/Chartjs/.gitignore
+++ b/src/Chartjs/.gitignore
@@ -1,4 +1,5 @@
+/assets/node_modules/
 /vendor/
-.phpunit.result.cache
-.php_cs.cache
-composer.lock
+/composer.lock
+/phpunit.xml
+/.phpunit.result.cache
diff --git a/src/Cropperjs/.gitattributes b/src/Cropperjs/.gitattributes
index 2b1d42ea..61e8a87a 100644
--- a/src/Cropperjs/.gitattributes
+++ b/src/Cropperjs/.gitattributes
@@ -3,5 +3,6 @@
 /.symfony.bundle.yaml export-ignore
 /assets/src export-ignore
 /assets/test export-ignore
+/doc export-ignore
 /phpunit.xml.dist export-ignore
 /tests export-ignore
diff --git a/src/Cropperjs/.gitignore b/src/Cropperjs/.gitignore
index 30282084..2cc9f023 100644
--- a/src/Cropperjs/.gitignore
+++ b/src/Cropperjs/.gitignore
@@ -1,4 +1,5 @@
-vendor
-composer.lock
-.php_cs.cache
-.phpunit.result.cache
+/assets/node_modules/
+/vendor/
+/composer.lock
+/phpunit.xml
+/.phpunit.result.cache
diff --git a/src/Dropzone/.gitattributes b/src/Dropzone/.gitattributes
index 2b1d42ea..61e8a87a 100644
--- a/src/Dropzone/.gitattributes
+++ b/src/Dropzone/.gitattributes
@@ -3,5 +3,6 @@
 /.symfony.bundle.yaml export-ignore
 /assets/src export-ignore
 /assets/test export-ignore
+/doc export-ignore
 /phpunit.xml.dist export-ignore
 /tests export-ignore
diff --git a/src/Dropzone/.gitignore b/src/Dropzone/.gitignore
index 3ffdd8ae..2cc9f023 100644
--- a/src/Dropzone/.gitignore
+++ b/src/Dropzone/.gitignore
@@ -1,3 +1,5 @@
+/assets/node_modules/
 /vendor/
-.phpunit.result.cache
-composer.lock
+/composer.lock
+/phpunit.xml
+/.phpunit.result.cache
diff --git a/src/Icons/.gitattributes b/src/Icons/.gitattributes
index 596519e1..0d2dd572 100644
--- a/src/Icons/.gitattributes
+++ b/src/Icons/.gitattributes
@@ -1,5 +1,6 @@
 /.gitattributes export-ignore
 /.gitignore export-ignore
 /.symfony.bundle.yaml export-ignore
+/doc export-ignore
 /phpunit.xml.dist export-ignore
 /tests export-ignore
diff --git a/src/Icons/.gitignore b/src/Icons/.gitignore
index 6b466948..1784dd65 100644
--- a/src/Icons/.gitignore
+++ b/src/Icons/.gitignore
@@ -1,4 +1,7 @@
-/vendor
+/assets/node_modules/
+/vendor/
 /composer.lock
-/var
+/phpunit.xml
 /.phpunit.result.cache
+
+/var
diff --git a/src/LazyImage/.gitattributes b/src/LazyImage/.gitattributes
index 2b1d42ea..61e8a87a 100644
--- a/src/LazyImage/.gitattributes
+++ b/src/LazyImage/.gitattributes
@@ -3,5 +3,6 @@
 /.symfony.bundle.yaml export-ignore
 /assets/src export-ignore
 /assets/test export-ignore
+/doc export-ignore
 /phpunit.xml.dist export-ignore
 /tests export-ignore
diff --git a/src/LazyImage/.gitignore b/src/LazyImage/.gitignore
index 30282084..2cc9f023 100644
--- a/src/LazyImage/.gitignore
+++ b/src/LazyImage/.gitignore
@@ -1,4 +1,5 @@
-vendor
-composer.lock
-.php_cs.cache
-.phpunit.result.cache
+/assets/node_modules/
+/vendor/
+/composer.lock
+/phpunit.xml
+/.phpunit.result.cache
diff --git a/src/LiveComponent/.gitattributes b/src/LiveComponent/.gitattributes
index 2b1d42ea..61e8a87a 100644
--- a/src/LiveComponent/.gitattributes
+++ b/src/LiveComponent/.gitattributes
@@ -3,5 +3,6 @@
 /.symfony.bundle.yaml export-ignore
 /assets/src export-ignore
 /assets/test export-ignore
+/doc export-ignore
 /phpunit.xml.dist export-ignore
 /tests export-ignore
diff --git a/src/LiveComponent/.gitignore b/src/LiveComponent/.gitignore
index 85421784..1784dd65 100644
--- a/src/LiveComponent/.gitignore
+++ b/src/LiveComponent/.gitignore
@@ -1,5 +1,7 @@
+/assets/node_modules/
+/vendor/
 /composer.lock
 /phpunit.xml
-/vendor/
-/var/
 /.phpunit.result.cache
+
+/var
diff --git a/src/Map/.gitattributes b/src/Map/.gitattributes
index 35c1f46a..a2d6db26 100644
--- a/src/Map/.gitattributes
+++ b/src/Map/.gitattributes
@@ -5,4 +5,5 @@
 /assets/src export-ignore
 /assets/test export-ignore
 /assets/vitest.config.js export-ignore
+/doc export-ignore
 /tests export-ignore
diff --git a/src/Notify/.gitattributes b/src/Notify/.gitattributes
index 2b1d42ea..61e8a87a 100644
--- a/src/Notify/.gitattributes
+++ b/src/Notify/.gitattributes
@@ -3,5 +3,6 @@
 /.symfony.bundle.yaml export-ignore
 /assets/src export-ignore
 /assets/test export-ignore
+/doc export-ignore
 /phpunit.xml.dist export-ignore
 /tests export-ignore
diff --git a/src/Notify/.gitignore b/src/Notify/.gitignore
index bb17c3e1..2cc9f023 100644
--- a/src/Notify/.gitignore
+++ b/src/Notify/.gitignore
@@ -1,4 +1,5 @@
+/assets/node_modules/
 /vendor/
-.phpunit.result.cache
-.php_cs.cache
-composer.lock
+/composer.lock
+/phpunit.xml
+/.phpunit.result.cache
diff --git a/src/React/.gitattributes b/src/React/.gitattributes
index 1ba1a889..d49b3ecd 100644
--- a/src/React/.gitattributes
+++ b/src/React/.gitattributes
@@ -4,5 +4,6 @@
 /assets/src export-ignore
 /assets/test export-ignore
 /assets/vitest.config.js export-ignore
+/doc export-ignore
 /phpunit.xml.dist export-ignore
 /tests export-ignore
diff --git a/src/React/.gitignore b/src/React/.gitignore
index 30282084..2cc9f023 100644
--- a/src/React/.gitignore
+++ b/src/React/.gitignore
@@ -1,4 +1,5 @@
-vendor
-composer.lock
-.php_cs.cache
-.phpunit.result.cache
+/assets/node_modules/
+/vendor/
+/composer.lock
+/phpunit.xml
+/.phpunit.result.cache
diff --git a/src/StimulusBundle/.gitattributes b/src/StimulusBundle/.gitattributes
index 2b1d42ea..61e8a87a 100644
--- a/src/StimulusBundle/.gitattributes
+++ b/src/StimulusBundle/.gitattributes
@@ -3,5 +3,6 @@
 /.symfony.bundle.yaml export-ignore
 /assets/src export-ignore
 /assets/test export-ignore
+/doc export-ignore
 /phpunit.xml.dist export-ignore
 /tests export-ignore
diff --git a/src/StimulusBundle/.gitignore b/src/StimulusBundle/.gitignore
index d776edf2..6e705b91 100644
--- a/src/StimulusBundle/.gitignore
+++ b/src/StimulusBundle/.gitignore
@@ -1,5 +1,7 @@
-.php-cs-fixer.cache
-.phpunit.result.cache
-composer.lock
-vendor/
-tests/fixtures/var
+/assets/node_modules/
+/vendor/
+/composer.lock
+/phpunit.xml
+/.phpunit.result.cache
+
+/tests/fixtures/var
diff --git a/src/Svelte/.gitattributes b/src/Svelte/.gitattributes
index 1ba1a889..d49b3ecd 100644
--- a/src/Svelte/.gitattributes
+++ b/src/Svelte/.gitattributes
@@ -4,5 +4,6 @@
 /assets/src export-ignore
 /assets/test export-ignore
 /assets/vitest.config.js export-ignore
+/doc export-ignore
 /phpunit.xml.dist export-ignore
 /tests export-ignore
diff --git a/src/Svelte/.gitignore b/src/Svelte/.gitignore
index bf4b985d..2cc9f023 100644
--- a/src/Svelte/.gitignore
+++ b/src/Svelte/.gitignore
@@ -1,5 +1,5 @@
-/assets/node_modules
+/assets/node_modules/
+/vendor/
 /composer.lock
 /phpunit.xml
-/vendor/
 /.phpunit.result.cache
diff --git a/src/Swup/.gitattributes b/src/Swup/.gitattributes
index fe55079a..254b1adb 100644
--- a/src/Swup/.gitattributes
+++ b/src/Swup/.gitattributes
@@ -3,3 +3,4 @@
 /.symfony.bundle.yaml export-ignore
 /assets/src export-ignore
 /assets/test export-ignore
+/doc export-ignore
diff --git a/src/Swup/.gitignore b/src/Swup/.gitignore
index 4a45ef5f..2cc9f023 100644
--- a/src/Swup/.gitignore
+++ b/src/Swup/.gitignore
@@ -1,3 +1,5 @@
-vendor
-composer.lock
-.php_cs.cache
+/assets/node_modules/
+/vendor/
+/composer.lock
+/phpunit.xml
+/.phpunit.result.cache
diff --git a/src/TogglePassword/.gitattributes b/src/TogglePassword/.gitattributes
index 97734d35..73107b13 100644
--- a/src/TogglePassword/.gitattributes
+++ b/src/TogglePassword/.gitattributes
@@ -4,4 +4,5 @@
 /phpunit.xml.dist export-ignore
 /assets/src export-ignore
 /assets/test export-ignore
+/doc export-ignore
 /tests export-ignore
diff --git a/src/TogglePassword/.gitignore b/src/TogglePassword/.gitignore
index 3d7e132f..2cc9f023 100644
--- a/src/TogglePassword/.gitignore
+++ b/src/TogglePassword/.gitignore
@@ -1,3 +1,5 @@
-vendor/
-composer.lock
-.phpunit.result.cache
+/assets/node_modules/
+/vendor/
+/composer.lock
+/phpunit.xml
+/.phpunit.result.cache
diff --git a/src/Translator/.gitattributes b/src/Translator/.gitattributes
index 97734d35..73107b13 100644
--- a/src/Translator/.gitattributes
+++ b/src/Translator/.gitattributes
@@ -4,4 +4,5 @@
 /phpunit.xml.dist export-ignore
 /assets/src export-ignore
 /assets/test export-ignore
+/doc export-ignore
 /tests export-ignore
diff --git a/src/Translator/.gitignore b/src/Translator/.gitignore
index 30282084..2cc9f023 100644
--- a/src/Translator/.gitignore
+++ b/src/Translator/.gitignore
@@ -1,4 +1,5 @@
-vendor
-composer.lock
-.php_cs.cache
-.phpunit.result.cache
+/assets/node_modules/
+/vendor/
+/composer.lock
+/phpunit.xml
+/.phpunit.result.cache
diff --git a/src/Turbo/.gitattributes b/src/Turbo/.gitattributes
index b6c0beab..91c1f350 100644
--- a/src/Turbo/.gitattributes
+++ b/src/Turbo/.gitattributes
@@ -6,4 +6,7 @@
 /assets/src export-ignore
 /assets/test export-ignore
 /assets/vitest.config.js export-ignore
+/CONTRIBUTING.md export-ignore
+/docker-compose.yml
+/doc export-ignore
 /tests export-ignore
diff --git a/src/Turbo/.gitignore b/src/Turbo/.gitignore
index 9bd0c178..d365c4b9 100644
--- a/src/Turbo/.gitignore
+++ b/src/Turbo/.gitignore
@@ -1,10 +1,9 @@
-/.php_cs.cache
-/.php_cs
-/.phpunit.result.cache
-/composer.phar
+/assets/node_modules/
+/vendor/
 /composer.lock
 /drivers/
 /phpunit.xml
+/.phpunit.result.cache
 /tests/app/assets/vendor/
 /tests/app/public/assets/
 /tests/app/public/build/
diff --git a/src/TwigComponent/.gitattributes b/src/TwigComponent/.gitattributes
index 596519e1..80dad561 100644
--- a/src/TwigComponent/.gitattributes
+++ b/src/TwigComponent/.gitattributes
@@ -1,5 +1,7 @@
 /.gitattributes export-ignore
 /.gitignore export-ignore
 /.symfony.bundle.yaml export-ignore
+/alert-example.png export-ignore
 /phpunit.xml.dist export-ignore
+/doc export-ignore
 /tests export-ignore
diff --git a/src/TwigComponent/.gitignore b/src/TwigComponent/.gitignore
index 85421784..1784dd65 100644
--- a/src/TwigComponent/.gitignore
+++ b/src/TwigComponent/.gitignore
@@ -1,5 +1,7 @@
+/assets/node_modules/
+/vendor/
 /composer.lock
 /phpunit.xml
-/vendor/
-/var/
 /.phpunit.result.cache
+
+/var
diff --git a/src/Typed/.gitattributes b/src/Typed/.gitattributes
index fe55079a..254b1adb 100644
--- a/src/Typed/.gitattributes
+++ b/src/Typed/.gitattributes
@@ -3,3 +3,4 @@
 /.symfony.bundle.yaml export-ignore
 /assets/src export-ignore
 /assets/test export-ignore
+/doc export-ignore
diff --git a/src/Typed/.gitignore b/src/Typed/.gitignore
index de4a392c..2cc9f023 100644
--- a/src/Typed/.gitignore
+++ b/src/Typed/.gitignore
@@ -1,2 +1,5 @@
-/vendor
+/assets/node_modules/
+/vendor/
 /composer.lock
+/phpunit.xml
+/.phpunit.result.cache
diff --git a/src/Vue/.gitattributes b/src/Vue/.gitattributes
index 1ba1a889..d49b3ecd 100644
--- a/src/Vue/.gitattributes
+++ b/src/Vue/.gitattributes
@@ -4,5 +4,6 @@
 /assets/src export-ignore
 /assets/test export-ignore
 /assets/vitest.config.js export-ignore
+/doc export-ignore
 /phpunit.xml.dist export-ignore
 /tests export-ignore
diff --git a/src/Vue/.gitignore b/src/Vue/.gitignore
index 30282084..2cc9f023 100644
--- a/src/Vue/.gitignore
+++ b/src/Vue/.gitignore
@@ -1,4 +1,5 @@
-vendor
-composer.lock
-.php_cs.cache
-.phpunit.result.cache
+/assets/node_modules/
+/vendor/
+/composer.lock
+/phpunit.xml
+/.phpunit.result.cache


Test patch:
diff --git a/src/Turbo/tests/app/.gitignore b/src/Turbo/tests/app/.gitignore
new file mode 100644
index 00000000..86806e8a
--- /dev/null
+++ b/src/Turbo/tests/app/.gitignore
@@ -0,0 +1,2 @@
+/var/
+/public/build/