@oikina/manifest
v0.0.2
Published
Experimental manifest contract and validation for Oikina Apps.
Maintainers
Readme
@oikina/manifest
The V0 contract for an Oikina-hosted static application.
import { defineManifest, hostnameForApp } from "@oikina/manifest";
const manifest = defineManifest({
schemaVersion: 1,
slug: "incident-tracker",
name: "Incident Tracker",
kind: "static",
build: { outputDirectory: "dist" },
});
hostnameForApp(manifest.slug); // incident-tracker.oikina.comSlugs are lowercase DNS labels. Platform hostnames such as www, api, and
console are reserved. The build output directory must be a relative,
forward-slash path; POSIX and Windows absolute paths, backslashes, and ..
segments are rejected on every platform.
