Import
import {
listScaffoldTemplates,
materializeScaffold,
resolveScaffoldTemplate,
SCAFFOLD_TEMPLATE_ALIASES,
} from "veryfront/scaffold";
Examples
Create a project and store its files
import { materializeScaffold } from "veryfront/scaffold";
const { files } = await materializeScaffold({
template: "minimal",
projectName: "my-app",
});
for (const file of files) {
console.log(file.path, file.content.length);
}
Exports
Components
| Name | Description | Source |
|---|---|---|
SCAFFOLD_TEMPLATE_ALIASES | Slugs other product surfaces use for a template this CLI names differently. | source |
Functions
| Name | Description | Source |
|---|---|---|
listScaffoldTemplates | Every template slug a caller may ask for, canonical names and aliases. | source |
materializeScaffold | Produce the complete contents of a new project without touching a disk. | source |
resolveScaffoldTemplate | Canonical starter template for a slug, or null when nothing matches. | source |