forked from sequinstream/sequin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
82 lines (64 loc) · 2.57 KB
/
Makefile
File metadata and controls
82 lines (64 loc) · 2.57 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
.PHONY: dev deviex signoff signoff-dirty signoff_stack merge help init spellcheck addword check-links deploy buildpush
dev: ## Run the app locally
elixir --sname sequin-stream-dev --cookie sequin-stream-dev -S mix phx.server
deviex: ## Open an IEx session on the running local app
iex --sname console-$$(openssl rand -hex 4) --remsh sequin-stream-dev --cookie sequin-stream-dev
signoff:
@./scripts/signoff.sh
signoff-dirty:
@./scripts/signoff.sh --dirty
signoff_stack:
@./scripts/signoff_stack.sh
merge:
@./scripts/merge.sh
merge-force:
@./scripts/merge.sh --force
init:
@if [ ! -f .settings.json ]; then \
cp .settings.example.json .settings.json; \
echo ".settings.json created. Please edit it to configure your settings."; \
else \
echo ".settings.json already exists. No changes made."; \
fi
release:
@./scripts/release.sh
release-dirty:
@./scripts/release.sh --dirty
spellcheck:
@npx -y cspell "**/*.{md,mdx}" --config spellcheck/.cspell.json
addword:
@if [ -z "$(word)" ]; then \
echo "Usage: make addword word=<word>"; \
else \
echo "$(word)" >> spellcheck/project-words.txt; \
sort -u spellcheck/project-words.txt -o spellcheck/project-words.txt; \
echo "Added '$(word)' to project-words.txt"; \
fi
check-links:
@cd docs && mintlify broken-links
buildpush:
mix buildpush
help:
@echo "Available commands:"
@echo " make dev - Run the app locally"
@echo " make deviex - Open an IEx session on the running local app"
@echo " make signoff - Run the signoff script"
@echo " make signoff-dirty - Run the signoff script with --dirty flag"
@echo " make signoff_stack - Run the signoff_stack script"
@echo " make merge - Run the merge script"
@echo " make merge-force - Run the merge script, bypassing signoff check"
@echo " make init - Create .settings.json from .settings.json.example"
@echo " make help - Show this help message"
@echo " make spellcheck - Run cspell to check spelling in .md and .mdx files"
@echo " make addword word=<word> - Add a word to project-words.txt"
@echo " make check-links - Run mintlify broken-links in the docs directory"
@echo " make deploy [sha=<commit-sha>] - Deploy the specified or latest commit"
@echo " make buildpush - Run mix buildpush (build and push docker image)"
impersonate:
@INFRA_DIR=$$(jq -r '.infraDir // "../infra"' .settings.json); \
cd "$$INFRA_DIR" && ./scripts/prod_rpc.sh "Sequin.Accounts.Impersonate.generate_link\(~s{$(user)}\,~s{$(account)}\)"
deploy:
@INFRA_DIR=$$(jq -r '.infraDir // "../infra"' .settings.json); \
cd "$$INFRA_DIR" && ./scripts/deploy.sh $(sha)
%:
@: