From 6f26bfad43f5ea6655aabeb187f2b006be9cf819 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Tue, 23 Apr 2024 11:27:21 +0700 Subject: all: add task to initialize the repository and tools The task "init" include initializing git submodule, installing third party tools for linters, and installing node packages. --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a8bad68..dda1d9f 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,13 @@ COVER_HTML:=cover.html all: lint test go run ./internal/cmd/gorankusu build +.PHONY: init +init: + git submodule update --init + go install golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/fieldalignment + go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow + cd _www && yarn install + .PHONY: lint lint: lint-www -revive ./... -- cgit v1.3