-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
56 lines (40 loc) · 901 Bytes
/
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
.PHONY: init init-from-template run hooks seed test check cfn-lint ldb migrate idb flask-deploy-dev deploy-dev
PYTHON=poetry run
init: init-from-template hooks
init-from-template:
@bash script/initialize_project.sh
run:
FLASK_ENV=development $(PYTHON) flask run --reload
hooks:
$(PYTHON) pre-commit install
seed:
$(PYTHON) flask seed
test:
$(PYTHON) pytest
check:
$(PYTHON) flake8
$(PYTHON) mypy .
$(PYTHON) bento check
$(PYTHON) pytest
cfn-lint:
npm run sls-package
cfn-lint
# documentation
doc:
poetry install --extras "doc"
$(MAKE) -C doc html
# init DB
idb: dropcreatedb migrate seed
dropcreatedb:
dropdb TEMPLATE --if-exists
createdb TEMPLATE
migrate:
flask db upgrade
deploy-dev:
sls deploy --stage dev
sls --stage dev invoke -f migrate
seed-dev: deploy-dev
sls --stage dev invoke -f seed
deploy-prd:
sls deploy --stage prd
sls --stage prd invoke -f migrate