Skip to content

Commit

Permalink
Add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
fidel committed Oct 23, 2023
1 parent 4d88084 commit 07b5a38
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
setup: ## Install packages and run mgirations
@bin/setup

web: ## Rails server
@bin/rails s

css: ## CSS watcher
@bin/rails tailwindcss:watch

dev: ## Run Rails server and CSS watcher
@make -j 16 web css

test: ## Run tests
@bin/rails test

mutate: ## Run mutant
@bundle exec mutant run

console: ## Rails console
@bin/rails c

help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = "(:|:[^:]*?## )"}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | sort

.PHONY: help web css dev test mutate console
.DEFAULT_GOAL := help

0 comments on commit 07b5a38

Please sign in to comment.