-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
105 lines (88 loc) · 1.76 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
.PHONY: install-deps
## Update pip and install poetry
## @category Install
install-deps:
pip install --upgrade pip
pip install --upgrade poetry
npm install
.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
## 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