forked from wojciech-kulik/xcodebuild.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (34 loc) · 1023 Bytes
/
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
all: lint format-check lsp-check help-check test
# Checks warnings and errors in code using linter
lint:
luacheck -q lua
# Formats code
format:
stylua lua
# Checks if code is formatted
format-check:
stylua --check lua
# Checks errors in code using LSP
lsp-check:
scripts/luals-check.sh
# Check if help is up-to-date
help-check:
scripts/help-update.sh
git diff --exit-code doc/xcodebuild.txt
# Updates help file
help-update:
scripts/help-update.sh
git add doc/xcodebuild.txt
# Runs tests
test:
nvim --headless --noplugin -u scripts/minimal_init.lua -c "PlenaryBustedDirectory specs/ { minimal_init = './scripts/minimal_init.lua' }"
# Installs dependencies for plugin usage
install:
brew update --quiet
brew install --quiet xcbeautify xcode-build-server
python3 -m pip install -U pymobiledevice3 --quiet
gem install --quiet xcodeproj
# Installs dependencies for development
install-dev: install
brew install --quiet luacheck lua-language-server stylua
cargo install lemmy-help --features=cli --quiet