deploy.sh bash
#!/bin/bash set -e TARGET="opendia.lol" echo "shipping..." npm run build rsync -az dist/ \ $TARGET:/srv/www echo "live ✓"
opendia.lol will be the home for every piece of software I make and the random shit I think is cool.
#!/usr/bin/env python3# opendia.lol: compile every project into the showcaseimport json, pathlib ROOT = pathlib.Path("projects") def build(project): meta = json.loads((project / "opendia.json").read_text()) print(f"→ building {meta['name']} v{meta['version']}") return meta if __name__ == "__main__": shipped = [build(p) for p in ROOT.iterdir() if p.is_dir()] print(f"✓ {len(shipped)} projects ready")
#!/bin/bash set -e TARGET="opendia.lol" echo "shipping..." npm run build rsync -az dist/ \ $TARGET:/srv/www echo "live ✓"
const fs = require('fs'); async function sync() { const list = fs.readdirSync('./projects'); for (const p of list) { await push(p); } return list.length; }
scripts, tools & experiments