Migrate dev:setup to standalone script
This commit is contained in:
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
|
||||||
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user