Skip to content

Commit

Permalink
🔇 silent changes: add file tools.md #3
Browse files Browse the repository at this point in the history
  • Loading branch information
pnguyen215 committed Jun 8, 2024
1 parent 6241296 commit 439e156
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
25 changes: 25 additions & 0 deletions TOOLS.md
Original file line number Diff line number Diff line change
@@ -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`.

0 comments on commit 439e156

Please sign in to comment.