forked from quentin/quentin.dufour.io
Update Article “2023-04-12-un-outil-sans-daemon-pour-gérer-ses-artefacts-de-build”
This commit is contained in:
parent
f3e912f1bb
commit
907b735c06
1 changed files with 13 additions and 0 deletions
|
@ -150,3 +150,16 @@ const albatros_tags = async () => {
|
||||||
```
|
```
|
||||||
|
|
||||||
Ensuite il ne reste plus qu'à l'insérer dans le DOM de la page :
|
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()))()
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue