Repository navigation
Expand file tree
/
Copy pathmise.toml
More file actions
69 lines (54 loc) · 1.95 KB
/
Copy pathmise.toml
File metadata and controls
69 lines (54 loc) · 1.95 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
[settings]
# Let mise read the Ruby version from .ruby-version so external tooling
# (CI, deploys, IDEs) and mise share a single source of truth.
idiomatic_version_file_enable_tools = ["ruby"]
[tools]
node = "22"
[tasks.setup]
description = "Set up the project for local non-docker developement."
run = "bin/setup"
[tasks.server]
description = "Start rails server + vite"
run = """
bin/vite dev &
bin/rails s
"""
[tasks.spec]
description = "Run RSpec tests"
run = "bundle exec rspec"
[tasks.docker-up]
description = "Start Docker containers for development"
run = "docker compose up --build -d"
[tasks.docker-down]
description = "Stop Docker containers"
run = "docker compose down"
[tasks.docker-logs]
description = "View Docker container logs"
run = "docker compose logs -f"
[tasks.docker-db]
description = "Starts a MySql database in docker"
run = "docker compose up -d database"
[tasks.docker-console]
depends = ["docker-up"]
description = "Starts a rails console within docker"
run = "docker compose exec web bin/rails console"
[tasks.docker-dbconsole]
depends = ["docker-up"]
description = "Starts a rails database console within docker"
run = "docker compose exec web bin/rails dbconsole"
[tasks.docker-exec]
depends = ["docker-up"]
description = "Provide commands to exec from the docker container. Ex: mise docker-exec rails db:migrate"
run = "docker compose exec web"
[tasks.docker-spec]
description = "Run RSpec tests in Docker. Exclude system specs because they use ChromeDriver which is not available in the dev docker container."
run = "docker compose exec -e RAILS_ENV=test web bundle exec rspec --tag ~type:system"
[tasks.audit]
description = "Pre-PR check: sort Tailwind classes + security scan"
depends = ["tw-sort", "security"]
[tasks.security]
description = "Security scan: Brakeman + bundler-audit"
run = "bin/brakeman --no-pager && bin/bundler-audit"
[tasks.tw-sort]
description = "Sort Tailwind utility classes (changed files vs origin/main)"
run = "bin/tw-sort"