-
-
Notifications
You must be signed in to change notification settings - Fork 107
/
Copy pathMakefile
55 lines (45 loc) · 1.55 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
47
48
49
50
51
52
53
54
55
all: format docs test
docs: deps/panvimdoc
@echo Generating Docs... && \
cd deps/panvimdoc && \
pandoc \
--metadata="project:codecompanion" \
--metadata="vimversion:NVIM v0.10.0" \
--metadata="titledatepattern:%Y %B %d" \
--metadata="toc:true" \
--metadata="incrementheadinglevelby:0" \
--metadata="treesitter:true" \
--lua-filter scripts/skip-blocks.lua \
--lua-filter scripts/include-files.lua \
--lua-filter scripts/remove-emojis.lua \
-t scripts/panvimdoc.lua \
../../README.md \
-o ../../doc/codecompanion.txt
format:
@echo Formatting...
@stylua lua/ -f ./stylua.toml
test: deps
@echo Testing...
nvim --headless --noplugin -u ./scripts/minimal_init.lua -c "lua MiniTest.run()"
test_file: deps
@echo Testing File...
nvim --headless --noplugin -u ./scripts/minimal_init.lua -c "lua MiniTest.run_file('$(FILE)')"
plenary:
@echo "===> Testing:"
nvim --headless --clean \
-u scripts/minimal_init.lua \
-c "PlenaryBustedDirectory lua/spec/codecompanion { minimal_init = 'scripts/minimal_init.lua' }"
deps: deps/plenary.nvim deps/nvim-treesitter deps/mini.nvim deps/panvimdoc
@echo Pulling...
deps/plenary.nvim:
@mkdir -p deps
git clone --filter=blob:none https://github.com/nvim-lua/plenary.nvim.git $@
deps/nvim-treesitter:
@mkdir -p deps
git clone --filter=blob:none https://github.com/nvim-treesitter/nvim-treesitter.git $@
deps/mini.nvim:
@mkdir -p deps
git clone --filter=blob:none https://github.com/echasnovski/mini.nvim $@
deps/panvimdoc:
@mkdir -p deps
git clone --filter=blob:none https://github.com/kdheepak/panvimdoc $@