CoolFace
Apppublic

inductiveML/monarch-webgpu

sourceHugging Faceapache-2.0updated 7d agoView on Hugging Face
1likes
package-static.mjs12 linesDownload Raw Back to scripts
1import {cp,rename,rm} from 'node:fs/promises';2import {resolve} from 'node:path';3import {root} from './verify-source.mjs';4await rename(resolve(root,'dist/source.html'),resolve(root,'dist/index.html'));5// Publish the reproducible build alongside source; static hosting needs no build job.6for(const name of ['assets','monarch']){7 await rm(resolve(root,name),{recursive:true,force:true});8 await cp(resolve(root,'dist',name),resolve(root,name),{recursive:true});9}10await cp(resolve(root,'dist/index.html'),resolve(root,'index.html'));11console.log('Prepared index.html, assets/, and monarch/ for free static hosting.');12