buildProject
Composes a project.
Composes a project.
Import#
ts
import { buildProject } from "create-shadow-app";
Signature#
ts
function buildProject(input: ScaffoldOptions): Project
Parameters#
| Name | Description |
|---|---|
input |
What to generate. Only name is required. |
Returns#
The files and what the command line needs to finish the job.
Throws#
- Error for an unknown template or package manager, or (with
local) when the pack directory lacks a package the project needs.
Examples#
ts
buildProject({ name: "app", template: "dusk", tailwind: true }).files.has("serve.mjs"); // false