This is an automated email from the ASF dual-hosted git repository. robin0716 pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/incubator-answer-plugins.git
commit c3c960cee3040798366ec2c47573ada5d36b70f5 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
