Skip to content

Commit 77892f6

Browse files
committed
chore: exclude dev files from release archives
- Add .gitattributes with export-ignore for dev files - Rename assets/ to .wordpress-org/ for consistency - Update .distignore to exclude .wordpress-org/
1 parent 1ea3d9d commit 77892f6

File tree

7 files changed

+27
-0
lines changed

7 files changed

+27
-0
lines changed

.distignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Directories
22
/.git/
33
/.github/
4+
/.wordpress-org/
45
/bin/
56
/node_modules/
67
/tests/

.gitattributes

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Exclude from release archives
2+
/.github/ export-ignore
3+
/.wordpress-org/ export-ignore
4+
/bin/ export-ignore
5+
/node_modules/ export-ignore
6+
/tests/ export-ignore
7+
/vendor/ export-ignore
8+
/.distignore export-ignore
9+
/.editorconfig export-ignore
10+
/.gitattributes export-ignore
11+
/.gitignore export-ignore
12+
/.phpcs.xml.dist export-ignore
13+
/.wp-env.json export-ignore
14+
/.wp-env.override.json export-ignore
15+
/composer.json export-ignore
16+
/composer.lock export-ignore
17+
/package.json export-ignore
18+
/package-lock.json export-ignore
19+
/phpunit.xml.dist export-ignore
20+
21+
# Auto detect text files and perform LF normalization
22+
* text=auto
23+
24+
*.md text
25+
*.php text
26+
*.inc text
File renamed without changes.

0 commit comments

Comments
 (0)