-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
53 lines (39 loc) · 1.26 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
# INITIALIZATION
# ~~~~~~~~~~~~~~
# The following rules can be used to initialize the project for the first time.
# --------------------------------------------------------------------------------------------------
.PHONY: init install-front
init:
poetry install
pre-commit install
install-front:
cd frontend
npm install
seed-db:
poetry run python -m backend.seed_database
# DEVELOPMENT
# ~~~~~~~~~~~
# The following rules can be used during development
# --------------------------------------------------------------------------------------------------
.PHONY: backend frontend
backend:
poetry run flask --app backend.app --debug run
frontend:
cd frontend
npm start
# TESTING AND LINTING
# ~~~~~~~~~~~~~~~~~~~
# The following rules can be used to run tests, linters, etc.
# --------------------------------------------------------------------------------------------------
.PHONY: pre-commit
pre-commit:
poetry run pre-commit run --all-files
prettier:
npx prettier frontend/. --write
# ADMINISTRATION
# ~~~~~~~~~~~~~~
# The following rules can be used to perform administrative tasks.
# --------------------------------------------------------------------------------------------------
.PHONY: admin-scripts
admin-scripts:
poetry run python -m scripts.admin_scripts