112 lines
1.9 KiB
Makefile
112 lines
1.9 KiB
Makefile
|
.PHONY: install-deps
|
||
|
## Update pip and install poetry
|
||
|
pip install --upgrade pip
|
||
|
pip install --upgrade poetry
|
||
|
|
||
|
.PHONY: install
|
||
|
## Install for production
|
||
|
## @category Install
|
||
|
install-prod: install-deps
|
||
|
poetry install --no-root --only-root
|
||
|
npm install
|
||
|
|
||
|
.PHONY: install-dev
|
||
|
## Install dev requirements
|
||
|
## @category Install
|
||
|
install-dev: install-deps
|
||
|
poetry install --no-root --only-root --with dev
|
||
|
npm install
|
||
|
|
||
|
.PHONY: install-all
|
||
|
## Install with all extras
|
||
|
## @category Install
|
||
|
install-all: install-deps
|
||
|
poetry install --no-root --all-extras
|
||
|
npm install
|
||
|
|
||
|
.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
|