veryfront/scaffold

Import

TypeScript
import {  listScaffoldTemplates,  materializeScaffold,  resolveScaffoldTemplate,  SCAFFOLD_TEMPLATE_ALIASES,} from "veryfront/scaffold";

Examples

Create a project and store its files

TypeScript
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

NameDescriptionSource
SCAFFOLD_TEMPLATE_ALIASESSlugs other product surfaces use for a template this CLI names differently.source

Functions

NameDescriptionSource
listScaffoldTemplatesEvery template slug a caller may ask for, canonical names and aliases.source
materializeScaffoldProduce the complete contents of a new project without touching a disk.source
resolveScaffoldTemplateCanonical starter template for a slug, or null when nothing matches.source

Types

NameDescriptionSource
MaterializedScaffoldA new project: every file it starts with, plus anything worth telling the author.source
MaterializeScaffoldRequestWhat to build: which starter, under what name, for which runtime.source
TemplateFilesource