comicfn2dict/Makefile

112 lines
1.9 KiB
Makefile
Raw Normal View History

2023-12-21 13:04:52 -08:00
.PHONY: install-deps
## Update pip and install poetry
2024-02-23 19:06:35 -08:00
## @category Install
install-deps:
2023-12-21 13:04:52 -08:00
pip install --upgrade pip
pip install --upgrade poetry
2024-02-23 19:04:45 -08:00
npm install
2023-12-21 13:04:52 -08:00
.PHONY: install
## Install for production
## @category Install
install-prod: install-deps
poetry install --no-root --only-root
.PHONY: install-dev
## Install dev requirements
## @category Install
install-dev: install-deps
poetry install --no-root --only-root --with dev
.PHONY: install-all
## Install with all extras
## @category Install
install-all: install-deps
poetry install --no-root --all-extras
.PHONY: clean
## Clean pycaches
## @category Build
clean:
./bin/clean-pycache.sh
.PHONY: build
## Build package
## @category Build
build:
poetry build
.PHONY: publish
## Publish package to pypi
## @category Deploy
publish:
poetry publish
.PHONY: update
## Update dependencies
## @category Update
update:
./bin/update-deps.sh
.PHONY: update-builder
## Update builder requirements
## @category Update
update-builder:
./bin/update-builder-requirement.sh
## Show version. Use V variable to set version
## @category Update
V :=
.PHONY: version
## Show or set project version
## @category Update
version:
bin/version.sh $(V)
.PHONY: kill-eslint_d
## Kill eslint daemon
## @category Lint
kill-eslint_d:
bin/kill-eslint_d.sh
.PHONY: fix
## Fix front and back end lint errors
## @category Lint
fix: fix-backend
.PHONY: fix-backend
## Fix only backend lint errors
## @category Lint
fix-backend:
./bin/fix-lint-backend.sh
.PHONY: lint
## Lint front and back end
## @category Lint
lint: lint-backend
.PHONY: lint-backend
## Lint the backend
## @category Lint
lint-backend:
./bin/lint-backend.sh
## Test
## @category Test
T :=
.PHONY: test
## Run Tests. Use T variable to run specific tests
## @category Test
test:
./bin/test.sh $(T)
.PHONY: news
## Show recent NEWS
## @category Deploy
news:
head -40 NEWS.md
.PHONY: all
include bin/makefile-help.mk