-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (42 loc) · 1.19 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
.PHONY: all fmt lint run
all: lint run
fmt:
@printf "\nFormatting...\n"
@printf "\nFormatting Lua files...\n"
@stylua --config-path nvim/stylua.toml nvim/
@printf "\nFormatting shell scripts...\n"
@shfmt -l -w -i 2 -bn -ci .
@printf "\nFormatting whatever it is that's formatted with Prettier...\n"
@printf "(JSON, Markdown, and YAML files...)\n"
@prettier --write "**/*.{json,md,prettierrc,y?(a)ml}"
lint:
@printf "\nLinting...\n"
@printf "\nLinting Lua files...\n"
@stylua --check --config-path nvim/stylua.toml nvim/
@selene --config nvim/selene.toml .
@printf "\nLinting shell scripts...\n"
@shfmt -l -d -i 2 -bn -ci .
@shellcheck \
./bash/* \
./bin/* \
./runs/* \
./utils/colors.sh \
./utils/update_color_scheme_daemon \
./utils/update_encrypted_config \
./zsh/* \
./bash_profile \
./bootstrap \
./color_scheme.sh \
./directories.sh \
./install \
./update \
./versions.sh \
./zprofile \
./zshenv \
./zshrc
@printf "\nLinting whatever it is that's checked with Prettier...\n"
@printf "(formatting for JSON, Markdown, and YAML files...)\n"
@prettier --check "**/*.{json,md,prettierrc,y?(a)ml}"
run:
@printf "\nRunning the install script...\n\n"
@./install -D