Migrate dev:setup to standalone script

This commit is contained in:
Claudio Ortolina
2025-10-06 17:57:58 +03:00
parent b98751b460
commit 0a0f64978f
2 changed files with 17 additions and 21 deletions
+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
-21
View File
@@ -77,11 +77,6 @@ hide = true
# TOOLING # TOOLING
[tasks.gh-markdown-preview-extension-install]
description = 'Install a gh extension to preview GH-flavoured markdown files locally'
run = ['gh extension install thiagokokada/gh-gfm-preview']
hide = true
[tasks.gh-markdown-preview-extension-update] [tasks.gh-markdown-preview-extension-update]
description = 'Update the gh extension to preview GH-flavoured markdown files locally' description = 'Update the gh extension to preview GH-flavoured markdown files locally'
run = ['gh extension upgrade gfm-preview'] run = ['gh extension upgrade gfm-preview']
@@ -112,22 +107,6 @@ depends = [
] ]
description = 'Update dependencies' description = 'Update dependencies'
# SETUP
[tasks.fluxon-add-repo]
description = "Add the fluxon repo"
run = """
mix hex.repo add fluxon https://repo.fluxonui.com \
--fetch-public-key $FLUXON_KEY_FINGERPRINT \
--auth-key $FLUXON_LICENSE_KEY
"""
hide = true
[tasks."dev:setup"]
depends = ['fluxon-add-repo', 'gh-markdown-preview-extension-install']
description = 'Install dependencies and setup the database'
run = ['mix setup']
# CI # CI
[tasks."ci:watch"] [tasks."ci:watch"]