mirror of
https://github.com/daylinmorgan/yartsu.git
synced 2024-12-21 20:10:45 -06:00
chore: add recipes to makefile
This commit is contained in:
parent
88e5cf8962
commit
784cfa9f5b
1 changed files with 17 additions and 1 deletions
18
Makefile
18
Makefile
|
@ -1,6 +1,7 @@
|
|||
SRC_FILES = $(wildcard yartsu/*)
|
||||
|
||||
.PHONY: list lint build svg-docs theme-docs docs typing format
|
||||
.PHONY: list lint build svg-docs theme-docs docs typing format dist check-tag
|
||||
|
||||
lint: format typing
|
||||
|
||||
typing:
|
||||
|
@ -9,6 +10,19 @@ typing:
|
|||
format:
|
||||
pdm run pre-commit run --all
|
||||
|
||||
check-tag:
|
||||
@[ "${TAG}" ] || ( echo ">> TAG is not set"; exit 1 )
|
||||
@git describe HEAD --tags --exact-match
|
||||
|
||||
release: build/yartsu check-tag
|
||||
gh release create $(TAG) build/yartsu -p -d
|
||||
|
||||
publish: dist
|
||||
twine upload dist/*
|
||||
|
||||
dist:
|
||||
pdm build
|
||||
|
||||
build: build/yartsu
|
||||
|
||||
build/yartsu: $(SRC_FILES)
|
||||
|
@ -39,6 +53,8 @@ demo-docs:
|
|||
console.print('\n:snake: [b i]Emoji\'s!'); \
|
||||
console.print(' [cyan]Nerd Fonts!');" \
|
||||
| yartsu -w 25 -o assets/demo.svg
|
||||
clean:
|
||||
rm -rf build dist
|
||||
|
||||
# https://stackoverflow.com/a/26339924
|
||||
list:
|
||||
|
|
Loading…
Reference in a new issue