Skip to content

Commit 48d1c1b

Browse files
committed
♻️ refactor: refactor codebase #3
1 parent 43b2b6a commit 48d1c1b

3 files changed

Lines changed: 37 additions & 0 deletions

File tree

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
# Define the directory where the JAR file is located after build
2+
BUILD_DIR=./plugin/build
3+
LOG_DIR=logs
4+
# Declare targets as phony to avoid conflicts with files of the same name
15
.PHONY: build test jar clean
26

37
build:
8+
clear
9+
rm -rf $(BUILD_DIR)
410
./gradlew jar
511

612
clean:
@@ -16,3 +22,9 @@ test:
1622

1723
groovy:
1824
./gradlew build
25+
26+
tree:
27+
# Create logs directory if not exists
28+
mkdir -p $(LOG_DIR)
29+
# Generate project structure and save it to logs/project_structure.txt
30+
tree -I ".gradle|.idea|build|logs" > ./$(LOG_DIR)/project_structure.txt

TOOLS.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Tree
2+
3+
You can use the tree command-line utility in Node.js to generate a tree-like structure of your project directory. Here's
4+
how you can use it:
5+
6+
First, make sure you have the `tree-node-cli` package installed globally:
7+
8+
```bash
9+
npm install -g tree-node-cli
10+
```
11+
12+
Then, navigate to your project directory and run the following command:
13+
14+
```bash
15+
tree -I "node_modules|.git|.DS_Store"
16+
```
17+
18+
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
19+
the file path:
20+
21+
```bash
22+
tree -I "node_modules|.git|.DS_Store" > project_structure.txt
23+
```
24+
25+
This will save the output to a file named `project_structure.txt`.

plugin/src/main/resources/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)