From 439e1565b7bdb5ab90522eab7d02713a490bb0dc Mon Sep 17 00:00:00 2001 From: arisnguyenit97 Date: Sat, 8 Jun 2024 11:00:52 +0700 Subject: [PATCH] :mute: silent changes: add file tools.md #3 --- Makefile | 6 ++++++ TOOLS.md | 25 +++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 TOOLS.md diff --git a/Makefile b/Makefile index 7f0672f..30de697 100755 --- a/Makefile +++ b/Makefile @@ -16,3 +16,9 @@ test: groovy: ./gradlew build + +tree: + # Create logs directory if not exists + mkdir -p logs + # Generate project structure and save it to logs/project_structure.txt + tree -I ".gradle|.idea|build|logs" > ./logs/project_structure.txt diff --git a/TOOLS.md b/TOOLS.md new file mode 100644 index 0000000..94b24c5 --- /dev/null +++ b/TOOLS.md @@ -0,0 +1,25 @@ +# Tree + +You can use the tree command-line utility in Node.js to generate a tree-like structure of your project directory. Here's +how you can use it: + +First, make sure you have the `tree-node-cli` package installed globally: + +```bash +npm install -g tree-node-cli +``` + +Then, navigate to your project directory and run the following command: + +```bash +tree -I "node_modules|.git|.DS_Store" +``` + +If you want to save the output to a file instead of printing it to the console, you can use the -o option followed by +the file path: + +```bash +tree -I "node_modules|.git|.DS_Store" > project_structure.txt +``` + +This will save the output to a file named `project_structure.txt`.