From 907b735c06579b20196ca97fcf4ed57daac99d30 Mon Sep 17 00:00:00 2001 From: Quentin Date: Thu, 13 Apr 2023 07:30:58 +0000 Subject: [PATCH] =?UTF-8?q?Update=20Article=20=E2=80=9C2023-04-12-un-outil?= =?UTF-8?q?-sans-daemon-pour-g=C3=A9rer-ses-artefacts-de-build=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...sans-daemon-pour-gérer-ses-artefacts-de-build.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/_posts/2023-04-12-un-outil-sans-daemon-pour-gérer-ses-artefacts-de-build.md b/_posts/2023-04-12-un-outil-sans-daemon-pour-gérer-ses-artefacts-de-build.md index 8356d15..2684b70 100644 --- a/_posts/2023-04-12-un-outil-sans-daemon-pour-gérer-ses-artefacts-de-build.md +++ b/_posts/2023-04-12-un-outil-sans-daemon-pour-gérer-ses-artefacts-de-build.md @@ -150,3 +150,16 @@ const albatros_tags = async () => { ``` Ensuite il ne reste plus qu'à l'insérer dans le DOM de la page : + +```javascript +const inject_list = manifest => { + const c = manifest.tags.map(t => `registry.deuxfleurs.org/albatros:${t}`).join('\n') + document.querySelector('pre').textContent = c +} + +(async () => inject_list(await albatros_tags()))() +``` + + + +