aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-04-23 11:27:21 +0700
committerShulhan <ms@kilabit.info>2024-04-23 12:25:10 +0700
commit6f26bfad43f5ea6655aabeb187f2b006be9cf819 (patch)
tree3b8380395d234cb77f2202aceef444876036efee /Makefile
parent19d1c0cc0653b7c83638367e78debf42aea5f037 (diff)
downloadgorankusu-6f26bfad43f5ea6655aabeb187f2b006be9cf819.tar.xz
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
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 ./...