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

feat(makefile): adds rebuild.frontend and updates rebuild.api so both… #32

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
12 changes: 0 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,6 @@ default_language_version:
# force all unspecified python hooks to run python3
python: python3
repos:
- repo: https://github.com/gherynos/pre-commit-java
rev: v0.2.0 # Use the ref you want to point at
hooks:
- id: checkstyle
exclude: ".*/src/test/.*"
args:
- -c
- build-tools/src/main/resources/checkstyle.xml
- id: cpd
exclude: ".*/src/test/.*"
- id: pmd
exclude: ".*/src/test/.*"
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.33.0 # Use the sha / tag you want to point at
hooks:
Expand Down
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,17 @@ database.migrate:

.PHONY: rebuild.api
rebuild.api:
docker-compose down
docker rmi sextant-dev-api || true
docker-compose stop api || true
docker-compose rm -f api || true
docker rmi -f sextant-dev-api || true
docker-compose up -d
docker-compose exec api bash


.PHONY: rebuild.frontend
rebuild.frontend:
docker-compose stop frontend || true
docker-compose rm -f frontend || true
docker rmi -f sextant-dev-frontend || true
docker-compose up -d
docker-compose exec frontend bash