Add tooling to preview README locally
This commit is contained in:
@@ -54,6 +54,18 @@ description = 'Show outdated mix dependencies'
|
|||||||
run = ['mix hex.outdated --all']
|
run = ['mix hex.outdated --all']
|
||||||
hide = true
|
hide = true
|
||||||
|
|
||||||
|
# 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]
|
||||||
|
description = 'Update the gh extension to preview GH-flavoured markdown files locally'
|
||||||
|
run = ['gh extension upgrade gfm-preview']
|
||||||
|
hide = true
|
||||||
|
|
||||||
# PUBLIC TASKS
|
# PUBLIC TASKS
|
||||||
|
|
||||||
# DEPENDENCIES
|
# DEPENDENCIES
|
||||||
@@ -63,7 +75,12 @@ 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',
|
||||||
|
'gh-markdown-preview-extension-update',
|
||||||
|
]
|
||||||
description = 'Update dependencies'
|
description = 'Update dependencies'
|
||||||
|
|
||||||
# SETUP
|
# SETUP
|
||||||
@@ -77,7 +94,11 @@ mix hex.repo add fluxon https://repo.fluxonui.com \
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
[tasks."dev:setup"]
|
[tasks."dev:setup"]
|
||||||
depends = ['npm-install', 'fluxon-add-repo']
|
depends = [
|
||||||
|
'npm-install',
|
||||||
|
'fluxon-add-repo',
|
||||||
|
'gh-markdown-preview-extension-install',
|
||||||
|
]
|
||||||
description = 'Install dependencies and setup the database'
|
description = 'Install dependencies and setup the database'
|
||||||
run = ['mix setup']
|
run = ['mix setup']
|
||||||
|
|
||||||
@@ -129,6 +150,10 @@ run = 'mix test'
|
|||||||
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'
|
||||||
|
|
||||||
|
[tasks."dev:readme-preview"]
|
||||||
|
description = 'Preview the README file via a GH flavoured markdown rendered'
|
||||||
|
run = 'gh gfm-preview README.md'
|
||||||
|
|
||||||
# DOCKER
|
# DOCKER
|
||||||
|
|
||||||
[tasks."docker:build"]
|
[tasks."docker:build"]
|
||||||
|
|||||||
Reference in New Issue
Block a user