Spaces:
Running
Running
Download source/scripts/postbuild.mjs from Segizu/buscador-visual: direct link, hf CLI and curl.
- Browser
- Download file 611 Bytes
-
https://huggingface.co/spaces/Segizu/buscador-visual/resolve/main/source/scripts/postbuild.mjs
- Command line
-
hf download hf://spaces/Segizu/buscador-visual/source/scripts/postbuild.mjs
-
curl -L -o postbuild.mjs https://huggingface.co/spaces/Segizu/buscador-visual/resolve/main/source/scripts/postbuild.mjs
611 Bytes
| // Ensambla dist/ (carpeta desplegable del Space): app compilada + docs + copia del c贸digo fuente. | |
| import { cpSync, mkdirSync, rmSync } from 'node:fs'; | |
| const r = (p) => new URL('../' + p, import.meta.url).pathname; | |
| for (const f of ['README.md', 'NOTICE', 'LICENSE']) cpSync(r(f), r('dist/' + f)); | |
| rmSync(r('dist/source'), { recursive: true, force: true }); | |
| mkdirSync(r('dist/source'), { recursive: true }); | |
| for (const f of ['src', 'tests', 'scripts', 'package.json', 'package-lock.json', 'vite.config.js', 'index.html']) cpSync(r(f), r('dist/source/' + f), { recursive: true }); | |
| console.log('dist assembled'); | |