MCPcopy Create free account
hub / github.com/cloudflare/templates / deployLiveDemos

Function deployLiveDemos

cli/src/deployLiveDemos.ts:29–40  ·  view source on GitHub ↗
({
	templateDirectory,
}: DeployLiveDemosConfig)

Source from the content-addressed store, hash-verified

27}
28
29export default async function deployLiveDemos({
30 templateDirectory,
31}: DeployLiveDemosConfig) {
32 const templates = getPublishedTemplates(templateDirectory);
33 await Promise.all(
34 templates.map(({ path: templatePath }) => {
35 runCommand("npm install --force", templatePath);
36 runCommand("npm run build --if-present", templatePath);
37 runCommand("npm run deploy", templatePath);
38 }),
39 );
40}

Callers 1

index.tsFile · 0.85

Calls 2

getPublishedTemplatesFunction · 0.90
runCommandFunction · 0.85

Tested by

no test coverage detected