hugosoucycc

[ARCHIVED] Another old source code of <hugo.soucy.cc>.
Log | Files | Refs | Submodules

commit b9050943c2449ee93d6dead69278434574d2198f
parent 36f43e4ea3cc407b1e8e9f472cfea52b8687c4dd
Author: Hugo Soucy <hugo.soucy@savoirfairelinux.com>
Date:   Thu, 22 Jun 2017 09:52:29 -0400

Add the strict synthax for the preformatted block.

Diffstat:
Mcontent/txt/bash/2017/03/manuel-taskrunner.md | 54+++++++++++++++++++++++++++---------------------------
1 file changed, 27 insertions(+), 27 deletions(-)

diff --git a/content/txt/bash/2017/03/manuel-taskrunner.md b/content/txt/bash/2017/03/manuel-taskrunner.md @@ -34,35 +34,35 @@ réel le thème de mon site web. Voici un exemple de mon utilisation de `manuel-contrib-watch` dans mon `manuelfile` : -``` -# Concatenate and minify styles sheets (./frontend). -# Then export with rsync -function update_css () { - ./frontend - rsync -avmh "./$ASSETS/css/" "./$PUBLICHTML/css/" -} + # Concatenate and minify styles sheets (./frontend). + # Then export with rsync + function update_css () { + ./frontend + + rsync -avmh "./$ASSETS/css/" "./$PUBLICHTML/css/" + } + + # Concatenate and minify scripts (./frontend). + # Then export with rsync + function update_js () { + ./frontend + + rsync -avmh "./$ASSETS/js/" "./$PUBLICHTML/js/" + } + + # Watch CSS and JS files + # Then update them + function watch_assets_change () { + + declare -A actions=( + [".*.css$"]="update_css" + [".*.js$"]="update_js" + ) + + manuel_watch "./static/dev/" + } -# Concatenate and minify scripts (./frontend). -# Then export with rsync -function update_js () { - ./frontend - - rsync -avmh "./$ASSETS/js/" "./$PUBLICHTML/js/" -} - -# Watch CSS and JS files -# Then update them -function watch_assets_change () { - - declare -A actions=( - [".*.css$"]="update_css" - [".*.js$"]="update_js" - ) - - manuel_watch "./static/dev/" -} -``` Puis dans le terminal on fait la commande `manuel watch_assets_change` pour lancer le "watch".