Update mise tasks with better namespaces

This commit is contained in:
Claudio Ortolina
2025-03-23 18:40:40 +00:00
parent d002b4f543
commit 420ea47a2a
2 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -56,7 +56,7 @@
The project is managed and configured via [mise-en-place](https://mise.jdx.dev): The project is managed and configured via [mise-en-place](https://mise.jdx.dev):
- `mise install` will pull the correct Erlang, Elixir and Node.js versions - `mise install` will pull the correct Erlang, Elixir and Node.js versions
- `mise run setup` will setup dependencies and database structure - `mise run dev:setup` will setup dependencies and database structure
## Environment configuration ## Environment configuration
+11 -11
View File
@@ -56,37 +56,37 @@ hide = true
# DEPENDENCIES # DEPENDENCIES
[tasks.deps-outdated] [tasks."deps:outdated"]
depends = ['npm-outdated', 'tailwind-outdated', 'mix-outdated'] depends = ['npm-outdated', 'tailwind-outdated', 'mix-outdated']
description = 'Show outdated dependencies' description = 'Show outdated dependencies'
[tasks.deps-update] [tasks."deps:update"]
depends = ['npm-update', 'tailwind-update', 'mix-update'] depends = ['npm-update', 'tailwind-update', 'mix-update']
description = 'Update dependencies' description = 'Update dependencies'
# SETUP # SETUP
[tasks.setup] [tasks."dev:setup"]
depends = ['npm-install'] depends = ['npm-install']
description = 'Install dependencies and setup the database' description = 'Install dependencies and setup the database'
run = ['mix setup'] run = ['mix setup']
# PRODUCTION # PRODUCTION
[tasks.prod-console] [tasks."prod:console"]
description = 'Open an ssh console to the production env' description = 'Open an ssh console to the production env'
run = 'fly ssh console' run = 'fly ssh console'
[tasks.prod-backup] [tasks."prod:backup"]
description = 'Backup the production database to the local development env' description = 'Backup the production database to the local development env'
run = 'mix music_library.prod.db_backup' run = 'mix music_library.prod.db_backup'
[tasks.prod-prune-backups] [tasks."prod:prune-backups"]
confirm = 'Are you sure you want to delete all downloaded database backups?' confirm = 'Are you sure you want to delete all downloaded database backups?'
description = 'Deletes all downloaded database backups' description = 'Deletes all downloaded database backups'
run = 'rm data/music_library_prod*' run = 'rm data/music_library_prod*'
[tasks.prod-test] [tasks."prod:test"]
description = 'Run HTTP tests against production' description = 'Run HTTP tests against production'
run = 'hurl --test test/prod.hurl' run = 'hurl --test test/prod.hurl'
@@ -103,7 +103,7 @@ hide = true
# DEVELOPMENT/TEST # DEVELOPMENT/TEST
[tasks.static-checks] [tasks."dev:static-checks"]
description = 'Run static checks for code formatting, translations, quality' description = 'Run static checks for code formatting, translations, quality'
run = 'mix do format, credo, gettext.extract' run = 'mix do format, credo, gettext.extract'
@@ -111,16 +111,16 @@ run = 'mix do format, credo, gettext.extract'
description = 'Run project tests' description = 'Run project tests'
run = 'mix test' run = 'mix test'
[tasks.console] [tasks."dev:console"]
description = 'Run the application attached to an IEx console' description = 'Run the application attached to an IEx console'
run = 'iex -S mix phx.server' run = 'iex -S mix phx.server'
# DOCKER # DOCKER
[tasks.docker-build] [tasks."docker:build"]
description = 'Builds and tags the application Docker image' description = 'Builds and tags the application Docker image'
run = 'docker build -t fullyforged/music_library .' run = 'docker build -t fullyforged/music_library .'
[tasks.docker-push] [tasks."docker:push"]
description = 'Push the image to the registry' description = 'Push the image to the registry'
run = 'docker push fullyforged/music_library' run = 'docker push fullyforged/music_library'