Skip to content

Commit 3b011be

Browse files
committed
feature #1242 [DX] Update .gitattributes & .gitignores files (smnandre)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- [DX] Update .gitattributes & .gitignores files StimulusBundle did not have a `.gitattributes` file, packaging all the tests code (see: [symfony/stimulus-bundle](https://cdn.jsdelivr.net/gh/symfony/stimulus-bundle/) VS. [symfony/ux-twig-component](https://cdn.jsdelivr.net/gh/symfony/ux-twig-component/) | NOK | OK | | - | - | | ![stimulus-bundle](https://github.com/symfony/ux/assets/1359581/c82d78dd-535c-4f17-a96a-70895f167c43) | ![twig-component](https://github.com/symfony/ux/assets/1359581/76bacad4-7c39-4fce-a389-bfe3c2a07fe8) | I used the occasion to check / refresh all the packages `.gitignore` and `.gitattributes` and * add missing phpunit.xml.dist (once) * remove unnecessary .gitignore files * simplify export rules about assets/src files Commits ------- 35832ab [DX] Update .gitattributes & .gitignores files
2 parents 19dd9be + 35832ab commit 3b011be

File tree

18 files changed

+32
-30
lines changed

18 files changed

+32
-30
lines changed

src/Autocomplete/.gitattributes

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/.gitattributes export-ignore
22
/.gitignore export-ignore
33
/.symfony.bundle.yaml export-ignore
4-
/phpunit.xml.dist export-ignore
5-
/assets/.gitignore export-ignore
6-
/assets/src/**/*.ts export-ignore
4+
/assets/src export-ignore
75
/assets/test export-ignore
6+
/phpunit.xml.dist export-ignore
87
/tests export-ignore

src/Autocomplete/assets/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/Chartjs/.gitattributes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/.gitattributes export-ignore
22
/.gitignore export-ignore
33
/.symfony.bundle.yaml export-ignore
4-
/phpunit.xml.dist export-ignore
5-
/assets/src/**/*.ts export-ignore
4+
/assets/src export-ignore
65
/assets/test export-ignore
76
/assets/vitest.config.js export-ignore
7+
/phpunit.xml.dist export-ignore
88
/tests export-ignore

src/Cropperjs/.gitattributes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/.gitattributes export-ignore
22
/.gitignore export-ignore
33
/.symfony.bundle.yaml export-ignore
4-
/phpunit.xml.dist export-ignore
5-
/assets/src/**/*.ts export-ignore
4+
/assets/src export-ignore
65
/assets/test export-ignore
6+
/phpunit.xml.dist export-ignore
77
/tests export-ignore

src/Dropzone/.gitattributes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/.gitattributes export-ignore
22
/.gitignore export-ignore
33
/.symfony.bundle.yaml export-ignore
4-
/phpunit.xml.dist export-ignore
5-
/assets/src/**/*.ts export-ignore
4+
/assets/src export-ignore
65
/assets/test export-ignore
6+
/phpunit.xml.dist export-ignore
77
/tests export-ignore

src/LazyImage/.gitattributes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/.gitattributes export-ignore
22
/.gitignore export-ignore
33
/.symfony.bundle.yaml export-ignore
4-
/phpunit.xml.dist export-ignore
5-
/assets/src/**/*.ts export-ignore
4+
/assets/src export-ignore
65
/assets/test export-ignore
6+
/phpunit.xml.dist export-ignore
77
/tests export-ignore

src/LiveComponent/.gitattributes

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
/.gitattributes export-ignore
22
/.gitignore export-ignore
33
/.symfony.bundle.yaml export-ignore
4-
/phpunit.xml.dist export-ignore
5-
/assets/.gitignore export-ignore
6-
/assets/src/**/*.ts export-ignore
4+
/assets/src export-ignore
75
/assets/test export-ignore
86
/phpunit.xml.dist export-ignore
97
/tests export-ignore

src/LiveComponent/assets/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/Notify/.gitattributes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/.gitattributes export-ignore
22
/.gitignore export-ignore
33
/.symfony.bundle.yaml export-ignore
4-
/phpunit.xml.dist export-ignore
5-
/assets/src/**/*.ts export-ignore
4+
/assets/src export-ignore
65
/assets/test export-ignore
6+
/phpunit.xml.dist export-ignore
77
/tests export-ignore

src/React/.gitattributes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/.gitattributes export-ignore
22
/.gitignore export-ignore
33
/.symfony.bundle.yaml export-ignore
4-
/phpunit.xml.dist export-ignore
5-
/assets/src/**/*.ts export-ignore
4+
/assets/src export-ignore
65
/assets/test export-ignore
76
/assets/vitest.config.js export-ignore
7+
/phpunit.xml.dist export-ignore
88
/tests export-ignore

src/StimulusBundle/.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/.gitattributes export-ignore
2+
/.gitignore export-ignore
3+
/.symfony.bundle.yaml export-ignore
4+
/assets/src export-ignore
5+
/assets/test export-ignore
6+
/phpunit.xml.dist export-ignore
7+
/tests export-ignore

src/Svelte/.gitattributes

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/.gitattributes export-ignore
22
/.gitignore export-ignore
33
/.symfony.bundle.yaml export-ignore
4-
/assets/.gitignore export-ignore
5-
/assets/vitest.config.js export-ignore
4+
/assets/src export-ignore
65
/assets/test export-ignore
6+
/assets/vitest.config.js export-ignore
7+
/phpunit.xml.dist export-ignore
78
/tests export-ignore
8-
/assets/src/*.ts export-ignore

src/Svelte/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1+
/assets/node_modules
12
/composer.lock
23
/phpunit.xml
34
/vendor/
4-
/.phpunit.result.cache
5+
/.phpunit.result.cache

src/Svelte/assets/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/Swup/.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/.gitattributes export-ignore
22
/.gitignore export-ignore
33
/.symfony.bundle.yaml export-ignore
4-
/assets/src/**/*.ts export-ignore
4+
/assets/src export-ignore
55
/assets/test export-ignore

src/Turbo/.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/.symfony.bundle.yaml export-ignore
44
/phpunit.xml.dist export-ignore
55
/phpstan.neon.dist export-ignore
6-
/assets/src/**/*.ts export-ignore
6+
/assets/src export-ignore
77
/assets/test export-ignore
88
/assets/vitest.config.js export-ignore
99
/tests export-ignore

src/Typed/.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/.gitattributes export-ignore
22
/.gitignore export-ignore
33
/.symfony.bundle.yaml export-ignore
4-
/assets/src/**/*.ts export-ignore
4+
/assets/src export-ignore
55
/assets/test export-ignore

src/Vue/.gitattributes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/.gitattributes export-ignore
22
/.gitignore export-ignore
33
/.symfony.bundle.yaml export-ignore
4-
/phpunit.xml.dist export-ignore
5-
/assets/src/**/*.ts export-ignore
4+
/assets/src export-ignore
65
/assets/test export-ignore
76
/assets/vitest.config.js export-ignore
7+
/phpunit.xml.dist export-ignore
88
/tests export-ignore

0 commit comments

Comments
 (0)