This is an automated email from the ASF dual-hosted git repository.

robin0716 pushed a commit to branch refactor/specification-plugin
in repository https://gitbox.apache.org/repos/asf/incubator-answer-plugins.git

commit 36548879b12b2e12ac5b99b7a022d119c9e8e281
Author: robin <[email protected]>
AuthorDate: Thu Jul 4 18:00:55 2024 +0800

    chore: Add script to clean up unnecessary directories and files
---
 script/clean.sh | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/script/clean.sh b/script/clean.sh
new file mode 100755
index 0000000..e2e7166
--- /dev/null
+++ b/script/clean.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+project_root="."
+
+for dir in $(find "$project_root" -type d); do
+    if [[ "$dir" == *.git* ]] || [[ "$dir" == *.vscode* ]]; then
+        continue
+    fi
+    if [[ "$dir" == *dist* ]]; then
+        rm -rf "$dir"
+    fi
+
+    if [[ "$dir" == *node_modules* ]]; then
+        rm -rf "$dir"
+    fi
+done
\ No newline at end of file

Reply via email to