From b18758034ea10734c63095de2ead7b05d68c6044 Mon Sep 17 00:00:00 2001 From: ulflow_phattt2901 Date: Wed, 7 May 2025 11:58:18 +0700 Subject: [PATCH] =?UTF-8?q?chore{init):=20C=E1=BA=ADp=20nh=E1=BA=ADt=20ino?= =?UTF-8?q?rege?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Loại bỏ các file local không cần thiết lên repo --- .gitmessage.txt | 12 ++++++++++++ .vscode/settings.json | 3 +++ Makefile | 4 ++-- template/.gitmessage.txt | 12 ++++++++++++ 4 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 .gitmessage.txt create mode 100644 .vscode/settings.json create mode 100644 template/.gitmessage.txt diff --git a/.gitmessage.txt b/.gitmessage.txt new file mode 100644 index 0000000..4a140bd --- /dev/null +++ b/.gitmessage.txt @@ -0,0 +1,12 @@ +# type: feat | fix | docs | style | refactor | perf | test | chore +# scope: phần của project bị ảnh hưởng (auth, api, db...) +# summary: mô tả ngắn gọn (không viết hoa, không chấm câu) +# body: mô tả thêm (có thể bỏ qua) +# footer: liên kết issue hoặc cảnh báo BREAKING CHANGE +# ~/.gitmessage.txt + +(): + +[Body - mô tả chi tiết] + +[Footer - issue liên quan, breaking change,...] diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..082b194 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "makefile.configureOnOpen": false +} \ No newline at end of file diff --git a/Makefile b/Makefile index 601fc00..80fa641 100644 --- a/Makefile +++ b/Makefile @@ -54,12 +54,12 @@ all: ci-local build ## Run CI checks and build the application build: ## Build the Go application binary @echo ">>> Building application..." -mkdir "$(BUILD_DIR)" - $(GOBUILD) -o "$(BUILD_DIR)/$(BINARY_NAME).exe" "$(CMD_DIR)/main.go" + $(GOBUILD) -o "$(BUILD_DIR)/$(BINARY_NAME)" "$(CMD_DIR)/main.go" # --- Run --- run: build ## Build and run the application @echo ">>> Running application on port $(PORT)..." - @set PORT=$(PORT) && "$(BUILD_DIR)/$(BINARY_NAME).exe" + @set PORT=$(PORT) && "$(BUILD_DIR)/$(BINARY_NAME)" # --- Dev Mode --- dev: ## Run the application with hot-reload (requires installing air first) diff --git a/template/.gitmessage.txt b/template/.gitmessage.txt new file mode 100644 index 0000000..4a140bd --- /dev/null +++ b/template/.gitmessage.txt @@ -0,0 +1,12 @@ +# type: feat | fix | docs | style | refactor | perf | test | chore +# scope: phần của project bị ảnh hưởng (auth, api, db...) +# summary: mô tả ngắn gọn (không viết hoa, không chấm câu) +# body: mô tả thêm (có thể bỏ qua) +# footer: liên kết issue hoặc cảnh báo BREAKING CHANGE +# ~/.gitmessage.txt + +(): + +[Body - mô tả chi tiết] + +[Footer - issue liên quan, breaking change,...]