Yuvraj Sarathe commited on
Commit
fd7fa1a
·
unverified ·
1 Parent(s): 2aaba49

Replace parallel make commands with concurrently

Browse files
Files changed (1) hide show
  1. Makefile +3 -2
Makefile CHANGED
@@ -29,7 +29,9 @@ dev-frontend:
29
 
30
  dev:
31
  @echo "Starting backend (port $(BACKEND_PORT)) and frontend (port 3000)..."
32
- $(MAKE) dev-backend & $(MAKE) dev-frontend & wait
 
 
33
 
34
  test:
35
  cd $(BACKEND_DIR) && python -m pytest -v
@@ -53,7 +55,6 @@ build:
53
  cd $(FRONTEND_DIR) && npm run build
54
 
55
  clean:
56
- rm -rf .venv
57
  rm -rf $(BACKEND_DIR)/__pycache__
58
  find $(BACKEND_DIR) -type d -name __pycache__ -exec rm -rf {} +
59
  rm -rf $(FRONTEND_DIR)/.next
 
29
 
30
  dev:
31
  @echo "Starting backend (port $(BACKEND_PORT)) and frontend (port 3000)..."
32
+ npx concurrently --kill-others --names "BACKEND,FRONTEND" --prefix-colors "blue,green" \
33
+ "$(MAKE) dev-backend" \
34
+ "$(MAKE) dev-frontend"
35
 
36
  test:
37
  cd $(BACKEND_DIR) && python -m pytest -v
 
55
  cd $(FRONTEND_DIR) && npm run build
56
 
57
  clean:
 
58
  rm -rf $(BACKEND_DIR)/__pycache__
59
  find $(BACKEND_DIR) -type d -name __pycache__ -exec rm -rf {} +
60
  rm -rf $(FRONTEND_DIR)/.next