Move mise task scripts under /scripts

This commit is contained in:
Claudio Ortolina
2025-10-06 22:46:59 +03:00
parent d5b0e5bddb
commit acff351577
7 changed files with 3 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
#MISE description="Run static checks for code formatting, translations, quality"
set -e
mix lint
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
#MISE description="Show outdated dependencies. Errors at the firsst outdated dependency"
set -e
npm outdated --prefix assets
mix do tailwind.check_version, esbuild.check_version, sqlean.check_version
mix hex.outdated --all
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
#MISE description="Run checks before a commit"
set -e
mix precommit
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
#MISE description="Setup the local development environment"
set -e
# Add the Fluxon UI hex source repo
mix hex.repo add fluxon https://repo.fluxonui.com \
--fetch-public-key $FLUXON_KEY_FINGERPRINT \
--auth-key $FLUXON_LICENSE_KEY
# Install the gh extension to preview local markdown files
gh extension install thiagokokada/gh-gfm-preview
mix setup
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
#MISE description="Update dependencies. Errors at the firsst outdated dependency"
set -e
npm update --prefix assets
mix do tailwind.update_version, esbuild.update_version, sqlean.update_version
mix deps.update --all
gh extension upgrade gfm-preview
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
#MISE description="Backup the production database to the local development env"
set -e
current_date=$(date +%s)
project_dir=$(git rev-parse --show-toplevel)
data_dir="$project_dir/data"
dest_file="$data_dir/music_library_prod_$current_date.db"
scp music-library-prod:/data/coolify/applications/music-library/music_library_prod.db "$dest_file"
rm "$data_dir/music_library_dev.db" || true
rm "$data_dir/music_library_dev.db-shm" || true
rm "$data_dir/music_library_dev.db-wal" || true
cp "$dest_file" "$data_dir/music_library_dev.db"