Move mise task scripts under /scripts
This commit is contained in:
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#MISE description="Run static checks for code formatting, translations, quality"
|
||||
|
||||
set -e
|
||||
|
||||
mix lint
|
||||
Executable
+11
@@ -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
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#MISE description="Run checks before a commit"
|
||||
|
||||
set -e
|
||||
|
||||
mix precommit
|
||||
Executable
+17
@@ -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
|
||||
Executable
+13
@@ -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
|
||||
Executable
+16
@@ -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"
|
||||
Reference in New Issue
Block a user