Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impliment Makefile #422

Merged
merged 2 commits into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.PHONY: build start stop build-linter lint migrations migrate db-shell test-server test-frontend

# Run commands with `make <target>`

build:
docker compose build

start:
docker compose up

stop:
docker compose down

build-linter:
docker compose build linter

lint:
docker compose up linter

# Below commands require the docker containers to be running

migrations:
docker compose exec django python manage.py makemigrations

migrate:
docker compose exec django python manage.py migrate

db-shell:
docker compose exec django python manage.py shell

test-frontend:
docker compose run -T -w /code/frontend webpack npm run test

test-server:
docker exec django python manage.py test server.tests
6 changes: 0 additions & 6 deletions alias-config.txt

This file was deleted.

36 changes: 0 additions & 36 deletions alias.sh

This file was deleted.