-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
39 lines (30 loc) · 859 Bytes
/
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
.DEFAULT_GOAL := help
SHELL := /bin/bash
.PHONY: help
help:
@cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: frontend-build
frontend-build: ## Run the frontend build process to compile sass and move asset files to public
@echo "Building frontend assets..."
ruby ./build/compile_assets.rb
frontend-build-watch:
@$(SHELL) ./scripts/frontend-build-watch.sh
.PHONY: test
test:
@bundle exec rspec
@npm run test
.PHONY: hosts
hosts:
@scripts/configure-tests-hosts.sh
.PHONY: assets-version
assets-version:
@scripts/write-assets-version.sh
.PHONY: run
run:
@bundle exec rackup -p 9292 ${ARGS}
.PHONY: formatmak
format:
@bundle exec rubocop --autocorrect || true && npm run fmt || true
.PHONY: journey
journey:
@bundle exec rspec --tag journey