Skip to content

Commit

Permalink
♻️ refactor: refactor codebase #2
Browse files Browse the repository at this point in the history
  • Loading branch information
pnguyen215 committed Jun 9, 2024
1 parent e655aa3 commit e48f52b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Define the directory where the JAR file is located after build
BUILD_DIR=./plugin/build
LOG_DIR=logs
# Declare targets as phony to avoid conflicts with files of the same name
.PHONY: build test jar clean

build:
clear
rm -rf $(BUILD_DIR)
./gradlew jar

clean:
Expand All @@ -16,3 +22,9 @@ test:

groovy:
./gradlew build

tree:
# Create logs directory if not exists
mkdir -p $(LOG_DIR)
# Generate project structure and save it to logs/project_structure.txt
tree -I ".gradle|.idea|build|logs|plugin/build" > ./$(LOG_DIR)/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 e48f52b

Please sign in to comment.