From 6208b29ceccd7070c6323d5e3b60c2d8dd8f9a17 Mon Sep 17 00:00:00 2001 From: Colin Stewart <79332690+costdev@users.noreply.github.com> Date: Tue, 17 Jun 2025 19:05:57 +0100 Subject: [PATCH] Add `.gitattributes` and exclude other development files. (#103) Signed-off-by: costdev <79332690+costdev@users.noreply.github.com> --- .distignore | 5 +++++ .gitattributes | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .gitattributes diff --git a/.distignore b/.distignore index 9634e32..4943693 100644 --- a/.distignore +++ b/.distignore @@ -8,5 +8,10 @@ phpunit.xml.dist wp-tests-config-sample.php composer.json composer.lock +package.json +package-lock.json +.wp-env.json .gitignore +.gitattributes .distignore +.editorconfig diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..75707fb --- /dev/null +++ b/.gitattributes @@ -0,0 +1,18 @@ +* text=auto + +/.git export-ignore +/.github export-ignore +/bin export-ignore +/node_modules export-ignore +/tests export-ignore +phpunit.xml.dist export-ignore +wp-tests-config-sample.php export-ignore +composer.json export-ignore +composer.lock export-ignore +package.json export-ignore +package-lock.json export-ignore +.wp-env.json export-ignore +.gitignore export-ignore +.gitattributes export-ignore +.distignore export-ignore +.editorconfig export-ignore