Files
music_library/mise.toml
T
2025-02-22 10:03:14 +00:00

64 lines
1.4 KiB
TOML

[env]
LAST_FM_USER = 'change-me'
LAST_FM_API_KEY = 'change-me'
OPENAI_KEY = 'change-me'
[tools]
hurl = 'latest'
flyctl = 'latest'
[tasks.npm-install]
run = 'npm install'
hide = true
dir = 'assets'
[tasks.npm-update]
run = 'npm update'
hide = true
dir = 'assets'
[tasks.npm-outdated]
run = 'npm outdated'
hide = true
dir = 'assets'
[tasks.setup]
depends = ['npm-install']
description = 'Install dependencies and setup the database'
run = ['mix setup']
[tasks.deps-update]
depends = ['npm-update']
description = 'Update dependencies'
run = ['mix deps.update --all']
[tasks.deps-outdated]
depends = ['npm-outdated']
description = 'Show outdated dependencies'
run = ['mix hex.outdated --all']
[tasks.prod-console]
description = 'Open an ssh console to the production env'
run = 'fly ssh console'
[tasks.prod-backup]
description = 'Backup the production database to the local development env'
run = 'mix music_library.prod.db_backup'
[tasks.static-checks]
description = 'Run static checks for code formatting, translations, quality'
run = 'mix do format, credo, gettext.extract'
[tasks.static-checks-hook]
description = 'Pre-commit task to ensure code conforms to static checks policies'
run = 'mix do format --check-formatted, credo --strict, gettext.extract --check-up-to-date'
hide = true
[tasks.test]
description = 'Run project tests'
run = 'mix test'
[tasks.console]
description = 'Run the application attached to an IEx console'
run = 'iex -S mix phx.server'