From 81d52ca20c691ed9e1bf0aa61a87bed0334302f1 Mon Sep 17 00:00:00 2001 From: redatman Date: Sun, 21 Jul 2024 00:41:06 +0800 Subject: [PATCH] feat: Exclude unnecessary files from package Exclude image files, test files, and Sublime Text project files from the package to reduce the size and complexity of the distribution. This makes the package more lightweight and easier to use. --- .gitattributes | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.gitattributes b/.gitattributes index c80f202..87216aa 100644 --- a/.gitattributes +++ b/.gitattributes @@ -18,3 +18,18 @@ # # Set the merge tool for certain file types # *.txt merge= # *.json merge= + +# Exclude all image files from the package +*.png export-ignore +*.jpg export-ignore +*.jpeg export-ignore +*.gif export-ignore +*.svg export-ignore + +# Exclude test files and directories from the package +tests/* export-ignore +test/* export-ignore + +# Exclude Sublime Text project and workspace files from the package +*.sublime-project export-ignore +*.sublime-workspace export-ignore